[rancid] FS switches

heasley heas at shrubbery.net
Fri Aug 13 18:56:01 UTC 2021


Thu, Aug 12, 2021 at 04:14:21PM +0200, Bjørn Skobba:
> However, our Layer2 dude pointed out the os also was a bit cisco-ish,
> so I tried the cisco device type (ios module) and that worked fine as
> well . To make it more tailored to these switches I fiddled a bit with
> stuff I'm not really able to do (I'm not a (perl) programmer...):
> The ios module didn't have a ShowChassis routine, so I copied the ios
> module to a new one and added the ShowChassis routine from the dnos9
> module and added this to rancid.types.conf:
> 
> fscom;script;rancid -t fscom
> fscom;login;clogin
> fscom;module;fscom
> fscom;inloop;fscom::inloop
> fscom;command;fscom::ShowChassis;show system
> fscom;command;fscom::ShowVersion;show version
> fscom;command;fscom::ShowBoot;show boot
> fscom;command;fscom::DirSlotN;dir
> fscom;command;fscom::ShowDot1x;show dot1x
> fscom;command;fscom::ShowVLAN;show vlan all
> fscom;command;fscom::ShowDebug;show debug
> fscom;command;fscom::WriteTerm;show running-config
> 
> So just another way to achieve more or less the same.

fwiw, it is possible include multiple modules with more recent rancid
versions, like:

foo;module;ios
foo;module;fscom
foo;command;fscom::ShowChassis;show system
foo;command;ios::ShowVersion;show version

and more recent still, a type name can aliased:

fscom;alias;dnos9

if any of that helps.



More information about the Rancid-discuss mailing list