niminit Command

Purpose

Configures the Network Installation Management (NIM) client package.

Syntax

To configure the NIM client package, enter the following command:
niminit { -a name=Name -a pif_name=Pif -a master=Hostname } [ -a master_port=PortNumber ] [ -a registration_port=PortNumber ] [ -a cable_type=CableType | -a ring_speed=Speed ] [ -a iplrom_emu=Device ] [ -a platform=PlatformType ] [ -a netboot_kernel=NetbootKernelType ] [ -a adpt_add=AdapterAddress ] [ -a is_alternate= yes | no ] [ -a connect=value ] [ -a vlan_tag=value ] [ -a vlan_pri=value ] [ -c ]
To rebuild the /etc/niminfo file, enter the following command:
niminit { -a name=Name -a master=Hostname -a master_port=PortNumber }

Description

The niminit command configures the NIM client package before using the nimclient command. When the niminit command receives the required attributes, a new machine object is created to represent the machine that runs the niminit command. After successful completion of the niminit command, the machine, which runs the niminit command can participate in the NIM environment.

After the NIM client package is configured, you can run the niminit command to rebuild the /etc/niminfo file on the client. The /etc/niminfo file is used by the niminit command. The /etc/niminfo file must be rebuilt if the user deletes the file unintentionally.

The niminit command configures an alternate_master object when the is_alternate attribute is set to yes. The bos.sysmgt.nim.master fileset must be installed before an alternate_master object is configured. After the alternate_master object is configured, the primary system with which the alternate_master object is registered, can run the alternate_master object operations on this machine.

Flags

Item Attribute Description
-a Specifies maximum five attributes for the niminit command. The -a flag precedes the following attribute=value pairs:
name=Name
Specifies the name that NIM uses to identify the workstation. This value is required.
pif_name=Pif
Defines the name of the network interface for all NIM communications. This value is required.
master=Hostname
Specifies the hostname of the NIM master. The client must resolve this hostname to an Internet Protocol (IP) address. This value is required.
master_port=PortNumber
Specifies the port number of the nimesis daemon that is used for NIM communications.
cable_type=CableType
Specifies the ethernet cable type. When the pif_name attribute refers to an ethernet network, the CableType value must be specified. The valid values are bnc, dix, and N/A.
ring_speed=Speed
Specifies the speed in Mbps. When the pif_name attribute refers to a token ring network, the Speed value must be specified. The valid values are 4 and 16.
iplrom_emu=Device
Specifies a device that contains a read-only memory (ROM) emulation image. The ROM emulation image is required for models without internal support for booting through network interface.
platform=PlatformType
Specifies the platform that corresponds to the machine type of the client. If platform=attribute is not specified, the default chrp platform is used. The following platforms are the supported platforms:
chrp
PowerPC Common Hardware Reference Platform (CHRP) architecture-based machines.
rs6k
Micro Channel-based, uniprocessor models for AIX 5.1 and earlier.
rs6ksmp
Micro Channel-based, symmetric multiprocessor models for AIX 5.1 and earlier.
rspc
PowerPC PCI bus-based, uniprocessor machines for AIX 5.1 and earlier.
rspcsmp
PowerPC PCI bus-based, symmetric multiprocessor machines for AIX 5.1 and earlier.
adpt_add=AdapterAddress
Specifies the hardware address that corresponds to the network adapter.
 
registration_port=PortNumber
Specifies the port number that is used for the NIM client registration.
Notes:
  • If you do not specify the port numbers on the command line, the port numbers in the /etc/services file for NIM is used. If the /etc/services file does not contain entries for the NIM ports, nim and nimreg, the default values of 1058 for master_port attribute and 1059 for registration_port attribute are used.
  • The values that are used for the master_port attribute and the registration_port attribute must match the values that are used by the NIM master. To display the values used by the NIM master, run the command lsnim -l master on the NIM master.
