Skip to content

Commit 1ed5b5a

Browse files
Add transceiver status CLI to show output from TRANSCEIVER_STATUS table (cherry-pick to 202205) (#2950)
* Add transceiver status CLI to show output from TRANSCEIVER_STATUS table (#2772) * Correct Command-Reference.md * Use double quote
1 parent ba32772 commit 1ed5b5a

File tree

7 files changed

+1318
-5
lines changed

7 files changed

+1318
-5
lines changed

doc/Command-Reference.md

+284-1
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ This command displays information for all the interfaces for the transceiver req
933933

934934
- Usage:
935935
```
936-
show interfaces transceiver (eeprom [-d|--dom] | info | lpmode | presence | error-status [-hw|--fetch-from-hardware] | pm) [<interface_name>]
936+
show interfaces transceiver (eeprom [-d|--dom] | info | lpmode | presence | error-status [-hw|--fetch-from-hardware] | pm | status) [<interface_name>]
937937
```
938938

939939
- Example (Decode and display information stored on the EEPROM of SFP transceiver connected to Ethernet0):
@@ -1064,6 +1064,289 @@ This command displays information for all the interfaces for the transceiver req
10641064
10651065
```
10661066

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

10691352
## AAA & TACACS+

0 commit comments

Comments
 (0)