Repetitious work is aggravating. If you ever have to do something such as transfer files on a regular basis from a Windows server to another server using FTP, you most likely will have come to grips with scripting FTP sessions. Here's one we threw together to send the report from our weather station connected to our internal Windows 2000 Server to our external Web server:
open www.ourserver.com
gearhead
secret
cd web/weather
cd e:\inetpub\ftproot\weather
put myweather.htm
bye
quit
We use this with the command "ftp -s:e:\ftpscript.txt." Great! But the weather station updates the report every 5 minutes. We could leave a batch script looping - pretty much guaranteed to barf within a few hours - or use the Windows Task Scheduler, which only allows a minimum repeat interval of 24 hours (unless you want to schedule multiple jobs), but the chances of trying to transfer a locked file (resulting in another barf) are high.
We needed a better way. Our ideal solution was to trigger the FTP job by the weather station report being updated. We found our solution in the shape of OpalisRobot from Opalis Software.
OpalisRobot is awesome. It consists of a server component and a client component - the latter can run on any machine, including the one hosting the server.
Using the client, you graphically construct a process flow by dragging "objects" from a palette into a workspace and linking them. The starting point can be a scheduled trigger or an event.
So we dragged a Monitor File Event icon from the File Management objects group into our workspace. We filled in the file- name and location attributes, and specified the event to watch for was the file changing (we also could trigger on file deletion, access, attribute change, etc.).
Next we dragged over a Run Program Task object and filled in the details of the program to run and the arguments to use. Once objects are configured in the workspace, they can be linked by clicking and dragging from one object to another.
It works great! Every time there's a file update the FTP utility kicks in and transfers the report to our Web server. Perfect! Then we thought: Let's test to see if we can ping our Web server (our DSL connection has become flaky and dies regularly, taking out our DSL modem and router.
Partner Content
NetScout and analyst Jim Metzler have teamed to deliver a series of IT Briefs on Network and Application Performance Management leveraging research from NetScout's nGenius & Sniffer users.
www.netscout.com
Metzler on Service Delivery Management
Delivering IT business value by evolving our thinking from managing application performance to focusing on services.
Learn More
2009 Handbook of Application Delivery
Successful IT organizations must know how to make the right application delivery decisions in these tough economic times.
Download the Handbook
Metzler on the Modern IP Network
Discusses the growing emphasis on network management and the need to implement a holistic view of the end-to-end experience of the user.
Read the Brief