Skip to content

Commit b316fc2

Browse files
Add transceiver status CLI to show output from TRANSCEIVER_STATUS table (sonic-net#2772)
* Add transceiver status CLI to display TRANSCEIVER_STATUS table for CMIS/C-CMIS * Fix typo in command-ref * Add tx_disable * Update tx_disabled_channel's discription * Remove redundant code * addressed comments * Fix typo for tx power low warning * Separate CMIS and CCMIS status map * code cleanup * Unify display format and update display order * Fix after merge from master
1 parent dc59dbd commit b316fc2

7 files changed

Lines changed: 1319 additions & 5 deletions

File tree

doc/Command-Reference.md

Lines changed: 284 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ This command displays information for all the interfaces for the transceiver req
931931
932932
- Usage:
933933
```
934-
show interfaces transceiver (eeprom [-d|--dom] | info | lpmode | presence | error-status [-hw|--fetch-from-hardware] | pm) [<interface_name>]
934+
show interfaces transceiver (eeprom [-d|--dom] | info | lpmode | presence | error-status [-hw|--fetch-from-hardware] | pm | status) [<interface_name>]
935935
```
936936
937937
- Example (Decode and display information stored on the EEPROM of SFP transceiver connected to Ethernet0):
@@ -1060,6 +1060,289 @@ This command displays information for all the interfaces for the transceiver req
10601060
EVM % 100.0 100.0 100.0 N/A N/A N/A N/A N/A N/A
10611061
```
10621062
1063+
- Example (Display status info of SFP transceiver connected to Ethernet100):
1064+
```
1065+
admin@sonic:~$ show interfaces transceiver status Ethernet100
1066+
Ethernet100:
1067+
Tx fault flag on media lane 1: False
1068+
Tx fault flag on media lane 2: False
1069+
Tx fault flag on media lane 3: False
1070+
Tx fault flag on media lane 4: False
1071+
Tx fault flag on media lane 5: False
1072+
Tx fault flag on media lane 6: False
1073+
Tx fault flag on media lane 7: False
1074+
Tx fault flag on media lane 8: False
1075+
Rx loss of signal flag on media lane 1: False
1076+
Rx loss of signal flag on media lane 2: False
1077+
Rx loss of signal flag on media lane 3: False
1078+
Rx loss of signal flag on media lane 4: False
1079+
Rx loss of signal flag on media lane 5: False
1080+
Rx loss of signal flag on media lane 6: False
1081+
Rx loss of signal flag on media lane 7: False
1082+
Rx loss of signal flag on media lane 8: False
1083+
TX disable status on lane 1: False
1084+
TX disable status on lane 2: False
1085+
TX disable status on lane 3: False
1086+
TX disable status on lane 4: False
1087+
TX disable status on lane 5: False
1088+
TX disable status on lane 6: False
1089+
TX disable status on lane 7: False
1090+
TX disable status on lane 8: False
1091+
Disabled TX channels: 0
1092+
Current module state: ModuleReady
1093+
Reason of entering the module fault state: No Fault detected
1094+
Datapath firmware fault: False
1095+
Module firmware fault: False
1096+
Module state changed: False
1097+
Data path state indicator on host lane 1: DataPathActivated
1098+
Data path state indicator on host lane 2: DataPathActivated
1099+
Data path state indicator on host lane 3: DataPathActivated
1100+
Data path state indicator on host lane 4: DataPathActivated
1101+
Data path state indicator on host lane 5: DataPathActivated
1102+
Data path state indicator on host lane 6: DataPathActivated
1103+
Data path state indicator on host lane 7: DataPathActivated
1104+
Data path state indicator on host lane 8: DataPathActivated
1105+
Tx output status on media lane 1: False
1106+
Tx output status on media lane 2: False
1107+
Tx output status on media lane 3: False
1108+
Tx output status on media lane 4: False
1109+
Tx output status on media lane 5: False
1110+
Tx output status on media lane 6: False
1111+
Tx output status on media lane 7: False
1112+
Tx output status on media lane 8: False
1113+
Rx output status on host lane 1: True
1114+
Rx output status on host lane 2: True
1115+
Rx output status on host lane 3: True
1116+
Rx output status on host lane 4: True
1117+
Rx output status on host lane 5: True
1118+
Rx output status on host lane 6: True
1119+
Rx output status on host lane 7: True
1120+
Rx output status on host lane 8: True
1121+
Tx loss of signal flag on host lane 1: False
1122+
Tx loss of signal flag on host lane 2: False
1123+
Tx loss of signal flag on host lane 3: False
1124+
Tx loss of signal flag on host lane 4: False
1125+
Tx loss of signal flag on host lane 5: False
1126+
Tx loss of signal flag on host lane 6: False
1127+
Tx loss of signal flag on host lane 7: False
1128+
Tx loss of signal flag on host lane 8: False
1129+
Tx clock and data recovery loss of lock on host lane 1: False
1130+
Tx clock and data recovery loss of lock on host lane 2: False
1131+
Tx clock and data recovery loss of lock on host lane 3: False
1132+
Tx clock and data recovery loss of lock on host lane 4: False
1133+
Tx clock and data recovery loss of lock on host lane 5: False
1134+
Tx clock and data recovery loss of lock on host lane 6: False
1135+
Tx clock and data recovery loss of lock on host lane 7: False
1136+
Tx clock and data recovery loss of lock on host lane 8: False
1137+
Rx clock and data recovery loss of lock on media lane 1: False
1138+
Rx clock and data recovery loss of lock on media lane 2: False
1139+
Rx clock and data recovery loss of lock on media lane 3: False
1140+
Rx clock and data recovery loss of lock on media lane 4: False
1141+
Rx clock and data recovery loss of lock on media lane 5: False
1142+
Rx clock and data recovery loss of lock on media lane 6: False
1143+
Rx clock and data recovery loss of lock on media lane 7: False
1144+
Rx clock and data recovery loss of lock on media lane 8: False
1145+
Configuration status for the data path of host line 1: ConfigSuccess
1146+
Configuration status for the data path of host line 2: ConfigSuccess
1147+
Configuration status for the data path of host line 3: ConfigSuccess
1148+
Configuration status for the data path of host line 4: ConfigSuccess
1149+
Configuration status for the data path of host line 5: ConfigSuccess
1150+
Configuration status for the data path of host line 6: ConfigSuccess
1151+
Configuration status for the data path of host line 7: ConfigSuccess
1152+
Configuration status for the data path of host line 8: ConfigSuccess
1153+
Data path configuration updated on host lane 1: False
1154+
Data path configuration updated on host lane 2: False
1155+
Data path configuration updated on host lane 3: False
1156+
Data path configuration updated on host lane 4: False
1157+
Data path configuration updated on host lane 5: False
1158+
Data path configuration updated on host lane 6: False
1159+
Data path configuration updated on host lane 7: False
1160+
Data path configuration updated on host lane 8: False
1161+
Temperature high alarm flag: False
1162+
Temperature high warning flag: False
1163+
Temperature low warning flag: False
1164+
Temperature low alarm flag: False
1165+
Vcc high alarm flag: False
1166+
Vcc high warning flag: False
1167+
Vcc low warning flag: False
1168+
Vcc low alarm flag: False
1169+
Tx power high alarm flag on lane 1: False
1170+
Tx power high alarm flag on lane 2: False
1171+
Tx power high alarm flag on lane 3: False
1172+
Tx power high alarm flag on lane 4: False
1173+
Tx power high alarm flag on lane 5: False
1174+
Tx power high alarm flag on lane 6: False
1175+
Tx power high alarm flag on lane 7: False
1176+
Tx power high alarm flag on lane 8: False
1177+
Tx power high warning flag on lane 1: False
1178+
Tx power high warning flag on lane 2: False
1179+
Tx power high warning flag on lane 3: False
1180+
Tx power high warning flag on lane 4: False
1181+
Tx power high warning flag on lane 5: False
1182+
Tx power high warning flag on lane 6: False
1183+
Tx power high warning flag on lane 7: False
1184+
Tx power high warning flag on lane 8: False
1185+
Tx power low warning flag on lane 1: False
1186+
Tx power low warning flag on lane 2: False
1187+
Tx power low warning flag on lane 3: False
1188+
Tx power low warning flag on lane 4: False
1189+
Tx power low warning flag on lane 5: False
1190+
Tx power low warning flag on lane 6: False
1191+
Tx power low warning flag on lane 7: False
1192+
Tx power low warning flag on lane 8: False
1193+
Tx power low alarm flag on lane 1: False
1194+
Tx power low alarm flag on lane 2: False
1195+
Tx power low alarm flag on lane 3: False
1196+
Tx power low alarm flag on lane 4: False
1197+
Tx power low alarm flag on lane 5: False
1198+
Tx power low alarm flag on lane 6: False
1199+
Tx power low alarm flag on lane 7: False
1200+
Tx power low alarm flag on lane 8: False
1201+
Rx power high alarm flag on lane 1: False
1202+
Rx power high alarm flag on lane 2: False
1203+
Rx power high alarm flag on lane 3: False
1204+
Rx power high alarm flag on lane 4: False
1205+
Rx power high alarm flag on lane 5: False
1206+
Rx power high alarm flag on lane 6: False
1207+
Rx power high alarm flag on lane 7: False
1208+
Rx power high alarm flag on lane 8: False
1209+
Rx power high warning flag on lane 1: False
1210+
Rx power high warning flag on lane 2: False
1211+
Rx power high warning flag on lane 3: False
1212+
Rx power high warning flag on lane 4: False
1213+
Rx power high warning flag on lane 5: False
1214+
Rx power high warning flag on lane 6: False
1215+
Rx power high warning flag on lane 7: False
1216+
Rx power high warning flag on lane 8: False
1217+
Rx power low warning flag on lane 1: False
1218+
Rx power low warning flag on lane 2: False
1219+
Rx power low warning flag on lane 3: False
1220+
Rx power low warning flag on lane 4: False
1221+
Rx power low warning flag on lane 5: False
1222+
Rx power low warning flag on lane 6: False
1223+
Rx power low warning flag on lane 7: False
1224+
Rx power low warning flag on lane 8: False
1225+
Rx power low alarm flag on lane 1: False
1226+
Rx power low alarm flag on lane 2: False
1227+
Rx power low alarm flag on lane 3: False
1228+
Rx power low alarm flag on lane 4: False
1229+
Rx power low alarm flag on lane 5: False
1230+
Rx power low alarm flag on lane 6: False
1231+
Rx power low alarm flag on lane 7: False
1232+
Rx power low alarm flag on lane 8: False
1233+
Tx bias high alarm flag on lane 1: False
1234+
Tx bias high alarm flag on lane 2: False
1235+
Tx bias high alarm flag on lane 3: False
1236+
Tx bias high alarm flag on lane 4: False
1237+
Tx bias high alarm flag on lane 5: False
1238+
Tx bias high alarm flag on lane 6: False
1239+
Tx bias high alarm flag on lane 7: False
1240+
Tx bias high alarm flag on lane 8: False
1241+
Tx bias high warning flag on lane 1: False
1242+
Tx bias high warning flag on lane 2: False
1243+
Tx bias high warning flag on lane 3: False
1244+
Tx bias high warning flag on lane 4: False
1245+
Tx bias high warning flag on lane 5: False
1246+
Tx bias high warning flag on lane 6: False
1247+
Tx bias high warning flag on lane 7: False
1248+
Tx bias high warning flag on lane 8: False
1249+
Tx bias low warning flag on lane 1: False
1250+
Tx bias low warning flag on lane 2: False
1251+
Tx bias low warning flag on lane 3: False
1252+
Tx bias low warning flag on lane 4: False
1253+
Tx bias low warning flag on lane 5: False
1254+
Tx bias low warning flag on lane 6: False
1255+
Tx bias low warning flag on lane 7: False
1256+
Tx bias low warning flag on lane 8: False
1257+
Tx bias low alarm flag on lane 1: False
1258+
Tx bias low alarm flag on lane 2: False
1259+
Tx bias low alarm flag on lane 3: False
1260+
Tx bias low alarm flag on lane 4: False
1261+
Tx bias low alarm flag on lane 5: False
1262+
Tx bias low alarm flag on lane 6: False
1263+
Tx bias low alarm flag on lane 7: False
1264+
Tx bias low alarm flag on lane 8: False
1265+
Laser temperature high alarm flag: False
1266+
Laser temperature high warning flag: False
1267+
Laser temperature low warning flag: False
1268+
Laser temperature low alarm flag: False
1269+
Prefec ber high alarm flag: False
1270+
Prefec ber high warning flag: False
1271+
Prefec ber low warning flag: False
1272+
Prefec ber low alarm flag: False
1273+
Postfec ber high alarm flag: False
1274+
Postfec ber high warning flag: False
1275+
Postfec ber low warning flag: False
1276+
Postfec ber low alarm flag: False
1277+
Tuning in progress status: False
1278+
Laser unlocked status: False
1279+
Target output power out of range flag: False
1280+
Fine tuning out of range flag: False
1281+
Tuning not accepted flag: False
1282+
Invalid channel number flag: False
1283+
Tuning complete flag: False
1284+
Bias xi high alarm flag: False
1285+
Bias xi high warning flag: False
1286+
Bias xi low warning flag: False
1287+
Bias xi low alarm flag: False
1288+
Bias xq high alarm flag: False
1289+
Bias xq high warning flag: False
1290+
Bias xq low warning flag: False
1291+
Bias xq low alarm flag: False
1292+
Bias xp high alarm flag: False
1293+
Bias xp high warning flag: False
1294+
Bias xp low warning flag: False
1295+
Bias xp low alarm flag: False
1296+
Bias yi high alarm flag: False
1297+
Bias yi high warning flag: False
1298+
Bias yi low warning flag: False
1299+
Bias yi low alarm flag: False
1300+
Bias yq high alarm flag: False
1301+
Bias yq high warning flag: False
1302+
Bias yq low warning flag: False
1303+
Bias yq low alarm flag: False
1304+
Bias yp high alarm flag: False
1305+
Bias yp high warning flag: False
1306+
Bias yp low warning flag: False
1307+
Bias yp low alarm flag: False
1308+
CD short high alarm flag: False
1309+
CD short high warning flag: False
1310+
CD short low warning flag: False
1311+
CD short low alarm flag: False
1312+
CD long high alarm flag: False
1313+
CD long high warning flag: False
1314+
CD long low warning flag: False
1315+
CD long low alarm flag: False
1316+
DGD high alarm flag: False
1317+
DGD high warning flag: False
1318+
DGD low warning flag: False
1319+
DGD low alarm flag: False
1320+
PDL high alarm flag: False
1321+
PDL high warning flag: False
1322+
PDL low warning flag: False
1323+
PDL low alarm flag: False
1324+
OSNR high alarm flag: False
1325+
OSNR high warning flag: False
1326+
OSNR low warning flag: False
1327+
OSNR low alarm flag: False
1328+
ESNR high alarm flag: False
1329+
ESNR high warning flag: False
1330+
ESNR low warning flag: False
1331+
ESNR low alarm flag: False
1332+
CFO high alarm flag: False
1333+
CFO high warning flag: False
1334+
CFO low warning flag: False
1335+
CFO low alarm flag: False
1336+
Txcurrpower high alarm flag: False
1337+
Txcurrpower high warning flag: False
1338+
Txcurrpower low warning flag: False
1339+
Txcurrpower low alarm flag: False
1340+
Rxtotpower high alarm flag: False
1341+
Rxtotpower high warning flag: False
1342+
Rxtotpower low warning flag: False
1343+
Rxtotpower low alarm flag: False
1344+
```
1345+
10631346
Go Back To [Beginning of the document](#) or [Beginning of this section](#basic-show-commands)
10641347
10651348
## AAA & TACACS+

0 commit comments

Comments
 (0)