sonic-utilities
sonic-utilities copied to clipboard
show interface transceiver <interface> fails in Multi-asic without the asic.
When we use the command, is it expected to provide the asic if we provide the interface ?
root@xx37-lc0:/home/cisco# show interfaces transceiver -h
Usage: show interfaces transceiver [OPTIONS] COMMAND [ARGS]...
Show SFP Transceiver information
Options:
-h, -?, --help Show this message and exit.
Commands:
eeprom Show interface transceiver EEPROM information
error-status Show transceiver error-status
info Show interface transceiver information
lpmode Show interface transceiver low-power mode status
pm Show interface transceiver performance monitoring...
presence Show interface transceiver presence
status Show interface transceiver status information
root@xx37-lc0:/home/cisco# show interfaces transceiver eeprom -h
Usage: show interfaces transceiver eeprom [OPTIONS] [INTERFACENAME]
Show interface transceiver EEPROM information
Options:
-d, --dom Also display Digital Optical Monitoring
(DOM) data
-n, --namespace [asic0|asic1|asic2]
Namespace name or all
--verbose Enable verbose output
-h, -?, --help Show this message and exit.
root@xx37-lc0:/home/cisco#
root@xx37-lc0:/home/cisco# show interface transceiver presence Ethernet0 -n asic0 <<< works
Port Presence
--------- ----------
Ethernet0 Present
root@xx37-lc0:/home/cisco# show interface transceiver presence Ethernet0 <<<< Not work.
Port Presence
--------- -----------
Ethernet0 Not present
root@xx37-lc0:/home/cisco#
Other options are able to work without asic input:
root@xx37-lc0:/home/cisco# show interface status Ethernet0
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
----------- ------------------- ------- ----- ----- ---------- -------------- ------ ------- ----------------------------------------------- ----------
Ethernet0 1288,1289,1290,1291 100G 9100 rs Eth0/0/0/0 PortChannel102 up up QSFP-DD Double Density 8X Pluggable Transceiver off
root@xx37-lc0:/home/cisco# show interface status Ethernet0 -n asic0
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
----------- ------------------- ------- ----- ----- ---------- -------------- ------ ------- ----------------------------------------------- ----------
Ethernet0 1288,1289,1290,1291 100G 9100 rs Eth0/0/0/0 PortChannel102 up up QSFP-DD Double Density 8X Pluggable Transceiver off
root@xx37-lc0:/home/cisco# show interface status Ethernet0 -n asic1
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
----------- ------- ------- ----- ----- ------- ------ ------ ------- ------ ----------
root@xx37-lc0:/home/cisco#