Sponsored Content
Special Forums IP Networking Command to ping 1500 bytes of data to a destination system Post 302371694 by matrixmadhan on Monday 16th of November 2009 05:04:14 AM
Old 11-16-2009
ping

Code:
-s packetsize
             Specify the number of data bytes to be sent.  The default is 56, which translates into 64 ICMP
             data bytes when combined with the 8 bytes of ICMP header data.

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ping problem. system down!!

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

Remove first N bytes and last N bytes from a binary file on AIX.

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

what did dd command do to destination drive

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

ssh command doesnot excute commands in the destination server

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

Copying 1024 bytes data in 3-bytes chunk

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

Help with cp command when destination file is opened

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

X bytes of 0, Y bytes of random data, Z bytes of 5, T bytes of 1. ??

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

Shell script - entered input(1-40 bytes) needs to be converted exactly 40 bytes

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

Command / Script to create touch file in destination server

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

Check if remote destination is available before running scp command

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
ping(1M)																  ping(1M)

NAME
ping - send ICMP Echo Request packets to network host SYNOPSIS
address-family] address] interval] ttl] host count timeout]] address-family] address] interval] ttl] host packet-size count timeout]] DESCRIPTION
The command sends ICMP Echo Request (ECHO_REQUEST) packets to the host once per second. Each packet that is echoed back via an ICMP Echo Response packet is written to the standard output, including round-trip time. ICMP Echo Request datagrams ("pings") have an IP and ICMP header, followed by a (see gettimeofday(2)) and an arbitrary number of "pad" bytes used to fill out the packet. The default datagram length is 64 bytes, but this can be changed by using the packet-size option. Options The following options and parameters are recognized by If host is a multicast address, send multicast datagrams from the interface with the local IP address specified by address in "dot" notation (see inet(3N)). If the option is not specified, multicast datagrams are sent from the default inter- face, which is determined by the route configuration. If host is not a multicast address, the option is ignored. Insert an IP Record Route option in outgoing packets, summarizing routes taken when the command terminates. It may not be possible to get the round-trip path if some hosts on the route taken do not implement the IP Record Route option. A maximum of 9 Internet addresses can be recorded due to the maximum length of the IP option area. The new Path MTU information is displayed when a ICMP message is received from a gateway. The option must be used in conjunction with a large packetsize and with the option. Bypass the normal routing tables and send directly to a host on an attached network. If the host is not on a directly-connected network, an error is returned. This option can be used to ping the local system through an interface that has no route through it, such as, after the inter- face was dropped by (see gated(1M)). If host is a multicast address, set the time-to-live field in the multicast datagram to ttl. This controls the scope of the multicast datagrams by specifying the maximum number of external systems through which the datagram can be for- warded. If ttl is zero, the datagram is restricted to the local system. If ttl is one, the datagram is restricted to systems that have an interface on the network directly connected to the interface specified by the option. If ttl is two, the datagram can be forwarded through one multicast router at the most; and so forth. zero to 255. The default value is 1. This option specifies the interval in seconds, between each packet to be transmitted. The default interval is 1 second. Verbose output. Show ICMP packets other than Echo Responses that are received. The address-family determines whether the host is an IPv4 or IPv6 host. The address families currently supported are for IPv4 addresses and for IPv6 addresses. host Destination to which the ICMP Echo Requests are sent. host can be a hostname or an IPv4 or IPv6 Internet address. All symbolic names specified for host are looked up by using (see gethostent(3N)) for IPv4, and (see getaddrinfo(3N)) for IPv6. If host is an Internet address, it must be in "dot" notation (see inet(3N)) for IPv4, and in "colon" notation (see inet6(3N)) for IPv6. If the address-family is specified, and host is an Internet address, the address family of the Internet address must be the same as that specified in the address-family option. If the address-family is not specified, and host is a symbolic name, an attempt will be made to resolve host into an IPv4 address first. If that fails, a second attempt will be made to resolve host into an IPv6 address. The ping command does not accept IPv4-mapped IPv6 addresses. To ping an IPv4 node, an IPv4 address should be used. IPv4-mapped IPv6 addresses are used to address IPv4-only nodes from an IPv6 node in a socket program only. IPv4-mapped IPv6 addresses are always converted to an IPv4 address before they are used in packets sent over the network. If a system does not respond as expected, the route might be configured incorrectly on the local or remote system or on an intermediate gateway, or there might be some other network failure. Normally, host is the address assigned to a local or remote network interface. (inet only) If host is a broadcast address, all systems that receive the broadcast should respond. Normally, these are only systems that have a network interface on the same network as the local interface sending the ICMP Echo Request. If host is a multicast address, only systems that have joined the multicast group should respond. These may be distant systems if the option is specified, and there is a multicast router on the network directly connected to the interface specified by the option. packet-size The size of the transmitted packet, in bytes. By default (when packet-size is not specified), the size of transmitted packets is 64 bytes. The minimum value allowed for packet-size is 8 bytes, and the maximum value is 65500 bytes. If packet-size is smaller than 16 bytes, there is not enough room for timing information. In that case, the round-trip times are not displayed. The number of packets will transmit before terminating. The is not needed if also specifying packet-size. Range: zero to 2147483647. The default is zero, in which case sends packets until interrupted. Override the default timeout value (10 seconds) which uses to timeout (in seconds) when a host or network is unreachable. This option is valid only with the option or when count is specified. The option should not be used with count equal to 0. The option is not effective for reachable hosts or networks. Using ping for Fault Isolation When using for fault isolation, first specify a local address for host to verify that the local network interface is working correctly. Then specify host and gateway addresses further and further away to determine the point of failure. sends one datagram per second, and it normally writes one line of output for every ICMP Echo Response that is received. No output is produced if there are no responses. If an optional count is given, only the specified number of requests is sent. Round-trip times and packet loss statistics are computed. When all responses have been received or the command times out (if the count option is specified), or if the command is terminated with a a brief summary is displayed. This command is intended for use in testing, managing and measuring network performance. It should be used primarily to isolate network failures. Because of the load it could impose on the network, it is considered discourteous to use unnecessarily during normal operations or from automated scripts. RETURN VALUE
exits with one of the following values: On success. On failure such as unknown host, illegal packet size, etc. On a unreachable host or network. AUTHOR
was developed in the Public Domain. FILES
SEE ALSO
getaddrinfo(3N), gethostent(3N), inet(3N), inet6(3N). ping(1M)
All times are GMT -4. The time now is 05:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy