SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Can't FTP GetFile for the last time

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Can't FTP GetFile for the last time
Author Message
Wiwit Tjahjana



Joined: 20 Aug 1999
Posts: 2

Post Can't FTP GetFile for the last time Reply with quote

Dear all,

I have a problem with licesend version of 24x7 Scheduler 1.4.0. This problem did not exist before I purchased the software, i.e. when we used the trial version.

I have a JAL script as the following to retrieve files from 4 servers to localhost:

// Files

Dim today, date
Dim yesterday, date
Dim file_name, string
Dim source, string

// Get todays's date
Today( today )
// Calculate yesterday's date
DateAdd( today, -1, yesterday )
// Convert to string in mmddyyyy format
Format( yesterday, "yymmdd", file_name )
// Append file prefix & extension
Concat( "ex", file_name, file_name)
Concat( file_name, ".log", file_name )

Dim i, number
Dim numMachines, number
Dim loopcontinues, number

Dim path, string
Dim target, string
Dim hostname, string
Dim msg, string

Set numMachines, 4

// source
Dim strSource, string
Set strSource, "/dirfil-x1/ "
Concat(strSource, "/dirfil-x2/ ", strSource)
Concat(strSource, "/dirfil-x3/ ", strSource)
Concat(strSource, "/dirfil-x4/ ", strSource)
// 1234567890123

Set i, 1
Set loopcontinues, numMachines
Dim start, number

LoopWhile( loopcontinues, ENDS )

// Construct hostname

Set hostname, "machine-x.comp.com"

// Construct path

Subtract i, 1, start

Multiply start, 13, start

Add start, 1, start

Mid (strSource, start, 13, path)

Trim path, path

// Construct target

Concat("d:/weblog", path, target)

Concat(target, file_name, target)

// Construct source

Concat(path, file_name, source)

// Write Start Msg

String(i, msg)

Concat("Transferring from Machine ", msg, msg)

Concat(msg, " (", msg)

Concat(msg, hostname, msg)

Concat(msg, source, msg)

Concat(msg, " --> ", msg)

Concat(msg, target, msg)

Concat(msg, ")", msg)

LogAddMessage( " ", msg )

// FTP!

FTPGetFile(hostname, "userid", "passwd", source, target )

// Write Stop Msg

String(i, msg)

Concat("Stop Transferring from Machine ", msg, msg)

Concat(msg, " (", msg)

Concat(msg, hostname, msg)

Concat(msg, source, msg)

Concat(msg, " --> ", msg)

Concat(msg, target, msg)

Concat(msg, ")", msg)

LogAddMessage( " ", msg )

// Next machine

Add i, 1, i

Subtract loopcontinues, 1, loopcontinues

ENDS:

LogAddMessage(" ", "Transfer Ends")

// do nothing

Formerly it ran with no problem. Now, after applying our ProductID, the last file was not retrieved, even though the Event Log of WindowsNT show that all the messages above are posted properly. It is *always* the last file which is not successfully retrieved (Switching around the subdirectories does not alleviate the problem: The last file is always not transferred). I was suspicious that the execution of the script or the file transfer process is somehow halted. However, the Event Log shows that there are considerably long delay for the last file, indicating that 24x7 Scheduler was trying hard to get the file, but was not successful in doing it. The delay for the last file transmission is 6 minutes, while the previous three transmissions only take about 1-2 minutes each. All the files transferred are about in the same size.

One other symptoms is that this problem does not occur when you run the job manually (by choosing Run Now from 24x7 Scheduler console).

I'd appreciate if anybody could help us with this problem.

Thank you.


Fri Aug 20, 1999 9:35 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6499

Post Re: Can't FTP GetFile for the last time Reply with quote

a) Check job log for errors or warnings (select View/Log menu).
b) Make sure you don't have "Ignore errors" option set to YES.
c) Don't run this script as a asyncronious job.
d) Enable tracing, so you can see both script tracing and FTP messages. This will let you catch FTP error messages.
e) Try running this job on shcedule and manually with a short time interval so that you know you have the same network/FTP conditions.
f) Try 24x7 Scheduler v1.5.0 that can be freely downloaded from this web site as a upgrade to 1.4.0.

Regards,
SysOp

: Dear all,

: I have a problem with licesend version of 24x7 Scheduler 1.4.0. This problem
: did not exist before I purchased the software, i.e. when we used the trial
: version.

: I have a JAL script as the following to retrieve files from 4 servers to
: localhost: // Files

: Dim today, date
: Dim yesterday, date
: Dim file_name, string
: Dim source, string

