SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Error running JobRemoteRun, Jobrun, & User

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Error running JobRemoteRun, Jobrun, & User
Author Message
Sam Mills



Joined: 29 Sep 2000
Posts: 9

Post Error running JobRemoteRun, Jobrun, & User def Reply with quote

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


Wed Nov 08, 2000 6:07 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: Error running JobRemoteRun, Jobrun, & User Reply with quote

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

Wed Nov 08, 2000 6:36 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.