Send a series of pings to remote-host, useful for troubleshooting MTU/MSS issues. This applies toSLAX version 1.1and higher.
Automatically send a series of pings to the remote host. Subsequent pings send packets of increasing size so that transmission size issues are detected.
What it Does
This script sends a series of pings to a remote host, starting with a packet size of $min-size.The size of the packet is increased with each ping by specified $step increments until it reaches $max-size. The results are useful for troubleshooting issues related to maximum transmission unit (MTU) or maximum segment size (MSS).
Copy the op-pingsweep.slax script to the /var/db/scripts/op directory on the router.
Enable the script by adding the file statement and script filename to the [edit system scripts op] hierarchy level in the configuration. Only superusers can enable scripts in the configuration.
[edit system scriptsop]
user@host# set file op-pingsweep.slax
Commit the configuration:
user@host# commit and-quit
How to Run
To run this script, issue the commandop op-pingsweepfrom the CLI operational mode:
user@host>opop-pingsweep remote-host <hostname>
Note:The argumentremote-hostis mandatory. Optional arguments aremin-size,max-size, andstep. The default values for the optional arguments are:
min-size = 1400
max-size = 1600
step = 100
The output will appear similar to this:
user@cli> op pingsweep remote-host waffymin-size1400max-size1600step100