Additions for network support.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5063 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f176347fbe
commit
3fb7450e55
@ -1,26 +1,44 @@
|
||||
=head1 NAME
|
||||
|
||||
B<xcat2nim> - Use this command to create and manage AIX NIM definitions based on xCAT object definitions.
|
||||
B<xcat2nim> - Use this command to create and manage AIX NIM definitions based on xCAT node, group and network object definitions.
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
I<xcat2nim [-h|--help ]>
|
||||
|
||||
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...]] >
|
||||
I<xcat2nim [-V|--verbose] [-u|--update] [-l|--list] [-r|--remove] [-f|--force] [-t object-types] [-o object-names] [-a|--allobjects] [noderange] [attr=val [attr=val...]] >
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
The xcat2nim command uses xCAT node and group object definitions to create, update, list, or remove corresponding NIM machine and group definitions.
|
||||
The B<xcat2nim> command uses xCAT node, group and network object definitions to create, update, list, or remove corresponding NIM definitions.
|
||||
|
||||
The xCAT definitions must be created and the NIM master must be installed and configured before running this command.
|
||||
Before you create or update NIM definitions the xCAT definitions must be created and NIM must be configured.
|
||||
|
||||
xcat2nim uses xCAT database information, command line input, and default values to run the appropriate NIM commands.
|
||||
The B<xcat2nim> command uses xCAT database information, command line input, and default values to run the appropriate NIM commands.
|
||||
|
||||
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.
|
||||
The xCAT node, group and network definition names will correspond to the NIM machine, machine group and network definitions.
|
||||
|
||||
To create or update a NIM definition you must provide the names of the xCAT definitions to use. The default behavior is to create new NIM definitions but not apply updates to existing definitions. If you wish to update existing NIM definitions then you must use the "update" option. If you wish to completely remove the old definition and re-create it you must use the "force" option.
|
||||
|
||||
The xCAT code uses the appropriate NIM commands to create the NIM definitions. To create definitions the "nim -o define" operation is used. To update definitions the "nim -o change" operation is used. If you wish to specify additional information to pass to the NIM commands you can use the "attr=val" support. The attribute names must correspond to the attributes supported by the relevant NIM commands. (For example. "netboot_kernel=mp")
|
||||
|
||||
If the object type you are creating is a node then the object names can be a noderange value.
|
||||
|
||||
If you are using xCAT service nodes the B<xcat2nim> command will automatically determine the correct server for the node and create the NIM definitions on that server.
|
||||
|
||||
The B<xcat2nim> command support for NIM networks is limited to creating and listing.
|
||||
|
||||
When creating network definitions the command will check to make sure the network definition (or it's equivalent) does not exist and then create the required NIM network, route and interface definitions. In some cases the equivalent network definition may exist using a different name. In this case a new definition WILL NOT be created.
|
||||
|
||||
To list the NIM definitions that were created you must specify the "list" option and the names of the xCAT objects that were used to create the NIM definitions. The B<xcat2nim> command will list the corresponding NIM machine, machine group or network definitions using the "lsnim -l" command.
|
||||
|
||||
To remove NIM definitions you must specify the "remove" option and the names of the xCAT objects that were used to create the NIM definitions.
|
||||
|
||||
The remove("-r"), force("-f") and update("-u") options are not supported for NIM network definitions.
|
||||
|
||||
=head1 OPTIONS
|
||||
|
||||
B<-a|--all> Create NIM definitions corresponding to all xCAT node and group definitions.
|
||||
B<-a|--all> The list of objects will include all xCAT node, group and network objects.
|
||||
|
||||
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.
|
||||
|
||||
@ -30,19 +48,17 @@ B<-h|--help> Display the usage message.
|
||||
|
||||
B<-l|--list> List NIM definitions corresponding to xCAT definitions.
|
||||
|
||||
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.
|
||||
|
||||
B<-o object-names> A set of comma delimited xCAT object names.
|
||||
|
||||
B<-t object-types> A set of comma delimited xCAT object types. Supported types include: node and group.
|
||||
|
||||
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.
|
||||
B<-o object-names> A set of comma delimited xCAT object names. Objects must be of type node, group, or network.
|
||||
|
||||
B<-r|--remove> Remove NIM definitions corresponding to xCAT definitions.
|
||||
|
||||
B<-u|--update> Update existing NIM definitions based on xCAT definitions.
|
||||
B<-t object-types> A set of comma delimited xCAT object types. Supported types include: node, group, and network.
|
||||
|
||||
B<-V|--verbose> Verbose mode.
|
||||
Note: If the object type is "group", it means that the B<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.
|
||||
|
||||
B<-u|--update> Update existing NIM definitions based on xCAT definitions.
|
||||
|
||||
B<-V|--verbose> Verbose mode.
|
||||
|
||||
=head1 RETURN VALUE
|
||||
|
||||
@ -52,37 +68,29 @@ B<-V|--verbose> Verbose mode.
|
||||
|
||||
=head1 EXAMPLES
|
||||
|
||||
1. Convert all xCAT node and group definitions to NIM machine and group definitions.
|
||||
1. To create a NIM machine definition corresponding to the xCAT node "clstrn01".
|
||||
|
||||
I<xcat2nim -a>
|
||||
I<xcat2nim -t node -o clstrn01>
|
||||
|
||||
2. To create NIM machine definitions for all xCAT node definitions.
|
||||
|
||||
I<xcat2nim -t node>
|
||||
|
||||
3. To create a NIM machine definition corresponding to the xCAT clstrn01 node definition.
|
||||
3. Update all the NIM machine definitions for the nodes contained in the xCAT "compute" node group and specify attribute values that will be applied to each definition.
|
||||
|
||||
I<xcat2nim -t node -o clstrn01>
|
||||
I<xcat2nim -u -t node -o compute netboot_kernel=mp cable_type="N/A">
|
||||
|
||||
4. To create a NIM machine group definition corresponding to the xCAT aix61nodes group definition.
|
||||
4. To create a NIM machine group definition corresponding to the xCAT group "compute".
|
||||
|
||||
I<xcat2nim -t group -o aix61nodes>
|
||||
I<xcat2nim -t group -o compute>
|
||||
|
||||
5. Convert all node definitions in the xCAT group AIXNodes to NIM machine definitions.
|
||||
5. To create NIM network definitions corresponding to the xCAT "clstr_net" an "publc_net" network definitions. Also display verbose output.
|
||||
|
||||
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".
|
||||
|
||||
I<xcat2nim -u -t node -o clstrn01 cable_type=bnc>
|
||||
I<xcat2nim -V -t network -o "clstr_net,publc_net">
|
||||
|
||||
6. To list the NIM definition for node clstrn02.
|
||||
|
||||
I<xcat2nim -t node -l -o clstrn02>
|
||||
I<xcat2nim -l -t node clstrn02>
|
||||
|
||||
7. To re-create a NIM machine definiton and display verbose output.
|
||||
|
||||
@ -92,6 +100,9 @@ I<xcat2nim -V -t node -f clstrn05>
|
||||
|
||||
I<xcat2nim -t group -r -o AIXnodes>
|
||||
|
||||
9. To list the NIM "clstr_net" definition.
|
||||
|
||||
I<xcat2nim -l -t network -o clstr_net>
|
||||
|
||||
=head1 FILES
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user