rstatd守護程式

charsi發表於2011-10-26

rstatd守護程式是用來返回從核心獲取的效能統計資訊 的程式。
預設是不啟動的。以前遇到過使用loadrunner測試應用效能的時候,需要啟動這個守護程式。

下面是英文的解釋:
Rstatd is a server process which produces system performance statistics obtained from the kernel.The statistics can be graphically displayed by the perfmeter program.Rstatd's results can also be used by the rup command,which allows other machines on your local network to get information (like uptime) about your computer.

在UNIX伺服器上,rstatd程式一般是配置在inetd.conf檔案中,如果需要啟動,則把inetd.conf檔案中的下面一行取消註釋,然後重啟in
etd即可。

#rpc dgram udp wait root /usr/lib/netsvc/rstat/rpc.rstatd 100001 2-4 rpc.rstatd

在HP-UX上重啟inetd的方法為
執行inetd stop
inetd start
停止啟動。
在HP-UX上使用rpcinfo命令檢查rstatd程式是否啟動,如下:
program version netid address service owner
......
100001 2 udp 0.0.0.0.219.203 rstatd superuser
100001 3 udp 0.0.0.0.219.203 rstatd superuser
100001 4 udp 0.0.0.0.219.203 rstatd superuser


對於inetd.conf中rstatd配置中的每個欄位的含義,可以參考inetd.conf中的說明
#rpc dgram udp wait root /usr/lib/netsvc/rstat/rpc.rstatd 100001 2-4 rpc.rstatd

# service name as in /etc/services
# socket type either "stream" or "dgram"
# protocol as in /etc/protocols
# wait/nowait only applies to datagram sockets, stream
# sockets should specify nowait
# user name of user as whom the server should run
# server program absolute pathname for the server inetd will
# execute
# server program args. arguments server program uses as they normally
# are starting with argv[0] which is the name of
# the server.

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23850820/viewspace-1055959/,如需轉載,請註明出處,否則將追究法律責任。

相關文章