Discussion:
[rancid] vyatta/vyos
r***@bt.com
2015-01-22 15:55:57 UTC
Permalink
Hi,

I am trying to use rancid 3.1 to grab configs from vyos routers. I have download the scripts but am having problems getting them to work. I notice that vlogin has a rancid version of 2.3.6 would this work with rancid 3.1 would the change of delimiter from ":" to ";" affect it?

Regards
Rob
Antonio Querubin
2015-01-22 16:41:36 UTC
Permalink
Post by r***@bt.com
I am trying to use rancid 3.1 to grab configs from vyos routers. I have
download the scripts but am having problems getting them to work. I
notice that vlogin has a rancid version of 2.3.6 would this work with
rancid 3.1 would the change of delimiter from ":" to ";" affect it?
Working ok here with rancid 3.1. Are you using the updated scripts?

https://bitbucket.org/aquerubin/rancid-vyatta


Antonio Querubin
e-mail: ***@lavanauts.org
xmpp: ***@gmail.com
r***@bt.com
2015-01-23 09:16:54 UTC
Permalink
Hi Antonio,

Yeh, the new scripts work great. I may have picked up some older ones.
I did have an issue grabbing the configs in that I received this error:

ERROR: router_01 configuration appears truncated.
Router_01: missed cmd(s): show configuration commands, show configuration, show system routing-daemons
Router_01: End of run not found
# router_01:~$ show hardware usb

I have commented out all the commands in vrancid except for "show configuration commands" and it works perfectly.

Many thanks for your help

Regards
Rob Hughes


-----Original Message-----
From: Antonio Querubin [mailto:***@lavanauts.org]
Sent: 22 January 2015 16:42
To: Hughes,R,Robert,VIE C
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] vyatta/vyos
Post by r***@bt.com
I am trying to use rancid 3.1 to grab configs from vyos routers. I
have download the scripts but am having problems getting them to work.
I notice that vlogin has a rancid version of 2.3.6 would this work
with rancid 3.1 would the change of delimiter from ":" to ";" affect it?
Working ok here with rancid 3.1. Are you using the updated scripts?

https://bitbucket.org/aquerubin/rancid-vyatta


Antonio Querubin
e-mail: ***@lavanauts.org
xmpp: ***@gmail.com
Antonio Querubin
2015-02-18 12:54:32 UTC
Permalink
The vyos support now installs/runs as a module. See the README in the git
repository for updated install info.

Antonio Querubin
e-mail: ***@lavanauts.org
xmpp: ***@gmail.com
r***@bt.com
2015-04-01 08:41:52 UTC
Permalink
Hi Adam,

I am seeing the same issue.

When I run rancid-run I see the following errors in the log file:

