Discussion:
[rancid] Rancid 3.1, router.db using ; instead of :, device_type is empty
Daniel Jacobs
2014-07-07 19:45:00 UTC
Permalink
I just installed rancid 3.1 from source on a Centos 6.5 machine. I'm trying
to get the configs for our Adtran routers, so I figured I'd use the adtran
definition from rancid.types.base, but I've also tried this with cisco in
place of adtran in router.db and got the same results.

Here is my router.db:

router1.mydomain.com;adtran;up
router2.mydomain.com;adtran;up
router3.mydomain.com;adtran;up

output:

$ /usr/local/rancid/bin/rancid /usr/local/rancid/bin/rancid-run
loadtype(): device_type is empty
Couldn't load device type spec for

It works if I do this:
$ rancid -t cisco 10.4.0.1

And if I try this:
$ rancid -t adtran 10.4.0.1
I get this as output:
inloop is not configured for device type adtran at
/usr/local/rancid/bin/rancid line 121.

Since I've already made sure I'm using semicolons instead of colons, what
am I missing?

Thanks!

Daniel
heasley
2014-07-07 22:38:05 UTC
Permalink
Post by Daniel Jacobs
I just installed rancid 3.1 from source on a Centos 6.5 machine. I'm trying
to get the configs for our Adtran routers, so I figured I'd use the adtran
definition from rancid.types.base, but I've also tried this with cisco in
place of adtran in router.db and got the same results.
Sorry, thats a bit of a tease. I'd started that script, but things consumed
my time and I lost access to the one i'd been poking remotely. I can give
you a copy of what I have.
Daniel Jacobs
2014-07-07 22:41:08 UTC
Permalink
Thanks. I'd be glad to take a look. But it's not working if I choose cisco
as the router type in router.db - I'm getting

loadtype(): device_type is empty
Couldn't load device type spec for

And I do have semicolons rather than colons.
Post by Daniel Jacobs
Post by Daniel Jacobs
I just installed rancid 3.1 from source on a Centos 6.5 machine. I'm
trying
Post by Daniel Jacobs
to get the configs for our Adtran routers, so I figured I'd use the
adtran
Post by Daniel Jacobs
definition from rancid.types.base, but I've also tried this with cisco in
place of adtran in router.db and got the same results.
Sorry, thats a bit of a tease. I'd started that script, but things consumed
my time and I lost access to the one i'd been poking remotely. I can give
you a copy of what I have.
--
*Daniel Jacobs *
Senior IT Admin
\|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/
"""""""""""""""""""""""""""""""""""""""""""""
*door to door organics*
w. 303.620.5440
www.DoorToDoorOrganics.com <http://www.doortodoororganics.com/>
"""""""""""""""""""""""""""""""""""""""""""""
*delightfully *fresh
Daniel Jacobs
2014-07-07 22:41:45 UTC
Permalink
Adam, from 3.0 on, router.db uses ; instead of : so that IPv6 addresses
will work (at least that was my understanding).

Daniel
Use colons instead of semicolons in router.db
On Jul 7, 2014, at 5:18 PM, "Daniel Jacobs" <
I just installed rancid 3.1 from source on a Centos 6.5 machine. I'm
trying to get the configs for our Adtran routers, so I figured I'd use the
adtran definition from rancid.types.base, but I've also tried this with
cisco in place of adtran in router.db and got the same results.
router1.mydomain.com;adtran;up
router2.mydomain.com;adtran;up
router3.mydomain.com;adtran;up
$ /usr/local/rancid/bin/rancid /usr/local/rancid/bin/rancid-run
loadtype(): device_type is empty
Couldn't load device type spec for
$ rancid -t cisco 10.4.0.1
$ rancid -t adtran 10.4.0.1
inloop is not configured for device type adtran at
/usr/local/rancid/bin/rancid line 121.
Since I've already made sure I'm using semicolons instead of colons,
what am I missing?
Thanks!
Daniel
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
*Daniel Jacobs *
Senior IT Admin
\|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/
"""""""""""""""""""""""""""""""""""""""""""""
*door to door organics*
w. 303.620.5440
www.DoorToDoorOrganics.com <http://www.doortodoororganics.com/>
"""""""""""""""""""""""""""""""""""""""""""""
*delightfully *fresh
Loading...