Operating System - HP-UX
1830898 Members
3050 Online
110017 Solutions
New Discussion

Re: shell script starting during the m/c bootup

 
mohan singh
Frequent Advisor

shell script starting during the m/c bootup

There is a shell script kept in /users/wmap_mal/ dir . and running some command during the system startup. But I am not able to find out thru wchich script this shell script is getting triggering. But all commands are getting executed .
I can grep these , see below.
root 5687 1 0 Aug 12 ? 0:00 /usr/annex/rtelnet -br 172.17.0.
90 11 /dev/ambdbo_10
root 5653 1 0 Aug 12 ? 0:00 /usr/annex/rtelnet -br 172.17.0.
89 10 /dev/ambdbo_11
root 26608 1 0 Aug 13 ? 0:00 /usr/annex/rtelnet -br 172.17.0.
90 13 /dev/ambdbo_07


One more observation . these are also device file.
Please tell me how this script is getting triggerd.

I checked /sbin/rc*.d , no start file has this script.


Mohan
7 REPLIES 7
Michael Tully
Honored Contributor

Re: shell script starting during the m/c bootup

A background program on system start-up can only start in one of three places.

1) In /sbin/init.d
There are symbolic linked files in /sbin/rc?.d/SXXscriptname appropriate to the run-level (?)
2) /etc/inittab
3) daemons that start from /etc/inetd.conf that may also pass a script to run, which may point to your annex daemons.
Anyone for a Mutiny ?
mohan singh
Frequent Advisor

Re: shell script starting during the m/c bootup

Hi Michel,

I checked each files in /sbbin/rc*d, /etc/inittab and /etc/initd.conf

I did not find any clue.

Mohan
Matti_Kurkela
Honored Contributor

Re: shell script starting during the m/c bootup

After a quick Google search, I think those processes might be related to Annex terminal servers. "rtelnet" could be the command-line management tool for those servers.

See http://www.ofb.net/~jheiss/annex/

I'd check the Annex documentation to see if the Annex management system installs something that might be running the script.

Are you using any sort of enterprise monitoring/management software which might be running the script?
MK
Kent Ostby
Honored Contributor

Re: shell script starting during the m/c bootup

mohan --

Could you post your inetd.conf file here as well as an ll of /etc/rc.config.d and an ll of /sbin/init.d.

Might be able to spot something that way.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Scott Van Kalken
Esteemed Contributor

Re: shell script starting during the m/c bootup

you could always just grep for "rtelnet -br 172.17.0" or just "rtelnet" in /sbin/init.d/

mohan singh
Frequent Advisor

Re: shell script starting during the m/c bootup

Hi All ,

Thanks for your kind efforts, It seems that this scrip is not added in any of the startup script , I assume till now it is manual process, I want to automate this script . How to go about it.


Thanks in advance.

Mohan
Sanjay Kumar Suri
Honored Contributor

Re: shell script starting during the m/c bootup

Mohan

Check this post:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=195586

sks

PS: Do assign point to replies to your thread.
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.