#!/usr/bin/ksh
show_title () {
echo " ${1} "
echo "---------------------------------------------"
}
show_title "fcs(FC)"
FC_LIST[]=`lsdev -Cc adapter | grep "FC " | awk '{print $1}'`
for FC in ${FC_LIST}
do
echo ${FC}' --- '`lscfg -vl ${FC} | grep "Location Code"`
done
echo " "
echo " "
show_title "hdisk(SAS)"
SASDISK_LIST[]=`lsdev -Cc disk | grep "SAS Disk" | awk '{print $1}'`
for SASDISK in ${SASDISK_LIST}
do
echo ${SASDISK}' --- '`lscfg -vl ${SASDISK} | grep "SAS Disk" | awk '{print $2}`
done
echo " "
echo " "
show_title "ent(NIC)"
ENT_LIST[]=`lsdev -Cc adapter | grep ent | awk '{print $1}'`
for ENT in ${ENT_LIST}
do
LOC_CODE=`lscfg -vl ${ENT} | grep ${ENT} | awk '{print $2}'`
echo ${ENT}' - '`entstat -d ${ENT} | grep "Link Status"`' --- '${LOC_CODE}
done
'IBM Power' 카테고리의 다른 글
HMC CLI #1 (0) | 2011.11.16 |
---|---|
장착된 hdisk 위치 확인 (0) | 2011.11.16 |
물리적인 Slot 정보 확인 (0) | 2011.11.16 |
ipcs 를 통한 IPC 자원관리 (0) | 2011.11.16 |
Text 파일에서 ^M 제거하기 (0) | 2011.11.16 |