lunedì 6 maggio 2013

Preparing nim objects for managing vios


I have to update nearly 36 vio servers that now are at different levels
between 1.5.25 and 2.2.0 , so i started to think to manage these objects
through the nim environment.
Unfornately to make this scenario possible i have to manually update
to 2.1.3.0  using the migration dvd, only at this point the vio servers
can be managed .

On the  nim master , we must generate the password file to authenticate
against every hmc.
In thie example i'll use hmc5 and hmc6 .


dpasswd -f /etc/ibm/sysmgt/dsm/hmc5 -U hscroot -P XXXXXXXPassword file is /etc/ibm/sysmgt/dsm/hmc5Password file created.


dpasswd -f /etc/ibm/sysmgt/dsm/hmc6 -U hscroot -P XXXXXXXPassword file is /etc/ibm/sysmgt/dsm/hmc6Password file created.




Let's define the control objects for hmc: 



nim -o define -t hmc -a passwd_file=/etc/ibm/sysmgt/dsm/hmc5 -a if1="find_net hmc5 0" -a net_definition="ent 255.255.255.0 10.15.61.1 10.15.53.1" hmc5

nim -o define -t hmc -a passwd_file=/etc/ibm/sysmgt/dsm/hmc6 -a if1="find_net hmc6 0" -a net_definition="ent 255.255.255.0 10.15.61.1 10.15.53.1" hmc6



and the control objects for  cec :



nim -o define -t cec -a hw_serial=XXXXXXX -a hw_type=9117 -a hw_model=570 -a mgmt_source=hmc5  P5-570-03

nim -o define -t cec -a hw_serial=XXXXXXX -a hw_type=9117 -a hw_model=570 -a mgmt_source=hmc5  P5-570-04



Now we must define the control objects for the vio servers:


nim -o define -t vios -a if1="find_net vios31-int 0" -a cable_type1="N/A" -a mgmt_source=Sala1-P5-570-03-SN653EB7A -a identity=1 -a net_definition="ent 255.255.255.0 10.15.55.1 10.15.53.125" vios31-int

nim -o define -t vios -a if1="find_net vios32-int 0" -a cable_type1="N/A" -a mgmt_source=Sala1-P5-570-03-SN653EB7A -a identity=2 -a net_definition="ent 255.255.255.0 10.15.55.1 10.15.53.125" vios32-int

nim -o define -t vios -a if1="find_net vios41-int 0" -a cable_type1="N/A" -a mgmt_source=Sala2-P5-570-04-SN65471DC -a identity=1 -a net_definition="ent 255.255.255.0 10.15.61.1 10.15.53.125" vios41-int

nim -o define -t vios -a if1="find_net vios42-int 0" -a cable_type1="N/A" -a mgmt_source=Sala2-P5-570-04-SN65471DC -a identity=2 -a net_definition="ent 255.255.255.0 10.15.61.1 10.15.53.125" vios42-int




Now these objects are manageable through nim commands, for example:




nim -o updateios -a lpp_source=lpp_vio_2222_FP26_SP01  -a accept_licenses=yes -a preview=no vios41-int



Nessun commento: