[rancid] Help: Add new ios command

heasley heas at shrubbery.net
Fri Mar 24 14:15:48 UTC 2017


Fri, Mar 24, 2017 at 09:02:30AM +0700, Sophanith Chhom:
> Thank you so much.
> 
> Could you share coding for this purpose please since I am not so good for
> it.

I've added some instruction in the form of a FAQ; S4Q3.  retrieve the current
at http://shrubbery.net/rancid/FAQ .

> On Thu, Mar 23, 2017 at 10:57 PM, heasley <heas at shrubbery.net> wrote:
> 
> > Thu, Mar 23, 2017 at 10:18:17AM +0700, Sophanith Chhom:
> > > Dear All,
> > >
> > > Hope you are fine, I am having a question to add new command to Cisco
> > router
> > >
> > > I would like to add new command: *#show bgp summary*
> > >
> > > And I try to modify this file: *rancid.types.base* and add this new
> > command
> > > as bellow:
> > >
> > > cisco1;command;ios::WriteTerm;more system:running-config;ASA/PIX
> > > cisco1;command;ios::WriteTerm;show running-config view full;workaround
> > for
> > > role-based CLI
> > > cisco1;command;ios::WriteTerm;show running-config
> > > ##New command added
> > > *cisco1;command;ios::ShowBGPSummary;show bgp summary*
> >
> > ios.pm, but i suggest that you create your own pm, chhomios.pm, for your
> > function and just include that and ios.pm for cisco1.
> >
> > > Can you share which file config do I need to add some code more to make
> > it
> > > works?
> > >
> > >
> > > Thanks a lot.
> >
> > > _______________________________________________
> > > Rancid-discuss mailing list
> > > Rancid-discuss at shrubbery.net
> > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> >
> >



More information about the Rancid-discuss mailing list