相關於光纖模組的交換機指令
一般網路交換機功能涵蓋 OSI 網路標準模型分層的第二層 Data Link Layer, 乃至於部分第三層 Network Layer. 因此市面上可以看到些標榜 L2, L2+, L3 的交換機. 高階多 Port 交換機需要可以針對使用者的應用環境進行規劃配置. 網通廠商會於 Console 介面建立一系列交換機指令供使用者彈性調整網路環境. 光纖收發模組, DAC, AOC 這些互連品項, 在網路架構中已是關鍵性的角色, 自然也準備了相關的指令, 方便使用者查詢身分, 規格, DDM 監控及相關診斷. 本文列舉台灣常見品牌交換機的主要指令做為參考.
Cisco 常用光纖模組相關交換機指令
連線狀態判斷 – show interface status
switch# show interface status
--------------------------------------------------------------------------------
Port Name Status Vlan Duplex Speed Type
--------------------------------------------------------------------------------
mgmt0 -- notconnec routed auto auto --
Eth1/1 -- connected 1 full 10G 10Gbase-SR
Eth1/2 -- connected 1 full 10G 10Gbase-SR
Eth1/3 -- connected 1 full 10G 10Gbase-SR
Eth1/4 -- connected 1 full 10G 10Gbase-LR
Eth1/5 -- connected 1 full 10G 10Gbase-LR
Eth1/6 -- connected 1 full 10G 10Gbase-LR
Eth1/7 -- xcvrAbsen 1 full 10G --
Eth1/8 -- xcvrAbsen 1 full 10G --
Eth1/9 -- xcvrAbsen 1 full 10G --
Eth1/10 -- xcvrAbsen 1 full 10G --
模組身分識別 – show inventory
switch# show inventory
NAME: Ethernet1/1, DESCR: DAWNRAY TECH
PID: 10Gbase-SR , VID: SFP-10G-SR , SN: DR1922041774
NAME: Ethernet1/2, DESCR: DAWNRAY TECH
PID: 10Gbase-SR , VID: SFP-10G-SR , SN: DR1922041775
NAME: Ethernet1/3, DESCR: DAWNRAY TECH
PID: 10Gbase-SR , VID: SFP-10G-SR , SN: DR1922041776
NAME: Ethernet1/4, DESCR: DAWNRAY TECH
PID: 10Gbase-LR , VID: SFP-10G-LR , SN: DR1223041910
NAME: Ethernet1/5, DESCR: DAWNRAY TECH
PID: 10Gbase-LR , VID: SFP-10G-LR , SN: DR1223041911
NAME: Ethernet1/6, DESCR: DAWNRAY TECH
PID: 10Gbase-LR , VID: SFP-10G-LR , SN: DR1223041912
數位診斷監控 – show interfaces transceiver details
switch# show interface transceiver details
Ethernet1/1
transceiver is present
type is 10Gbase-SR
name is DAWNRAY TECH
part number is SFP-10G-SR
revision is A
serial number is DR1922041774
nominal bitrate is 10300 MBit/sec
Link length supported for 50/125um OM2 fiber is 82 m
Link length supported for 62.5/125um fiber is 26 m
Link length supported for 50/125um OM3 fiber is 300 m
cisco id is 3
cisco extended id number is 4
cisco part number is 10-2415-01
cisco product id is SFP-10G-SR
SFP Detail Diagnostics Information (internal calibration)
----------------------------------------------------------------------------
Current Alarms Warnings
Measurement High Low High Low
----------------------------------------------------------------------------
Temperature 35.16 C 75.00 C -5.00 C 70.00 C 0.00 C
Voltage 3.35 V 3.59 V 3.00 V 3.50 V 3.09 V
Current 5.68 mA 10.00 mA 0.00 mA 10.00 mA 0.00 mA
Tx Power -1.87 dBm 3.49 dBm -12.21 dBm 0.49 dBm -8.21 dBm
Rx Power -3.16 dBm 3.49 dBm -18.53 dBm 0.49 dBm -14.43 dBm
Transmit Fault Count = 0
----------------------------------------------------------------------------
Note: ++ high-alarm; + high-warning; -- low-alarm; - low-warning
Ethernet1/2
transceiver is present
type is 10Gbase-SR
name is DAWNRAY TECH
part number is SFP-10G-SR
revision is A
serial number is DR1922041775
nominal bitrate is 10300 MBit/sec
Link length supported for 50/125um OM2 fiber is 82 m
Link length supported for 62.5/125um fiber is 26 m
Link length supported for 50/125um OM3 fiber is 300 m
cisco id is 3
cisco extended id number is 4
cisco part number is 10-2415-01
cisco product id is SFP-10G-SR
SFP Detail Diagnostics Information (internal calibration)
----------------------------------------------------------------------------
Current Alarms Warnings
Measurement High Low High Low
----------------------------------------------------------------------------
Temperature 34.62 C 75.00 C -5.00 C 70.00 C 0.00 C
Voltage 3.35 V 3.59 V 3.00 V 3.50 V 3.09 V
Current 4.82 mA 10.00 mA 0.00 mA 10.00 mA 0.00 mA
Tx Power -1.86 dBm 3.49 dBm -12.21 dBm 0.49 dBm -8.21 dBm
Rx Power -2.73 dBm 3.49 dBm -18.53 dBm 0.49 dBm -14.43 dBm
Transmit Fault Count = 0
----------------------------------------------------------------------------
Note: ++ high-alarm; + high-warning; -- low-alarm; - low-warning
以下列出各家廠牌的相關對應指令. 多數廠家有良好的指令規劃, 將自有品牌的交換機指令彙整統一. 但也存在同一品牌的不同機型具有指令上的差別, 讀者可查詢該交換機的原廠使用手冊.
Arista
連線狀態判斷 | show interfaces status |
模組身分識別 | show inventory |
數位診斷監控 | show interfaces transceiver |
Juniper
連線狀態判斷 | show interfaces [interface-id] |
模組身分識別 | show chassis hardware |
數位診斷監控 | show interfaces diagnostics optics [interface-id] |
Extreme
連線狀態判斷 | show ports [interface-id] configuration |
模組身分識別 | show ports [interface-id] configuration |
數位診斷監控 | show ports [interface-id] transceiver information |
Brocade
連線狀態判斷 | show interfaces brief |
模組身分識別 | show media |
數位診斷監控 | show optical |
HPE – Aruba
連線狀態判斷 | show interface brief |
模組身分識別 | show interface transceiver |
數位診斷監控 | show interface transceiver detail |
HPE – H3C
連線狀態判斷 | display interfaces [interface-id] |
模組身分識別 | display transceiver interface [interface-id] |
數位診斷監控 | display transceiver diagnosis interface [interface-id] |
Dell
連線狀態判斷 | show interfaces [interface-id] |
模組身分識別 | show inventory media |
IBM – Blade
連線狀態判斷 | show interface status |
模組身分識別 | show interface transceiver |
數位診斷監控 | show interface transceiver |
Ciena
連線狀態判斷 | port show |
模組身分識別 | port xcvr show |
數位診斷監控 | port xcvr show |
Mellanox
連線狀態判斷 | show interface status |
模組身分識別 | show interface [interface-id] transceiver |
數位診斷監控 | show interface [interface-id] transceiver diagnostics |
Avaya
連線狀態判斷 | show interfaces gigabitEthernet state [interface-id] |
模組身分識別 | show pluggable-optical-modules detail |
數位診斷監控 | show pluggable-optical-modules detail |
Raisecom
連線狀態判斷 | show interfaces [interface-id] |
模組身分識別 | show transceiver information [interface-id] |
數位診斷監控 | show transceiver ddm [interface-id] |
Centec
連線狀態判斷 | show interfaces status |
模組身分識別 | show transceiver [interface-id] detail |
數位診斷監控 | show transceiver [interface-id] detail |
Huawei
連線狀態判斷 | display interface [interface-id] |
模組身分識別 | display interface [interface-id] transceiver |
數位診斷監控 | display interface [interface-id] transceiver brief |
Ruijie
連線狀態判斷 | show interfaces [interface-id] status |
模組身分識別 | show interfaces [interface-id] transceiver |
數位診斷監控 | show interfaces [interface-id] transceiver diagnosis |
TP-LINK
連線狀態判斷 | show interface status |