GET SHOT DESTINATION WORKING

Everything about Control-M Enterprise Manager Server installation or setup.
Post Reply
User avatar
rich_arredondo
Nouveau
Nouveau
Posts: 16
Joined: 04 Nov 2011 12:00

GET SHOT DESTINATION WORKING

Post by rich_arredondo » 18 Nov 2011 8:32

How can I get this Shout destination working on Windows?, I want to use it on Control-M 6.4


# Destination Type Adr Logical Name Physical Name
--- ---------------- --- ----------------- ----------------------------
1 O S CONSOLE 2 E S ECS
3 L S IOALOG
4 P S KILLJOB /tmp/killjob.sh

Is the path for the script correct?

I am using this code for the script:

echo "Lanzado KILL JOB: $2" > /tmp/prueba_kill.txt &
ctmkilljob -ORDERID $2 &
ctmshout -DEST ECS -SEVERITY U -MESSAGE "JOB with ORDERID=$2 was Killed " &



I'm not really used to UNIX commands, so I haven't been able to addapt this procedure for Control-M for Windows.

Any help I can get from you?

Regards.

User avatar
brownbag
Nouveau
Nouveau
Posts: 161
Joined: 11 Oct 2007 12:00
Location: Melbourne

KILLING JOB THROUGH SCRIPT

Post by brownbag » 24 Nov 2011 1:48

The path is a UNIX path so definitely won't be correct for Windows.
To get the rest to work, just change the $2 to %2 (Unix to Windows).
My script has the following code:

cd C:\Program Files\BMC Software\CONTROL-M Server\Ctm_server\Exe
ctmkilljob -ORDERID %2
I don't know why I had to specify the path and it shouldn't have been necessary, but for some reason it was in this case.

User avatar
rich_arredondo
Nouveau
Nouveau
Posts: 16
Joined: 04 Nov 2011 12:00

Procedure to get shout destination working

Post by rich_arredondo » 24 Nov 2011 5:22

Did you do it with a batch (.bat) file called from the shout destination table?

User avatar
brownbag
Nouveau
Nouveau
Posts: 161
Joined: 11 Oct 2007 12:00
Location: Melbourne

KILLING JOB THROUGH SCRIPT

Post by brownbag » 27 Nov 2011 10:24

Yes, I did.

Post Reply