Tuesday, April 1, 2008

Aix How to check if disk is bootable(mirror environment)

see last line
#ipl_varyon -i
PVNAME BOOT DEVICE PVID VOLUME GROUP ID
hdisk0 YES 0002f67fafcf9d4d0000000000000000 0002f67f00004c00
hdisk1 NO 0002f67f0a7b63c30000000000000000 0002f67f00004c00
hdisk2 NO 0002f67ff0849cc60000000000000000 0002f67f00004c00
hdisk3 NO 0002f67f0a7338570000000000000000 0002f67f00004c00
hdisk4 NO 0002f67f0a5c6f180000000000000000 0002f67f00004c00
#

No comments:

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...