Skip to content
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

update xr controllers #123

Merged
merged 1 commit into from
Jul 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions templates/cisco_xr_show_controllers.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Value Filldown INTERFACE (\S+/\S+)
Value LANE (\d+)
Value Required TEMPERATURE_VALUE (([-\+]?\d+\.\d+|(N\/A)))
Value TEMPERATURE_VALUE (([-\+]?\d+\.\d+|(N\/A)))
Value TEMPERATURE_ALARM_HIGH (([-\+]?\d+\.\d+|(N\/A)))
Value TEMPERATURE_ALARM_LOW (([-\+]?\d+\.\d+|(N\/A)))
Value TEMPERATURE_WARN_HIGH (([-\+]?\d+\.\d+|(N\/A)))
Expand All @@ -11,8 +11,15 @@ Value VOLTAGE_ALARM_LOW (([-\+]?\d+\.\d+|(N\/A)))
Value VOLTAGE_WARN_HIGH (([-\+]?\d+\.\d+|(N\/A)))
Value VOLTAGE_WARN_LOW (([-\+]?\d+\.\d+|(N\/A)))
Value RX_VALUE (([-\+]?\d+\.\d+|(N\/A)))
Value RX_ALARM_HIGH (([-\+]?\d+\.\d+))
Value RX_ALARM_LOW (([-\+]?\d+\.\d+))
Value RX_WARN_HIGH (([-\+]?\d+\.\d+))
Value RX_WARN_LOW (([-\+]?\d+\.\d+))
Value TX_VALUE (([-\+]?\d+\.\d+|(N\/A)))

Value TX_ALARM_HIGH (([-\+]?\d+\.\d+))
Value TX_ALARM_LOW (([-\+]?\d+\.\d+))
Value TX_WARN_HIGH (([-\+]?\d+\.\d+))
Value TX_WARN_LOW (([-\+]?\d+\.\d+))

Start
^PHY\s+data\s+for\s+interface:\s+${INTERFACE}
Expand All @@ -26,5 +33,9 @@ Controllers
^\s+Lane -> Record Lanes

Lanes
^\s+Transmit Power:.+\(${TX_ALARM_HIGH} dBm\).+\(${TX_WARN_HIGH} dBm\).+\(${TX_WARN_LOW} dBm\).+\(${TX_ALARM_LOW} dBm\) -> Record
^\s+Receive Power:.+\(${RX_ALARM_HIGH} dBm\).+\(${RX_WARN_HIGH} dBm\).+\(${RX_WARN_LOW} dBm\).+\(${RX_ALARM_LOW} dBm\) -> Record
^\s+${LANE}\s+${TEMPERATURE_VALUE}.*\(${TX_VALUE}\s+\S+\).*\(${RX_VALUE}\s+\S+\) -> Record
^\S -> Start

EOF

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
---
parsed_sample:

- interface: FortyGigE0/1/1/0
lane: ''
rx_alarm_high: ''
rx_alarm_low: ''
rx_value: ''
rx_warn_high: ''
rx_warn_low: ''
temperature_alarm_high: '+75.000'
temperature_alarm_low: '-5.000'
temperature_value: '+26.535'
temperature_warn_high: '+70.000'
temperature_warn_low: '+0.000'
tx_alarm_high: ''
tx_alarm_low: ''
tx_value: ''
tx_warn_high: ''
tx_warn_low: ''
voltage_alarm_high: '3.630'
voltage_alarm_low: '2.970'
voltage_value: '3.254'
voltage_warn_high: '3.465'
voltage_warn_low: '3.100'
- interface: FortyGigE0/1/1/0
lane: ''
rx_alarm_high: ''
rx_alarm_low: ''
rx_value: ''
rx_warn_high: ''
rx_warn_low: ''
temperature_alarm_high: ''
temperature_alarm_low: ''
temperature_value: ''
temperature_warn_high: ''
temperature_warn_low: ''
tx_alarm_high: '1.99974'
tx_alarm_low: '-11.60522'
tx_value: ''
tx_warn_high: '-1.00015'
tx_warn_low: '-7.60200'
voltage_alarm_high: ''
voltage_alarm_low: ''
voltage_value: ''
voltage_warn_high: ''
voltage_warn_low: ''
- interface: FortyGigE0/1/1/0
lane: ''
rx_alarm_high: '3.39988'
rx_alarm_low: '-13.50665'
rx_value: ''
rx_warn_high: '2.40000'
rx_warn_low: '-9.50007'
temperature_alarm_high: ''
temperature_alarm_low: ''
temperature_value: ''
temperature_warn_high: ''
temperature_warn_low: ''
tx_alarm_high: ''
tx_alarm_low: ''
tx_value: ''
tx_warn_high: ''
tx_warn_low: ''
voltage_alarm_high: ''
voltage_alarm_low: ''
voltage_value: ''
voltage_warn_high: ''
voltage_warn_low: ''
- interface: FortyGigE0/1/1/0
lane: '0'
rx_alarm_high: ''
rx_alarm_low: ''
rx_value: '-2.33215'
rx_warn_high: ''
rx_warn_low: ''
temperature_alarm_high: ''
temperature_alarm_low: ''
temperature_value: N/A
temperature_warn_high: ''
temperature_warn_low: ''
tx_alarm_high: ''
tx_alarm_low: ''
tx_value: '-2.19179'
tx_warn_high: ''
tx_warn_low: ''
voltage_alarm_high: ''
voltage_alarm_low: ''
voltage_value: ''
voltage_warn_high: ''
voltage_warn_low: ''
- interface: FortyGigE0/1/1/0
lane: '1'
rx_alarm_high: ''
rx_alarm_low: ''
rx_value: '-2.87014'
rx_warn_high: ''
rx_warn_low: ''
temperature_alarm_high: ''
temperature_alarm_low: ''
temperature_value: N/A
temperature_warn_high: ''
temperature_warn_low: ''
tx_alarm_high: ''
tx_alarm_low: ''
tx_value: '-2.03426'
tx_warn_high: ''
tx_warn_low: ''
voltage_alarm_high: ''
voltage_alarm_low: ''
voltage_value: ''
voltage_warn_high: ''
voltage_warn_low: ''
- interface: FortyGigE0/1/1/0
lane: '2'
rx_alarm_high: ''
rx_alarm_low: ''
rx_value: '-1.58703'
rx_warn_high: ''
rx_warn_low: ''
temperature_alarm_high: ''
temperature_alarm_low: ''
temperature_value: N/A
temperature_warn_high: ''
temperature_warn_low: ''
tx_alarm_high: ''
tx_alarm_low: ''
tx_value: '-2.03703'
tx_warn_high: ''
tx_warn_low: ''
voltage_alarm_high: ''
voltage_alarm_low: ''
voltage_value: ''
voltage_warn_high: ''
voltage_warn_low: ''
- interface: FortyGigE0/1/1/0
lane: '3'
rx_alarm_high: ''
rx_alarm_low: ''
rx_value: '-2.27312'
rx_warn_high: ''
rx_warn_low: ''
temperature_alarm_high: ''
temperature_alarm_low: ''
temperature_value: N/A
temperature_warn_high: ''
temperature_warn_low: ''
tx_alarm_high: ''
tx_alarm_low: ''
tx_value: '-1.87755'
tx_warn_high: ''
tx_warn_low: ''
voltage_alarm_high: ''
voltage_alarm_low: ''
voltage_value: ''
voltage_warn_high: ''
voltage_warn_low: ''