博科SAN交換機基本配置(華爲SNS系列交換機爲例OEM博科)

命令幫助
輸入Help 可以查看所有可用的命令
輸入Help <命令> 來得到使用提示(例子: help ipaddrset)


一、查看交換機基本信息
1、查看交換機的固件版本
--------------------------------------------------------------------
SNS:admin> version
Kernel: 2.6.34.6
Fabric OS: v8.2.0b           ##固件版本號
Made on: Mon Apr 9 22:21:55 2018
Flash: Fri Apr 26 21:57:55 2019
BootProm: 3.0.20
--------------------------------------------------------------------

2、顯示交換機的信息
--------------------------------------------------------------------
SNS2624:admin> switchshow
switchName: SNS2624               ##交換機名稱
switchType: 170.0                  ##交換機型號和母板版本號
switchState: Online               ##交換機狀態:“Online”、“Offline”、“Testing”或“Faulty”。
switchMode: Native              ##交換機操作模式:“Native”、“Interop”或“Access Gateway”
switchRole: Principal              ##交換機角色“Principal”、“Subordinate”或“Disabled”。
switchDomain: 1               ##交換機域ID:0~31或1~23。
switchId: fffc01               ##交換機嵌入式端口D_ID。
switchWwn: 10:00:88:94:88:92:c3:88      ##交換機WWN號
zoning: OFF                  ##當接入網關模式被禁用,激活分區的名稱會顯示在括號內。
switchBeacon: OFF            ##交換機信標狀態:“On”或“Off”。
HIF Mode: OFF

Index Port Address Media Speed State Proto
==================================================
0 0 010000 id N16 Online FC F-Port 88:88:c8:a7:76:b5:48:76
1 1 010100 id N16 Online FC F-Port 88:88::44:67:47:e5:cc:06
2 2 010200 id N16 Online FC F-Port 88:88:c8:a7:76:b5:48:76
3 3 010300 id N16 Online FC F-Port 88:88::44:67:47:e5:cc:06
4 4 010400 id N16 No_Light FC (No Ports on Demand license)
5 5 010500 id N16 Online FC F-Port 88:88::44:67:47:e5:cc:16
6 6 010600 id N16 Online FC F-Port 88:88::44:67:47:e5:cc:06
7 7 010700 id N16 Online FC F-Port 88:88::44:67:47:e5:cc:06
8 8 010800 id N16 No_Light FC
9 9 010900 id N16 No_Light FC (No Ports on Demand license) Disabled (No License)
10 10 010a00 id N16 No_Light FC (No Ports on Demand license) Disabled (No License)
11 11 010b00 id N16 No_Light FC (No Ports on Demand license)
12 12 010c00 id N16 No_Light FC (No Ports on Demand license)
13 13 010d00 id N16 No_Light FC (No Ports on Demand license)
14 14 010e00 id N16 No_Light FC (No Ports on Demand license)
15 15 010f00 id N16 No_Light FC (No Ports on Demand license)
16 16 011000 -- N32 No_Module FC (No Ports on Demand license)
17 17 011100 -- N32 No_Module FC (No Ports on Demand license)
18 18 011200 -- N32 No_Module FC (No Ports on Demand license)
19 19 011300 -- N32 No_Module FC (No Ports on Demand license)
20 20 011400 -- N32 No_Module FC (No Ports on Demand license)
21 21 011500 -- N32 No_Module FC (No Ports on Demand license)
22 22 011600 -- N32 No_Module FC (No Ports on Demand license)
23 23 011700 -- N32 No_Module FC (No Ports on Demand license)
--------------------------------------------------------------------
交換機的端口信息說明:

Index:        #索引範圍高達255,直至平臺的最大端口。索引標識與交換機相關的端口號,索引欄只顯示在企業級平臺上。

Slot:        #槽位號:1~4和7~10,上面的交換機是盒式交換機所以沒有Slot這一列,框式的有。

Port:       #端口號:0~15、0~31或0~47。

