-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: Procurve show interfaces (#796)
- Loading branch information
Showing
4 changed files
with
219 additions
and
0 deletions.
There are no files selected for viewing
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,19 @@ | ||
Value PORT (\S+) | ||
Value TOTAL_BYTES (\S+) | ||
Value TOTAL_FRAMES (\S+) | ||
Value ERRORS_RX (\S+) | ||
Value DROPS_TX (\S+) | ||
Value FLOW_CTRL (off|on) | ||
Value BCAST_LIMIT (\d+) | ||
|
||
Start | ||
^\s+Status.*Counters\s* | ||
^\s*$$ | ||
^\s+Flow\s+Bcast\s* | ||
^\s+Port.*Limit\s* | ||
^\s+-+\s+-+\s+-+\s+-+\s+-+\s+-+\s-+\s*$$ -> ShowInterfaces | ||
|
||
ShowInterfaces | ||
^\s+${PORT}\s+${TOTAL_BYTES}\s+${TOTAL_FRAMES}\s+${ERRORS_RX}\s+${DROPS_TX}\s+${FLOW_CTRL}\s+${BCAST_LIMIT}\s*$$ -> 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
29 changes: 29 additions & 0 deletions
29
tests/hp_procurve/show_interfaces/hp_procurve_show_interfaces.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,29 @@ | ||
Status and Counters - Port Counters | ||
|
||
Flow Bcast | ||
Port Total Bytes Total Frames Errors Rx Drops Tx Ctrl Limit | ||
------------ -------------- -------------- --------- --------- ---- ----- | ||
1 98,581 869 0 0 on 0 | ||
2 0 0 0 0 off 0 | ||
3 0 0 0 0 off 0 | ||
4 0 0 67,00 0 off 0 | ||
5 0 0 0 0 off 0 | ||
6 0 0 0 0 off 0 | ||
7 0 0 0 0 off 0 | ||
8 0 0 0 0 off 0 | ||
9 0 0 0 0 off 0 | ||
10 0 0 0 0 on 50 | ||
11 0 0 0 0 off 0 | ||
12 0 0 0 0 off 0 | ||
13 0 0 0 0 off 0 | ||
14 0 0 0 0 off 0 | ||
15 0 0 0 0 off 0 | ||
16 0 0 0 0 off 0 | ||
17 0 0 0 0 off 0 | ||
18 0 0 0 0 off 0 | ||
19 0 0 0 0 off 0 | ||
20 0 0 0 0 off 0 | ||
21 0 0 0 0 off 0 | ||
22 0 0 0 0 off 0 | ||
23 0 0 0 0 off 0 | ||
24 0 0 0 0 off 0 |
170 changes: 170 additions & 0 deletions
170
tests/hp_procurve/show_interfaces/hp_procurve_show_interfaces.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,170 @@ | ||
--- | ||
parsed_sample: | ||
- port: "1" | ||
total_bytes: "98,581" | ||
total_frames: "869" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "on" | ||
bcast_limit: "0" | ||
- port: "2" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "3" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "4" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "67,00" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "5" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "6" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "7" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "8" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "9" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "10" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "on" | ||
bcast_limit: "50" | ||
- port: "11" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "12" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "13" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "14" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "15" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "16" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "17" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "18" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "19" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "20" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "21" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "22" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "23" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" | ||
- port: "24" | ||
total_bytes: "0" | ||
total_frames: "0" | ||
errors_rx: "0" | ||
drops_tx: "0" | ||
flow_ctrl: "off" | ||
bcast_limit: "0" |