www.cryer.co.uk
Brian Cryer's Web Resources

CryPing: Command line flags

CryPing with no arguments will generate the following summary help information showing each of the command line flags it can take:

C:\>CryPing
CryPing - from www.cryer.co.uk v1.6 (build June 2010)
Usage: CryPing [-tcp] [-http] [-smtp] [-pop3] [-nntp] [-b] [-d] [-t] [-n count]
             
 [-l size] [-i TTL] [-v TOS] [-p port] target_name
   -a[larm]      Audible beep on failure.
   -tcp          TCP/IP protocol (default unless http specified).
   -http         HTTP status
   -smtp         SMTP status
   -pop3         POP3 status
   -nntp         NNTP status
   -b            Audible beep on success.
   -d            Date and timestamp output messages.
   -p port       Ping port number.
   -r seconds    Delay between ping attempts.
   -t            Ping the specified host until stopped.
                 To stop type control-C
   -n count      Number of echo requests to send.
   -l size       Send buffer size.
   -i TTL        Time To Live.
   -o TOS        Type Of Service.
   -v            Verbose output (full http headers)

What these flags mean:

-a (or -alarm)
Make an audible beep each time the ping test fails.
-tcp
Specifies that the TCP/IP protocol is to be used. This is assumed if -http is not specified.
-http
Specifies that the HTTP protocol is to be used. Use this when testing the availability of a website or web-server.
-smtp
Specifies that the SMTP protocol is to be used. Use this when testing the availability of an email server for receiving (or sending) emails.
-pop3
Specifies that the POP3 protocol is to be used. Use this when testing the availability of an email server for downloading (POP3) emails.
-nntp
Specifies that the NNTP protocol is to be used. Use this when testing the availability of a USENET/Newsgroup server.
-b (or -beep)
Make an audible beep each time the ping test succeeds.
-d
Include a date and time stamp with each output message. The date and time are shown in YY-MM-DD HH:MM:SS format.
-p port (or -port port)
Instructs CryPing to ping a specific TCP/IP port. CryPing will then try to open that port and return the time to connect and successfully open the port.
-t
Run forever until told to stop. It can be stopped by typing control-C.
-n
Ping the server the specified number of times. By default CryPing will ping the server 4 times before stopping. If you want to ping forever (or until interrupted by control-C) then use -t.
-l
Send buffer size. This is the size of the ping packet sent to the server. This is ignored when pinging a port or http.
-i
Time to live. This is the maximum number of network hops between the current pc and the remote device being pinged before the ping will fail. Ignored when pinging a port of http.
-o
Type of service.
-v (or -verbose)
Verbose output. Displays header information when combined with -http. Ignored otherwise.

More Information

For more information please refer to one of the following pages: