[rancid] Edgerouter: showConfig command failure
heasley
heas at shrubbery.net
Tue Oct 24 09:55:13 UTC 2017
Tue, Oct 24, 2017 at 09:06:49AM +0200, Andreas Herrmann:
> Hi,
>
> On 24.10.2017 08:20, Andreas Herrmann wrote:
> > we have problems with one of our EdgeRouters. I'm not sure if it is fixed in
> > 3.7 (edgerouter.pm: add match for transient show version command failure).
> >
> > Only EdgeRouter Pro 8-Port (v1.9.7+hotfix.4) is reporting this change every
> > some days:
> >
> > -# rancid at ams-gw:~$ cli-shell-api showConfig --show-active-only | no-more
> > -firewall {
> > +# rancid at ams-gw:~$cli-shell-api showConfig --show-active-only | no-more
> > +ofirewall {
> > all-ping enable
> > broadcast-ping disable
> >
> > -# rancid at ams-gw:~$cli-shell-api showConfig --show-active-only | no-more
> > -ofirewall {
> > +# rancid at ams-gw:~$ cli-shell-api showConfig --show-active-only | no-more
> > +firewall {
> > all-ping enable
> > broadcast-ping disable
Is the device perhaps logging to the tty? Does your ulogin have the stty
settings just before the main loop of device command-line arguments?
> > An EdgeRouter Lite 3-Port is working fine.
> >
> > /etc/rancid/rancid.types.conf:
> > edgerouter_custom;script;rancid -t edgerouter_custom
> > edgerouter_custom;login;ulogin -noenable -t 30
> > edgerouter_custom;module;edgerouter
> > edgerouter_custom;inloop;edgerouter::inloop
> > edgerouter_custom;command;rancid::RunCommand;terminal length 0
> > edgerouter_custom;command;edgerouter::ShowVersion;show version | no-more
> > edgerouter_custom;command;edgerouter::ShowOffload;show ubnt offload | no-more
> > edgerouter_custom;command;edgerouter::WriteTerm;cli-shell-api showConfig
> > --show-active-only | no-more
>
> Some addition:
> * ~rancid/bin/ulogin set sleeps to 5s
> * not enough for Lite 3-Port -> MAX_ROUNDS=10
> * ulogin -noenable -t 30 (was: -noenable -t 10)
added this to ulogin; the default. I'd prefer that the user still be able to
override the timeout in their cloginrc.
> * {{ | no-more }} decreased formating errors
>
> With this changes, only the reported error exists.
Does terminal length 0 not work on this device? And, is this option
universally available.
More information about the Rancid-discuss
mailing list