Sponsored Content
Special Forums IP Networking how to use PING command efficiently Post 19721 by killerserv on Tuesday 16th of April 2002 05:04:58 AM
Old 04-16-2002
Try,

$ ping -v
(-v option Verbose the output. ICMP packets other than ECHO_RESPONSE that are received will be listed.)

Other Options:

ping [-dfnqrvR] [-c count] [-i wait] [-l preload] [-p pattern] [-s packetsize]

Do try man ping for more information.. Do post back.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

About ping command

Hi! I have small problem. I want to ping a server and the result shouldn't be printed in the browser window, just become a value. Here you can see the script that I have: <? $command="ping linux.com -t ttl -c1 | tail -1 | awk '{print $4 \" \" $5}'"; $output = system($command);... (1 Reply)
Discussion started by: Papa Deoo
1 Replies

2. IP Networking

About ping command

Hi! I have small problem. I want to ping a server and the result shouldn't be printed in the browser window, just become a value. Here you can see the script that I have: $command="ping linux.com -t ttl -c1 | tail -1 | awk '{print $4 \" \" $5}'"; $output = system($command); ... (2 Replies)
Discussion started by: Papa Deoo
2 Replies

3. Shell Programming and Scripting

-c option in ping command

What does '-c' mean in ping command? Is this option specific to bash shell? Deepa (3 Replies)
Discussion started by: Deepa
3 Replies

4. UNIX for Dummies Questions & Answers

Ping command

Hello Everybody: Im the root of the system, I need to grant some limited priviliges user an acess to the ping command so he can ping some IPs with his script. should I add the command to his path?? or what?? Thanks a lot (3 Replies)
Discussion started by: aladdin
3 Replies

5. UNIX for Advanced & Expert Users

How to supply the password in a ping command ?

for i in $var; do for j in $var; do if then ssh -x -a "$host_login_name"@${i} ping -c 3 -s 3 ${j} if then printf "Success\n" else printf "Failed\n" fi fi done done Enter your box login... (2 Replies)
Discussion started by: happyrain
2 Replies

6. Shell Programming and Scripting

Help with Ping command for windows Box

Hi, I would like to write a script for checking the windows remote server has responding or not from Unix box. 123.34.56.222-- the windows remote server I wrote like: ping 123.34.56.222 PING 123.34.56.222: 64 byte packets 64 bytes from 123.34.56.222: icmp_seq=0. time=8. ms 64... (1 Reply)
Discussion started by: koti_rama
1 Replies

7. UNIX for Dummies Questions & Answers

help in PING and traceroute command

i cannot find a usefull ping and traceroute command from TCP to another TCP server with port. I usually do only traceroute IP and ping IP..is that enough? I wanted to check its connectivity to an IP address with port.. example: from ip 1.1.1.1 (TCP port 1234) destination 2.2.2.2 (TCP... (1 Reply)
Discussion started by: lhareigh890
1 Replies

8. AIX

Problem with 'ping' command

Hi All, I'm testing ping command on two servers. A,B,C,D are servers From A-->B: ping -c 3 -p ff -s30720 <B IP-Addres> This works fine. From C-->D: ping -c 3 -p ff -s30720 <D IP-Addres> This is NOT working and 100% packe loss :( But if I use 8700 instead of 30720 for packet size... (6 Replies)
Discussion started by: saraperu
6 Replies

9. UNIX for Dummies Questions & Answers

Help on ping command

Hi, I have a list of 500 IP address and need to ping all the IP address. I had written a script to do this and its working if the IP is valid one. If any invalid IP present, the process got hang up. Also I have tried with -c , -I and -w options, its not working. Any one help me on this... (2 Replies)
Discussion started by: Rksiva
2 Replies

10. Shell Programming and Scripting

Help with Ping command.

Hi, I have a shell script, that has to run in putty for days together. So , I need to keep the network server connection alive and running. The execution of shell script shouldn't be interrupted as it produces undesirable results. Can anyone provide me with a script ? (3 Replies)
Discussion started by: angie1234
3 Replies
Clam Daemon(8)							  Clam AntiVirus						    Clam Daemon(8)

NAME
clamd - an anti-virus daemon SYNOPSIS
clamd [options] DESCRIPTION
The daemon listens for incoming connections on Unix and/or TCP socket and scans files or directories on demand. It reads the configuration from /etc/clamav/clamd.conf COMMANDS
It's recommended to prefix clamd commands with the letter z (eg. zSCAN) to indicate that the command will be delimited by a NULL character and that clamd should continue reading command data until a NULL character is read. The null delimiter assures that the complete command and its entire argument will be processed as a single command. Alternatively commands may be prefixed with the letter n (e.g. nSCAN) to use a newline character as the delimiter. Clamd replies will honour the requested terminator in turn. If clamd doesn't recognize the command, or the command doesn't follow the requirements specified below, it will reply with an error message, and close the connection. Clamd recognizes the following commands: PING Check the server's state. It should reply with "PONG". VERSION Print program and database versions. RELOAD Reload the virus databases. SHUTDOWN Perform a clean exit. SCAN file/directory Scan a file or a directory (recursively) with archive support enabled (if not disabled in clamd.conf). A full path is required. CONTSCAN file/directory Scan file or directory (recursively) with archive support enabled and don't stop the scanning when a virus is found. MULTISCAN file/directory Scan file in a standard way or scan directory (recursively) using multiple threads (to make the scanning faster on SMP machines). ALLMATCHSCAN file/directory ALLMATCHSCAN works just like SCAN except that it sets a mode where scanning continues after finding a match within a file. INSTREAM It is mandatory to prefix this command with n or z. Scan a stream of data. The stream is sent to clamd in chunks, after INSTREAM, on the same socket on which the command was sent. This avoids the overhead of establishing new TCP connections and problems with NAT. The format of the chunk is: '<length><data>' where <length> is the size of the following data in bytes expressed as a 4 byte unsigned integer in network byte order and <data> is the actual chunk. Streaming is terminated by sending a zero-length chunk. Note: do not exceed StreamMaxLength as defined in clamd.conf, otherwise clamd will reply with INSTREAM size limit exceeded and close the connection. FILDES It is mandatory to newline terminate this command, or prefix with n or z. This command only works on UNIX domain sockets. Scan a file descriptor. After issuing a FILDES command a subsequent rfc2292/bsd4.4 style packet (with at least one dummy character) is sent to clamd carrying the file descriptor to be scanned inside the ancillary data. Alternatively the file descriptor may be sent in the same packet, including the extra character. STATS IIt is mandatory to newline terminate this command, or prefix with n or z, it is recommended to only use the z prefix. Replies with statistics about the scan queue, contents of scan queue, and memory usage. The exact reply format is subject to change in future releases. IDSESSION, END It is mandatory to prefix this command with n or z, and all commands inside IDSESSION must be prefixed. Start/end a clamd session. Within a session multiple SCAN, INSTREAM, FILDES, VERSION, STATS commands can be sent on the same socket without opening new connections. Replies from clamd will be in the form '<id>: <response>' where <id> is the request number (in ascii, starting from 1) and <response> is the usual clamd reply. The reply lines have same delimiter as the corresponding command had. Clamd will process the commands asynchronously, and reply as soon as it has finished processing. Clamd requires clients to read all the replies it sent, before sending more commands to prevent send() deadlocks. The recommended way to implement a client that uses IDSESSION is with non-blocking sockets, and a select()/poll() loop: whenever send would block, sleep in select/poll until either you can write more data, or read more replies. Note that using non-blocking sockets without the select/poll loop and alternating recv()/send() doesn't comply with clamd's requirements. If clamd detects that a client has deadlocked, it will close the connection. Note that clamd may close an IDSESSION connection too if you don't follow the protocol's requirements. The client can use the PING command to keep the connection alive. VERSIONCOMMANDS It is mandatory to prefix this command with either n or z. It is recommended to use nVERSIONCOMMANDS. Print program and database versions, followed by "| COMMANDS:" and a space-delimited list of supported commands. Clamd <0.95 will recognize this as the VERSION command, and reply only with their version, without the commands list. This command can be used as an easy way to check for IDSESSION support for example. DEPRECATED COMMANDS STREAM Scan stream - on this command clamd will return "PORT number" you should connect to and send data to scan. (DEPRECATED, use INSTREAM instead) NOT SUPPORTED COMMANDS SESSION, END Start/end a clamd session which will allow you to run multiple commands per TCP session. (use IDSESSION instead) OPTIONS
-h, --help Output help information and exit. -V, --version Print the version number and exit. -c FILE, --config-file=FILE Read configuration from FILE. SIGNALS
Clamd recognizes the following signals: SIGHUP Reopen the logfile. SIGUSR2 Reload the signature databases. SIGTERM Perform a clean exit. FILES
/etc/clamav/clamd.conf CREDITS
Please check the full documentation for credits. AUTHOR
Tomasz Kojm <tkojm@clamav.net> SEE ALSO
clamd.conf(5), clamdscan(1), freshclam(1), freshclam.conf(5), clamav-milter(8) ClamAV 0.98.4 February 12, 2009 Clam Daemon(8)
All times are GMT -4. The time now is 03:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy