Operating System - HP-UX
1752295 Members
5162 Online
108786 Solutions
New Discussion юеВ

Re: how to include controlM agent startup at /etc/inittab file

 
SOLVED
Go to solution
sysad_boy
Frequent Advisor

how to include controlM agent startup at /etc/inittab file

Hi HP Gurus,

Are you guys familiar with ControlM?
How can I include the controlM agent startup script in the /etc/inittab file?

Currently we are doing this manually because when you execute the agent startup command it asks for some parameters as input.

Is there such a way to inlcude the agent startup to the /etc/inittab file?




Thanks!
20 REPLIES 20
Roopesh Francis_1
Trusted Contributor
Solution

Re: how to include controlM agent startup at /etc/inittab file

you can include controlM agent startup scripts on rc scripts
sysad_boy
Frequent Advisor

Re: how to include controlM agent startup at /etc/inittab file

but how?

It requires some parameters being asked interactively when executed.
Hakki Aydin Ucar
Honored Contributor

Re: how to include controlM agent startup at /etc/inittab file

you cannot run with startup scripts which is interactive, simple solution ,first rename it and modify to a non-interactive one, if you can do.
Berd
Trusted Contributor

Re: how to include controlM agent startup at /etc/inittab file

I worked with Control-M for a number of years on HP-UX, and did not need to perform any manual action to start the agent. It was started automatically using rc scripts. Unfortunately, the site I now work at do not user Control-M so I cannot forward you a copy of the startup scripts. You should persevere, it is possible.

Regards,
Berd
Sharma Sanjeev
Respected Contributor

Re: how to include controlM agent startup at /etc/inittab file

Hi

You can start ControlM through rc scripts,
we are using this & starting it in rc2.d

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
bright image
Frequent Advisor

Re: how to include controlM agent startup at /etc/inittab file

You can specify all the options required as arguments to the start and stop agent scripts. These scripts should be run as root.

ctm/scripts/start-ag ├в u -p ALL

and in the shutdown script - you will need:

ctm/scripts/shut-ag ├в u -p ALL

see page 24 of http://www.control-musage.com/document/Documentation/CTMA/V6.3.01/AG63762.pdf
bright image
Frequent Advisor

Re: how to include controlM agent startup at /etc/inittab file

the strange characters above should read -u
sysad_boy
Frequent Advisor

Re: how to include controlM agent startup at /etc/inittab file

thanks for all your replies.

I was able to modify the startup-agent script and hardcoded the necessary inputs being required.

Actually my version of controlM asks for 2 parameters. First is the username and then the "ALL" input as mentioned in one of the posts here.

Thanks so much for your help.

Anyway what is the exact file to which I should add the agent-startup script? /etc/rc???
Berd
Trusted Contributor

Re: how to include controlM agent startup at /etc/inittab file

I would have one startup/shutdown script in /sbin/init.d, and then a startup process in /sbin/rc3.d e.g. S850CtrlM_agent and a shutdown in /sbin/rc3.d e.g. K850CtrlM_agent. If you look at other examples in these directories you should see how it hangs together.

Regards,
Berd