Can the Master act as an agent for the remote agent to FileTransfer to, or are you suggesting I have a second agent running on the master machine to enable this transfer. I did think about using global variables to indicate success or failure. Could you explain further why this will have load implications (do you mean that running a job to check the variable will cost more that the file watch trigger?). I cannot use UNC because the two machines cannot see each other. Also, when is version 3 likely to be released. Thank you for your assistance. : Setup 2 jobs: one is the main job to be ran on the remote host an : asynchronous job, and another is to watch for a semaphore file. In the : remote job you will analyze exit code and create some file which then you : wil send back to the main scheduler using FileTransfer statement. Your : second job will watch for that file and when found read it and depending : on the file contents do you need to do. The file contents is up to you and : can be something simple as OK or FAIL or more complicated such as a : dynamic script that can be later executed on the main scheduler using : @SCRIPT tag. : For this scenario, make sure to run main scheduler as a server in the Master : mode, also make sure to specify different port numbers for the Agent and : Master. On the remote, create a profile that will point to the master and : thus will allow backward connection from Agent to Master. : Another approach is to use GetRemoteVariable/SetRemoteVariable statements : instead of transferring files so that when the job is complete on the : agent it calls SetRemoteVariable to set some global variable on the : master. Your other job would periodically check that variable. Although : this method sounds simpler than using files but it will cause more load on : the master. : Good luck
|