netboot_kernel=NetbootKernelType
Specifies the type of kernel to be used while booting the client over the network. The following values are the netboot_kernel attribute values:
up
Kernel for uniprocessor machines. This value is the default value.
mp
Kernel for multiprocessor machines.
is_alternate= [ yes | no ]
Set the is_alternate=attribute to yes to configure as an alternate_master object.
connect=value
Specifies the communicating service that is used by the NIM client for remote execution of NIM commands. The options for the value are shell (for rsh) and nimsh. The default setting is connect=shell. The connect=value is optional. If the is_alternate=attribute is set to yes then nimsh is the default setting, and is the only valid value. The is_alternate attribute is optional.
vlan_tag=value
Specifies the virtual logical area network (VLAN) identifier that is used for VLAN tagging. The ID identifies the VLAN to which the Ethernet frame is part of. The ID allows the network administrator to organize the communication of the client logically rather than assigning the network to the subnet. The VLAN tagging value is used by NIM to perform a network boot of a client. The configuration of the VLAN tag communication must be handled outside of NIM before using the value. The value range for the vlan_tag option is 0-4094.
vlan_pri=value
Specifies the VLAN priority that is used for VLAN tagging. The priority value, along with the VLAN tag, is used to identify the VLAN of which the Ethernet frame is a part of. The priority allows the network administrator to organize the communication of the client logically rather than assigning the network to the subnet. The VLAN tagging value is used by NIM to perform a network boot of a client. The configuration of the VLAN tag communication must be handled outside of NIM before using the value. The value range for the vlan_pri option is 0-7.
-c Enables Secure Sockets Layer (SSL) authentication during the push operations of the NIM master.
Note: Configure Open Secure Sockets Layer (OpenSSL) certificates on the NIM master by using the nimconfig -c command.

Security

Access Control
You must have root authority to run the niminit command.
RBAC users
Attention RBAC users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations that are associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. To configure the NIM client package on a machine that has a BOOTP-enabled Initial Program Loader (IPL) ROM and must be known as scuba in the NIM environment, enter the following command:
    niminit -a name=scuba -a pif_name=en0 -a cable_type=bnc \
    -a master=manta

    Where en0 is the primary interface and the Ethernet cable type is bnc. This command also specifies that the machine communicates with the NIM master by using manta as the hostname of the NIM master and the NIM ports that are located in the /etc/services directory for network install communications.

  2. To rebuild the /etc/niminfo file that is deleted by using superman as the hostname of the NIM master and a port number 1058, enter the following command:
    niminit -a name=robin -a master=superman -a master_port=1058
  3. To configure the NIM client package for AIX 5.1 and earlier on a machine that is a PowerPC PCI bus-based, uniprocessor system that has a BOOTP-enabled IPL ROM and must be known as starfish in the NIM environment, enter the following command:
    niminit -a name=starfish -a pif_name=en0 -a cable_type=dix \
    -a master=whale -a master_port=1058 -a platform=rspc

    Where en0 is the primary interface and an Ethernet cable type is dix. This command also specifies that the NIM client package communicates with the NIM master by using whale as the host name of the NIM master and a port number of 1058.

  4. To configure the NIM client on a machine that must be known as bluefish in the NIM environment, enter the following command:
    niminit -a name=bluefish -a pif_name=at0 -a master=redfish \
    -a master_port=1058
    Where at0 is the primary interface. This command also specifies that the NIM client communicates with the NIM master by using redfish as the host name of the NIM master and a port number of 1058.
    Note: As the Asynchronous Transfer Mode (ATM) network interface does not support booting over the network, this operation defines a machine object on the NIM master if a generic network object corresponding to the subnet of the client is already defined.
  5. To configure the NIM client for AIX 5.1 and earlier on a machine that is a PowerPC PCI bus-based, symmetric multiprocessor system that has a BOOTP-enabled IPL ROM and must be known as jellyfish in the NIM environment, enter the following command:
    niminit -a name=jellyfish -a pif_name=en0 -a cable_type=dix \
    -a master=whale -a master_port=1058 -a platform=rspcsmp

    Where en0 is the primary interface and an Ethernet cable type is dix. This command also specifies that the NIM client communicates with the NIM master by using whale as the host name of the NIM master and a port number of 1058.

  6. To configure the NIM client package on a machine that uses an IPL ROM emulation in the device /dev/fd0 directory and must be known as octopus in the NIM environment, enter the following command:
    niminit -a iplrom_emu=/dev/fd0 -a name=octopus -a pif_name=tr0 \
    -a ring_speed=16 -a master=dolphin -a master_port=1700 \
    -a registration_port=1701

    Where tr0 is the primary interface and a ring speed is 16. This command also specifies that the machine communicates with the NIM master by using dolphin as the hostname of the NIM master and a port number of 1700 for client communications and 1701 for client registration.

  7. To configure the machine that is known as octopus in the NIM environment as an alternate_master object with the NIM master dolphin and communicate over the interface en0, enter the following command:
    niminit -a is_alternate=yes -a name=octopus -a pif_name=en0 \ 
    -a cable_type=bnc -a master=dolphin
  8. To copy an SSL certificate and to enable SSL authentication during client initialization, enter the following command:
    niminit -a name=octopus -a master=dolphin -a connect=nimsh -c -v
    Note: For NIM communication, SSL keys and certificates configuration during NIM master initialization is supported for AIX® 7.3 with Technology Level 2, and later.

Files

Item Description
/etc/niminfo Contains variables that are used by NIM.