-
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 Templates: cisco_wlc_ssh_show_port_summary/stats_port_summary (#854)
- Loading branch information
Showing
7 changed files
with
212 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,23 @@ | ||
Value PORT (\S+) | ||
Value TYPE (\S+) | ||
Value STP_STATUS (\S+) | ||
Value ADMIN_MODE (\S+) | ||
Value PHYSICAL_MODE (\w+\s?\w+) | ||
Value PHYSICAL_STATUS (\w+\s?\w+) | ||
Value LINK_STATUS (\S+) | ||
Value LINK_TRAP (\S+) | ||
Value POE (\S+(\s+\S+\s+\S+)?) | ||
|
||
Start | ||
^\s+STP\s+Admin\s+(Physical\s+){2}\s*(Link\s*){2}\s*$$ | ||
^\s*Pr\s+Type\s+Stat\s+(Mode\s+){2}\s*(Status\s+){2}\s*Trap\s+POE\s*$$ | ||
# | ||
# Port Status and Modes (after the dashed line) | ||
^\s*[-\s]+$$ -> Port_Status | ||
^\s*$$ | ||
^. -> Error | ||
|
||
Port_Status | ||
^\s*${PORT}\s+${TYPE}\s+${STP_STATUS}\s+${ADMIN_MODE}\s+${PHYSICAL_MODE}\s+${PHYSICAL_STATUS}\s+${LINK_STATUS}\s+${LINK_TRAP}\s+${POE}\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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Value Required PORT (\d) | ||
Value LINK_STATUS (\S+) | ||
Value PACKETS_IN (\d+) | ||
Value PACKETS_OUT (\d+) | ||
Value BROADCAST_IN (\d+) | ||
Value ERRORS_IN (\d+) | ||
Value ERRORS_OUT (\d+) | ||
Value COLLISIONS (\d+) | ||
Value Fillup TOTAL_PACKETS_IN (\d+) | ||
Value Fillup TOTAL_PACKETS_OUT (\d+) | ||
Value Fillup TOTAL_BROADCAST_IN (\d+) | ||
Value Fillup TOTAL_ERRORS_IN (\d+) | ||
Value Fillup TOTAL_ERRORS_OUT (\d+) | ||
Value Fillup TOTAL_COLLISIONS (\d+) | ||
|
||
Start | ||
^\s+Link\s+(Pkts In\s+){2}\s*Pkts Out\s*$$ | ||
^\s*Pr\s+Status\s+(Pkts (In|Out)\s+){2}\s*Bcast\s+(?:Errors\s+){2}\s*Collisions\s*$$ -> Port_Stats | ||
# | ||
# Port Statistics (after the dashed line) | ||
#^\s*[-\s]+$$ -> Port_Stats | ||
^\s*$$ | ||
^. -> Error | ||
|
||
Port_Stats | ||
^-+ | ||
^\s*${PORT}\s+${LINK_STATUS}\s+${PACKETS_IN}\s+${PACKETS_OUT}\s+${BROADCAST_IN}\s+${ERRORS_IN}\s+${ERRORS_OUT}\s+${COLLISIONS}\s*$$ -> Record | ||
^\s*Total\s+${TOTAL_PACKETS_IN}\s+${TOTAL_PACKETS_OUT}\s+${TOTAL_BROADCAST_IN}\s+${TOTAL_ERRORS_IN}\s+${TOTAL_ERRORS_OUT}\s+${TOTAL_COLLISIONS}\s*$$ | ||
^\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
11 changes: 11 additions & 0 deletions
11
tests/cisco_wlc_ssh/show_port_summary/cisco_wlc_ssh_show_port_summary.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,11 @@ | ||
|
||
STP Admin Physical Physical Link Link | ||
Pr Type Stat Mode Mode Status Status Trap POE | ||
-- ------- ---- ------- ---------- ---------- ------ ------- --------- | ||
1 Normal Forw Enable Auto 1000 Full Up Enable N/A | ||
2 Normal Disa Disable Auto Auto Down Enable N/A | ||
3 Normal Disa Disable Auto Auto Down Enable Disable | ||
4 Normal Forw Enable Auto 1000 Full Up Enable Enable (Power Off) | ||
5 Normal Disa Enable Auto Auto Down Enable N/A | ||
RP Normal Forw Enable Auto Auto Up Enable N/A | ||
SP Normal Disa Enable Auto Auto Down Enable N/A |
65 changes: 65 additions & 0 deletions
65
tests/cisco_wlc_ssh/show_port_summary/cisco_wlc_ssh_show_port_summary.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,65 @@ | ||
--- | ||
parsed_sample: | ||
- port: "1" | ||
type: "Normal" | ||
stp_status: "Forw" | ||
admin_mode: "Enable" | ||
physical_mode: "Auto" | ||
physical_status: "1000 Full" | ||
link_status: "Up" | ||
link_trap: "Enable" | ||
poe: "N/A" | ||
- port: "2" | ||
type: "Normal" | ||
stp_status: "Disa" | ||
admin_mode: "Disable" | ||
physical_mode: "Auto" | ||
physical_status: "Auto" | ||
link_status: "Down" | ||
link_trap: "Enable" | ||
poe: "N/A" | ||
- port: "3" | ||
type: "Normal" | ||
stp_status: "Disa" | ||
admin_mode: "Disable" | ||
physical_mode: "Auto" | ||
physical_status: "Auto" | ||
link_status: "Down" | ||
link_trap: "Enable" | ||
poe: "Disable" | ||
- port: "4" | ||
type: "Normal" | ||
stp_status: "Forw" | ||
admin_mode: "Enable" | ||
physical_mode: "Auto" | ||
physical_status: "1000 Full" | ||
link_status: "Up" | ||
link_trap: "Enable" | ||
poe: "Enable (Power Off)" | ||
- port: "5" | ||
type: "Normal" | ||
stp_status: "Disa" | ||
admin_mode: "Enable" | ||
physical_mode: "Auto" | ||
physical_status: "Auto" | ||
link_status: "Down" | ||
link_trap: "Enable" | ||
poe: "N/A" | ||
- port: "RP" | ||
type: "Normal" | ||
stp_status: "Forw" | ||
admin_mode: "Enable" | ||
physical_mode: "Auto" | ||
physical_status: "Auto" | ||
link_status: "Up" | ||
link_trap: "Enable" | ||
poe: "N/A" | ||
- port: "SP" | ||
type: "Normal" | ||
stp_status: "Disa" | ||
admin_mode: "Enable" | ||
physical_mode: "Auto" | ||
physical_status: "Auto" | ||
link_status: "Down" | ||
link_trap: "Enable" | ||
poe: "N/A" |
9 changes: 9 additions & 0 deletions
9
tests/cisco_wlc_ssh/show_stats_port_summary/cisco_wlc_ssh_show_stats_port_summary.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,9 @@ | ||
Link Pkts In Pkts In Pkts Out | ||
Pr Status Pkts In Pkts Out Bcast Errors Errors Collisions | ||
-- ------ ------- ------- ------- ------- ------- ---------- | ||
1 Up 2364509905 2472568024 66473417 0 0 0 | ||
2 Down 0 0 0 0 0 0 | ||
3 Down 0 0 0 0 0 0 | ||
4 Up 335582045 124686415 3515026 0 0 0 | ||
5 Down 0 0 0 0 0 0 | ||
Total 2700091950 2597254439 69988443 0 0 0 |
72 changes: 72 additions & 0 deletions
72
tests/cisco_wlc_ssh/show_stats_port_summary/cisco_wlc_ssh_show_stats_port_summary.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,72 @@ | ||
--- | ||
parsed_sample: | ||
- port: "1" | ||
link_status: "Up" | ||
packets_in: "2364509905" | ||
packets_out: "2472568024" | ||
broadcast_in: "66473417" | ||
errors_in: "0" | ||
errors_out: "0" | ||
collisions: "0" | ||
total_packets_in: "2700091950" | ||
total_packets_out: "2597254439" | ||
total_broadcast_in: "69988443" | ||
total_errors_in: "0" | ||
total_errors_out: "0" | ||
total_collisions: "0" | ||
- port: "2" | ||
link_status: "Down" | ||
packets_in: "0" | ||
packets_out: "0" | ||
broadcast_in: "0" | ||
errors_in: "0" | ||
errors_out: "0" | ||
collisions: "0" | ||
total_packets_in: "2700091950" | ||
total_packets_out: "2597254439" | ||
total_broadcast_in: "69988443" | ||
total_errors_in: "0" | ||
total_errors_out: "0" | ||
total_collisions: "0" | ||
- port: "3" | ||
link_status: "Down" | ||
packets_in: "0" | ||
packets_out: "0" | ||
broadcast_in: "0" | ||
errors_in: "0" | ||
errors_out: "0" | ||
collisions: "0" | ||
total_packets_in: "2700091950" | ||
total_packets_out: "2597254439" | ||
total_broadcast_in: "69988443" | ||
total_errors_in: "0" | ||
total_errors_out: "0" | ||
total_collisions: "0" | ||
- port: "4" | ||
link_status: "Up" | ||
packets_in: "335582045" | ||
packets_out: "124686415" | ||
broadcast_in: "3515026" | ||
errors_in: "0" | ||
errors_out: "0" | ||
collisions: "0" | ||
total_packets_in: "2700091950" | ||
total_packets_out: "2597254439" | ||
total_broadcast_in: "69988443" | ||
total_errors_in: "0" | ||
total_errors_out: "0" | ||
total_collisions: "0" | ||
- port: "5" | ||
link_status: "Down" | ||
packets_in: "0" | ||
packets_out: "0" | ||
broadcast_in: "0" | ||
errors_in: "0" | ||
errors_out: "0" | ||
collisions: "0" | ||
total_packets_in: "2700091950" | ||
total_packets_out: "2597254439" | ||
total_broadcast_in: "69988443" | ||
total_errors_in: "0" | ||
total_errors_out: "0" | ||
total_collisions: "0" |