11-16-2009
Command to ping 1500 bytes of data to a destination system
Hi All,
I want to ping 1500 bytes of data from a pc to another pc in the network. What is command used for the same?
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wrote a script to test many systems to see if they are up or not. if a system is down, i am notified by email
now, most of the time,when systems are down in my enviroment, it is because the user accidentally or purposely (not knowing the consequences) hit the power button. so these problems... (3 Replies)
Discussion started by: TRUEST
3 Replies
2. Shell Programming and Scripting
Hi all,
Does anybody know or guide me on how to remove the first N bytes and the last N bytes from a binary file? Is there any AWK or SED or any command that I can use to achieve this?
Your help is greatly appreciated!!
Best Regards,
Naveen. (1 Reply)
Discussion started by: naveendronavall
1 Replies
3. Filesystems, Disks and Memory
I am almost a beginner. And a total idiot.
so i have
done a dd if=/somefile.img of=/dev/sdc1
sdc1 was a USB disk drive with many many files on it i did not want to lose.
What it did was remove the dev/scd1 USB drive and my mounting of /media/movie and then change it to /media/somefile... (2 Replies)
Discussion started by: darbid
2 Replies
4. UNIX Desktop Questions & Answers
Hi All,
I have the below code where Iam connecting from xzur111pap server to xzur0211pap server thru ssh to execute some commands.
ssh xzur0211pap
spaceleft=`df -k /home |tail -1 | awk '{print $5}'`
spaceleft=${spaceleft%\%}
if ]; then
echo "ALERT : HUFS(/home $spaceleft)"
exit 0... (3 Replies)
Discussion started by: gaddamja
3 Replies
5. Programming
Hi,
If I want to copy a 1024 byte data stream in to the target location in 3-bytes chunk, I guess I can use the following script.
dd bs=1024 count=3 if=/src of=/dest
But, I would like to know, how to do it via a C program. I have tried this with memcpy(), that did not help. (3 Replies)
Discussion started by: royalibrahim
3 Replies
6. Shell Programming and Scripting
I am writing a shell script (runs on HP Unix) which copies files from a source directory to another destination daily. The destination directory always have the files with same name as in the source directory. And daily a new file will be created in the source.
cp command works fine if the file... (1 Reply)
Discussion started by: arunkumar_ms
1 Replies
7. UNIX for Dummies Questions & Answers
Hello guys. I really hope someone will help me with this one..
So, I have to write this script who:
- creates a file home/student/vmdisk of 10 mb
- formats that file to ext3
- mounts that partition to /mnt/partition
- creates a file /mnt/partition/data. In this file, there will... (1 Reply)
Discussion started by: razolo13
1 Replies
8. Shell Programming and Scripting
hello,
suppose, entered input is of 1-40 bytes, i need it to be converted to 40 bytes exactly.
example: if i have entered my name anywhere between 1-40 i want it to be stored with 40 bytes exactly.
enter your name:
donald duck (this is of 11 bytes)
expected is as below - display 11... (3 Replies)
Discussion started by: shravan.300
3 Replies
9. Shell Programming and Scripting
Hello Team,
Is there any Linux command / script available so that, I could create a simple 0 byte file in destination server by issuing the command from source server.
If yes, Could you please let me know the possible solutions.
in other words I just want to create a touch file in my home... (1 Reply)
Discussion started by: madhuraju
1 Replies
10. Shell Programming and Scripting
I have a script on a Linux box which scp the files to windows server without any issues. but there are time frames where the windows server will not be available due to maintenance. hence I need to check if the remote location is available before running the scp command.
scp... (3 Replies)
Discussion started by: gpk_newbie
3 Replies
LEARN ABOUT DEBIAN
hobbitping
HOBBITPING(1) General Commands Manual HOBBITPING(1)
NAME
hobbitping - Xymon ping tool
SYNOPSIS
hobbitping [--retries=N] [--timeout=N] [IP-adresses]
DESCRIPTION
hobbitping(1) is used for ping testing of the hosts monitored by the xymon(7) monitoring system. It reads a list of IP adresses from stdin,
and performs a "ping" check to see if these hosts are alive. It is normally invoked by the bbtest-net(1) utility, which performs all of
the Xymon network tests.
Optionally, if a list of IP-adresses is passed as commandline arguments, it will ping those IP's instead of reading them from stdin.
hobbitping only handles IP-adresses, not hostnames.
hobbitping was inspired by the fping(1) tool, but has been written from scratch to implement a fast ping tester without much of the over-
head found in other such utilities. The output from hobbitping is similar to that of "fping -Ae".
hobbitping probes multiple systems in parallel, and the runtime is therefore mostly dependant on the timeout-setting and the number of
retries. With the default options, hobbitping takes approximately 18 seconds to ping all hosts (tested with an input set of 1500 IP
adresses).
SUID-ROOT INSTALLATION REQUIRED
hobbitping needs to be installed with suid-root privileges, since it requires a "raw socket" to send and receive ICMP Echo (ping) packets.
hobbitping is implemented such that it immediately drops the root privileges, and only regains them to perform two operations: Obtaining
the raw socket, and optionally binding it to a specific source address. These operations are performed as root, the rest of the time hob-
bitping runs with normal user privileges. Specifically, no user-supplied data or network data is used while running with root privileges.
Therefore it should be safe to provide hobbitping with the necessary suid-root privileges.
OPTIONS
--retries=N
Sets the number of retries for hosts that fail to respond to the initial ping, i.e. the number of ping probes sent in addition to
the initial probe. The default is --retries=2, to ping a host 3 times before concluding that it is not responding.
--timeout=N
Determines the timeout (in seconds) for ping probes. If a host does not respond within N seconds, it is regarded as unavailable,
unless it responds to one of the retries. The default is --timeout=5.
--responses=N
hobbitping normally stops pinging a host after receiving a single response, and uses that to determine the round-trip time. If the
first response takes longer to arrive - e.g. because of additional network overhead when first determining the route to the target
host - it may skew the round-trip-time reports. You can then use this option to require N responses, and hobbitping will calculate
the round-trip time as the average of all of responsetimes.
--max-pps=N
Maximum number of packets per second. This limits the number of ICMP packets hobbitping will send per second, by enforcing a brief
delay after each packet is sent. The default setting is to send a maximum of 50 packets per second. Note that increasing this may
cause flooding of the network, and since ICMP packets can be discarded by routers and other network equipment, this can cause
erratic behaviour with hosts recorded as not responding when they are in fact OK.
--source=ADDRESS
Use ADDRESS as the source IP address of the ping packets sent. On multi-homed systems, allows you to select the source IP of the
hosts going out, which might be necessary for ping to work.
--debug
Enable debug output. This prints out all packets sent and received.
SEE ALSO
xymon(7), bbtest-net(1), fping(1)
Xymon Version 4.2.3: 4 Feb 2009 HOBBITPING(1)