Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check inetd proccess 2

Status
Not open for further replies.

Mag0007

MIS
Feb 15, 2005
829
US
how can I check if a process from inetd is active?

it looks like some of my processes are dying, but inetd is still active.

 
If a connection is made to a port that inetd monitors it will spawn the related process. After the connection is terminated the process usually will remain for about 15 minutes and die off if no new connections are made. Is that what you are seeing?


Jim Hirschauer
 
no, I am not seeing any of the processes of inetd.

Seems to be a problem with inetd itself. Have many servers with the same problems
 
Code:
INETDPID=`ps -ef | grep [i]netd | awk '{print $2}'
ps -ef | grep $INETDPID

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
well, i should probally clarify myself.

when I say process of inetd, i mean VALID (not commented) entries in my /etc/inted.conf

for example
ftp, telnet, etc..etc..


thanks for all the posts, BTW!
 
So are you saying that you try to connect to a server via telnet or ftp and after the connection is made you do not see a ftp or telnet process? or you cannot connect at all?


Jim Hirschauer
 

Hello Mag0007,

Hope you are looking for this. Try the following command. You can check the status of all the services of inetd........

# lssrc -l -s inetd

Subsystem Group PID Status
inetd tcpip 401640 active

Debug Not active

Signal Purpose
SIGALRM Establishes socket connections for failed services.
SIGHUP Rereads the configuration database and reconfigures services.

SIGCHLD Restarts the service in case the service ends abnormally.

Service Command Description Status
ctmagent /usr/ctmagent/ctm/exe/p_ctminetd p_ctminetd -e active
cmsd /usr/dt/bin/rpc.cmsd cmsd 100068 2-5 active
dtspc /usr/dt/bin/dtspcd /usr/dt/bin/dtspcd active
ttdbserver /usr/dt/bin/rpc.ttdbserver rpc.ttdbserver 100083 active
rstatd /usr/sbin/rpc.rstatd rstatd 100001 1-3 active
klogin /usr/sbin/krlogind krlogind active
login /usr/sbin/rlogind rlogind active
kshell /usr/sbin/krshd krshd active
shell /usr/sbin/rshd rshd active
telnet /usr/sbin/telnetd telnetd -a active
ftp /usr/sbin/ftpd ftpd -l -d active
#
#########

aixnag
IBM Certified Specialist - P-series AIX 5L Administration
IBM Certified Specialist - AIX V4 HACMP
IBM eServer Certified Specialist – p690 Technical Support
IBM Certified Solutions Expert - DB2 UDB V7.1 Database Administration for Unix, Linux, Windows and OS/2
 
hmm aixnag, thats what I am looking for! thanks!

 
AixNag:

Cool command but, I get this

0513-056 Timeout waiting for command response. If you specified a foreign host,
see the /etc/inittab file on the foreign host to verify that the SRC daemon
(srcmstr) was started with the -r flag to accept remote requests.


ps -ef | grep inetd
does show an active inetd process :-(
 
You should also have a srcmstr process which controls a.o. inetd. If it doesn't get started at boot time, TCPIP still gets started, be it without srcmstr control.

I've had AIX52-04 (if I remember right) installs which had a problem with srcmstr. After RMLing to latest RML, problem was solved.

If srcmstr is not running properly (and controlling inetd), then you won't be able to run the lssrc command above.


HTH,

p5wizard
 
Verify the srcmstr running on your system with
#ps -ef|grep src

if its running. Check your /etc/rc.tcpip|grep inetd to know how inetd is started.
fyi, In my system
##################
# starts TCP/IP daemons (sendmail, inetd, etc.)
lssrc -s inetd >/dev/null 2>&1 && break # break out on success
start /usr/sbin/inetd "$src_running"
##################


probably you can kill inetd using #kill inetd.
then Start inetd with #startsrc -s inetd
refresh portmap #refresh -s portmap.

Finally you issue #lssrc -l -s inetd
to see active services list.

Hope it helps.

aixnag
IBM Certified Specialist - P-series AIX 5L Administration
IBM Certified Specialist - AIX V4 HACMP
IBM eServer Certified Specialist – p690 Technical Support
IBM Certified Solutions Expert - DB2 UDB V7.1 Database Administration for Unix, Linux, Windows and OS/2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top