B<lsdef> - Use this command to list xCAT data object definitions.
=head1 SYNOPSIS
lsdef [-h | --help ] [-t object-types]
lsdef [-V | --verbose] [ -l | --long] [-a | --all] [-t object-types] [-o object-names] [-z | --stanza] [-x | --xml] [-i attr-list] [-w attr=val,[attr=val...] [noderange]
This command is used to display xCAT object definitions which are stored in the xCAT database.
-a | --all Display all definitions.
-h|--help Display usage message.
-i attr-list Comma separated list of attribute names to display.
-l | --long List the complete object definition. (The default for some options is to give only a list of object names.)
noderange A set of comma delimited node names and/or group names. See the ``noderange'' man page for details on supported formats.
-o object-names A set of comma delimited object names.
-t object-types A set of comma delimited object types. Use the help option to get a list of valid objects.
-V|--verbose Verbose mode.
-w 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.
-x | --xml Display output in XML format.
-z | --stanza Display output in stanza format.
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
1. To get a list of all object names.
lsdef -a
2. To get a list of all the network definitions.
lsdef -t network
3. To get a complete listing of all network definitions.
lsdef -l -t network
4. To list the whole xCAT database and write it to a stanza file. (backup database)
lsdef -a -l -z mydbstanzafile >>
5. To list the MAC and install adapter name for each node.
lsdef -t node -i mac,installnic
6. To list an osimage definition named ``aix53J''.
lsdef -t osimage -l -o aix53J
7. To list all adapter definitions for node ``clstrn03''.
lsdef -t adapter -w nodename=clstrn03
8. To list all the attributes of the group ``service''.
lsdef -l -t group -o service
9. To list all the attributes of the nodes that are members of the group ``service''.
lsdef -t node -l service
10. To list all nodes that have a service node called ``FMS01''.
lsdef -t node -w nfsserver=FMS01
$XCATROOT/bin/lsdef
(The XCATROOT environment variable is set when xCAT is installed. The default value is ``/opt/xcat''.)
This command is part of the xCAT software product.
See the mkdef, chdef and rmdef commands.