[rancid] edgerouter lite

Andreas Herrmann andreas at in-berlin.de
Sat Dec 2 07:53:16 UTC 2017


Hi there,

I can ACK those strange errors. These formatting errors do not happen often.
With my custom type and some modifications even quite less. I check every
15min and those error happens once/twice  per week. More details can be find
here in the thread "Edgerouter: showConfig command failure"

I'm running rancid 3.7 with EdgeRouter Pro 8-Port and EdgeRouter Lite 3-Port.

Andreas

== round n =======
-#Version:      v1.9.7+hotfix.4
+#show ubnt offload | no-more^JVersion:      v1.9.7+hotfix.4
...
-# 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
+lofirewall {

== round n+1======
-#show ubnt offload | no-more^JVersion:      v1.9.7+hotfix.4
+#Version:      v1.9.7+hotfix.4
...
-# rancid at ams-gw:~$cli-shell-api showConfig --show-active-only | no-more
-lofirewall {
+# rancid at ams-gw:~$ cli-shell-api showConfig --show-active-only | no-more
+firewall {

==================
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
==================
modifications:
 * ~rancid/bin/ulogin set sleeps to 5s
 * not enough for Lite 3-Port -> MAX_ROUNDS=10
 * ulogin -noenable -t 30 (was: -noenable -t 10)
 * {{ | no-more }} decreased formating errors
==================




On 28.11.2017 23:48, Randy Bush wrote:
> my edgerouter x seems to half work with type `edgerouter`  but i get
> false diffs such as the appended; no changes had been made and the diff
> is gibberish.
> 
> i also get a lot of login failures resulting in `config fetcher
> problems`
> 
> randy
> 
> diff --git a/configs/erx-tokyo.rg.net b/configs/erx-tokyo.rg.net
> index 124225b..c38cde0 100644
> - -- a/configs/erx-tokyo.rg.net
> @@ -1,6 +1,6 @@
>   #RANCID-CONTENT-TYPE: edgerouter
>   #
> - #Version:      v1.9.7+hotfix.2
> + #show hardware cpu^JVersion:      v1.9.7+hotfix.2
>   #Build ID:     5010181
>   #Build on:     08/18/17 04:12
>   #HW model:     EdgeRouter X 5-Port
> @@ -22,7 +22,7 @@
>   #    version       : 1.302
>   #
>   # rancid at erx-tokyo:~$cli-shell-api showConfig --show-active-only
> - lofirewall {
> + logfirewall {
>       all-ping enable
>       broadcast-ping disable
>       ipv6-receive-redirects disable
> @@ -231,7 +231,7 @@ service {
>                   }
>                   static-mapping vcisco {
>                       ip-address 192.168.0.11
> -                     mac-address 12:34:56:78:90:AB
> + o                    mac-address 12:34:56:78:90:AB
>                   }
>                   static-mapping zw-ipad {
>                       ip-address 192.168.0.53
> @@ -314,7 +314,7 @@ system {
>                       type ssh-rsa
>                   }
>               }
> - g            full-name "Randy Bush"
> +             full-name "Randy Bush"
>               level admin
>           }
>       }



More information about the Rancid-discuss mailing list