»  Forums
Minimize FLCAUG Discussion Forums
Print  
 
Subject: Checking for file Existence
You are not authorized to post a reply.
Author Messages

SuperUser

Advanced MemberUser is Offline
Posts:26

04/19/2004 1:45 AM  
Hi,
We are currently using triggers to generate messages to kick off a file transfer script via a Message action. We are trying to find a way of being notified if a file is not received initially. Any help would be appreciated.

SuperUser

Advanced MemberUser is Offline
Posts:26

04/19/2004 9:01 AM  
Hello,

There are a few different ways you can do this. If there is an agent running on the machine that is receiving the file, you can monitor the
existence of the file through the SNMP agent for that workstation in Worldview. Once you do this, messages will be generated and sent to the
Event Console informing you whether the file exist or not.

The other way to do this is to share the directory where the file should exist and periodically check for the existence of it with a batch script, incorporating "pauses" in between, to give the file enough time to transfer.
In other words, in your FTP script, after your FTP "put" command (or get), use a "cawto" to send a message to the event console that the file was sent. If you know that it takes roughly 60 seconds for the transfer to complete, then have another script that gets triggered with that message that pauses for 60 seconds, and use an "if exist \COMPUTER\SHARE\FILE cawto file
retrieved" or whatever. If not, you can try it again, say three times or so. Then, you can set up your business policies accordingly, like if it's not received after the second time, email someone, if not after the third time, generate a help desk ticket and page someone, etc.

For pausing, you won't be able to actually use the "pause" command because it requires user input, so you'll need another utility like "sleep.exe" or "sleepy.exe" (which is on the TNG CD I believe), or you can use "choice.com" which is a standard DOS command, and set the time-out to whatever you want your interval to be.

This is a little general so let me know if I can be more specific.

Good luck!
Don
You are not authorized to post a reply.
Forums > Discussion Forums > Unicenter Topics > Checking for file Existence



ActiveForums 3.6
 
     
Date » 23 July, 2008    Copyright 2002-2008 by RavenSystems & FL CA Users Group Login : Register
Inspired by Nina