APING — Audibly ping a network host.

Syntax:
APING /4 /6 /A /C /D /E:n /F /G:n /I:ttl /L:size /N:n /O:n /Q /T /W:timeout /X:n /Y:volume hostname…

/4use IPv4
/6use IPv6
/Aresolve numeric addresses
/Cdisplay line numbers
/Ddisable highlight
/E:nspecify error drum
/Fset the Don’t Fragment flag
/G:nspecify instrument number
/I:ttlspecify the Time-To-Live value
/L:sizespecify the packet size in bytes(64)
/N:nnumber of ping requests to send(4)
/O:nspecify instrument octave
/Qquietly
/Tcontinue until Control-C is pressed
/W:timeoutset the timeout value in milliseconds(3000)
/X:nspecify op error drum
/Y:volumeset the master sound volume; volume is 0 to 100
hostname…computer name or IP address

Options may begin with either a forward slash or a dash. The hostname is required. You can specify more than one hostname; hosts will be pinged in the order given.

Hostname may be #ROUTER, #DNS, #DHCP, or #WINS (case is not significant). #ROUTER is the IPv4 address of the router; #DNS is the IPv4 address of the first DNS server; #DHCP is the IPv4 address of the first DHCP server; #WINS is the IPv4 address of the first WINS server. Any of the above may optionally be followed by a digit 1 to 9, e.g. #DNS2 for the second known DNS server. (These macros do not support IPv6.) You can also define your own macros.

/T pings the host until you press Control-C. (/N:0 does the same.) If you press Control-Break, you’ll get a brief report on the number of pings sent and received so far, and the program will continue pinging.

If you specify both /4 and /6, the one given first will be tried first, and then the other one if the first fails. If you don’t specify either, the default is /4 /6 — try IPv4 first, then IPv6.


For compatibility with ping.exe, options which take arguments may be split into two options, e.g. /N 10 instead of /N:10. I dislike this syntax, but it’s there if you want it.


/G:n specifies the instrument to play when a packet is returned from the remote computer. n is a General MIDI instrument number, 1 to 128. The default is 115, steel drums.

/O:n sets the octave for successful-ping notes. The range is 0 to 9; not all instruments will necessarily support the entire range. The default is 5.

/E:n specifies the percussion instrument to play when a packet is lost. n is a General MIDI percussion key, 35 to 81; or 0 to prevent APing from making any sound when a packet is lost. The default is 66, the low timbale.

/X:n specifies the percussion instrument to play for operational errors which prevent APing from even trying to ping the host. Mostly these are internal errors such as failing to allocate memory, but host-not-found will also make this noise. n is a General MIDI percussion key, 35 to 81; or 0 to prevent APing from making any sound on op errors. The default is 58, the vibraslap.


aping www.jpsoft.com