====== Headline ====== ===== get PWWN ===== ==== Linux ==== for i in $(ls -d /sys/class/fc_host/host*) do printf "%s \t: %s \n" $(echo $i | awk -F "/" '{print $NF }') $(cat $i/port_name) ; done e.g. host1 : 0x2100f4e9d4507ce2 host16 : 0x2100f4e9d4507ce3