Wednesday, January 12, 2011

Trace on VIO commands.

VIO command shell is a restricted shell(like HMC shell). If anybody wondering what AIX commands will be executed beneath VIO commands?
Here is the answer
example:
$ export CLI_DEBUG=33

$ lsmap -all

AIX: "lsdev -c adapter -t IBM,v-scsi-host -s vdevice -F "name" | wc -l -c"
AIX: "lsdev -c adapter -t IBM,v-scsi-host -s vdevice -F "name""
AIX: "lsdev -C -l vhost0 -F "physloc""
AIX: "lsdev -p vhost0 -F "name" | wc -l -c"
AIX: "lsdev -p vhost0 -F "name""
AIX: "lsattr -E -l vtscsi0 -F "value" -a aix_tdev,LogicalUnitAddr"
SVSA Physloc Client


-
$ export CLI_DEBUG=33
$ mirrorios -f hdisk1
AIX: "lsvg -p rootvg"
AIX: "lsvg -p rootvg | awk '{print $1}' | wc -l -c"
AIX: "lsvg -p rootvg | awk '{print $1}'"
AIX: "lsvg -l rootvg "
AIX: "lsvg -l rootvg | grep boot | awk '{print $1}'"
AIX: "lsvg -M rootvg "
AIX: "lsvg -M rootvg | grep hd5 | awk '{print $2}' | awk '{FS=":"}{print $3}'"
AIX: "mirrorvg -c 2 rootvg hdisk1 "

No comments:

Post a Comment