This command is used to create xCAT object definitions which are stored in the xCAT database. If the definition already exists it will return an error message. The force option may be used to re-create a definition. In this case the old definition will be remove and the new definition will be created.
.SH"OPTIONS"
.IXHeader"OPTIONS"
\&\fBattr=val [attr=val ...]\fR Specifies one or more \*(L"attribute equals value\*(R" pairs, separated by spaces. Attr=val pairs must be specified last on the command line. Use the help option to get a list of valid attributes for each object type.
.PP
\&\fB\-f |\-\-force\fR Use the force option to re-create object definitions. This option removes the old definition before creating the new one.
.PP
\&\fB\-h |\-\-help\fR Display usage message.
.PP
\&\fBnoderange\fR A set of comma delimited node names and/or group names. (must be the first parameter) 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 object types.
.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 objects. Use the help option to get a list of validattributes for each object type.
.PP
\&\fB\-x | \-\-xml\fR Indicates that the file being piped to the command is in \s-1XML\s0 format.
.PP
\&\fB\-z | \-\-stanza\fR Indicates that the file being piped to the command is 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 create a site definition.
.PP
\&\fImkdef \-t site \-o clustersite rsh=/bin/rsh rcp=/bin/rcp installdir=/xcatinstall\fR