Cisco Support Community
Community Member

undocumented extended ping

I was on a troubleshoot with a TAC engineer and they were doing an extended ping, something along the lines of:

"ping -s: -v -n:50" to specify source, verbose and number of pings instead of using the extended menu where it asks you for each of the options. I can't recall exactly what the format of the command is. Can anyone provide the syntax for this?


Re: undocumented extended ping

You can step through the options by entering ping:

Test-rc3745# ping

Protocol [ip]:

Target IP address:

Repeat count [5]:

Datagram size [100]:

Timeout in seconds [2]:

Extended commands [n]: y

Source address or interface:

Type of service [0]:

Set DF bit in IP header? [no]:

Validate reply data? [no]:

Data pattern [0xABCD]:

Loose, Strict, Record, Timestamp, Verbose[none]:

Sweep range of sizes [n]:

Or as a single command to ping from interface and repeat 50 times:

ping ip source repeat 50

A question mark after each argument will show you the options to build the command:

Test-rc3745# ping ip ?

data specify data pattern

df-bit enable do not fragment bit in IP header

repeat specify repeat count

size specify datagram size

source specify source address or name

timeout specify timeout interval

validate validate reply data

Please rate helpful posts.

Community Member

Re: undocumented extended ping

Thanks David, that one line ping is exactly what I was looking for.


Re: undocumented extended ping

If it was a catos box extended pings be done along the lines of ping -s

options .

CreatePlease to create content