cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
535
Views
0
Helpful
4
Replies

Monitoring file availability in an FTP location and Reading file name once file availability is ensured

pushkala27
Beginner
Beginner

We need to monitor a pre-configured folder, and once the file becomes available, the file should be read and processed.

4 REPLIES 4

Shaun Roberts
Cisco Employee
Cisco Employee

Probably have to use some scripting.

1) Check every so often for the file in the folder

2) If there, read file -> do processing

3) otherwise do nothing

not quite sure what you are looking for. If it's missing functionality or an issue, please open a TAC case with your contract ID.

thanks!

-Shaun Roberts

CIAC/CPO Support Team Lead

shaurobe@cisco.com

--Shaun Roberts
Principal Engineer, CX
shaurobe@cisco.com

With PO's agentless approach for remote system operations, polling is the only available method.

We can't efficiently do file-system "events" without a local presence on the box.  For an FTP server, an agent may not even be meaningful.

In other words, Shaun's approach is what you should use.

We only know the path to the required location. There may be more than 1 file which we need to read if and when they become available. Main thing is that we do not know the name of the file(s).

In short, we need to keep polling the given location, and read the file name as well as the data in it when the file becomes available.

Then you'll need to write some VBScript to read the contents of the directory and proceed from there. Would be the best way to attack it.

--Shaun Roberts
Principal Engineer, CX
shaurobe@cisco.com
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: