Operating System - HP-UX
1848480 Members
8056 Online
104029 Solutions
New Discussion

Startup Scripts for EMC Agents

 
SOLVED
Go to solution
KPS
Super Advisor

Startup Scripts for EMC Agents

Hi Folks:

I'm looking for a way to automate startup of some EMC Agents during server startup. I'm wondering if I need some sort of customized script to do this, or if there is an alternative? If I do need a script to do this, where will it reside?

I'm trying to start are the ECC and WLA Agents for EMC Control Center.
3 REPLIES 3
Jordan Bean
Honored Contributor
Solution

Re: Startup Scripts for EMC Agents


Have a look at the /usr/emc/ECC/eccagents script to manage the ECCagent and WLAagent.

Create /sbin/init.d/eccagents to do this:

#!/sbin/sh
case "$1" in
(start_msg) echo "Starting ECC Agents";;
(stop_msg) echo "Stopping ECC Agents";;
(start|stop)
. /usr/emc/ECC/symmappsrc.sh
/usr/emc/ECC/eccagents $1
;;
esac

steven Burgess_2
Honored Contributor

Re: Startup Scripts for EMC Agents

Hi

I would just follow the way all other services, programmes are started up on boot

script in /sbin/init.d
config file in /etc/rc.config.d

run levels you wish the agents to start during startup and shutdown in sequencer directories

/sbin/rc1.d - run level 1
/sbin/rc2.d - run level 2
/sbin/rc3.d - run level 4

The above are for eg in rc2.d

S724sap_start -> /sbin/init.d/sap

Will tell the system at runlevel2 to start sap

There is a template in /sbin/init.d/template for starting your programs which you just add the command in the relevent area

Have a look at this doc also

/usr/share/doc/start_up.txt

HTH

Steve
take your time and think things through
steven Burgess_2
Honored Contributor

Re: Startup Scripts for EMC Agents

Hi again

Here is more info on startup programs, run levels etc

http://docs.hp.com/hpux/onlinedocs/os/startup.pdf

HTH

Steve
take your time and think things through