-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Template addition on Huawei SmartAX: display ont optical-info 0 all (#…
- Loading branch information
1 parent
6fdf4c6
commit be5041c
Showing
4 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
ntc_templates/templates/huawei_smartax_display_ont_optical-info_0_all.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Value Key ONT_ID (\d+) | ||
Value RX_POWER (\S+) | ||
Value TX_POWER (\S+) | ||
Value OLT_RX_ONT (\S+) | ||
Value TEMPERATURE (\d+) | ||
Value VOLTAGE (\S+) | ||
Value CURRENT (\d+) | ||
Value DISTANCE (\d+) | ||
|
||
Start | ||
^\s+ONT\s+Rx\s*power\s+Tx\s*power\s+OLT\s*Rx\s*ONT\s+Temperature\s+Voltage\s+Current\s+Distance | ||
^\s+ID\s+\(dBm\)\s+\(dBm\)\s+power\(dBm\)\s+\(C\)\s+\(V\)\s+\(mA\)\s+\(m\) | ||
^\s+${ONT_ID}\s+${RX_POWER}\s+${TX_POWER}\s+${OLT_RX_ONT}\s+${TEMPERATURE}\s+${VOLTAGE}\s+${CURRENT}\s+${DISTANCE} -> Record | ||
^\s+- | ||
^. -> Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
..._smartax/display_ont_optical-info_0_all/huawei_smartax_display_ont_optical-info_0_all.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
----------------------------------------------------------------------------- | ||
ONT Rx power Tx power OLT Rx ONT Temperature Voltage Current Distance | ||
ID (dBm) (dBm) power(dBm) (C) (V) (mA) (m) | ||
----------------------------------------------------------------------------- | ||
0 -24.68 3.68 -22.68 38 3.200 6 171 | ||
1 -24.68 3.86 -23.02 31 3.220 8 170 | ||
2 -25.68 3.62 -23.77 32 3.200 8 170 | ||
3 -25.37 3.91 -22.45 31 3.180 7 170 | ||
4 -25.37 3.76 -22.22 30 3.200 7 170 | ||
5 -26.57 3.96 -23.88 38 3.220 8 170 | ||
6 -24.68 3.53 -23.47 36 3.260 8 170 | ||
7 -25.37 3.71 -23.88 38 3.220 9 170 | ||
8 -25.37 3.66 -22.93 30 3.180 5 170 | ||
9 -24.43 3.72 -23.77 38 3.200 8 170 | ||
----------------------------------------------------------------------------- |
82 changes: 82 additions & 0 deletions
82
..._smartax/display_ont_optical-info_0_all/huawei_smartax_display_ont_optical-info_0_all.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
parsed_sample: | ||
- current: "6" | ||
distance: "171" | ||
olt_rx_ont: "-22.68" | ||
ont_id: "0" | ||
rx_power: "-24.68" | ||
temperature: "38" | ||
tx_power: "3.68" | ||
voltage: "3.200" | ||
- current: "8" | ||
distance: "170" | ||
olt_rx_ont: "-23.02" | ||
ont_id: "1" | ||
rx_power: "-24.68" | ||
temperature: "31" | ||
tx_power: "3.86" | ||
voltage: "3.220" | ||
- current: "8" | ||
distance: "170" | ||
olt_rx_ont: "-23.77" | ||
ont_id: "2" | ||
rx_power: "-25.68" | ||
temperature: "32" | ||
tx_power: "3.62" | ||
voltage: "3.200" | ||
- current: "7" | ||
distance: "170" | ||
olt_rx_ont: "-22.45" | ||
ont_id: "3" | ||
rx_power: "-25.37" | ||
temperature: "31" | ||
tx_power: "3.91" | ||
voltage: "3.180" | ||
- current: "7" | ||
distance: "170" | ||
olt_rx_ont: "-22.22" | ||
ont_id: "4" | ||
rx_power: "-25.37" | ||
temperature: "30" | ||
tx_power: "3.76" | ||
voltage: "3.200" | ||
- current: "8" | ||
distance: "170" | ||
olt_rx_ont: "-23.88" | ||
ont_id: "5" | ||
rx_power: "-26.57" | ||
temperature: "38" | ||
tx_power: "3.96" | ||
voltage: "3.220" | ||
- current: "8" | ||
distance: "170" | ||
olt_rx_ont: "-23.47" | ||
ont_id: "6" | ||
rx_power: "-24.68" | ||
temperature: "36" | ||
tx_power: "3.53" | ||
voltage: "3.260" | ||
- current: "9" | ||
distance: "170" | ||
olt_rx_ont: "-23.88" | ||
ont_id: "7" | ||
rx_power: "-25.37" | ||
temperature: "38" | ||
tx_power: "3.71" | ||
voltage: "3.220" | ||
- current: "5" | ||
distance: "170" | ||
olt_rx_ont: "-22.93" | ||
ont_id: "8" | ||
rx_power: "-25.37" | ||
temperature: "30" | ||
tx_power: "3.66" | ||
voltage: "3.180" | ||
- current: "8" | ||
distance: "170" | ||
olt_rx_ont: "-23.77" | ||
ont_id: "9" | ||
rx_power: "-24.43" | ||
temperature: "38" | ||
tx_power: "3.72" | ||
voltage: "3.200" |