AIX环境中使用spray命令可以大致了解两台主机的网络情况,如网络速度,丢包率等。直接使用spray通常会报以下错误
[quote]# /usr/sbin/spray rzdbra -c 2000 -l 1400 -d 1
sending 2000 packets of length 1402 to
rzdbra ...
SPRAYPROC_CLEAR RPC: 1832-019 Program not registered[/quote]
解决办法为:
将/etc/inetd.conf配置文件下列行注释取消掉
[quote]sprayd sunrpc_udp udp wait root /usr/lib/netsvc/spray/rpc.sprayd sprayd 100012 1[/quote]
然后重新刷新inetd
[quote]# refresh -s inetd
0513-095 The request for subsystem refresh was completed successfully.[/quote]
执行后有一守护进程
[quote]# ps -ef|grep sprayd
root 2973934 507942 0 16:41:48 - 0:00 sprayd 100012 1 [/quote]
执行结果为
[quote]# /usr/sbin/spray rzdbra -c 2000 -l 1400 -d 1
sending 2000 packets of length 1402 to
rzdbra ...
no packets dropped by rzdbra
41940 packets/second, 58800092 bytes/second[/quote]
附:查看主机端口是否占用
[quote]# netstat -an |grep 2008
tcp4 0 0 *.2008 *.* LISTEN[/quote]
[quote]# /usr/sbin/spray rzdbra -c 2000 -l 1400 -d 1
sending 2000 packets of length 1402 to
rzdbra ...
SPRAYPROC_CLEAR RPC: 1832-019 Program not registered[/quote]
解决办法为:
将/etc/inetd.conf配置文件下列行注释取消掉
[quote]sprayd sunrpc_udp udp wait root /usr/lib/netsvc/spray/rpc.sprayd sprayd 100012 1[/quote]
然后重新刷新inetd
[quote]# refresh -s inetd
0513-095 The request for subsystem refresh was completed successfully.[/quote]
执行后有一守护进程
[quote]# ps -ef|grep sprayd
root 2973934 507942 0 16:41:48 - 0:00 sprayd 100012 1 [/quote]
执行结果为
[quote]# /usr/sbin/spray rzdbra -c 2000 -l 1400 -d 1
sending 2000 packets of length 1402 to
rzdbra ...
no packets dropped by rzdbra
41940 packets/second, 58800092 bytes/second[/quote]
附:查看主机端口是否占用
[quote]# netstat -an |grep 2008
tcp4 0 0 *.2008 *.* LISTEN[/quote]