HOWTO: Install a NIM server PDF Print E-mail
User Rating: / 29
Written by Michael Felt   

Define Machines and Perform NIM Installations

Define Machines

You will probably want to use nim to define machines, but it is worth the time spent to learn how to define systems via a script. With the IP address already in /etc/hosts and sice we have no fear of a firewall blocking an bootp request in the virtual ethernet what we need is a command to lookup the MAC address of the partition we want to install.

HMC command to get a MAC addresses

mamfelt@hmc123:~> lshwres -m SysName -r virtualio --level lpar --rsubtype eth -F "lpar_name,lpar_id,slot_num,mac_addr" --filter "\"lpar_names=c31,c32,c33\""

Define a nim client with a MAC address - manually

# nim -o define -t standalone -a if1="n392 c32 E630F20C8C0B" c32
# lsnim -l c32
   class          = machines
   type           = standalone
   connect        = shell
   platform       = chrp
   netboot_kernel = 64
   if1            = n392 c32 E630F20C8C0B
   cable_type1    = N/A
   Cstate         = ready for a NIM operation
   prev_state     = ready for a NIM operation
   Mstate         = not running

Define nim clients using HMC output - more automated

For example, when all systems have the primary ethernet interface on virtual slot 11 (i.e. en0) you could create the nim machine definitions using:

ssh hscuser@hmc123 'lshwres -m SysName -r virtualio --level lpar --rsubtype eth -F "lpar_name,mac_addr" --filter "slots=11,lpar_names=\"c31,c32,c33\""' | \
awk -F, ' { print "n392", $1, $2 } ' | \
(while read a b c; do \
echo nim -o define -t standalone -a if1=\"$a $b $c\" $b; \
nim -o define -t standalone -a if1="$a $b $c" $b; \

Prepare resources for installation

# nim -o bos_inst -a lpp_source=lpp_6106 -a spot=spot_6106 \
  -a mksysb=mksb_6106_generic -a bosinst_data=bosinst_hd0 \
  -a installp_bundle=openssh_server -a accept_licenses=yes \
  -a source=mksysb -a no_client_boot=yes -a preserve_res=yes c32

Flash! And as last step use the HMC to activate the partition and wait for the install to complete! FLASH!


< Prev   Next >