Address:     #24位地址標識符。地址欄只顯示在企業級平臺上。

Media:        #SFP類型。

Speed:    #端口速率(1Gbit/s、2Gbit/s、4Gbit/s、8Gbit/s、10Gbit/s、16Gbit/s、32Gbit/s、N1、N2、N4、N8、N16、N32、AN和UN)。速率可以是固定速率、匹配速率或自適應速率。
說明:只有SNS2248型號支持10Gbit/s的端口速率。

State:      #端口狀態。Online表示連接正常,No_Light表示端口上有光模塊但是無連接,No_Module表示端口上無光模塊,Mod_Inv表示光模塊不兼容

Proto:     #支持GbE端口的協議。
FC F-Port 88:88:c8:a7:88:b2:48:88              ##F-Port說明了端口類型,88:88:c8:a7:76:b2:48:73顯示的是連接這個端口對應設備的wwn號
FC (No Ports on Demand license) Disabled (No License)     ##表示這個端口需要許可進行激活


3、顯示交換機的正常運行時間
--------------------------------------------------------------------
SNS:admin> uptime
16:59 up 39 days 6:05, 1 user, load average: 0.04, 0.02, 0.00
--------------------------------------------------------------------
上面顯示的分別是:當前系統時間、系統第一次上電後的累計運行時間幾天幾小時、當前登錄的用戶數、過去1分鐘、5分鐘和15分鐘內的平均負載,例如0.04, 0.02, 0.00。同時,交換機最後一次重啓的原因也將記載在系統信息日誌中。

4、查看已添加的License
--------------------------------------------------------------------
SNS2624:admin> licenseshow
No licenses installed.       ##當前沒有添加許可
--------------------------------------------------------------------

5、使用licenseidshow命令查詢License ID,也就是交換機的wwn號
SNS2624:admin> licenseidshow
10:00:88:94:88:92:c3:88


6、博科原廠序列號查看方式,執行命令chassisshow,Factory Serial Num即爲原廠序列號
--------------------------------------------------------------------
SNS2624:admin> chassisshow
........
CHASSIS/WWN Unit: 1
System AirFlow: Non-portside Intake
Header Version: 2
Factory Part Num: 40-1001159-12
Factory Serial Num: EZL19178888
Manufacture: Day: 12 Month: 12 Year: 18
Update: Day: 6 Month: 4 Year: 2020
Time Alive: 37 days
Time Awake: 37 days
ID: BRD0000HU
Part Num: BROCAD0008888
--------------------------------------------------------------------

二、自定義交換機名稱,switchname命令
交換機名稱的命名規則如下:
字符長度爲1~30。
字符可以包含數字、字母和下劃線“_”。
首字符必須爲字母。
名稱必須是唯一的,不能與其他交換機名稱衝突。
下次登錄後,自定義交換機名稱才生效。
注意事項
修改交換機名稱會發送域地址格式的RSCN(Registered State Change Notification),可能會引起Fabric業務中斷。

---------------------------------------------
SNS2624:admin> switchname SNS     ##switchname命令後面接名回執行命令
Committing configuration...
Done.
Switch name has been changed.Please re-login into the switch for the change to be applied.
SNS2624:admin>
----------------------------------------------

三、時間,時區設置
所有交換機都必須設置時區。但每個交換機設置一次即可,因爲時區值是寫入非易失性存儲介質中。
1、查看時間
----------------------------------------------
SNS2624:admin> date
Mon Apr 6 05:24:33 UTC 2020
----------------------------------------------
2、查看時區
----------------------------------------------
SNS2624:admin> tstimezone
Time Zone Hour Offset: 0
Time Zone Minute Offset: 0
----------------------------------------------

3、設置時區
3.1、使用tstimezone命令將目前時區設置爲北京時間
----------------------------------------------
SNS2624:admin> tstimezone Asia/Shanghai      ##Asia/Shanghai爲時區名稱
----------------------------------------------

