본문 바로가기
네트워크/SAN

[네트워크] SAN Switch 명령어

by WYYOON 2024. 9. 25.
728x90
반응형
SMALL

Cisco 명령어 모음

- Show interface brief : 스위치 Port별 구성 Brocade switchshow와 동일

- Show flogi database : port별 WWN list

- Show interface counters brief : Port별 count 확인

Show interface fc1/1-3 counter brief : Port fc1/1 ~1/3 count 확인

Show interface aggregate-counters brief : Port별 누적 count 확인

- Show running-configure : 전체 구성정보 및 Zoning 정보

- Show license default / Show port-license : 활성 Port 확인

- Show hardware : S/N 확인

* Port 상태 확인 방법

- show int fc3/2 counters [details] : Port fc3/2 의 각종 counter 값 확인

- show int fc3/2 trans [details] : TX/RX Status 확인

- show port internal event-history int fc3/2 : 포트의 이벤트 로그 확인

- show logging logfile : 스위치 로그 확인

ex> sh log logfile start-time 2018 sep 08 00:00

sh log last 10 : 마지막 10건 로그 확인

- Show interface counters | i fc|err : 포트별 error 건수 확인

Brocade 명령어 모음

- switchshow : Print switch and port status

- cfgshow : Print zone configuration information

- nsshow : Port별 접속 서버 정보 확인

- Zoneshow : Print zone information

* Port 관련 명령어

- portshow [port number] /* 포트 상태 확인

- portdisable [port number] /* 포트 Offline

- portenable [port number] /* 포트 Online

- sfpshow [port number] /* 회선 TX/RX power 상태 등 확인

- porterrshow [port number] /* 포트별 누적 err status

- portstatsshow [port number] /* 포트 전체 적인 상태

- Portperfshow : Print port throughput numbers

portperfshow 3/1-3/10 (slot/port)

portperfshow 5 (interval 초)

- cfganable XXX

- cfgsave

- Islshow : Display the current connections and status

- fabriclog -s. /*로그 show Option "s" 는 show를 의미함.

에러로그의 각 필드 보는 방법은 다음 과 같다.

/* Alias define */
alicreate "SW1_storage", "1,20; 1,21"
alicreate "SW1_svr01", "1,0"
alicreate "SW1_svr02", "1,1"
/* Alias 를 사용한 Zone 생성 */
zonecreate "SW1_svr01_storage", "SW1_svr01, SW1_storage"
zonecreate "SW1_svr02_storage", "SW1_svr02, SW1_storage"
cfgadd "SW1", "SW1_svr01_storage"
cfgadd "SW1", "SW1_svr01_storage"
cfgsave
cfgenable "SW1"
/* 실사용 Sample */
/* 12번포트와 24번 포트 port-zonning
/* 5번포트와 29번 포트 port-zonning
zonecreate "VMAX_8fA_P12_DBSVR1_H01_P24","6,12;6,24"
zonecreate "VMAX_8eA_P05_DBSVR2_H01_P29","6,5;6,29"
cfgadd "DS6520","VMAX_8fA_P12_DBSVR1_H01_P24"
cfgadd "DS6520","VMAX_8eA_P05_DBSVR2_H01_P29"
cfgsave
cfgenable "DS6520"

Cisco SAN 작업

config t
zone name A_dbsvr1_H01_p1-7_MDS9706_VMAX1111_1d04_p1-5 /* 포트조닝 */
member interface fc1/5 domain-id 3
member interface fc1/7 domain-id 3
zone name A_dbsvr2_H01_p1-8_MDS9706_VMAX1111_1d05_p2-5
member interface fc2/5 domain-id 3
member interface fc1/8 domain-id 3
fcalias name dbsvr1_H01 vsan 1 /* WWN 조닝의 경우 Alias 정의 권고 */
member pwwn 20:00:00:fd:45:02:02:01
fcalias name dbsvr2_H01 vsan 1
member pwwn 20:00:00:fd:45:02:02:05
end
config t
zoneset name Zoneset_SAN1 vsan 1
zone name Host_aa1_storage1_p1 /* WWN 조닝 예 */
member fcalias Host_aa1
member fcalias storage1_p1
zone name Host_aa2_storage2_p1
member fcalias Host_aa2
member fcalias storage2_p1
zoneset activate name Zoneset_SAN1 vsan 1
end
copy r s
/* Alias, Zone 삭제 */
Alias, Zone name 앞에 "no" 문자를 추가하거나 "no member zone_name"를 추가하여 config 작업을 수행 하면 된다.
Zone 정보를 삭제하면 소속된 member까지 자동 삭제 됨으로 member를 별도로 삭제할 필요는 없다.
config t
zoneset name Zoneset_SAN1 vsan 1
no fcalias name dbsvr1_H01 vsan 1
no zone name Host_aa1_storage1_p1 vsan 1
zoneset activate name Zoneset_SAN1 vsan 1
end
-----------------------------------------------------------------
config t
zoneset name Zoneset_SAN1 vsan 1
no member Host_aa1_storage1_p1
zoneset activate name Zoneset_SAN1 vsan 1
end
copy r s
기타 명령어
Show hardware /* S/N 확인
Show Environment /* Power 상태 등 확인
 
포트 Counter 정보 Reset
clear counters int fc 7/5
 
Port Disable / Enable
Config t
Interface fc1/13
shut
no shut
end
 
SSH 등록 설정
config t
feature SSH
end
 
Enabling F Port Trunking
config t
feature fport-channel-trunk
no feature fport-channel-trunk
end
 
Trunk Mode
config t
int fc 1/15
switchport trunk mode on
end
trunk mode : on / off / auto
Domain 등록
Config t
fcdomain domain 1 static vsan 1
end
copy r s
config t
fcdomain restart vsan 1
end
show fcdomain
License 등록
1. PC에 FTP 실행 및 설정 (알FTP)
2. copy ftp://10.0.92.255/MDSxxxx.lic bootflash:MDSxxxx.lic
3. install license bootflash:MDSxxxx.lic
show license usage
show port-license

 

728x90
반응형
SMALL