2008-02-06 14:45:20 +00:00
|
|
|
=head1 NAME
|
2008-02-08 21:53:41 +00:00
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
B<nodels> - lists the nodes, and their attributes, from the xCAT database.
|
2008-02-08 21:53:41 +00:00
|
|
|
|
2008-02-06 14:45:20 +00:00
|
|
|
=head1 SYNOPSIS
|
2008-02-08 21:53:41 +00:00
|
|
|
|
2008-05-19 17:59:56 +00:00
|
|
|
B<nodels> [I<noderange>] [B<-H> | B<--with-fieldname>] [I<table.column> | I<shortname>] [I<...>]
|
2008-02-29 18:50:38 +00:00
|
|
|
|
2008-05-19 17:59:56 +00:00
|
|
|
B<nodels> [I<noderange>] [B<-H> | B<--with-fieldname>] [I<table>]
|
2008-04-24 11:43:24 +00:00
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
B<nodels> [B<-?> | B<-h> | B<--help> | B<-v> | B<--version>]
|
2008-02-06 14:45:20 +00:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
2008-02-08 21:53:41 +00:00
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
The B<nodels> command lists the nodes specified in the node range. If no noderange is provided, then all nodes are listed.
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-02-29 18:50:38 +00:00
|
|
|
Additional attributes of the nodes will also be displayed if the table names and attribute names
|
2008-03-08 14:14:00 +00:00
|
|
|
are specified after the noderange in the form: I<table.column> . A few shortcut names can
|
2008-02-29 18:50:38 +00:00
|
|
|
also be used as aliases to common attributes:
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=over 15
|
2008-02-29 18:50:38 +00:00
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=item B<groups>
|
2008-02-29 18:50:38 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
nodelist.groups
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=item B<tags>
|
2008-02-29 18:50:38 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
nodelist.groups
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=item B<mgt>
|
2008-03-05 16:49:19 +00:00
|
|
|
|
|
|
|
nodehm.mgt
|
|
|
|
|
2008-09-08 02:11:55 +00:00
|
|
|
=back
|
|
|
|
|
|
|
|
nodels can also select based on table value criteria. The following operators are available:
|
|
|
|
|
|
|
|
=over 15
|
|
|
|
|
|
|
|
=item B<==>
|
|
|
|
|
|
|
|
Select nodes where the table.column value is exactly a certain value.
|
|
|
|
|
|
|
|
=item B<!=>
|
2008-03-05 16:49:19 +00:00
|
|
|
|
2008-09-08 02:11:55 +00:00
|
|
|
Select nodes where the table.column value is not a given specific value.
|
|
|
|
|
|
|
|
=item B<=~>
|
|
|
|
|
|
|
|
Select nodes where the table.column value matches a given regular expression.
|
|
|
|
|
|
|
|
=item B<!~>
|
|
|
|
|
|
|
|
Select nodes where the table.column value does not match a given regular expression.
|
2008-02-29 18:50:38 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
The B<nodels> command with a specific node and one or more table.attribute parameters is a good substitute
|
|
|
|
for grep'ing through the tab files, as was typically done in xCAT 1.x. This is because nodels will translate
|
2008-03-05 16:49:19 +00:00
|
|
|
any regular expression rows in the tables into their meaning for the specified node. The tab* commands
|
2008-08-02 16:18:07 +00:00
|
|
|
will not do this, instead they will just display the regular expression row verbatim.
|
2008-03-05 16:49:19 +00:00
|
|
|
|
2008-02-29 18:50:38 +00:00
|
|
|
=head1 OPTIONS
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
=over 10
|
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
=item B<-v|--version>
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
Command Version.
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-05-19 17:59:56 +00:00
|
|
|
=item B<-H|--with-fieldname>
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
Force display of table name and column name context for each result
|
2008-05-19 17:59:56 +00:00
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
=item B<-?|-h|--help>
|
2008-03-05 16:49:19 +00:00
|
|
|
|
2008-03-08 14:14:00 +00:00
|
|
|
Display usage message.
|
2008-03-05 16:49:19 +00:00
|
|
|
|
|
|
|
=back
|
2008-02-06 14:45:20 +00:00
|
|
|
|
|
|
|
=head1 RETURN VALUE
|
|
|
|
|
2009-09-25 15:30:53 +00:00
|
|
|
0 The command completed successfully.
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2009-09-25 15:30:53 +00:00
|
|
|
1 An error has occurred.
|
2008-03-08 14:14:00 +00:00
|
|
|
|
2008-02-06 14:45:20 +00:00
|
|
|
=head1 EXAMPLES
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=over 3
|
2008-03-05 16:49:19 +00:00
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=item 1.
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
To list all defined nodes, enter:
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
nodels
|
2008-02-06 14:45:20 +00:00
|
|
|
|
|
|
|
Output is similar to:
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2008-02-06 14:45:20 +00:00
|
|
|
node1
|
|
|
|
node2
|
|
|
|
node3
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=item 2.
|
2008-03-05 16:49:19 +00:00
|
|
|
|
2008-04-24 11:43:24 +00:00
|
|
|
To list all defined attributes in a table for a node or noderange, enter:
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
nodels rra001a noderes
|
2008-04-24 11:43:24 +00:00
|
|
|
|
|
|
|
Output is similar to:
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2008-04-24 11:43:24 +00:00
|
|
|
rra001a: noderes.primarynic: eth0
|
|
|
|
rra001a: noderes.xcatmaster: rra000
|
|
|
|
rra001a: noderes.installnic: eth0
|
|
|
|
rra001a: noderes.netboot: pxe
|
|
|
|
rra001a: noderes.servicenode: rra000
|
|
|
|
rra001a: noderes.node: rra001a
|
|
|
|
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=item 3.
|
2008-04-24 11:43:24 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
To list nodes in node group ppc, enter:
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
nodels ppc
|
2008-02-06 14:45:20 +00:00
|
|
|
|
|
|
|
Output is similar to:
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2008-02-06 14:45:20 +00:00
|
|
|
ppcnode1
|
|
|
|
ppcnode2
|
|
|
|
ppcnode3
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=item 4.
|
2008-02-29 18:50:38 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
To list the groups each node is part of:
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
nodels all groups
|
2008-02-29 18:50:38 +00:00
|
|
|
|
|
|
|
Output is similar to:
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2008-02-29 18:50:38 +00:00
|
|
|
node1: groups: all
|
|
|
|
node2: groups: all,storage
|
|
|
|
node3: groups: all,blade
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=item 5.
|
2008-03-05 16:49:19 +00:00
|
|
|
|
|
|
|
To list the groups each node is part of:
|
2008-02-29 18:50:38 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
nodels all nodehm.power
|
2008-02-29 18:50:38 +00:00
|
|
|
|
|
|
|
Output is similar to:
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2008-02-29 18:50:38 +00:00
|
|
|
node1: nodehm.power: blade
|
|
|
|
node2: nodehm.power: ipmi
|
|
|
|
node3: nodehm.power: ipmi
|
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
=item 6.
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
To list the out-of-band mgt method for blade1:
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
nodels blade1 nodehm.mgt
|
2008-02-29 18:50:38 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
Output is similar to:
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2008-09-08 02:11:55 +00:00
|
|
|
blade1: blade
|
|
|
|
|
|
|
|
=item 7.
|
|
|
|
|
|
|
|
Listing blades managed through an AMM named 'amm1'
|
|
|
|
|
|
|
|
nodels all mp.mpa==amm1
|
|
|
|
|
|
|
|
Output is similar to:
|
|
|
|
|
|
|
|
blade1
|
|
|
|
blade10
|
|
|
|
blade11
|
|
|
|
blade12
|
|
|
|
blade13
|
|
|
|
blade2
|
|
|
|
blade3
|
|
|
|
blade4
|
|
|
|
blade5
|
|
|
|
blade6
|
|
|
|
blade7
|
|
|
|
blade8
|
|
|
|
blade9
|
|
|
|
|
|
|
|
=item 8.
|
|
|
|
|
|
|
|
Listing the switch.switch value for nodes in the second rack:
|
|
|
|
|
|
|
|
nodels all nodepos.rack==2 switch.switch
|
|
|
|
|
|
|
|
Output is similar to:
|
2009-09-25 15:30:53 +00:00
|
|
|
|
2008-09-08 02:11:55 +00:00
|
|
|
n41: switch.switch: switch2
|
|
|
|
n42: switch.switch: switch2
|
|
|
|
n43: switch.switch: switch2
|
|
|
|
n44: switch.switch: switch2
|
|
|
|
n45: switch.switch: switch2
|
|
|
|
n46: switch.switch: switch2
|
|
|
|
n47: switch.switch: switch2
|
|
|
|
n55: switch.switch: switch2
|
|
|
|
n56: switch.switch: switch2
|
|
|
|
n57: switch.switch: switch2
|
|
|
|
n58: switch.switch: switch2
|
|
|
|
n59: switch.switch: switch2
|
|
|
|
n60: switch.switch: switch2
|
|
|
|
|
|
|
|
=item 9.
|
|
|
|
|
|
|
|
Listing the blade slot number for anything managed through a device with a name beginning with amm:
|
|
|
|
|
|
|
|
nodels all mp.mpa=~/^amm.*/ mp.id
|
|
|
|
|
|
|
|
Output looks like:
|
2009-09-25 15:30:53 +00:00
|
|
|
|
2008-09-08 02:11:55 +00:00
|
|
|
blade1: mp.id: 1
|
|
|
|
blade10: mp.id: 10
|
|
|
|
blade11: mp.id: 11
|
|
|
|
blade12: mp.id: 12
|
|
|
|
blade13: mp.id: 13
|
|
|
|
blade2: mp.id: 2
|
|
|
|
blade3: mp.id: 3
|
|
|
|
blade4: mp.id: 4
|
|
|
|
blade5: mp.id: 5
|
|
|
|
blade6: mp.id: 6
|
|
|
|
blade7: mp.id: 7
|
|
|
|
blade8: mp.id: 8
|
|
|
|
blade9: mp.id: 9
|
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
=back
|
2008-02-29 18:50:38 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
=head1 FILES
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
/opt/xcat/bin/nodels
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-03-05 16:49:19 +00:00
|
|
|
=head1 SEE ALSO
|
2008-02-06 14:45:20 +00:00
|
|
|
|
2008-08-02 16:18:07 +00:00
|
|
|
L<noderange(3)|noderange.3>, L<tabdump(8)|tabdump.8>, L<lsdef(1)|lsdef.1>
|
2008-02-08 21:53:41 +00:00
|
|
|
|