3.2、使用交互模式將目前時區設置爲北京時間
----------------------------------------------
SNS2624:admin> tstimezone --interactive         ##通過--interactive參數進入交互模式,這個比較適合不知道時區的名稱時候用
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
1) Africa
2) Americas
3) Antarctica
4) Arctic Ocean
5) Asia
6) Atlantic Ocean
7) Australia
8) Europe
9) Indian Ocean
10) Pacific Ocean
11) none - I want to specify the time zone using the POSIX TZ format.
Enter number or control-D to quit ?5       ##選擇所在的大州,這裏輸入5選擇亞洲,可以按“Ctrl-D”退出
Please select a country.
1) Afghanistan 18) Israel 35) Palestine
2) Armenia 19) Japan 36) Philippines
3) Azerbaijan 20) Jordan 37) Qatar
4) Bahrain 21) Kazakhstan 38) Russia
5) Bangladesh 22) Korea (North) 39) Saudi Arabia
6) Bhutan 23) Korea (South) 40) Singapore
7) Brunei 24) Kuwait 41) Sri Lanka
8) Cambodia 25) Kyrgyzstan 42) Syria
9) China 26) Laos 43) Taiwan
10) Cyprus 27) Lebanon 44) Tajikistan
11) East Timor 28) Macau 45) Thailand
12) Georgia 29) Malaysia 46) Turkmenistan
13) Hong Kong 30) Mongolia 47) United Arab Emirates
14) India 31) Myanmar (Burma) 48) Uzbekistan
15) Indonesia 32) Nepal 49) Vietnam
16) Iran 33) Oman 50) Yemen
17) Iraq 34) Pakistan
Enter number or control-D to quit ?9          ##選擇所在的國家,這裏輸入9選擇中國
Please select one of the following time zone regions.
1) east China - Beijing, Guangdong, Shanghai, etc.
2) Heilongjiang (except Mohe), Jilin
3) central China - Sichuan, Yunnan, Guangxi, Shaanxi, Guizhou, etc.
4) most of Tibet & Xinjiang
5) west Tibet & Xinjiang
Enter number or control-D to quit ?1         ##選擇時區,這裏輸入1選擇北京

The following information has been given:

China
east China - Beijing, Guangdong, Shanghai, etc.

Therefore TZ='Asia/Shanghai' will be used.
Local time is now: Mon Apr 6 13:28:32 CST 2020.
Universal Time is now: Mon Apr 6 05:28:32 UTC 2020.
Is the above information OK?
1) Yes
2) No
Enter number or control-D to quit ?1         ##如果上面信息正確,輸入1確定
System Time Zone change will take effect at next reboot. On Chassis, reboot both CPs simultaneously.
SNS:admin> tstimezone           ##再次查看時區
Asia/Shanghai                    ##已經更改成功
----------------------------------------------

4、設置時間
date "mmddHHMMyy"                ##英文輸入法下的雙引號""必須有

取值說明:
mm表示月份,有效值爲01到12。
dd表示日期,有效值爲01到31。
HH表示小時,有效值爲00到23。
MM表示分鐘,有效值爲00到59。
yy表示年份,有效值爲00到99。大於69表示1970至1999;小於70表示2000至2069。
----------------------------------------------
SNS:admin> date "0406141520"
Mon Apr 6 14:15:00 CST 2020
----------------------------------------------

四、設置NTP
輸入tsclockserver命令。

switch:admin> tsclockserver "<ntp1 ; ntp2>"

ntp1是第一個NTP服務器的IP地址或DNS名,交換機必須可以訪問此IP地址或DNS名。ntp2是第二個NTP服務器的名字(可選)。整個運算數<ntp1 ; ntp2>是可選的,默認值爲LOCL,使用主交換機的本地時鐘作爲時鐘服務器。光纖交換機每隔64秒與NTP server同步一次。
----------------------------------------------
SNS:admin> tsclockserver       ##檢查當前NTP配置:
Active NTP Server LOCL
Configured NTP Server List LOCL
SNS:admin> tsclockserver "192.168.2.1"   ##設置NTP Server
Updating Clock Server configuration...done.
Updated with the NTP servers
SNS:admin> tsclockserver          ##檢查NTP設置
Active NTP Server 192.168.2.1
Configured NTP Server List 192.168.2.1 
SNS:admin>

