10-18-2007
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 4095 bytes, on some systems is even 65000. 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. In your case, the -n flag probably means something else, not the count number.]
The error number looks like AIX, I just tested AIX, and I seem to be right : -n flag means "packet-size", as well as "-s" whereas the count is "-c" flag.
9 More Discussions You Might Find Interesting
1. HP-UX
how to get network packet size
I would like get network output rate(kb/sec)
I type command "netstat -i"
Ipkts Ierrs Opkts Oerrs 653387 0 678202 0
but i didn't know what is it packet size ,
how could i get it? (1 Reply)
Discussion started by: alert0919
1 Replies
2. UNIX for Advanced & Expert Users
We're running Solaris 7 on FDDI n/w on an E6500 host and wish to use MTU (packet size) > 1500, more like 3072 bytes to begin with and possibly up to 4096 bytes.
Linux has /etc/network/interfaces. Does ANYONE remember the equivalent in Unix? When I do ifconfig eth0 mtu 4000, I get the error... (0 Replies)
Discussion started by: sharique
0 Replies
3. Solaris
Greetings, I'm stuck in a time warp using ancient machines from the prehistoric era that should be rightfully displayed in the Smithsonian.
We're running Solaris 7 on FDDI n/w on an E6500 host and wish to use MTU (packet size) > 1500, more like 3072 bytes to begin with and possibly up to 4096... (9 Replies)
Discussion started by: sharique
9 Replies
4. IP Networking
Hi!
I'm writing an application (using BSD sockets on a Linux host) which communicates over TCP/IP with an embedded device. This embedded device has an old and real slow integrated circuit (Epson S1S6000) which handles all of the TCP/IP communication for it.
Problem is, this circuit (S1S6000)... (7 Replies)
Discussion started by: olle
7 Replies
5. Shell Programming and Scripting
Hi,
I develop simple animation ping script on Solaris Platform. It is like Cisco ping.
Examples and source code are below.
bash-3.00$ gokcell 152.155.180.8 30
Sending 30 Ping Packets to 152.155.180.8
!!!!!!!!!!!!!.!!!!!!!!!!!!!!!.
% 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
1 Replies
6. Shell Programming and Scripting
Hi
I am using perl to ping a list of nodes - with script below :
$p = Net::Ping->new("icmp");
if ($p->ping($host,1)){
print "$host is alive.\n";
}
else {
print "$host is unreacheable.\n";
}
$p->close();... (4 Replies)
Discussion started by: tavanagh
4 Replies
7. AIX
(5 Replies)
Discussion started by: Vishal_dba
5 Replies
8. Shell Programming and Scripting
Hello,
on Solaris ping command does not report failed packet as in i.e. Windows (Connection timeout)
Instead it reports the sequence of the sent packet:
64 bytes from 10.80.4.120: icmp_seq=11. time=36.0 ms
64 bytes from 10.80.4.120: icmp_seq=12. time=35.9 ms
64 bytes from 10.80.4.120:... (6 Replies)
Discussion started by: drbiloukos
6 Replies
9. 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
spray(1M) spray(1M)
NAME
spray - spray packets
SYNOPSIS
count] delay] length] nettype] host
DESCRIPTION
sends a one-way stream of packets to host using RPC, then reports how many were received by host and what the transfer rate was. The host
name can be either a name or an internet address.
is not useful as a networking benchmark, as it uses unreliable connectionless transports, UDP, for example. can report a large number of
packets dropped when the drops were caused by sending packets faster than they can be buffered locally, that is, before the packets get to
the network medium.
Options
recognizes the following options and command-line arguments:
Specify how many packets to send.
The default value of count is the number of packets required to make the total stream size 100000 bytes.
Specify how many microseconds to pause between sending each packet.
The default is 0.
Specify the number of bytes in the Ethernet packet that holds the RPC
call message. Since the data is encoded using XDR, and XDR only deals with 32 bit quantities, not all values of
length are possible, and rounds up to the nearest possible value. When length is greater than 1514, then the RPC
call can no longer be encapsulated in one Ethernet packet. In that case, the length field no longer has a simple
correspondence to the Ethernet packet size. The default value of length is 86 bytes, the size of the RPC and UDP
headers.
Specify class of transports.
Defaults to See rpc(3N) for a description of supported classes.
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO
ping(1M), sprayd(1M), rpc(3N).
spray(1M)