Mailing List Archive

edgerouter lite
i have googled a bit and have yet to find clue for using rancid with a
ubiquiti edgerouter lite. anyone with a clue bat?

randy

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: edgerouter lite [ In reply to ]
Hi Randy,

This post should be what you are looking for.
https://community.ubnt.com/t5/EdgeSwitch/Rancid-backup-of-EdgeSwitch/td-p/1923625

Met vriendelijke groet,

Merijn Evertse

Op 27 nov. 2017 om 03:36 heeft Randy Bush <randy@psg.com<mailto:randy@psg.com>> het volgende geschreven:

i have googled a bit and have yet to find clue for using rancid with a
ubiquiti edgerouter lite. anyone with a clue bat?

randy

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: edgerouter lite [ In reply to ]
Mon, Nov 27, 2017 at 11:35:56AM +0900, Randy Bush:
> i have googled a bit and have yet to find clue for using rancid with a
> ubiquiti edgerouter lite. anyone with a clue bat?

a 1x4; I'm not that familiar with ubnt products. there are two device
types (3 really) in rancid for them; 1 edgemax and 2 edgerouter (2 flavors
of these). perhaps try one of these? I'm not sure how similar edgerouter
lite is to edgerouter; I thought it was just an edgerouter with less h/w
(mem & ports). Clemens would know.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: edgerouter lite [ In reply to ]
it looka to actually be an edgerouterx, which is ubntsw i have been
told. but it has yet to succeed. it seems insistent on a password
in .cloginrc, when login is key based.

randy

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: edgerouter lite [ In reply to ]
Hi,

Exactly like you say. So sorry Randy. Edgerouter type is better.
Edgeswith and edgerouter are both edgeOS.

Met vriendelijke groet,

Merijn Evertse

Op 27 nov. 2017 om 07:20 heeft heasley <heas@shrubbery.net<mailto:heas@shrubbery.net>> het volgende geschreven:

Mon, Nov 27, 2017 at 11:35:56AM +0900, Randy Bush:
i have googled a bit and have yet to find clue for using rancid with a
ubiquiti edgerouter lite. anyone with a clue bat?

a 1x4; I'm not that familiar with ubnt products. there are two device
types (3 really) in rancid for them; 1 edgemax and 2 edgerouter (2 flavors
of these). perhaps try one of these? I'm not sure how similar edgerouter
lite is to edgerouter; I thought it was just an edgerouter with less h/w
(mem & ports). Clemens would know.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net<mailto:Rancid-discuss@shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: edgerouter lite [ In reply to ]
Mon, Nov 27, 2017 at 03:54:03PM +0900, Randy Bush:
> it looka to actually be an edgerouterx, which is ubntsw i have been
> told. but it has yet to succeed. it seems insistent on a password
> in .cloginrc, when login is key based.
>
> randy

it does; uses it as fallback. sepcify an empty one if you wish.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: edgerouter lite [ In reply to ]
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@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
}
}

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: edgerouter lite [ In reply to ]
Wed, Nov 29, 2017 at 07:48:11AM +0900, Randy Bush:
> 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`

are syslogs going to the vty? and what version of rancid on what o/s?

> 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@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
> }
> }

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: edgerouter lite [ In reply to ]
> are syslogs going to the vty?

do not think so; but have insufficient erx fu to be positive

syslog {
global {
facility all {
level notice
}
facility protocols {
level debug
}
}
host 666.42.77.69 {
facility all {
level crit
}
}
}

> and what version of rancid on what o/s?

rancid.fat:/usr/home/rancid> uname -a
FreeBSD rancid.fat 10.3-RELEASE-p20 FreeBSD 10.3-RELEASE-p20 #0: Wed Jul 12 03:10:26 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386


rancid.fat:/usr/home/rancid> rancid --version
/usr/local/libexec/rancid/rancid version 3.6.2 calling Getopt::Std::getopts (version 1.11 [paranoid]),
running under Perl version 5.24.3.
[.Now continuing due to backward compatibility and excessive paranoia.
See 'perldoc Getopt::Std' about $Getopt::Std::STANDARD_HELP_VERSION.]
Too few arguments: host name required

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: edgerouter lite [ In reply to ]
that's a really funky invalid IP address...

regarding the global section, that's standard. I have the same thing
without issues.

But, I use ubntsw type in router.db



On 12/1/2017 6:45 PM, Randy Bush wrote:
>> are syslogs going to the vty?
> do not think so; but have insufficient erx fu to be positive
>
> syslog {
> global {
> facility all {
> level notice
> }
> facility protocols {
> level debug
> }
> }
> host 666.42.77.69 {
> facility all {
> level crit
> }
> }
> }
>
>> and what version of rancid on what o/s?
> rancid.fat:/usr/home/rancid> uname -a
> FreeBSD rancid.fat 10.3-RELEASE-p20 FreeBSD 10.3-RELEASE-p20 #0: Wed Jul 12 03:10:26 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>
>
> rancid.fat:/usr/home/rancid> rancid --version
> /usr/local/libexec/rancid/rancid version 3.6.2 calling Getopt::Std::getopts (version 1.11 [paranoid]),
> running under Perl version 5.24.3.
> [.Now continuing due to backward compatibility and excessive paranoia.
> See 'perldoc Getopt::Std' about $Getopt::Std::STANDARD_HELP_VERSION.]
> Too few arguments: host name required
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

--
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562)
Re: edgerouter lite [ In reply to ]
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@ams-gw:~$ cli-shell-api showConfig --show-active-only | no-more
-firewall {
+# rancid@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@ams-gw:~$cli-shell-api showConfig --show-active-only | no-more
-lofirewall {
+# rancid@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@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
> }
> }

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: edgerouter lite [ In reply to ]
Sat, Dec 02, 2017 at 08:45:21AM +0900, Randy Bush:
> rancid.fat:/usr/home/rancid> rancid --version
> /usr/local/libexec/rancid/rancid version 3.6.2 calling Getopt::Std::getopts (version 1.11 [paranoid]),

would you move to 3.7, to eliminate the possibility of a fixed bug being
the cause?

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss