[rancid] Help: Add new ios command
heasley
heas at shrubbery.net
Thu Mar 23 15:57:07 UTC 2017
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