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