On Fri, 24 Feb 2012 07:04:22 +0100 Sigurd Mytting sigurd@mytting.no wrote:
Hi!
We´re looking into using rancid (http://www.shrubbery.net/rancid/) for keeping track of device configuration. I´d like to use the NAV database to build the rancid configuration. Currently I use dump.py, but I need more of the internal NAV data per device, most importantly I need to know the device vendor - cisco, juniper, alteon and so on.
Is there an easy way to get a more complete dump of the NAV database?
Not too easy unless you're comfortable with either SQL or Python/Django.
I've attached a patch that shows how to add the device vendor to the netbox output of dump.py. Although the resulting file may cover your needs, it can no longer be used for bulk imports in Seed DB.