hi,thanks for your kindly reply,but I can't execute the command and report errno=79,the detail information as bellow:
# lslpp -l aixtools.attcp.rte
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
aixtools.attcp.rte 0.6.4.0 COMMITTED 1550 1214 1751
# lslpp -l|grep attcp
aixtools.attcp.man.en_US 0.6.4.0 COMMITTED man pages
aixtools.attcp.rte 0.6.4.0 COMMITTED 1550 1214 1751
aixtools.attcp.share 0.6.4.0 COMMITTED universal pages
#
#
# speedto
ksh: speedto: not found.
# /opt/bin/speedto
/opt/bin/speedto: performing a 10 second write
Usage: attcp -x [-options] [-h] host ## transmit (xmit)
attcp -r [-options] [-c host] ## read from network
Common options:
-x source a pattern to network
-r read as datasink (discard) all data from network
-c host "collect call": initiate connection with host then receive data
-h host set hostname to connect with
-l ## length of bufs read from or written to network (default 8192)
-n ## number of source bufs written to network (default 20480, or 20k)
-i ## "interval": number of seconds to run the test: rather than # of buffers (see -n)
using defaults only - 20k * 8k (or 160M) bytes is transferred per thread
-t ## number of threads (default is 1)
-p ## port number to send to or listen at (default 49149)
-u use UDP instead of TCP
-d don't buffer TCP writes (sets TCP_NODELAY socket option)
-D set SO_DEBUG socket option
-s ## set socket buffer size (if supported)
-f X format for rate: b,B = {bit,byte}; k,K = kilo{bit,byte};
m,M = mega; g,G = giga; r,R = raw {bit,byte}
-q "quiet": only print the measured throughput, emit no other chatty output.
-v[vvv] verbose: print more statistics
Options specific to -r:
-B process full blocks as specified by -l (concate reads until "blocksize" is reached
-T "touch": access each byte as it's read
# /opt/bin/speedto localhost
/opt/bin/speedto: performing a 10 second write
attcp-t: connect: Connection refused
errno=79
# /opt/bin/speedto localhost -v
/opt/bin/speedto: performing a 10 second write
attcp-t: connect: Connection refused
errno=79