Hi,
Is there a way to start or reset the GAS via command line?
Thanks,
Travo
Start GAS via Control M job
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" &
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" &
Start GAS via Control M job
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
Thanks,
Travo
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
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
Start GAS via Control M job
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
I can still sign into the GAS also from the AJF.
Any ideas??
Thanks,
Travo
Hi,
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
It's normal. "life_check" option is used to compare Control-EM database and existing processes.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....
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