04-20-2012
The command ping usually accepts a flag for a count, typically -c or -n so you could choose to either rin it with a count of 1 and append to the log files then scan through them later, or you could schedule the ping and set the count for 60 seconds * 60 minutes * 24 hours (86400) then read the output for packets dropped.
I hope that this helps
Robin
Liverpool/Blackburn
UK
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
All...
I want to remove blank spaces in file . I just leraned that we can use
" cat <Input filename> | tr -s ‘ ‘ > <Target file name> "
i also know with SED we can replace a blank space by other character by
sed s/ /*/g filename.
Please let me know how can i do that by... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
2. UNIX for Advanced & Expert Users
Hi all,
We have serious problem with continuous integration system for application building on few different platforms.
(aix 5.2, 5.3 solaris 8,9 , SUSE Linux 9.3, 10 , Slackware Linux 10,11,12, RedHAt Enterprise Linux и Windows 2003)
We need application ( program ) to do the following tasks:... (1 Reply)
Discussion started by: +Yan
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I have a job. I need to create a shell script which will execute that job continously i.e 24x7.
Please help me in writing this script.
Thanks,
Kumar66 (6 Replies)
Discussion started by: kumar66
6 Replies
4. Shell Programming and Scripting
Hi,
i need help to print only those numbers which occur next to each other from a file.
Input:
1
2
3
9
44
45
46
77
79
80
81
Desired Output: (8 Replies)
Discussion started by: saint2006
8 Replies
5. Shell Programming and Scripting
HI,
I have a file serverlist in that all host names are placed.
i have written a small script
#./testping
#! /bin/bash
for i in `cat serverlist`
do
ping $i >> output.txt
done
so now it creates a file output.txt till here fine..
now each time i run this script the output file... (4 Replies)
Discussion started by: madhudeva
4 Replies
6. UNIX for Dummies Questions & Answers
I figured out my question. mods please delete. Thank you (2 Replies)
Discussion started by: rpmischris
2 Replies
7. Shell Programming and Scripting
Hello;
I have this rather tricky problem to solve --(to me, anyways) ..
I am processing the following one liner with tcpdump..
tcpdump -i T3501 -A ether host 00:1e:49:29:fc:c9 or ether host 00:1b:2b:86:ec:1b or ether host 00:21:1c:98:a4:08 and net 149.83.6.0/24 | grep --line-buffered -B... (5 Replies)
Discussion started by: delphys
5 Replies
8. Programming
help with bash script!
im am working on this script to make sure my server will stay online, so i made this script..
HOSTS="192.168.138.155"
COUNT=4
pingtest(){
for myhost in "$@"
do
ping -c "$COUNT" "$myhost" &&return 1
done
return 0
}
if pingtest $HOSTS
#100% failed... (4 Replies)
Discussion started by: mort3924
4 Replies
LEARN ABOUT DEBIAN
dnping
DNPING(1) General Commands Manual DNPING(1)
NAME
dnping - Loopbacks diagnostic packets through a remote node
SYNOPSIS
dnping nodename [user pass] count
or
dnping nodename [options] nodename
Options:
[qsv] [-c number] [-i interval] [-p password] [-s size] [-u username] [-w timeout]
DESCRIPTION
This utility sends to remote DECnet node nodename the number of packets specified by count to test the link between the two systems.
Optionally a username and password may be specified for the connection as well as several other options. NOTE that if you dnping another
Linux box it must have dnetd running.
NOTE also that dnping is not really like an IP "ping" in that it needs a registered object at the other end to connect to. So, just because
you cannot ping a machine does not, necessarily, mean that machine is not available, just that the MIRROR object is not available. There is
not (to my knowledge) a low-level equivalent in DECnet of the ICMP ping message.
OPTIONS
-c number
Number of packets to send (default 10)
-d Debug mode (default off)
-i interval
interval between packets in microseconds (default 0)
-p password
Access control password. If this is "-" then you will be prompted.
-q Quiet mode (default off)
-s size
size of frame to send in bytes (40 data + 68 hdr)
-t timestamps mode (default off)
-u username
access control username
-w timeout
Specifies a timeout (in seconds). If not response is received after this time then dnping will abort. The default is to wait for-
ever.
-v verbose mode (default off)
EXAMPLES
Pings 10 packets through remote node "mv3100"
# dnping mv3100 10
Make it look a bit like IP ping:
# dnping -vti 1000000 marsha
SEE ALSO
dntype(1), dndir(1), dndel(1), dntask(1), sethost(1), dnetd(8)
DECnet utilities January 25 2000 DNPING(1)