본문 바로가기

리눅스

PCI슬롯 확인과 HBA Card 확인 명령어

1. 전체 PCI Slot 수와 Slot Type 확인

# dmidecode -t slot | grep -i type | wc -l

# dmidecode -t slot | grep -i type

 

2. 가용 가능 여분 PCI Slot 확인

# dmidecode -t slot | grep -i "available" | wc -l

# dmidecode -t slot | grep -i "available" | -B2 -A5

*Current Usage값으로 알 수 있다.

 

3. 현재 사용중인 PCI Slot과 해당 정보 확인

# dmidecode -t slot | grep -i "in use" -B2 -A5

*Current Usage값으로 알 수 있다.

 

4. 현재  PCI Slot에 장착된 HBA Card(FC-Card) 확인

# lscpi | grep -i "fiber channel"

# for LIST in `lspci | grep -i "fiber channel" | cut -d "." -f 1 | uniq`; do dmidecode -t slot | grep ${LIST} -B7 && echo "=========" ; done

 

5. 상기 4번에서 확인 된 HBA Card의 Bus 정보와 맵핑되는 FC Host 정보 확인

# find /sys/class/fc_host/ -type l(엘) -name device -exec ls -l {} \;

 

 

출처:https://knocxx.tistory.com/120