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 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.