09-22-2015 02:26 AM
I have written a script to gather some baseline information from our routers, using the archive command, to gather live routing tables and the like:
ARCHIVE ($name.baseline): show ip route
ARCHIVE ($name.baseline): show ip ospf neighbor
ARCHIVE ($name.baseline): show lldp neighbor
This works great and in the job tab does generate files router1.baseline.txt, router2.baseline.txt etc. However that is not the most accessible place to have them. Is there a way to automatically export the ARCHIVE generated files at the end of job run? They will be going to a linux server, so tftp, scp, ftp etc are all valid option.
Alternatively is there a way to know what the path will be and perform a pull from the linux box?
09-22-2015 05:56 PM
The most recently created ZIP file will also be available for download directly from the NetMRI, using this URL: http://<NetMRI_IP>/netmri/ccs/tx/common/GetArchive.tdf.
09-23-2015 01:14 AM
That works for doing a manual grab. I wanted to run a number of parrallel jobs at 4am then push them out to our management server. You can't do something like a wget on that URL and if jobs are running in parallel, you can never be sure which output you are grabbing.
An alternative is to use the redirect commands on the router firmware and build the files up , one command at a time. It would be nicer if NetMRI could package these up for me and copy them out.
09-25-2015 09:19 AM
That would be a good RFE, like you account team know about the request.
As for the bandaid
I would make an external API call to run my first script at schedule time, check the status of the Job once completed download the file. Then continue to loop though the reset of the jobs.
Here are some examples:
10-07-2015 08:34 AM
A possible workaround that works pretty well for me.
In a perl script, write your desired logs into a file. And run a cronjob on the sandbox to transfer the files to your destination.
10-07-2015 10:08 AM
Or write a Perl script that dumps the files to the local filesystem on the Sandbox and then have the Perl script ftp/tftp/scp the file to the remote destination. The ftp/tftp/scp executables should all be pre-installed in the Sandbox.