nodels - lists the nodes in the noderange.
nodels [noderange] [table.column | shortname] [...]
nodels {-v | --version}
nodels [-? | -h | --help]
The nodels command lists the nodes specified in the node range. If no noderange is provided, then all nodes are listed.
Additional attributes of the nodes will also be displayed if the table names and attribute names are specified after the noderange in the form: table.column . A few shortcut names can also be used as aliases to common attributes:
nodelist.groups
nodelist.groups
nodehm.mgt
switch.switch
The nodels command with a specific node and one or more table.attribute parameters is a good substitute for grep'ing through the tab files, like was done in xCAT 1.x. This is because nodels will translate any regular expression rows in the tables into their meaning for the specified node. The tab* commands will not do this, instead they will just display the single regular expression row.
Command Version.
Display usage message.
The command completed successfully.
An error has occurred.
To list all defined nodes, enter:
nodels
Output is similar to: node1 node2 node3
To list nodes in node group ppc, enter:
nodels ppc
Output is similar to: ppcnode1 ppcnode2 ppcnode3
To list the groups each node is part of:
nodels all groups
Output is similar to: node1: groups: all node2: groups: all,storage node3: groups: all,blade
To list the groups each node is part of:
nodels all nodehm.power
Output is similar to: node1: nodehm.power: blade node2: nodehm.power: ipmi node3: nodehm.power: ipmi
To list the out-of-band mgt method for blade1:
nodels blade1 nodehm.mgt
Output is similar to: blade1: nodehm.mgt: blade
/opt/xcat/bin/nodels
noderange(5)