Bug 120 - pbsnodes not honoring options
: pbsnodes not honoring options
Status: NEW
Product: TORQUE
clients
: 2.5.x
: PC Linux
: P5 normal
Assigned To: Ken Nielson
:
:
:
  Show dependency treegraph
 
Reported: 2011-04-11 11:12 MDT by Brian Andrus
Modified: 2011-04-11 11:12 MDT (History)
1 user (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Brian Andrus 2011-04-11 11:12:09 MDT
From the pbsnodes man page:

       -l             List  node  names  and  their  state.  If no state is
specified, only nodes in the DOWN, OFFLINE, or UNKNOWN states are
                      listed.  Specifying a state string acts as an output
filter.   Valid  state  strings  are  "free",  "offline",  "down",
                      "reserve", "job-exclusive", "job-sharing", "busy",
"time-shared", or "state-unknown".

But:

[root@hamming2 log]# pbsnodes -l reserve
pbsnodes: Unknown node  MSG=cannot locate specified node
[root@hamming2 log]# pbsnodes -l state-unknown
pbsnodes: Unknown node  MSG=cannot locate specified node
[root@hamming2 log]# pbsnodes -l job-exclusive
pbsnodes: Unknown node  MSG=cannot locate specified node
[root@hamming2 log]# pbsnodes -l job-sharing
pbsnodes: Unknown node  MSG=cannot locate specified node
[root@hamming2 log]# pbsnodes -l time-shared
pbsnodes: Unknown node  MSG=cannot locate specified node

Seems to work for "free",  "offline",  "down", "busy"

I also see why, from pbsnodes.c:

const char *NState[] =
  {
  "NONE",
  "active",
  "all",
  "busy",
  "down",
  "free",
  "offline",
  "unknown",
  "up",
  NULL
  };

Maybe add the missing or update man page?