: // Get todays's date
: Today( today )
: // Calculate yesterday's date
: DateAdd( today, -1, yesterday )
: // Convert to string in mmddyyyy format
: Format( yesterday, "yymmdd", file_name )
: // Append file prefix & extension
: Concat( "ex", file_name, file_name)
: Concat( file_name, ".log", file_name )

: Dim i, number
: Dim numMachines, number
: Dim loopcontinues, number

: Dim path, string
: Dim target, string
: Dim hostname, string
: Dim msg, string

: Set numMachines, 4

: // source
: Dim strSource, string
: Set strSource, "/dirfil-x1/ "
: Concat(strSource, "/dirfil-x2/ ", strSource)
: Concat(strSource, "/dirfil-x3/ ", strSource)
: Concat(strSource, "/dirfil-x4/ ", strSource)
: // 1234567890123

: Set i, 1
: Set loopcontinues, numMachines
: Dim start, number

: LoopWhile( loopcontinues, ENDS )

: // Construct hostname

: Set hostname, "machine-x.comp.com"

: // Construct path

: Subtract i, 1, start

: Multiply start, 13, start

: Add start, 1, start

: Mid (strSource, start, 13, path)

: Trim path, path

: // Construct target

: Concat("d:/weblog", path, target)

: Concat(target, file_name, target)

: // Construct source

: Concat(path, file_name, source)

: // Write Start Msg

: String(i, msg)

: Concat("Transferring from Machine ", msg, msg)

: Concat(msg, " (", msg)

: Concat(msg, hostname, msg)

: Concat(msg, source, msg)

: Concat(msg, " --> ", msg)

: Concat(msg, target, msg)

: Concat(msg, ")", msg)

: LogAddMessage( " ", msg )

: // FTP!

: FTPGetFile(hostname, "userid", "passwd", source, target )

: // Write Stop Msg

: String(i, msg)

: Concat("Stop Transferring from Machine ", msg, msg)

: Concat(msg, " (", msg)

: Concat(msg, hostname, msg)

: Concat(msg, source, msg)

: Concat(msg, " --> ", msg)

: Concat(msg, target, msg)

: Concat(msg, ")", msg)

: LogAddMessage( " ", msg )

: // Next machine

: Add i, 1, i

: Subtract loopcontinues, 1, loopcontinues

: ENDS: LogAddMessage(" ", "Transfer Ends")

: // do nothing

: Formerly it ran with no problem. Now, after applying our ProductID, the last
: file was not retrieved, even though the Event Log of WindowsNT show that
: all the messages above are posted properly. It is *always* the last file
: which is not successfully retrieved (Switching around the subdirectories
: does not alleviate the problem: The last file is always not transferred).
: I was suspicious that the execution of the script or the file transfer
: process is somehow halted. However, the Event Log shows that there are
: considerably long delay for the last file, indicating that 24x7 Scheduler
: was trying hard to get the file, but was not successful in doing it. The
: delay for the last file transmission is 6 minutes, while the previous
: three transmissions only take about 1-2 minutes each. All the files
: transferred are about in the same size.

: One other symptoms is that this problem does not occur when you run the job
: manually (by choosing Run Now from 24x7 Scheduler console).

: I'd appreciate if anybody could help us with this problem.

: Thank you.

Fri Aug 20, 1999 12:59 pm View user's profile Send private message
Wiwit Tjahjana



Joined: 20 Aug 1999
Posts: 2

Post Re: Can't FTP GetFile for the last time Reply with quote

Dear SysOp,

I followed your instructions (Point b, d, and e) and the problem seems to go away. The job has been running not as asynchronous job, so I did nothing to the switch (Point c). Checked the job log -- no error at all (Point a). I have downloaded v1.5.0 (Point f), but since I did not find any problem anymore, I postponed upgraded the program.

Thank you very much for your help. Bravo for your superb support! :-)

brgds,

Wiwit Tjahjana

: a) Check job log for errors or warnings (select View/Log menu).
: b) Make sure you don't have "Ignore errors" option set to YES.
: c) Don't run this script as a asyncronious job.
: d) Enable tracing, so you can see both script tracing and FTP messages. This
: will let you catch FTP error messages.
: e) Try running this job on shcedule and manually with a short time interval
: so that you know you have the same network/FTP conditions.
: f) Try 24x7 Scheduler v1.5.0 that can be freely downloaded from this web site
: as a upgrade to 1.4.0.

: Regards,
: SysOp

Fri Aug 20, 1999 6:07 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.