五、IP地址設置
1、顯示當前ip
--------------------------------------------------------------------
SNS2624:admin> ipaddrshow

SWITCH
Ethernet IP Address: 10.77.77.77
Ethernet Subnet mask: 255.255.255.0
Gateway IP Address: 10.77.77.1
DHCP: Off
--------------------------------------------------------------------
2、設置ip地址
SNS2624:admin> ipaddrset
DHCP [Off]:off
Ethernet IP Address [10.77.77.77]:192.168.2.111
Ethernet Subnet mask [255.255.255.0]:          ##如果規格的和[]裏面的一樣,直接回車就可以,這樣就設置成[]裏面的參數了
Gateway IP Address [10.77.77.1]:192.168.2.1 
IP address is being changed...

六、配置域ID
交換機啓動後,其域ID是動態分配的。爲了方便管理域ID,解決Fabric合併時的域ID衝突,可以對域ID進行手動修改。交換機的默認域ID爲“1”。
交換機啓動後,如果其域ID與Fabric中另一交換機的域ID相沖突:
另一交換機的域ID爲非固定設置時,域ID衝突可以自動解決,此過程會持續幾秒鐘。在這段時間內,流量會延遲。
兩臺交換機的域ID都爲固定設置時,需要修改其中一臺交換機的域ID,且確保修改後的域ID不會與Fabric中的其它域ID衝突。

1、查看域ID
----------------------------------------------
SNS:admin> fabricshow
Switch ID Worldwide Name Enet IP Addr FC IP Addr Name
-------------------------------------------------------------------------
1: fffc01 88:00:88:94:71:92:88:88 192.168.2.1 0.0.0.0 >"SNS"
----------------------------------------------
其中“Switch ID”的第一個十進制數字爲交換機的域ID

2、設置域ID
2.1、先使用switchdisable命令停用交換機
----------------------------------------------
SNS:admin> switchdisable
----------------------------------------------

2.2、通過configure命令設置域ID
----------------------------------------------
SNS:admin> configure
Configure...
Fabric parameters (yes, y, no, n): [no] y   ##輸入y
Domain: (1..239) [1] 12            ##提示符後輸入一個唯一的域ID。正常運行模式下域ID的取值範圍爲1~239(兼容FC-SW)。
WWN Based persistent PID (yes, y, no, n): [no]   ##這裏什麼也不輸入直接按“Ctrl+D”接受其餘項的默認設置。也可以依據界面提示完成剩餘操作。
WARNING: The domain ID will be changed. The port level zoning may be affected
----------------------------------------------
2.3、使用switchenable命令重新啓用交換機
SNS:admin> switchenable

2.4、查看域ID
----------------------------------------------
SNS:admin> fabricshow
Switch ID Worldwide Name Enet IP Addr FC IP Addr Name
-------------------------------------------------------------------------
12: fffc0c 88:00:88:94:71:92:88:39 192.168.2.1 0.0.0.0 >"SNS"    ##已經更改爲12
----------------------------------------------

七、啓用和停用交換機

默認情況下,當交換機上電並完成上電自檢診斷和初始化後,交換機被啓用。根據需要,也可以停用或重新啓用交換機。
1、停用交換機
----------------------------------------------
SNS:admin> switchdisable
----------------------------------------------
命令運行成功後,交換機所有的FC端口將下線。如果交換機加入了Fabric,Fabric會進行重新配置。使用switchdisable停用交換機後,如果重新啓動交換機,交換機將處於啓用狀態。

2、啓用交換機
----------------------------------------------
SNS:admin> switchenable
----------------------------------------------
命令運行成功後,所有通過POST(Power On Self Test)的FC端口都會被啓用。如果交換機通過ISL(Inter-Switch Link)連接到某Fabric,啓用後交換機會加入此Fabric。

