Creating additional interface attributes from the command line

Use this procedure for creating additional interface attributes from the command line.

To create an additional if attribute for the master object, enter:

For Token-Ring:
nim -o change -a ifseq_no='NetworkObjectName AdapterHostName \
AdapterHardwareAddress' -a ring_speedseq_no=Speed master
For Ethernet:
nim -o change -a ifseq_no='NetworkObjectName AdapterHostName \
AdapterHardwareAddress' -a cable_typeseq_no=Type master
For FDDI:
nim -o change -a ifseq_no='NetworkObjectName AdapterHostName \
AdapterHardwareAddress' master
For other networks:
nim -o change -a ifseq_no='NetworkObjectName AdapterHostName \
AdapterHardwareAddress' master
Note: If you do not know the name of the NIM network to which the interface is attached or if a network corresponding to the interface has not been defined, use the find_net keyword and net_definition attribute as described in Defining NIM clients.
In the example, the following command is run:
nim -o change -a if2='Network2 srv1_ent 0' -a \
cable_type2=bnc master

With this syntax, another if attribute is created for the master, which tells NIM that the master has an Ethernet interface that uses a host name of srv1_ent, that the Ethernet adapter's hardware address is 0 (not used), and that the master connects to the Network2 network object.

To display detailed information about the master which will now show the if2 attribute, enter:
lsnim -l master
The command produces output similar to the following:
master:
  class             =  machines
  type              =  master
  Cstate            =  ready for a NIM operation
  reserved          =  yes
  platform          =  rs6k
  serves            =  boot
  serves            =  nim_script
  comments          =  machine which controls the NIM environment
  Mstate            =  currently running
  prev_state        =  ready for a NIM operation
  if1               =  Network1 server1 10005AA88399
  master_port       =  1058
  registration_port =  1059
  ring_speed1       =  16
  if2               =  Network2 Srv1_ent 02608c2e222c
  cable_type2       =  bnc