2007-12-05 14:14:14 +00:00
|
|
|
=head1 NAME
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2007-12-05 14:14:14 +00:00
|
|
|
B<lsdef> - Use this command to list xCAT data object definitions.
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2007-12-05 14:14:14 +00:00
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
B<lsdef> [B<-h>|B<--help>] [B<-t> I<object-types>]
|
|
|
|
|
|
|
|
B<lsdef> [B<-V>|B<--verbose>] [B<-l>|B<--long>] [B<-a>|B<--all>] [B<-t> I<object-types>]
|
2008-06-13 11:53:42 +00:00
|
|
|
[B<-o> I<object-names>] [B<-z>|B<--stanza>] [B<-i> I<attr-list>]
|
2008-05-28 21:07:33 +00:00
|
|
|
[B<-w> I<attr>=I<val>,[I<attr>=I<val...>] [I<noderange>]
|
2007-12-05 14:14:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
This command is used to display xCAT object definitions which are stored
|
2007-12-05 14:14:14 +00:00
|
|
|
in the xCAT database.
|
|
|
|
|
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=over 10
|
|
|
|
|
|
|
|
=item B<-a|--all>
|
|
|
|
|
|
|
|
Display all definitions.
|
|
|
|
|
|
|
|
=item B<-h|--help>
|
|
|
|
|
|
|
|
Display usage message.
|
|
|
|
|
|
|
|
=item B<-i> I<attr-list>
|
|
|
|
|
|
|
|
Comma separated list of attribute names to display.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item B<-l|--long>
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
List the complete object definition. (The default for some options is to give only a list of object names.)
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item I<noderange>
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
A set of comma delimited node names and/or group names.
|
2007-12-05 14:14:14 +00:00
|
|
|
See the "noderange" man page for details on supported formats.
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item B<-o> I<object-names>
|
|
|
|
|
|
|
|
A set of comma delimited object names.
|
|
|
|
|
|
|
|
=item B<-t> I<object-types>
|
|
|
|
|
|
|
|
A set of comma delimited object types. Use the help option to get a list of valid objects.
|
|
|
|
|
|
|
|
=item B<-V|--verbose>
|
|
|
|
|
|
|
|
Verbose mode.
|
|
|
|
|
|
|
|
=item B<-w> I<attr=val,[attr=val...]>
|
|
|
|
|
|
|
|
A comma-separated list of attributes and values that can be used to select items to display. Use the help option to get a list of valid attributes.
|
|
|
|
|
|
|
|
=item B<-z|--stanza>
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-06-13 11:53:42 +00:00
|
|
|
Display output in stanza format. See the xcatstanzafile man page for details on using xCAT stanza files.
|
2008-05-28 21:07:33 +00:00
|
|
|
|
|
|
|
=back
|
2007-12-05 14:14:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
=head1 RETURN VALUE
|
|
|
|
|
|
|
|
0 The command completed successfully.
|
|
|
|
|
|
|
|
1 An error has occurred.
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2007-12-05 14:14:14 +00:00
|
|
|
=head1 EXAMPLES
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item 1.
|
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
To display a description of all the valid attributes that could be used
|
|
|
|
when defining an xCAT node.
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
lsdef -t node -h
|
2008-05-28 21:07:33 +00:00
|
|
|
|
|
|
|
=item 2.
|
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
To get a list of all the objects that have been defined.
|
|
|
|
|
|
|
|
lsdef -a
|
|
|
|
|
|
|
|
=item 3.
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
To get a list of all the network definitions.
|
|
|
|
|
|
|
|
lsdef -t network
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
=item 4.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
To get a complete listing of all network definitions.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
lsdef -l -t network
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
=item 5.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
To list the whole xCAT database and write it to a stanza file. (backup database)
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
lsdef -a -l -z > mydbstanzafile
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
=item 6.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
To list the MAC and install adapter name for each node.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
lsdef -t node -i mac,installnic
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
=item 7.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
To list an osimage definition named "aix53J".
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
lsdef -t osimage -l -o aix53J
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
=item 8.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-11-18 20:03:09 +00:00
|
|
|
To list all node definitions that have a status value of "booting".
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-11-18 20:03:09 +00:00
|
|
|
lsdef -t node -w status=booting
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
=item 9.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
To list all the attributes of the group "service".
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
lsdef -l -t group -o service
|
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
=item 10.
|
2008-05-28 21:07:33 +00:00
|
|
|
|
|
|
|
To list all the attributes of the nodes that are members of the group "service".
|
|
|
|
|
|
|
|
lsdef -t node -l service
|
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
=item 11.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
To get a listing of object definitions that includes information about
|
|
|
|
what xCAT database tables are used to store the data.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
lsdef -V -l -t node -o node01
|
|
|
|
|
|
|
|
=back
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2008-02-05 12:44:56 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
=head1 FILES
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2009-03-27 12:53:46 +00:00
|
|
|
/opt/xcat/bin/lsdef
|
2007-12-05 14:14:14 +00:00
|
|
|
|
|
|
|
=head1 NOTES
|
|
|
|
|
|
|
|
This command is part of the xCAT software product.
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2008-11-18 20:03:09 +00:00
|
|
|
L<mkdef(1)|mkdef.1>, L<chdef(1)|chdef.1>, L<rmdef(1)|rmdef.1>, L<xcatstanzafile(5)|xcatstanzafile.5>
|