八、交換機關機和重啓
爲了不影響用戶文件系統的性能,我們推薦用戶以正常的方式關閉交換機。
熱重啓(又稱爲正常關機)是指通過下列方式(命令方式)關閉交換機或者刀片。冷重啓(又稱爲硬啓動)是指以突然下電上電的方式關閉交換機或者刀片。
1、重啓交換機
--------------------------------------------------------------------
SNS:admin> reboot
Warning: This command would cause the switch to reboot
and result in traffic disruption.
Are you sure you want to reboot the switch [y/n]?##這裏輸入y確認重啓
--------------------------------------------------------------------
2、關閉交換機
--------------------------------------------------------------------
SNS2624_D13:admin> sysshutdown
This command will shutdown the operating systems on your switch.
You are required to power-cycle the switch in order to restore operation.
Are you sure you want to shutdown the switch [y/n]? ##這裏輸入y確認關機
--------------------------------------------------------------------
通過上面的命令就可以手動切斷交換機電源了

 

九、通過fcping命令來測試主機側到對端存儲設備是否可以通信
輸入fcping命令,檢查設備端口的Zone配置:
發送ELS(Extended Link Service frame)ECHO請求到指定的端口,並確認其響應。

 

不論設備如何Zone,fcping命令總是給目標端口發送ELS幀。設備可進行以下任意操作:
發送一個ELS接受信息到ELS請求。
發送一個ELS拒絕信息到ELS請求。
忽略ELS請求。
有些設備不支持ELS ECHO請求,在這種情況下,設備將不會響應請求,也不會發送ELS拒絕消息。當設備對ELS請求無響應時,需要進一步的調試,而不能認爲設備沒有連接到光纖通道上。

 

1、單fcping一個設備,以下是輸入fcping命令後這臺設備接受了請求的輸出,如下所示:
------------------------------------------------------
switch:admin> fcping 20:00:c8:a7:76:b2:48:73
Destination: 20:00:c8:a7:76:b2:48:73

 

Pinging 20:00:c8:a7:76:b2:48:73 [0x010000] with 12 bytes of data:
received reply from 20:00:c8:a7:76:b2:48:73: 12 bytes time:445 usec
received reply from 20:00:c8:a7:76:b2:48:73: 12 bytes time:307 usec
received reply from 20:00:c8:a7:76:b2:48:73: 12 bytes time:285 usec
received reply from 20:00:c8:a7:76:b2:48:73: 12 bytes time:282 usec
received reply from 20:00:c8:a7:76:b2:48:73: 12 bytes time:281 usec
5 frames sent, 5 frames received, 0 frames rejected, 0 frames timeout
Round-trip min/avg/max = 281/320/445 usec
switch:admin>
------------------------------------------------------

 

2、單fcping一個設備,以下是輸入fcping命令後這臺設備請求無響應的輸出,如下所示:
------------------------------------------------------
switch:admin> fcping 21:01:44:67:47:ed:cc:19
Destination: 21:01:44:67:47:ed:cc:19

 

Pinging 21:01:44:67:47:ed:cc:19 [0x010500] with 12 bytes of data:
Request timed out
Request timed out
Request timed out
Request timed out
Request timed out
5 frames sent, 0 frames received, 5 frames rejected, 5 frames timeout
Round-trip min/avg/max = 0/0/0 usec
switch:admin>
------------------------------------------------------

 

3、單fcping一個設備,以下是輸入fcping命令後這臺設備拒絕了請求的輸出,如下所示:
------------------------------------------------------
switch:admin> fcping 21:01:44:67:47:ed:cc:29
Destination: 21:01:44:67:47:ed:cc:29

 

Pinging 21:01:44:67:47:ed:cc:29 [0x211e8] with 12 bytes of data:
Request rejected
Request rejected
Request rejected
Request rejected
Request rejected
5 frames sent, 0 frames received, 5 frames rejected, 0 frames timeout
Round-trip min/avg/max = 0/0/0 usec
switch:admin>
------------------------------------------------------

 

