Skip to content

Commit

Permalink
Fix Fortinet's 'execute ping' template
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Shpak authored and pskliarenko committed Aug 8, 2024
1 parent 16b4a97 commit b294866
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions ntc_templates/templates/fortinet_execute_ping.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Value MAX_RTT (\d+(?:\.\d+)?)
Start
^\s*PING.*\s*$$
^\s*${SENT_PACKET_SIZE}\s+bytes\s+from\s+${SENT_PACKET_ADDRESS}:\s+icmp_seq=${SENT_PACKET_ICMP_SEQ}\s+ttl=${SENT_PACKET_TTL}\s+time=${SENT_PACKET_TIME}\s+.*$$
^\s*sendto\s+failed\s*$$
^\s*---\s+${ADDRESS}\s+ping\s+statistics\s+---\s*$$
^\s*${TRANSMITTED}\s+packets\s+transmitted\,\s+${RECEIVED}\s+packets\s+received\,\s+${PACKET_LOSS}\%\s+packet\s+loss\s*$$
^\s*round-trip\s+min/avg/max\s+=\s+${MIN_RTT}/${AVG_RTT}/${MAX_RTT}\s+ms\s*$$
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PING 8.8.8.8 (8.8.8.8): 56 data bytes
sendto failed
sendto failed
sendto failed
sendto failed

--- 8.8.8.8 ping statistics ---
10 packets transmitted, 0 packets received, 100% packet loss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
parsed_sample:
- address: "8.8.8.8"
avg_rtt: ""
max_rtt: ""
min_rtt: ""
packet_loss: "100"
received: "0"
sent_packet_address: []
sent_packet_icmp_seq: []
sent_packet_size: []
sent_packet_time: []
sent_packet_ttl: []
transmitted: "10"

0 comments on commit b294866

Please sign in to comment.