Start GAS via Control M job

A lot of scripts ans example to extract information from Control-M tools.
Post Reply
TRAVO

Start GAS via Control M job

Post by TRAVO » 29 May 2007 2:54

Hi,

Is there a way to start or reset the GAS via command line?

Thanks,

Travo

danis

Post by danis » 30 May 2007 8:56

if you mean on unix - there is manual describing command line starting - CONTROL-M on UNIX Clusters Implementation Manual, f.e. start scripts:
EM_ACC='em620'
EM_VNAME='vhem620'
CTM_VNAME='vhctm620'
EM_DIR='/export1/em620'
# Start CONTROL-M EM CORBA Naming Service
su - $EM_ACC -c $EM_DIR/scripts/start_ns_daemon
# Start CONTROL-M EM GUI Server
su - $EM_ACC -c "$EM_DIR/appl/bin/ecs guisrv -name $EM_VNAME" &
# Start CONTROL-M EM Global Alerts Server
su - $EM_ACC -c "$EM_DIR/appl/bin/ecs gasrv -name $EM_VNAME" &
# Start CONTROL-M EM Global Conditions Server
su - $EM_ACC -c "$EM_DIR/appl/bin/ecs gcsrv" &
# Start CONTROL-M EM Gateway
su - $EM_ACC -c "$EM_DIR/appl/bin/ecs gtw -dc $CTM_VNAME" &

TRAVO

Start GAS via Control M job

Post by TRAVO » 30 May 2007 1:39

I was kind of looking for something that I could put inside a Control M job. I'm not using Clustering. I have Control M 6.2.01 for distributed systems, Unix Solaris 8. Something in the form of .exe or cmd.

Thanks,

Travo

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 30 May 2007 2:48

Hi

To add some further informations

For Unix
To start
ecs ctl -U emuser -P empassword -C GAS -name GASNAME -reg & or
ecs ctl -U emuser -P empassword -C GAS -all -reg &

To stop
ecs ctl -U emuser -P empassword -C GAS -name GASNAME -cmd stop or
ecs ctl -U emuser -P empassword -C GAS -all -cmd stop

For Windows
To start
ctl -U emuser -P empassword -C GAS -name GASNAME -reg & or
ctl -U emuser -P empassword -C GAS -all -reg &

To stop
ctl -U emuser -P empassword -C GAS -name GASNAME -cmd stop or
ctl -U emuser -P empassword -C GAS -all -cmd stop

TRAVO

Start GAS via Control M job

Post by TRAVO » 30 May 2007 2:53

That's exactly what I needed.

Thanks so much!

Travo

TRAVO

Start GAS via Control M job

Post by TRAVO » 30 May 2007 3:28

I tried the stop command and I notice that I am disconnected from the alerts however when I do a life_check it comes back and say's 'GAS "hjunctlmtst1" on hjunctlmtst1 is alive!' I also check from the command prompt and it say's the same....

I can still sign into the GAS also from the AJF.

Any ideas??

Thanks,

Travo

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 30 May 2007 3:58

Hi,
when I do a life_check it comes back and say's 'GAS "hjunctlmtst1" on hjunctlmtst1 is alive!' I also check from the command prompt and it say's the same....
It's normal. "life_check" option is used to compare Control-EM database and existing processes.
If in your Control-EM database GAS must be UP, when life_check is executed, it will try to start GAS server.

If not, GAS Server will stay not started.

If you want to know DESIRED_STATE you must use "Administrator Facility" or Configuration Manager", or using SQL try to launch following request :

select MACHINE_NAME, PROCESS_TYPE, DESIRED_STATE from CONFREG where PROCESS_TYPE='3' and MACHINE_NAME='YOUR GASNAME'

PROCESS_TYPE could be :
0 -- GATEWAY
1 -- GCS Server
2 -- GUI Server
3 -- GAS Server

TRAVO

Post by TRAVO » 30 May 2007 4:15

Got it.

Thanks,

Travo

Post Reply