4、同時測試主機側到對端存儲設備是否可以通信
switch:admin> fcping 20:00:c8:a7:76:b2:48:73 21:01:44:67:47:ed:cc:19     ##這裏要分別輸入主機側和存儲側的wwn號中間用空格隔開
------------------------------------------------------
Source: 20:00:c8:a7:76:b2:48:73
Destination: 21:01:44:67:47:ed:cc:19
Zone Check: Zoned

 

Pinging 20:00:c8:a7:76:b2:48:73 [0x010000] with 12 bytes of data:
received reply from 20:00:c8:a7:76:b2:48:73: 12 bytes time:520 usec
received reply from 20:00:c8:a7:76:b2:48:73: 12 bytes time:393 usec
received reply from 20:00:c8:a7:76:b2:48:73: 12 bytes time:541 usec
received reply from 20:00:c8:a7:76:b2:48:73: 12 bytes time:385 usec
received reply from 20:00:c8:a7:76:b2:48:73: 12 bytes time:355 usec
5 frames sent, 5 frames received, 0 frames rejected, 0 frames timeout
Round-trip min/avg/max = 355/438/541 usec

 

Pinging 21:01:44:67:47:ed:cc:19 [0x010500] with 12 bytes of data:
Request timed out
Request timed out
Request timed out
Request timed out
Request timed out
5 frames sent, 0 frames received, 5 frames rejected, 5 frames timeout
Round-trip min/avg/max = 0/0/0 usec
switch:admin>
------------------------------------------------------

 

十、配置端口

 

交換機端口爲設備提供了物理的和虛擬的兩種網絡連接點。博科的設備支持多種端口類型。
端口類型

D_Port :  診斷端口,管理員通過此端口隔離ISL以診斷鏈路級故障。此端口只運行特定的診斷測試,不承擔任何Fabric流量。

 

E_Port :    級聯端口,用於級聯(ISL)其他交換機實現Fabric的擴展。兩個相連的E_Port就構成一個ISL。通過E_Port連接的交換機構成一個沒有分界點的Fabric。ISL是非路由鏈路。

 

EX_Port :   E_Port的一種,用於連接FC路由器和邊緣Fabric。對於邊緣Fabric中的交換機,EX_Port表現爲普通E_Port,和E_Port一樣遵守FC協議。但是,EX_Port的連接終止於路由器,而不能像E_Port連接的交換機那樣可以融合不同的Fabric。                                 EX_Port相互之間不能連接。

 

F_Port :    節點端口,即Fabric設備的端口。例如SAN存儲設備端口。

 

FL_Port :  此端口用於連接公共loop中的設備。

 

G_Port :      通用端口,此端口作爲非環路Fabric設備的過渡端口。

 

L_Port :       此端口用於連接專有loop中的設備。

 

M_Port :     鏡像端口,用於複製指定源端口和目標端口之間的流量。M_Port僅支持連接F_Port。

 

U_Port :      通用FC端口,最基本的FC端口類型。所有未識別的和未初始化的端口都屬於U_Port。

 

VE_Port:       虛擬E_Port,爲FCIP(Fibre Channel over IP)通道配置的千兆以太網交換機端口。

 

VEX_Port :       虛擬VE_Port,用於連接FC路由器到邊緣Fabric。對於邊緣Fabric中的交換機來說,VEX_Port表現爲普通的EX_Port,和EX_Port一樣遵守FC協議。但是,VEX_Port的連接終止於路由器,而不能像VE_Port連接的交換機那樣可以融合不同的Fabric。

 

1、設置端口名
使用portname命令設置端口名。對於架框式交換機,需要指定插片安裝的插槽號。
例:設置插槽號爲“2”,端口號爲“3”的端口名爲“trunk1”。的配置如下:
------------------------------------------------------
switch:admin> portname 2/3 -n trunk1
------------------------------------------------------
對於盒式交換機設置端口號爲“3”的端口名爲“trunk1”。的配置如下:
------------------------------------------------------
switch:admin> portname 3 -n trunk1
------------------------------------------------------

 

