Skip to content

Cisco IOS-XE additional transceiver data (CURRENT) #2129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 21, 2025
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
Value INTERFACE (\w+\d+\/\S+)
Value TEMPERATURE (\d+.\d+)
Value VOLTAGE (\d+.\d+)
Value CURRENT (\d+.\d+)
Value TX_PWR (\S+)
Value RX_PWR (\S+)

Start
^${INTERFACE}\s+${TEMPERATURE}\s+${VOLTAGE}\s+${TX_PWR}\s+${RX_PWR}\s+ -> Record
^${INTERFACE}\s+${TEMPERATURE}\s+${VOLTAGE}\s+${CURRENT}?\s+${TX_PWR}\s+${RX_PWR}\s* -> Record
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
^Time\s+source\s+is
^(\s+Optical){2}
^\s+Temperature\s+Voltage(\s+Current)?(\s+[TR]x\s+Power){2}
^Port\s+\(Celsius\)\s+\(Volts\)(\s+\(mA\))?\s+(\(dBm\)\s*){2}
^(If\s+device|\+\+|NA|mA|---+)
^No\s+transceiver\s+present
^Diagnostic\s+Monitoring\s+is\s+not\s+implemented\.
^. -> Error
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
---
parsed_sample:
- interface: "Te1/49"
- current: ""
interface: "Te1/49"
rx_pwr: "-3.0"
temperature: "23.1"
tx_pwr: "-2.2"
voltage: "3.29"
- interface: "Te1/50"
- current: ""
interface: "Te1/50"
rx_pwr: "-2.6"
temperature: "23.4"
tx_pwr: "-2.2"
voltage: "3.31"
- interface: "Te1/51"
- current: ""
interface: "Te1/51"
rx_pwr: "-2.1"
temperature: "21.5"
tx_pwr: "-2.2"
voltage: "3.29"
- interface: "Te1/52"
- current: ""
interface: "Te1/52"
rx_pwr: "-2.8"
temperature: "23.5"
tx_pwr: "-2.4"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
If device is externally calibrated, only calibrated values are printed.
++ : high alarm, + : high warning, - : low warning, -- : low alarm.
NA or N/A: not applicable, Tx: transmit, Rx: receive.
mA: milliamperes, dBm: decibels (milliwatts).

Optical Optical
Temperature Voltage Current Tx Power Rx Power
Port (Celsius) (Volts) (mA) (dBm) (dBm)
--------- ----------- ------- -------- -------- --------
Te1/1/1 33.0 3.32 17.8 0.4 -1.2
Te1/1/2 40.7 3.33 21.7 0.9 -2.0
Te1/1/3 33.9 3.30 18.1 -0.9 -1.2
Te2/1/1 43.8 3.36 20.6 0.1 -2.0
Te2/1/2 27.4 3.22 30.2 -2.5 -1.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
parsed_sample:
- current: "17.8"
interface: "Te1/1/1"
rx_pwr: "-1.2"
temperature: "33.0"
tx_pwr: "0.4"
voltage: "3.32"
- current: "21.7"
interface: "Te1/1/2"
rx_pwr: "-2.0"
temperature: "40.7"
tx_pwr: "0.9"
voltage: "3.33"
- current: "18.1"
interface: "Te1/1/3"
rx_pwr: "-1.2"
temperature: "33.9"
tx_pwr: "-0.9"
voltage: "3.30"
- current: "20.6"
interface: "Te2/1/1"
rx_pwr: "-2.0"
temperature: "43.8"
tx_pwr: "0.1"
voltage: "3.36"
- current: "30.2"
interface: "Te2/1/2"
rx_pwr: "-1.2"
temperature: "27.4"
tx_pwr: "-2.5"
voltage: "3.22"
Loading