Discussion:
[rancid] run different command for two types of cisco
Iñaki Martinez Diez
2009-09-24 13:54:02 UTC
Permalink
Hi,

I have cisco routers 8xx that rancid must run "show startup-config"
because permission for that user only permit that.

And i have Cisco switches and routers (several models) I want rancid to
run "show running-config".

So how can i do that ??

I know i can change the rancid file, i have this line:

{'show startup-config' => 'WriteTerm'},

But how to do one command or other base on type of device ?


Thanks in advance.
Remy Heiden
2009-09-26 10:51:47 UTC
Permalink
Oops, saw I forgot to post this to the group...

---------- Forwarded message ----------
From: Remy Heiden <***@gmail.com>
Date: 2009/9/24
Subject: Re: [rancid] run different command for two types of cisco
To: Iñaki Martinez Diez <***@hostalia.com>


I think you can copy the rancid script to for example "c8xxrancid" and
change the command.
Then in the rancid-fe file you can add another devicetype c8xx that refers
to the new script.
after that in the router.db, routers.all and routers.up you can set
<routername>:c8xx:etc....

that should work
--
====================
DIHYDROGEN MONOXIDE
The invisible Killer
DHMO.org
====================
--
Loading...