Script to display the time stamp with the ping result

This article provides information about a script that can be used to display the time stamp, along with the ping result.

At times, for troubleshooting purposes, it is useful to keep track of the time stamps of ICMP packets. It has other options, such as writing output to a log file. A quick reference guide is coded into the script.

Usage of script:

Name:

Synopsis:

Options:

  • -d: debug mode
  • -l <logical_system>: binds the logical system
  • -p <packet size>: packet size in bytes
  • -s <source ip>: binds the source IP address
  • -t: displays only the actual Junos command and debug message
  • -w <file>: writes the output to a file.

Sample output:

Actual Junos command:

Logging:

 

About the author

Prasanna

Leave a Comment