forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add template for cisco ios ping (networktocode#1282)
- Loading branch information
1 parent
8314a38
commit c0041b2
Showing
21 changed files
with
199 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
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 Required SENT_QTY (\d+) | ||
Value Required SENT_TYPE (.*) | ||
Value Required DESTINATION (\S+) | ||
Value Required TIMEOUT (\d+) | ||
Value SOURCE (\S+) | ||
Value List RESPONSE_STREAM ([\.\!]+) | ||
Value Required SUCCESS_PCT (\d+) | ||
Value Required SUCCESS_QTY (\d+) | ||
Value RTT_MIN (\d+) | ||
Value RTT_AVG (\d+) | ||
Value RTT_MAX (\d+) | ||
|
||
|
||
Start | ||
^Type\s+escape\s+sequence\s+to\s+abort. | ||
^Sending\s+${SENT_QTY},\s+${SENT_TYPE}\s+to\s+${DESTINATION},\s+timeout\s+is\s+${TIMEOUT}\s+seconds: | ||
^Packet\s+sent\s+with\s+a\s+source\s+address\s+of\s+${SOURCE} | ||
^Packet\s+sent\s+with\s+the\s+DF\s+bit\s+set | ||
^${RESPONSE_STREAM} | ||
^Success\s+rate\s+is\s+${SUCCESS_PCT}\s+percent\s+\(${SUCCESS_QTY}\/\d+\)(?:,\s+round-trip\s+min/avg/max\s+\=\s+)?(?:${RTT_MIN}/${RTT_AVG}/${RTT_MAX})?(?:\sms)? | ||
^\s*$$ | ||
# Error out if raw data does not match any above rules. | ||
^.* -> Error "Could not parse line:" |
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
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,4 @@ | ||
Type escape sequence to abort. | ||
Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: | ||
!!!!! | ||
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/10 ms |
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,14 @@ | ||
--- | ||
parsed_sample: | ||
- sent_qty: "5" | ||
sent_type: "100-byte ICMP Echos" | ||
destination: "192.168.0.1" | ||
timeout: "2" | ||
source: "" | ||
response_stream: | ||
- "!!!!!" | ||
success_pct: "100" | ||
success_qty: "5" | ||
rtt_min: "1" | ||
rtt_avg: "2" | ||
rtt_max: "10" |
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,6 @@ | ||
Type escape sequence to abort. | ||
Sending 200, 1500-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
Success rate is 100 percent (200/200), round-trip min/avg/max = 1/7/17 ms |
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,16 @@ | ||
--- | ||
parsed_sample: | ||
- sent_qty: "200" | ||
sent_type: "1500-byte ICMP Echos" | ||
destination: "192.168.0.1" | ||
timeout: "2" | ||
source: "" | ||
response_stream: | ||
- "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||
- "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||
- "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||
success_pct: "100" | ||
success_qty: "200" | ||
rtt_min: "1" | ||
rtt_avg: "7" | ||
rtt_max: "17" |
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,5 @@ | ||
Type escape sequence to abort. | ||
Sending 4, 1500-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: | ||
Packet sent with the DF bit set | ||
!!!! | ||
Success rate is 100 percent (4/4), round-trip min/avg/max = 1/8/17 ms |
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,14 @@ | ||
--- | ||
parsed_sample: | ||
- sent_qty: "4" | ||
sent_type: "1500-byte ICMP Echos" | ||
destination: "192.168.0.1" | ||
timeout: "2" | ||
source: "" | ||
response_stream: | ||
- "!!!!" | ||
success_pct: "100" | ||
success_qty: "4" | ||
rtt_min: "1" | ||
rtt_avg: "8" | ||
rtt_max: "17" |
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,5 @@ | ||
Type escape sequence to abort. | ||
Sending 4, 1500-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: | ||
Packet sent with the DF bit set | ||
.... | ||
Success rate is 0 percent (0/4), round-trip min/avg/max = 1/8/17 ms |
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,14 @@ | ||
--- | ||
parsed_sample: | ||
- sent_qty: "4" | ||
sent_type: "1500-byte ICMP Echos" | ||
destination: "192.168.0.1" | ||
timeout: "2" | ||
source: "" | ||
response_stream: | ||
- "...." | ||
success_pct: "0" | ||
success_qty: "0" | ||
rtt_min: "1" | ||
rtt_avg: "8" | ||
rtt_max: "17" |
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,4 @@ | ||
Type escape sequence to abort. | ||
Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: | ||
..... | ||
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/10 ms |
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,14 @@ | ||
--- | ||
parsed_sample: | ||
- sent_qty: "5" | ||
sent_type: "100-byte ICMP Echos" | ||
destination: "192.168.0.1" | ||
timeout: "2" | ||
source: "" | ||
response_stream: | ||
- "....." | ||
success_pct: "0" | ||
success_qty: "0" | ||
rtt_min: "1" | ||
rtt_avg: "2" | ||
rtt_max: "10" |
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,5 @@ | ||
Type escape sequence to abort. | ||
Sending 4, 1500-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: | ||
Packet sent with a source address of 192.168.0.10 | ||
!!!! | ||
Success rate is 100 percent (4/4), round-trip min/avg/max = 1/8/17 ms |
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,14 @@ | ||
--- | ||
parsed_sample: | ||
- sent_qty: "4" | ||
sent_type: "1500-byte ICMP Echos" | ||
destination: "192.168.0.1" | ||
timeout: "2" | ||
source: "192.168.0.10" | ||
response_stream: | ||
- "!!!!" | ||
success_pct: "100" | ||
success_qty: "4" | ||
rtt_min: "1" | ||
rtt_avg: "8" | ||
rtt_max: "17" |
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,6 @@ | ||
Type escape sequence to abort. | ||
Sending 4, 1500-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: | ||
Packet sent with a source address of 192.168.0.10 | ||
Packet sent with the DF bit set | ||
!!!! | ||
Success rate is 100 percent (4/4), round-trip min/avg/max = 1/8/17 ms |
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,14 @@ | ||
--- | ||
parsed_sample: | ||
- sent_qty: "4" | ||
sent_type: "1500-byte ICMP Echos" | ||
destination: "192.168.0.1" | ||
timeout: "2" | ||
source: "192.168.0.10" | ||
response_stream: | ||
- "!!!!" | ||
success_pct: "100" | ||
success_qty: "4" | ||
rtt_min: "1" | ||
rtt_avg: "8" | ||
rtt_max: "17" |
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,6 @@ | ||
Type escape sequence to abort. | ||
Sending 4, 1500-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: | ||
Packet sent with a source address of 192.168.0.10 | ||
Packet sent with the DF bit set | ||
.... | ||
Success rate is 0 percent (0/4), round-trip min/avg/max = 1/8/17 ms |
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,14 @@ | ||
--- | ||
parsed_sample: | ||
- sent_qty: "4" | ||
sent_type: "1500-byte ICMP Echos" | ||
destination: "192.168.0.1" | ||
timeout: "2" | ||
source: "192.168.0.10" | ||
response_stream: | ||
- "...." | ||
success_pct: "0" | ||
success_qty: "0" | ||
rtt_min: "1" | ||
rtt_avg: "8" | ||
rtt_max: "17" |
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,5 @@ | ||
Type escape sequence to abort. | ||
Sending 4, 1500-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: | ||
Packet sent with a source address of 192.168.0.10 | ||
.... | ||
Success rate is 0 percent (0/4), round-trip min/avg/max = 1/8/17 ms |
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,14 @@ | ||
--- | ||
parsed_sample: | ||
- sent_qty: "4" | ||
sent_type: "1500-byte ICMP Echos" | ||
destination: "192.168.0.1" | ||
timeout: "2" | ||
source: "192.168.0.10" | ||
response_stream: | ||
- "...." | ||
success_pct: "0" | ||
success_qty: "0" | ||
rtt_min: "1" | ||
rtt_avg: "8" | ||
rtt_max: "17" |