router01: vlogin error: Error: TIMEOUT reached
router01: missed cmd(s): show configuration commands
router01: End of run not found
#
Getting missed routers: round 1.
Passed argv0 into rancid-fe {
Unknown router manufacturer for {:

Manually I can run vlogin -c "show configuration commands" router01
And this pulls back the config.

Note I manually changed the vrancid file to just run the command "show configuration commands", not sure if this is the correct way to configure the commands or should I be using rancid.types.conf?

Regards
Rob

From: Adam Korab [mailto:***@ballinatta.com]
Sent: 01 April 2015 09:04
To: Antonio Querubin; Hughes,R,Robert,VIE C
Cc: rancid-***@shrubbery.net
Subject: RE: [rancid] vyatta/vyos

Hi Tony,

Having a bit of trouble with this on a fresh rancid 3.2 install and files pulled from git tonight as well. Target is a UBNT EdgeRouter Pro, v1.6.0.

I edited rancid.types.conf to append | no -more as the default 'show configuration' and 'show configuration commands' get stuffed through the less pager which resulted in a timeout. Also commented out a few that don't apply to the

However, rancid-run shows those failing:

Getting missed routers: round 4.
r01.adm: vlogin error: Error: TIMEOUT reached
r01.adm: missed cmd(s): show version all,show configuration | no-more,show system image,show configuration commands | no-more
r01.adm: End of run not found
#


ending: Wed Apr 1 02:54:38 CDT 2015

But manually running these via vlogin works fine:

[***@nms2 ~]$ vlogin -c "show version all;show configuration | no-more" r01.adm
r01.adm
spawn ssh -c 3des -x -l admin r01.adm
***@r01.adm's<mailto:***@r01.adm's> password:
Linux ubnt 3.10.20-UBNT #1 SMP Wed Oct 29 20:51:42 PDT 2014 mips64
Welcome to EdgeOS
Last login: Wed Apr 1 07:58:13 2015 from 10.16.0.15

***@r01.adm:~$<mailto:***@r01.adm:~$>
***@r01.adm:~$<mailto:***@r01.adm:~$> set terminal length 0
Invalid command
***@r01.adm:~$<mailto:***@r01.adm:~$> show version all
show configuration | no-more
Version: v1.6.0
Build ID: 4716006
Build on: 10/31/14 17:38
Copyright: 2012-2014 Ubiquiti Networks, Inc.
HW model: EdgeRouter Pro 8-Port
HW S/N: 24A43C3CF41B
Uptime: 07:59:35 up 5 days, 12:06, 1 user, load average: 0.00, 0.01, 0.05

***@r01.adm:~$<mailto:***@r01.adm:~$> show configuration | no-more
interfaces {
ethernet eth0 {
<blah blah blah>
}
***@r01.adm:~$<mailto:***@r01.adm:~$> exit
logout
Connection to r01.adm closed.

Thanks!

--Adam


-----Original Message-----
From: Rancid-discuss [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Antonio Querubin
Sent: Wednesday, February 18, 2015 6:55 AM
To: ***@bt.com<mailto:***@bt.com>
Cc: rancid-***@shrubbery.net<mailto:rancid-***@shrubbery.net>
Subject: Re: [rancid] vyatta/vyos

The vyos support now installs/runs as a module. See the README in the git repository for updated install info.

Antonio Querubin
e-mail: ***@lavanauts.org<mailto:***@lavanauts.org>
xmpp: ***@gmail.com<mailto:***@gmail.com>
Antonio Querubin
2015-04-01 12:21:05 UTC
Permalink
Post by r***@bt.com
I am seeing the same issue.
router01: vlogin error: Error: TIMEOUT reached
router01: missed cmd(s): show configuration commands
router01: End of run not found
#
Getting missed routers: round 1.
Passed argv0 into rancid-fe {
Manually I can run vlogin -c "show configuration commands" router01
And this pulls back the config.
Note I manually changed the vrancid file to just run the command "show
configuration commands", not sure if this is the correct way to
configure the commands or should I be using rancid.types.conf?
vrancid is no longer used and should be deleted. You should be using
rancid.types.conf and vyos.pm. The latter needs to be moved to the same
directory where rancid.pm resides. rancid.types.conf should look
something like:

vyos;script;rancid -t vyos
vyos;login;vlogin
vyos;module;vyos
vyos;inloop;vyos::inloop
vyos;command;vyos::ShowHardware;show hardware cpu
vyos;command;vyos::ShowHardware;show hardware dmi
vyos;command;vyos::ShowHardware;show hardware pci
vyos;command;vyos::ShowHardware;show hardware scsi
vyos;command;vyos::ShowHardware;show hardware usb
vyos;command;vyos::ShowVersion;show system routing-daemons
vyos;command;vyos::ShowVersion;show system image
vyos;command;vyos::ShowVersion;show version all
vyos;command;vyos::ShowConfiguration;show configuration
vyos;command;vyos::ShowConfiguration;show configuration commands


Antonio Querubin
e-mail: ***@lavanauts.org
xmpp: ***@gmail.com
r***@bt.com
2015-04-01 13:04:59 UTC
Permalink
Hi Antonio,

I have installed the new modules, so I guess it was just ignoring vrancid anyway. I have now deleted vrancid to make sure.

I still get the error in the log file router01: vlogin error: Error: TIMEOUT reached

This is the vyos entry in rancid.types.conf

vyos;script;rancid -t vyos
vyos;login;vlogin
vyos;module;vyos
vyos;inloop;vyos::inloop
vyos;command;vyos::ShowConfiguration;show configuration commands

This is the output when I run: rancid -t vyos -d router01

loadtype: device type vyos
loadtype: found device type vyos in /opt/rancid/etc/rancid.types.conf
executing vlogin -t 120 -c"show configuration commands" router01
HIT COMMAND:***@router01:~$ show configuration commands
In ShowConfiguration: ***@router01:~$ show configuration commands

I can run this manually ok, it logs in and displays the config fine:

vlogin -t 120 -c"show configuration commands" router01

Is there anywhere else I can look to change?

Regards
Rob


-----Original Message-----
From: Antonio Querubin [mailto:***@lavanauts.org]
Sent: 01 April 2015 13:21
To: Hughes,R,Robert,VIE C
Cc: ***@ballinatta.com; rancid-***@shrubbery.net
Subject: RE: [rancid] vyatta/vyos
Post by r***@bt.com
I am seeing the same issue.
router01: vlogin error: Error: TIMEOUT reached
router01: missed cmd(s): show configuration commands
router01: End of run not found
#
Getting missed routers: round 1.
Passed argv0 into rancid-fe {
Manually I can run vlogin -c "show configuration commands" router01
And this pulls back the config.
Note I manually changed the vrancid file to just run the command "show
configuration commands", not sure if this is the correct way to
configure the commands or should I be using rancid.types.conf?
vrancid is no longer used and should be deleted. You should be using rancid.types.conf and vyos.pm. The latter needs to be moved to the same directory where rancid.pm resides. rancid.types.conf should look something like:

vyos;script;rancid -t vyos
vyos;login;vlogin
vyos;module;vyos
vyos;inloop;vyos::inloop
vyos;command;vyos::ShowHardware;show hardware cpu vyos;command;vyos::ShowHardware;show hardware dmi vyos;command;vyos::ShowHardware;show hardware pci vyos;command;vyos::ShowHardware;show hardware scsi vyos;command;vyos::ShowHardware;show hardware usb vyos;command;vyos::ShowVersion;show system routing-daemons vyos;command;vyos::ShowVersion;show system image vyos;command;vyos::ShowVersion;show version all vyos;command;vyos::ShowConfiguration;show configuration vyos;command;vyos::ShowConfiguration;show configuration commands


Antonio Querubin
e-mail: ***@lavanauts.org
xmpp: ***@gmail.com
Antonio Querubin
2015-04-01 13:19:43 UTC
Permalink
Post by r***@bt.com
I have installed the new modules, so I guess it was just ignoring
vrancid anyway. I have now deleted vrancid to make sure.
I still get the error in the log file router01: vlogin error: Error: TIMEOUT reached
This is the vyos entry in rancid.types.conf
vyos;script;rancid -t vyos
vyos;login;vlogin
vyos;module;vyos
vyos;inloop;vyos::inloop
vyos;command;vyos::ShowConfiguration;show configuration commands
This is the output when I run: rancid -t vyos -d router01
loadtype: device type vyos
loadtype: found device type vyos in /opt/rancid/etc/rancid.types.conf
executing vlogin -t 120 -c"show configuration commands" router01
So you shouldn't be getting that TIMEOUT error any more. Is your
router.db entry for router01 referencing 'vyos' instead of 'vrancid'?

router01;vyos;up


Antonio Querubin
e-mail: ***@lavanauts.org
xmpp: ***@gmail.com
r***@bt.com
2015-04-01 13:26:25 UTC
Permalink
Yes, although rather than router01 it is an actual ip address. The same works for quagga nodes ok, those are using a device type of cisco.

xx.xx.xx.xx;vyos;up;node provisioned by opennms nodeid;14


-----Original Message-----
From: Antonio Querubin [mailto:***@lavanauts.org]
Sent: 01 April 2015 14:20
To: Hughes,R,Robert,VIE C
Cc: ***@ballinatta.com; rancid-***@shrubbery.net
Subject: RE: [rancid] vyatta/vyos
Post by r***@bt.com
I have installed the new modules, so I guess it was just ignoring
vrancid anyway. I have now deleted vrancid to make sure.
I still get the error in the log file router01: vlogin error: Error: TIMEOUT reached
This is the vyos entry in rancid.types.conf
vyos;script;rancid -t vyos
vyos;login;vlogin
vyos;module;vyos
vyos;inloop;vyos::inloop
vyos;command;vyos::ShowConfiguration;show configuration commands
This is the output when I run: rancid -t vyos -d router01
loadtype: device type vyos
loadtype: found device type vyos in /opt/rancid/etc/rancid.types.conf
executing vlogin -t 120 -c"show configuration commands" router01 HIT
So you shouldn't be getting that TIMEOUT error any more. Is your router.db entry for router01 referencing 'vyos' instead of 'vrancid'?

router01;vyos;up


Antonio Querubin
e-mail: ***@lavanauts.org
xmpp: ***@gmail.com

Antonio Querubin
2015-04-01 12:11:02 UTC
Permalink
Post by r***@bt.com
Having a bit of trouble with this on a fresh rancid 3.2 install and
files pulled from git tonight as well. Target is a UBNT EdgeRouter Pro,
v1.6.0.
I edited rancid.types.conf to append | no -more as the default 'show
configuration' and 'show configuration commands' get stuffed through the
less pager which resulted in a timeout. Also commented out a few that
don't apply to the
Getting missed routers: round 4.
r01.adm: vlogin error: Error: TIMEOUT reached
r01.adm: missed cmd(s): show version all,show configuration | no-more,show system image,show configuration commands | no-more
r01.adm: End of run not found
Unfortunately, I'm unable to reproduce the problem. I modified my
rancid.types.conf the same way as above and it works here (no timeout and
obtains the entire config). However, this is for a VyOS router and not an
Ubiquiti. I don't have access to an Ubiquiti router so unfortunately I
can't troubleshoot further.


Antonio Querubin
e-mail: ***@lavanauts.org
xmpp: ***@gmail.com
Loading...