Archive for December, 2012

Locating WWPNs on Linux servers

I do a lot of storage-related work, and often times need to grab WWPNs to zone hosts and to mask storage. To gather the WWPNs I would often times use the following script on my RHEL and CentOS servers: #!/bin/sh FC_PATH=”/sys/class/fc_host” for fc_adapter in `ls ${FC_PATH}` do echo “${FC_PATH}/${fc_adapter}:” NAME=$(awk ‘{print $1}’ ${FC_PATH}/${fc_adapter}/symbolic_name ) echo […]