[rancid] supermicro switch (again)
heasley
heas at shrubbery.net
Mon Nov 21 15:33:10 UTC 2016
Mon, Nov 21, 2016 at 10:26:25AM +0100, Marcin Dulak:
> naively I do:
> cp usr/share/perl5/vendor_perl/rancid/edgemax.pm
> usr/share/perl5/vendor_perl/rancid/supermicro.pm
> change "package supermicro;" on the top and add a print STDERR ("I'm
> here"); to ShowVersion,
> but "I'm here" does no appear in the output of:
you havent a module line in the device config below, so the module is not
loaded.
> $ rancid -d -t supermicro supermicro-switch
>
> This goes back to my question: what gets executed when I replace
> "supermicro::" with "dummy::" in
>
> $ cat ./etc/rancid/rancid.types.conf
> supermicro;script;rancid
> supermicro;login;smlogin
> supermicro;inloop;supermicro::inloop
> supermicro;command;supermicro::ShowVersion;show version
More information about the Rancid-discuss
mailing list