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.
|
|
|
|
|
|
|
|
To get a list of all object names.
|
|
|
|
|
|
|
|
lsdef -a
|
|
|
|
|
|
|
|
=item 2.
|
|
|
|
|
|
|
|
To get a list of all the network definitions.
|
|
|
|
|
|
|
|
lsdef -t network
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item 3.
|
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
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item 4.
|
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
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item 5.
|
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
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item 6.
|
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
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item 7.
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
To list all adapter definitions for node "clstrn03".
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
lsdef -t adapter -w nodename=clstrn03
|
2007-12-05 14:14:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item 8.
|
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
|
|
|
|
|
|
|
|
=item 9.
|
|
|
|
|
|
|
|
To list all the attributes of the nodes that are members of the group "service".
|
|
|
|
|
|
|
|
lsdef -t node -l service
|
|
|
|
|
|
|
|
=item 10.
|
|
|
|
|
|
|
|
To list all nodes that have a service node called "FMS01".
|
|
|
|
|
|
|
|
lsdef -t node -w nfsserver=FMS01
|
|
|
|
|
|
|
|
=back
|
2007-12-05 14:14:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
=head1 FILES
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2008-02-05 12:44:56 +00:00
|
|
|
$XCATROOT/bin/lsdef
|
|
|
|
|
|
|
|
(The XCATROOT environment variable is set when xCAT is installed. The
|
|
|
|
default value is "/opt/xcat".)
|
2007-12-05 14:14:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
=head1 NOTES
|
|
|
|
|
|
|
|
This command is part of the xCAT software product.
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
See the mkdef(1), chdef(1), rmdef(1), and xcatstanzafile(5) commands.
|