2011/02/17

More vMA fun

Show the states of a path for every lun

for disk in $(esxcfg-scsidevs -m | sed 's/^\([^:]*\).*/\1/g'); do echo "Device $disk";esxcfg-mpath -l -d $disk | grep -e "State:" -e "Target Transport Details:"; done;

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.