2007-12-05 18:53:07 +00:00
=head1 NAME
2008-08-02 16:18:07 +00:00
2007-12-12 19:29:13 +00:00
B<xcat2nim> - Use this command to create and manage AIX NIM definitions based on xCAT object definitions.
2008-08-02 16:18:07 +00:00
2007-12-05 18:53:07 +00:00
=head1 SYNOPSIS
2008-08-02 16:18:07 +00:00
2008-06-25 15:05:30 +00:00
I<xcat2nim [-h|--help ]>
2007-12-05 18:53:07 +00:00
2008-06-25 15:05:30 +00:00
I<xcat2nim [-V|--verbose] [-a|--all] [-l|--list] [-u|--update] [-f|--force] [-r|--remove] [-t object-types] [-o object-names] [noderange] [attr=val [attr=val...]] >
2007-12-05 18:53:07 +00:00
=head1 DESCRIPTION
2007-12-12 19:29:13 +00:00
The xcat2nim command uses xCAT node and group object definitions to create, update, list, or remove corresponding NIM machine and group definitions.
2007-12-05 18:53:07 +00:00
2008-08-02 16:18:07 +00:00
The xCAT definitions must be created and the NIM master must be installed and configured before running this command.
2007-12-05 18:53:07 +00:00
2007-12-12 19:29:13 +00:00
xcat2nim uses xCAT database information, command line input, and default values to run the appropriate NIM commands.
2007-12-05 18:53:07 +00:00
2007-12-12 19:29:13 +00:00
The default behavior is to create new NIM definitions but not apply updates to existing definitions. If you use wish to update existing NIM definitions then you must use the update option.
2007-12-05 18:53:07 +00:00
=head1 OPTIONS
2008-06-25 15:05:30 +00:00
B<-a|--all> Create NIM definitions corresponding to all xCAT node and group definitions.
2007-12-05 18:53:07 +00:00
B<attr=val [attr=val ...]> Specifies one or more "attribute equals value" pairs, separated by spaces. Attr=val pairs must be specified last on the command line. The attribute names must correspond to the attributes supported by the relevant NIM commands. When providing attr=val pairs on the command line you must not specify more than one object type.
2008-06-25 15:05:30 +00:00
B<-f|--force> The force option will remove the existing NIM definition and create a new one.
2007-12-05 18:53:07 +00:00
2008-06-25 15:05:30 +00:00
B<-h|--help> Display the usage message.
B<-l|--list> List NIM definitions corresponding to xCAT definitions.
2007-12-05 18:53:07 +00:00
2007-12-12 19:29:13 +00:00
B<noderange> A set of comma delimited node names and/or group names, (must be the first parameter). See the "noderange" man page for details on supported formats.
2007-12-05 18:53:07 +00:00
2008-08-02 16:18:07 +00:00
B<-o object-names> A set of comma delimited xCAT object names.
2007-12-05 18:53:07 +00:00
B<-t object-types> A set of comma delimited xCAT object types. Supported types include: node and group.
2009-08-20 06:16:08 +00:00
Note: If the object type is "group", it means that the xcat2nim command will operate on a NIM machine group definition corresponding to the xCAT node group definition. Before creating a NIM machine group, all the NIM client nodes definition must have been created.
2008-06-25 15:05:30 +00:00
B<-r|--remove> Remove NIM definitions corresponding to xCAT definitions.
2007-12-12 19:29:13 +00:00
2008-08-02 16:18:07 +00:00
B<-u|--update> Update existing NIM definitions based on xCAT definitions.
2007-12-05 18:53:07 +00:00
2008-06-25 15:05:30 +00:00
B<-V|--verbose> Verbose mode.
2007-12-05 18:53:07 +00:00
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
=head1 EXAMPLES
1. Convert all xCAT node and group definitions to NIM machine and group definitions.
I<xcat2nim -a>
2. To create NIM machine definitions for all xCAT node definitions.
2008-08-02 16:18:07 +00:00
I<xcat2nim -t node>
2007-12-05 18:53:07 +00:00
3. To create a NIM machine definition corresponding to the xCAT clstrn01 node definition.
2007-12-12 19:29:13 +00:00
I<xcat2nim -t node -o clstrn01>
2007-12-05 18:53:07 +00:00
4. To create a NIM machine group definition corresponding to the xCAT aix61nodes group definition.
2007-12-12 19:29:13 +00:00
I<xcat2nim -t group -o aix61nodes>
2007-12-05 18:53:07 +00:00
5. Convert all node definitions in the xCAT group AIXNodes to NIM machine definitions.
2007-12-12 19:29:13 +00:00
I<xcat2nim -t node -o AIXNodes>
4. To create NIM machine definitions for each node that is a member of the xCAT "lpar_grp" group and specify attribute values that will be applied to each definition.
I<xcat2nim -t node -o lpar_grp machinetype=standalone netboot_kernel=mp cable_type="N/A">
5. To update the NIM definition of node clstrn01 to have a "cable_type" of "bnc".
2008-06-25 15:05:30 +00:00
I<xcat2nim -u -t node -o clstrn01 cable_type=bnc>
2007-12-12 19:29:13 +00:00
6. To list the NIM definition for node clstrn02.
I<xcat2nim -t node -l -o clstrn02>
2008-06-25 15:05:30 +00:00
7. To re-create a NIM machine definiton and display verbose output.
I<xcat2nim -V -t node -f clstrn05>
8. To remove the NIM definition for the group "AIXnodes".
2007-12-05 18:53:07 +00:00
2007-12-12 19:29:13 +00:00
I<xcat2nim -t group -r -o AIXnodes>
2007-12-05 18:53:07 +00:00
=head1 FILES
2008-08-02 16:18:07 +00:00
2008-02-05 13:13:45 +00:00
$XCATROOT/bin/xcat2nim
2007-12-05 18:53:07 +00:00
=head1 NOTES
This command is part of the xCAT software product.
=head1 SEE ALSO
2008-08-02 16:18:07 +00:00
L<mkdef(1)|mkdef.1>