1. As documented in the on-line help and the 24x7 user guide, JobXXX statements are not supported in asynchronous and remote jobs, because every async. job runs in it's own virtual environment. 2. 24x7 Remote agent does not have a job database loaded and so it does not know about your user defined statements. Script Library is not sent with the job when the job definition is sent to the Agent. There are several workarounds that can be used in this situation 1. Copy your user-defined statement as a JAL file to the remote agent machine. In the script to be ran on the remote agent use @SCRIPT tag to link the JAL file. You may need to do some slight changes in the JAL statement to adopt it for in-line call. For more info please see "off-line scripts" and "@SCRIPT" keywords in the help file index 2. On the remote agent instead of executing JobRun use Run("24x7 /JOB ....) statement. 3. many other workarounds that may be good or bad in different cases : I'm currently running version 2.3.7 of 24x7 Scheduler. I get the error : "Remote job failed exit code -1" when I execute a JobRemoteRun, : JobRun or User defined statment from a remote job. The following is a : simply test scenario that will reproduce the problem. : Master scheduler: port 10006 : Remote agent smills1: port 10001 : Remote job is called "smills1 Test Report agent" : Host property: "smills1" : Code content: Messagebox("Made it to Remote Agent") : getenvironmentdata - [a User-Defined Statement] : [end of code] : getenvironmentdata - [a User-Defined Statement] : Code content: Messagebox("Made it to remote agent from : getenvironmentdata ") : [end of code] : The "Made it to Remote Agent" messagebox displays on the remote : server with no error. However the "Made it to remote agent from : getenvironmentdata " messagebox does not display and generates the : error "Remote job failed exit code -1" on the master scheduler. : The same thing happens if I use JobRemoteRun or JobRun instead of the : User-Defined Statement. : Would you tried my simply test to see if it fails in your environment. If it : fails hopefully you will have a fix for me. If it does not fail then I : hope you can tell me what I'm doing wrong. : Thanks : Sam Mills - sam_mills@es.adp.com
|