2、啓用和停用端口,這個就不舉例了
默認情況下,所有授權的端口都被啓用。根據需要,可以停用或重新啓用端口。對於通過License激活的POD(Ports On Demand),需要進行手動啓用。
注意:
如果啓用或停用的端口連接到另一臺交換機,Fabric會重新配置。
如果交換機的一個端口被停用,此交換機會從Fabric斷開,且此交換機和Fabric之間的所有流量都會丟失。

 

2、1啓用端口
使用管理員賬戶登錄交換機。
根據端口的當前狀態,以及是否需要指定插槽號,使用相應的端口啓用命令。
啓用後被停用的端口:使用portenable portnumber或portenable slotnumber/portnumber命令。
一直處於停用狀態的端口:使用portcfgpersistentenable portnumber或portcfgpersistentenable slotnumber/portnumber命令。

說明:對於一直處於停用狀態的端口,使用portenable命令啓用後,此端口在下一次上電或交換機重新啓動後會自動停用。爲了保持端口的啓用狀態,使用portcfgpersistentenable命令啓用此類端口。
2、2停用端口
使用管理員賬戶登錄交換機。
根據端口的當前狀態,以及是否需要指定插槽號,使用相應的端口停用命令。
停用後被啓用的端口:使用portdisable portnumber或portdisable slotnumber/portnumber命令。
一直處於啓用狀態的端口:使用portcfgpersistentdisable portnumber或portcfgpersistentdisable slotnumber/portnumber命令。

 

3、設置端口速率

 

使用管理員賬戶登錄交換機。
使用portcfgspeed命令設置端口速率。

 

例:設置插槽號爲“2”,端口號爲“3”的端口速率爲“4Gbit/s”。
------------------------------------------------------
switch:admin> portcfgspeed 2/3 4
------------------------------------------------------

 

例:設置插槽號爲“2”,端口號爲“3”的端口速率爲自適應。
------------------------------------------------------
switch:admin> portcfgspeed 2/3 0
------------------------------------------------------

 

4、顯示端口的詳細信息portshow命令
顯示端口的詳細信息:使用portshow portnumber或portenable slotnumber/portnumber命令。
------------------------------------------------------
switch:admin> portshow 0
portIndex: 0
portName: acc
portHealth: Fabric vision license not present. Please install the license and retry the operation.

 

Authentication: None
portDisableReason: None
portCFlags: 0x1
portFlags: 0x20b03 PRESENT ACTIVE F_PORT G_PORT U_PORT LOGICAL_ONLINE LOGIN NOELP ACCEPT FLOGI
LocalSwcFlags: 0x0
portType: 27.0
POD Port: Port is licensed
portState: 1 Online
Protocol: FC
portPhys: 6 In_Sync portScn: 32 F_Port
port generation number: 28
state transition count: 3

 

portId: 010000
portIfId: 43020017
portWwn: 20:00:88:94:71:92:3d:28
portWwn of device(s) connected:
20:00:c8:a7:76:b2:48:73
16b Area list:
Distance: normal
portSpeed: N16Gbps

 

FEC: Inactive
Credit Recovery: Inactive
Aoq: Inactive
FAA: Inactive
F_Trunk: Inactive
LE domain: 0
Peer beacon: Off
FC Fastwrite: OFF
Interrupts: 0 Link_failure: 0 Frjt: 0
Unknown: 0 Loss_of_sync: 0 Fbsy: 0
Lli: 21 Loss_of_sig: 0
Proc_rqrd: 186 Protocol_err: 0
Timed_out: 0 Invalid_word: 0
Tx_unavail: 0 Invalid_crc: 0
Delim_err: 0 Address_err: 0
Lr_in: 3 Ols_in: 0
Lr_out: 0 Ols_out: 3
switch:admin>
------------------------------------------------------

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章