This command is used to display xCAT object definitions which are stored
in the xCAT database.
.SH"OPTIONS"
.IXHeader"OPTIONS"
\&\fB\-a | \-\-all\fR Display all definitions.
.PP
\&\fB\-h|\-\-help\fR Display usage message.
.PP
\&\fB\-i attr-list\fR Comma separated list of attribute names to display.
.PP
\&\fB\-l | \-\-long\fR List the complete object definition. (The default for some options is to give only a list of object names.)
.PP
\&\fBnoderange\fR A set of comma delimited node names and/or group names.
See the \*(L"noderange\*(R" man page for details on supported formats.
.PP
\&\fB\-o object-names\fR A set of comma delimited object names.
.PP
\&\fB\-t object-types\fR A set of comma delimited object types. Use the help option to get a list of valid objects.
.PP
\&\fB\-V|\-\-verbose\fR Verbose mode.
.PP
\&\fB\-w attr=val,[attr=val...]\fR 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.
.PP
\&\fB\-x | \-\-xml\fR Display output in \s-1XML\s0 format.
.PP
\&\fB\-z | \-\-stanza\fR Display output in stanza format.
.SH"RETURN VALUE"
.IXHeader"RETURN VALUE"
0 The command completed successfully.
.PP
1 An error has occurred.
.SH"EXAMPLES"
.IXHeader"EXAMPLES"
1. To get a list of all object names.
.PP
\&\fIlsdef \-a\fR
.PP
2. To get a list of all the network definitions.
.PP
\&\fIlsdef \-t network\fR
.PP
3. To get a complete listing of all network definitions.
.PP
\&\fIlsdef \-l \-t network \fR
.PP
4. To list the whole xCAT database and write it to a stanza file. (backup database)
.PP
\&\fIlsdef \-a \-l \-z > mydbstanzafile\fR
.PP
5. To list the \s-1MAC\s0 and install adapter name for each node.
.PP
\&\fIlsdef \-t node \-i mac,installnic\fR
.PP
6. To list an osimage definition named \*(L"aix53J\*(R".
.PP
\&\fIlsdef \-t osimage \-l \-o aix53J\fR
.PP
7. To list all adapter definitions for node \*(L"clstrn03\*(R".
.PP
\&\fIlsdef \-t adapter \-w nodename=clstrn03\fR
.PP
8. To list all the attributes of the group \*(L"servicenodes\*(R".
.PP
\&\fIlsdef \-l \-t group \-o servicenodes\fR
.PP
9. To list all the attributes of the nodes that are members of the group \*(L"servicenodes\*(R".
.PP
\&\fIlsdef \-t node \-l servicenodes\fR
.PP
10. To list all nodes that have a service node called \*(L"\s-1FMS01\s0\*(R".