Hi all.
I´ve been looking for a way to automaticly download and save the routing tables of my routers - At least the most intresting ones
I have´nt been able to figure out how to do that.
Any one that can assist ?
Brgds
Jesper
Jesper,
I am stuck at the moment as I am getting the error "Connectivity issues discarding config file. Device IP:xxxxxxxxx" whereas NCM is able to download properly the file but it cannot "catch" the prompt.
Here is what I did so far:
1- Manually select the existing template for the device I am going to add a second time
Right-click on the device and select Edit Selected Node.
Scroll down to the Communication Section and change the Device Command Template from "Auto Determine" to your the template used by the device. e.g. Cisoc Catalyst CatOS for a Cisco CATOS 6503.
2- Copy the original template used for that device and rename its name to something easy to understand.
e.g. Cisco Catalyst CatOS-1.3.6.1.4.1.9.5.ConfigMgmt-Commands to Cisco Catalyst CatOS_RT-1.3.6.1.4.1.9.5.ConfigMgmt-Commands
Edit in your text editor and change the name inside it as well:
e.g. Device="Cisco Catalyst CatOS" to Device="Cisco Catalyst CatOS_RT"
Change the Download Config command variable:
e.g. <Command Name="DownloadConfig" Value="Show ${ConfigType}"/> to
<Command Name="DownloadConfig" Value="Show ip route"/>
3- Add a second time your equipment
In NCM, Nodes > Add New Node
You will be asked to confirm that you want to add a duplicate node.
4- Select the modified template in the properties of the new node
5- Try to download the config
Right-click on the new device and select Download Configs.
Let me know if you get the error as well, if you get the error, please post a session trace:
Sanitize the trace before to post it.
Thanks
Yann
Hi Jesper,
The way to do this would be to add each device a second time and use a dedicated device template for each device type that sends a show ip route (or any other command).
Is there a specific device you would like to try on?
Thanks,
Hello
ok - Strange that it has to be added twice !?
But, i can live with this
I´d like to download from a 3560, 3560E and 6500 and 7600 routers (switches)
Br Jesper
Strange that it has to be added twice !?
This is because a device can use only one template, so we need a second instance of the same node to use the modified template and keep your configuration as it is for the first instance.
I will give a try here in the lab for a 6500 series device.
The steps would be:
1- identify the template used by the device
2- Create a copy of it and edit the DownloadConfig variable
3- Add a second time the device
4- Set the custom template to be used by this new device.
5- Test if that works.
So, one cannot simply run the command script against the node(s) from the NCM console?
You are right freemen, but then the results can be saved only in text files which means that you will not be able to e.g. run some policy reports.
If there is no need of the advanced features then of course your method is faster to implement.
Up to Jesper :-)
I´d like to get a script i can use.
But its important to also be able to run reports so i think it would be nice if you tested this in the lab.
Yann,
I am trying to get "show IP route static" into DB and have followed the above instructions.I am also getting error - "connectivity issues discarding config file. Device IP <blah> ..."
if I click on the ...it shows me the correct output (show ip route static).
How do I eliminate error message so this will save to DB?
Thanks much!
We only save configs of a certain length to prevent from saving corrupted configs. Show ip route static is likely under this limit of 11 lines. We've got this on our roadmap to address in a future release, but until then, your best bet is to run this in a execute script job and save off the results. Unfortunately, this means you won't get compare for now.
ok, but "saving off" the results entails dumping to a file right, not saving to the DB? That is ultimately what I am looking for is to get that into the DB and how to do that...Thanks
I just set this up to backup the our vtp vlan database. Substituted the show ip route for show vlan. Works great.
Yup - The only "bug" i´ve found, is when you use NCM to script config items to your devices, and use the policy reporter to comply with given policys. Gives me some "false posetives"
Kind of annoying that i cant add that IP route (and other) download command to the allready excisting node.... - But i guess that can be request for future releases
/ J
Yes, we've got this on our roadmap. Our goal is to allow users to optionally add a new config type (e.g. Route Table) and manage it as if it was another config on a device. So, you might have Route Table, Startup, and Running configs for each device.
We'd love to get your feedback if this approach makes sense to you or if you have other suggestions on how to handle these use-cases.
This would be perfect for what I am trying to do. Basically I am trying to replace the engineering drawings for a dynamically updated drawing within the Solarwinds environment.I'd be looking for this feature to be customizable by entering the command(s) for the desired output.It would also be useful to be able to dictate whether it saves to the database historically (multiple instances based on time), or one column/field that gets updated every time this runs.To go with the last option, I'd want to be able to schedule how often it runs - hourly, daily, weekly, monthly, etc...
Thanks for the feedback guys. I've updated the enhancement request with these additional nuances in the requirements.
I have a convoluted solution to get static routes to populate my maps that could be tweaked to save routing tables depending on what specifically you are trying to do. email me directly if you want more info on it.
basically, it uses some stored procedures in NCM and NPM DBs. I just run a script every night.
I do not see how to email you? can you please email me that solution at robpa2002@hotmail.com ? thanks.