How to download fault log files from network devices automatically?

Is automation of downloading and saving fault log files from network devices possible?

Q: We want to download the ‘fault logs’ from every equipment piece being monitored without human intervention. Too many units/equipment being monitored to do it manually. Is it possible?

A: You can use Custom Script or Program monitor along with download2.vbs script. Contact us to download it and put download2.vbs script somewhere on your computer (“c:\LogFiles” folder, for example)

Create the monitor and configure it as on the screenshot.

The monitor will be invoked once a day and will invoke the script. If script would fail to download the file the monitor will go to the Down state and will put the error message into the LogView tab, otherwise it will be in OK state.

Script accepts two parameters: the first one is the URL and the second (optional) is the path of the folder to save files. The default folder path is hardcoded in the beginning of the script. Script generates names of the files as YYYYMMDDHHMMSS.log

Script works fine when no username/password are required. If your sites use the HTTP authorization you should put the username/password into the beginning of the script. If some custom authorization is used (via special web forms or so) it wouldn’t work.

Related topics

Can I monitor custom port?

Frequently Asked Questions

Check out our Knowledge Base where we answer questions regarding various topics.

Can fault log downloads from devices be automated?

Yes. Use a Custom Script or Program monitor with the download2.vbs script to download device fault logs on a schedule.

What parameters does download2.vbs accept?

The first parameter is the URL to download, and the optional second parameter is the folder where downloaded log files should be saved.

What happens if the log download script fails?

The monitor enters the Down state and writes the error message to the LogView tab; successful downloads leave the monitor in OK state.