SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Job Errors on Remote Agents

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Job Errors on Remote Agents
Author Message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Job Errors on Remote Agents Reply with quote

Hi,

I was wondering if there is a way to trap the error code that a JAL script generates when it fails runing on a remote agent. The Master scheduler just gets a -1 return which saids the remote job failed. The actual error message is on the Remote Agent computer. I know that I can create my own error messages to say the job failed on a certain command but without the scheduler error code/message I can't say WHY it failed.

Thank you for your help,

John

Fri May 17, 2002 8:58 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Job Errors on Remote Agents Reply with quote

You can try to read and parse the log file on the agent.

Alternatively you can rewrite your script to look like the following:

Dim GLOBAL.last_error, number

OnErrorGoTo label_1

statement-block
OnErrorGoTo label_2

statement-block
OnErrorGoTo label_3

statement-block
Exit

label_1:

Set GLOBAL.last_error, 1

Exit
label_2:

Set GLOBAL.last_error, 2

Exit
label_3:

Set GLOBAL.last_error, 3

Exit

You can then pass the value stored in the GLOBAL.last_error variable back to the Master. Please see previous message thread for "how to..."

: Hi,

: I was wondering if there is a way to trap the error code that a JAL script
: generates when it fails runing on a remote agent. The Master scheduler
: just gets a -1 return which saids the remote job failed. The actual error
: message is on the Remote Agent computer. I know that I can create my own
: error messages to say the job failed on a certain command but without the
: scheduler error code/message I can't say WHY it failed.

: Thank you for your help,

: John

Fri May 17, 2002 9:11 am View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: Job Errors on Remote Agents Reply with quote

I already have SET GLOBAL and GetRemoteVariable statements in the jobs to get messages from the remote agent but they are just messages that "I" create. I want to get the error code that the scheduler generates and put THAT into the global variable.

According to your previous message the only way to do that is to parse the schedule.log file.

Thank You,

John

: You can try to read and parse the log file on the agent.

: Alternatively you can rewrite your script to look like the following: Dim
: GLOBAL.last_error, number

: OnErrorGoTo label_1

: statement-block
: OnErrorGoTo label_2

: statement-block
: OnErrorGoTo label_3

: statement-block
: Exit

: label_1: Set GLOBAL.last_error, 1

: Exit
: label_2: Set GLOBAL.last_error, 2

: Exit
: label_3: Set GLOBAL.last_error, 3

: Exit

: You can then pass the value stored in the GLOBAL.last_error variable back to
: the Master. Please see previous message thread for "how to..."

Fri May 17, 2002 9:21 am 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.