06-05-2012 07:40 AM
I'm looking for an elegant way for TES to communicate with CPO. Is an SNMP message the only? Or is there an adapter available? Or is there something I could be missing with CPO that would work?
What I'm trying to do is set up processes to run some general diagnostics on systems when either a job fails in TES or when we lose a connection within TES.
An ability for CPO to kick off a TES job as well would be great as well. For example, a TES job fails, CPO runs some diagnostics (restarts a service, whatever) and then reruns that job that failed in TES.
06-05-2012 08:33 AM
Hi James!
For TES->CPO
You could do a lot of things. Web Services, Powershell CLI, Windows Events - CPO can trigger from them all.
My suggestion would be to use web services. CPO has a north bound web services set to start processes and do other things. The standard WSDL for processes would be http://
You can also try the powershell CLI, CPO has some build in commandlets, like "Start-TEOProcess -name
We have guides(in the doc) on both Northbound Web Services, and Powershell. If you need some further webex type help, best to open a case. We can give you some further guidance in setting things up.
As far as CPO kicking off a TES job, TES has web services as well so you can use CPO and the Web Service Execute activity to call into TES web services to start a job. (or restart or whatever)
We(in support) thought of another neat idea that would be to use CPO to monitor your agents and your master service and then if they go down you could do automated recovery and have CPO restart them and resubmit jobs or whatever. CPO has activities called "Query Windows Service" and "Control Windows Service" that give you full control over those. (if you ran a unix master, you could do the same using some unix/linux connections and scripting there)
-shaun
06-05-2012 09:50 AM
The web services sound great! I'll have to look into that.
As far as CPO monitor the TES agents, how would I go about doing that? It would be great to be able to set up a trigger, that as soon as the agent goes down TES would send a message or run a process in CPO. CPO then would use the Services tools to fix/diagnose the problem.
I just can't think of any way that TES can do that (granted, I don't know nearly enough about TES's features).
Thanks for the help!
06-05-2012 10:01 AM
You could do it a few ways...
(With a general Windows Idea)
In talking with Devin, we think a really neat way would be ...
1) have the TES Master right an event to your windows event log (say event # 11111) that outputs when the master loses connection to the agent
2) Create a windows target for the TES Master in CPO and then create a process to trigger off of that event ID
3) When that event ID triggers, pull out the TES Windows Agent from the event and then use the CPO NorthBound Web Services to create a windows connection to that agent(on the fly)
4) Then restart the Agent Service using Control Windows Service
5) Then delete the windows target for the agent
Just some ideas. If you need more open up a sev 4 case and we can do a webex and give some ideas.
-shaun
06-07-2012 09:06 AM
No, that idea is perfect!
I posted this question in the TES section as well, but I thought I would discuss it here since it is applicable:
1) I found the ability to set certain errors to write to the Windows Event Log in the System Configuration in TES, but Lost Connection is not there. I can do it as an action off of the the System Event that is generated when a connection is lost, but I wanted to verify that this is the best way to go about it. The System Configuration seems like a better way, if that option is available.
2) I cannot find the variable to pass in the machine location, only the agent name, to the event. This would be vital to letting CPO know where to fix the issue. Passing the platform would be hugely important as well.
I know these are TES specific questions, but I thought I would ask here just in case. Maybe some one else might find this useful later on as well (as I've found other people's posts useful)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide