Tuesday, January 17, 2012

Listing LUNs and their vml identifiers

esxcfg-scsidevs -l |  awk '/Display Name/ {print $0} /Display Name/{x=NR+9 }NR == x' | sed -e '{
N
s/\n/  /
}'
Output Will be,

Display Name: NET_DATA_STORE       vml.020004000060060160b3302e002694b2acd10ee111565241166610

No comments:

Post a Comment