Search This Blog

Saturday 16 April 2011

Colon Separated WWPN in Soalris

The script prints the WWPN of Solaris 10 HBA cards WWPN in a familiar colon separated format that Storage Admin can use easily in SAN devices.

root@solaris-10 # fcinfo hba-port|grep 'HBA Port WWN'|awk {'print $4'}|perl -pe 's/(..)/\1:/g'|cut -c 1-23
21:00:00:1b:32:95:56:2c
21:01:00:1b:32:b5:56:2c
21:00:00:1b:32:95:66:2c
21:01:00:1b:32:b5:66:2c

No comments:

Post a Comment