Today we had (once again) hardware troubles. We ended up replacing a lot of things, but in the end it was a) the HBA and b) apparently some memory DIMMs. Now, that isn’t SVC related. However, we built in another HBA (from our Standby hardware), which apparently already had been assigned to a host.
Now, since you can’t search for a WWPN (at least not that I know of), I ended up writing a little script (yup, AGAIN) in order to do that for me!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
#!/bin/bash svc_cluster_ip=10.0.0.10 svc_priv_dsa=~/.ssh/id_dsa if [ ! -f $svc_priv_dsa ] ; then echo " ${0##*/} is missing the SSH DSA private key" echo " needed to access the SAN Volume controller." echo " Please specify the correct path!" fi if [ -z $1 ] ; then echo echo " ${0##*/} [ WWPN ]" echo echo " WWPN - WWPN, or part of WWPN that is being searched." echo " Should be entered in continous format (ie. no dash (-) or colon (:))!" echo exit 1; fi WWPN=$1 list_wwpn_by_host() { local _host=$1 if [ ! -z $_host ] ; then ssh -i $svc_priv_dsa admin@$svc_cluster_ip svcinfo lshost -delim : $_host | grep ^WWPN | sed "s,WWPN:,," fi } #set -x HOST_LIST="$( ssh -i $svc_priv_dsa admin@$svc_cluster_ip svcinfo lshost -delim : -nohdr | cut -d: -f2 )" for HOST in $HOST_LIST; do echo -n "$HOST: " echo `list_wwpn_by_host $HOST` done | grep $WWPN #set +x |