jeudi 21 octobre 2010

Save current profiles via command line on the HMC

to save and make it the default profile :

for i in $(lssyscfg -r lpar -m P570 -F name);
 do
    echo $i
    mksyscfg -r prof -m P570 -o save -p $i  -n ${i}_A_JOUR_AU_211010  
    chsyscfg -r lpar -m P570 -i "name=$i,default_profile=${i}_A_JOUR_AU_211010"
 done


to validate :

lssyscfg -r lpar  -m P570 -F name,default_profile

mercredi 20 octobre 2010

Vio commands : list VTD/vsa on same line :

lsmap -all -field vtd backing -fmt :

vhost4:hdisk55:hdisk11
vhost5:hdisk53:hdisk54:hdisk12
vhost6:hdisk58:hdisk59:hdisk60:hdisk61:hdisk62:hdisk63:hdisk64:hdisk65:hdisk66:hdisk13

lsmap -all -field vtd svsa -fmt :

vhost0:dapart1d1:dapart1d2:dapart1r1
vhost1:dapart2d1:dapart2r1
vhost2:dapart3d1:dapart3d2:dapart3d3:dapart3r1

For virtual SCSI (default), the following fields are supported:
svsa
Server virtual adapter.
physloc
The physical location code of the server virtual adapter.
clientid
Client partition ID.
vtd
Virtual target device.
lun
Logical unit number.
backing
Backing device.
bdphysloc
The physical location code of the backing device.
status
Virtual target device status


useful for shells

MERCI  CHRISTOPHE !