|
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
Are jobs currently running |
|
Hi
Is there any way to test whether jobs are currently running in scheduler 3.4.x windows? I'm trying to code for the a secondary scheduler that has been failed over to checking whether the primary is up again yet and gracefully rolling back into standby mode without interrupting any jobs that may have started.
Thanks
|
|
Tue Dec 11, 2007 12:12 am |
|
|
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7847
|
|
|
|
You can use the API to remotely connect to the scheduler and get list of running or queued jobs. See GetMonitor or GetJobQueueMonitor, GetJobQueueList API methods.
|
|
Tue Dec 11, 2007 12:50 am |
|
|
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
|
|
But there's nothing in JAL that can do it?
|
|
Wed Dec 12, 2007 4:19 pm |
|
|
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7847
|
|
|
|
There are no direct methods for that. Indirectly you can check for existence of .Q files in queue subfolders and their dates. Take a look at RemoteDir command. To get a list of queues you can use RegistryList. There is an example in the online help demonstrating how to get the list of agents. Similar thing can be used for Queues.
|
|
// declare script variables
Dim( q_name_list, string )
// get list of queues from the registry
RegistryList( "HKEY_LOCAL_MACHINE\SOFTWARE\SoftTree Technologies, Inc.\24x7 Scheduler\3.0\Queues", "SUBKEYS", q_name_list) |
You can also create a VBScript job to get remote job list using the COM API. From JAL you can also run VBScript code and have that code get remote job monitor and save results to a local file, then read it from the file
VBScriptExecute("dynamic script here")
Examples for COM API or Java API usage are available COM API Reference and Java API Reference. There is really nothing complicated in using these interfaces. It is almost as simple as JAL.
|
|
Wed Dec 12, 2007 5:35 pm |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|