1752625 Members
4815 Online
108788 Solutions
New Discussion юеВ

Re: rstatd daemon

 
masood bt
Regular Advisor

rstatd daemon

how do I stop rstatd in 11.31 hp unix server

How do I start rstatd daemon in 11.31 hp unix server

thanks
Behind every Great fortune, there is a crime
10 REPLIES 10

Re: rstatd daemon

it's controlled by inetd - there's probably a commented out line in /etc/inetd.conf that looks something like this:

#rpc xti datagram_v wait root /usr/lib/netsvc/rstat/rpc.rstatd 100001 2-4 rpc.rstatd

To start rstatd (or at least ensure that inetd will start rstatd in response to a request from rup ), uncomment the line and run "inetd -c". TO stop rstatd, comment the line out and run "inetd -c"

HTH

Duncan


I am an HPE Employee
Accept or Kudo
Johnson Punniyalingam
Honored Contributor

Re: rstatd daemon

>>how do I stop rstatd in 11.31 hp unix server

How do I start rstatd daemon in 11.31 hp unix server<<<

You cannot do that, no such thing stop/start for "rstatd" controlled by inetd

inetd -c

Problems are common to all, but attitude makes the difference
Kapil Jha
Honored Contributor

Re: rstatd daemon

grep rstat /etc/inetd.conf

you would see that this is controlled by inetd so just refresh it by

inetd -c

Check it should not be commented out.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
masood bt
Regular Advisor

Re: rstatd daemon

/etc/inetd.conf has all commented out entries

i did inetd -c

sbin/init.d # ps -ef | grep -i rstat
root 26686 10298 1 11:49:02 console 0:00 grep -i rstat
root 14982 1 0 11:19:50 console 0:00 /usr/lib/netsvc/rstat/rpc.rstatd
root 26658 1 0 11:48:59 console 0:00 /usr/lib/netsvc/rstat/rpc.rstatd stop
/sbin/init.d #
Behind every Great fortune, there is a crime
masood bt
Regular Advisor

Re: rstatd daemon


/sbin/init.d # grep rstat /etc/inetd.conf
#rpc dgram udp wait root /usr/lib/netsvc/rstat/rpc.rstatd 100001 2-4 rpc.rstatd
/sbin/init.d #

to stop rstat
i should comment the above line and do

#inetd -c

to start rstat
i should un comment the above line and do

#inetd -c

Is this correct?
Behind every Great fortune, there is a crime
masood bt
Regular Advisor

Re: rstatd daemon

In this server I have been asked to stop the rstat

in inetd.conf this entry is already commented.

Does that mean somebody at some point of time started it by other means?

How do I know if this rstat daemon is running or stopped?

thank you
Behind every Great fortune, there is a crime
Robert Salter
Respected Contributor

Re: rstatd daemon

Do a "man rstatd" to get some info on it.
Time to smoke and joke
Matti_Kurkela
Honored Contributor

Re: rstatd daemon

Note that these two processes have "console" as their TTY:

root 14982 1 0 11:19:50 console 0:00 /usr/lib/netsvc/rstat/rpc.rstatd
root 26658 1 0 11:48:59 console 0:00 /usr/lib/netsvc/rstat/rpc.rstatd stop

Normally rstat daemon is started from inetd, and should have no TTY at all, which would be indicated by "?" in place of "console".
These two processes look like they are started manually by root on the console.

So these two processes are probably results of previous wrong attempts to stop rstatd. Just kill the processes:

kill 14982
kill 26658

MK
MK
masood bt
Regular Advisor

Re: rstatd daemon

# grep -i rstat /etc/inetd.conf
#rpc dgram udp wait root /usr/lib/netsvc/rstat/rpc.rstatd 100001 2-4 rpc.rstatd
#

# ps -ef | grep -i rstat
root 27908 15771 1 13:52:19 console 0:00 grep -i rstat
#

By seeing the above output, I conclude that rstat daemon is not running.
Please confirm
===========
Also....
===========
In one of the other servers, where I have:

# grep -i rstat /etc/inetd.conf
#rpc dgram udp wait root /usr/lib/netsvc/rstat/rpc.rstatd 100001 2-4 rpc.rstatd
#

to start rstatd I didnt uncommented the line

I simply executed :


# /usr/lib/netsvc/rstat/rpc.rstatd
#

Then I have this
# ps -ef | grep -i rstat
root 23868 2557 0 12:42:27 console 0:00 grep -i rstat
root 23807 1 0 12:42:24 console 0:00 /usr/lib/netsvc/rstat/rpc.rstatd
#

So can i say now that rstat is running..

if i do inetd -c then it will stop, because it is actually commented...

please confirm

thank you

Behind every Great fortune, there is a crime