[rancid] Adding IOS Commands to Rancid 3.1
wpleasants at gmail.com
Wed Apr 8 23:58:03 UTC 2015
Thank you very much for assisting. Was I right in modifying the ios.pm? By
definition do you mean something like below? I'm assuming if I wanted to
use this definition I'd have to change devices in router.db that I wanted
to run this command on? If it does work this way I suppose I'll want to
add all the other commands normally baked in the cisco definition?
# Custom Commands for Cisco IOS devices
cisco-custom;script;rancid -t cisco
cisco-custom;command;ios::ShowArchiveConfigDiff;show archive config diff
On Wed, Apr 8, 2015 at 6:36 PM, heasley <heas at shrubbery.net> wrote:
> Wed, Apr 08, 2015 at 04:18:27PM -0400, Chip Pleasants:
> > I couldn't find anything that discussed this in detail, so I'm hoping
> > someone could give me a little direction. I'm trying to add a new command
> > in rancid 3.1 for IOS devices and its not issuing the command i'm trying
> > add when running rancid. it doesn't seem its looking at the
> > rancid.types.conf file when running. I've modified the
> > /etc/rancid/rancid.types.conf and the
> > ios.pm. I've added my additions right about the "chow version"
> statement in
> > both files. Below are my the additions to each file and some debug out
> > I run rancid. Thanks in advance for taking the time to assist and let me
> > know if I can provide any more information.
> You should copy the cisco definition from rancid.types.base to
> rancid.types.conf and give it a new name.
> rancid looks in the base file first, and new installations will overwrite
> that file.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rancid-discuss