Discussion:
[rancid] brocade vdx backups
Ross [Eve IT]
2017-04-26 03:57:19 UTC
Permalink
Hello,

I've been scratching my head for the last few days trying to figure out how
to get these backups working.
We have a working installation of rancid on debian jessie with no issues.
jessie backports. 3.6.2-2

A combination of cisco and brocade kit, brocade (ICX series) uses the
foundry module just fine.

However the VDX switches are just not backing up.
I've tried both foundry and cisco.


However I can login, issue commands, etc..


:~$ bin/clogin 10.65.65.13
10.65.65.13
spawn ssh -x -l admin 10.65.65.13
***@10.65.65.13's password:

Welcome to the Brocade Network Operating System Software
admin connected from 10.0.250.18 using ssh on vdx11-1
vdx11-1#




:~$bin/clogin -c "show vcs" 10.65.65.13
10.65.65.13
spawn ssh -x -l admin 10.65.65.13
***@10.65.65.13's password:

Welcome to the Brocade Network Operating System Software
admin connected from 10.0.250.18 using ssh on vdx11-1
vdx11-1#
vdx11-1# terminal length 0
Successfully set This Session Terminal Length to 0.
vdx11-1# terminal width 132
-----------------------^
syntax error: unknown argument.
vdx11-1# show vcs
Config Mode : Distributed
VCS Mode : Logical Chassis
VCS ID : 1
VCS GUID : 54f28a13-7c4b-4516-8198-cafaf637b393
Total Number of Nodes : 4
Rbridge-Id WWN Management IP VCS Status
Fabric Status HostName
--------------------------------------------------------------------------------------------------------------
1 >12:02:52:EC:1A:38:22:4C* 10.65.65.10 Online
Online vdx11-1
2 12:01:5C:EC:1V:3C:F2:AS 10.65.65.11 Online
Online vdx11-2
3 12:04:50:EB:1A:34:E4:90 10.65.65.12 Online
Online vdx12-1
4 12:03:C4:F5:7C:3S:BA:54 10.65.65.14 Online
Online vdx12-2
vdx11-1#exit
Connection to 10.65.65.13 closed.



Logs;


starting: Wednesday 26 April 13:45:12 AEST 2017

cvs add: `10.65.65.13' already exists, with version number 1.1
Added 10.65.65.13



Trying to get all of the configs.
10.65.65.13: missed cmd(s): all commands
10.65.65.13: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 1.
10.65.65.13: missed cmd(s): all commands
10.65.65.13: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 2.
10.65.65.13: missed cmd(s): all commands
10.65.65.13: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 3.
10.65.65.13: missed cmd(s): all commands
10.65.65.13: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 4.
10.65.65.13: missed cmd(s): all commands
10.65.65.13: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
/var/lib/rancid/CVS/mel/router.db,v <-- router.db
new revision: 1.4; previous revision: 1.3

ending: Wednesday 26 April 13:53:02 AEST 2017


Any help greatly appreciated.
Thanks in advance !
Erik Muller
2017-04-26 13:23:59 UTC
Permalink
VDXes are a very different codebase than a lot of the other foundry/brocade
gear, and they have a whole new set of quirks as a result. IIRC the
biggest annoyance for rancid is that they don't have an end-of-config marker.

I've gotten it working for VDXes before, my version is here:
https://github.com/ermuller/rancid-stuff
I haven't tested it widely enough to try to integrate it properly upstream,
but if you wanted to give that a try, I'd appreciate any feedback.
-e
Post by Ross [Eve IT]
Hello,
I've been scratching my head for the last few days trying to figure out how
to get these backups working.
We have a working installation of rancid on debian jessie with no issues.
jessie backports. 3.6.2-2
A combination of cisco and brocade kit, brocade (ICX series) uses the
foundry module just fine.
However the VDX switches are just not backing up.
I've tried both foundry and cisco.
However I can login, issue commands, etc..
:~$ bin/clogin 10.65.65.13
10.65.65.13
spawn ssh -x -l admin 10.65.65.13
Welcome to the Brocade Network Operating System Software
admin connected from 10.0.250.18 using ssh on vdx11-1
vdx11-1#
:~$bin/clogin -c "show vcs" 10.65.65.13
10.65.65.13
spawn ssh -x -l admin 10.65.65.13
Welcome to the Brocade Network Operating System Software
admin connected from 10.0.250.18 using ssh on vdx11-1
vdx11-1#
vdx11-1# terminal length 0
Successfully set This Session Terminal Length to 0.
vdx11-1# terminal width 132
-----------------------^
syntax error: unknown argument.
vdx11-1# show vcs
Config Mode : Distributed
VCS Mode : Logical Chassis
VCS ID : 1
VCS GUID : 54f28a13-7c4b-4516-8198-cafaf637b393
Total Number of Nodes : 4
Rbridge-Id WWN Management IP VCS Status
Fabric Status HostName
--------------------------------------------------------------------------------------------------------------
1 >12:02:52:EC:1A:38:22:4C* 10.65.65.10 Online
Online vdx11-1
2 12:01:5C:EC:1V:3C:F2:AS 10.65.65.11 Online
Online vdx11-2
3 12:04:50:EB:1A:34:E4:90 10.65.65.12 Online
Online vdx12-1
4 12:03:C4:F5:7C:3S:BA:54 10.65.65.14 Online
Online vdx12-2
vdx11-1#exit
Connection to 10.65.65.13 closed.
Logs;
starting: Wednesday 26 April 13:45:12 AEST 2017
cvs add: `10.65.65.13' already exists, with version number 1.1
Added 10.65.65.13
Trying to get all of the configs.
10.65.65.13 <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 1.
10.65.65.13 <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 2.
10.65.65.13 <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 3.
10.65.65.13 <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 4.
10.65.65.13 <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
/var/lib/rancid/CVS/mel/router.db,v <-- router.db
new revision: 1.4; previous revision: 1.3
ending: Wednesday 26 April 13:53:02 AEST 2017
Any help greatly appreciated.
Thanks in advance !
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Doug Hughes
2017-04-26 13:44:54 UTC
Permalink
I wrote a vdx-working module that I contributed back in Oct 2016, but
not sure what the current state of it is.

It works with rancid 3.4.1

Below is my etc/rancid.types.conf excerpt

as you can see, brcdvcs uses the a10login module which works fine (I
didn't feel like reinventing the wheel here, and that worked)

and I created a new bcrdvcs and bcrdicx type. You'll want to change the
rbridge-id's to match your stack members. I stopped short of trying to
invent something generic to solve this particular puzzle.


attached is the modified brocade.pm which gets called for vcs.

icx uses the ios module.


brcdicx;script;rancid -t brcdicx
brcdicx;login;clogin
brcdicx;module;ios
brcdicx;inloop;ios::inloop
brcdicx:command;rancid::RunCommmand;skip-page-display
brcdicx;command;ios::ShowVersion;show version
brcdicx;command;ios::WriteTerm;show chassis
brcdicx;command;ios::WriteTerm;show running-config

# Brocade VCS 10g/40g
brcdvcs;script;rancid -t brcdvcs
brcdvcs;login;a10login
brcdvcs;module;brocade
brcdvcs;inloop;brocade::inloop
brcdvcs;command;brocade::ShowVersion;show version all-partitions
brcdvcs;command;brocade::ShowLicense;show license
brcdvcs;command;brocade::ShowRasLicense;show logging raslog rbridge-id 11
brcdvcs;command;brocade::ShowRasLicense;show logging raslog rbridge-id 12
brcdvcs;command;brocade::ShowVcs;show vcs detail
brcdvcs;command;brocade::ShowVlan;show vlan brief
brcdvcs;command;brocade::ShowSnapshots;show config snapshot rbridge-id 1
brcdvcs;command;brocade::ShowFabric;show virtual-fabric status
brcdvcs;command;brocade::ShowFabric;show fabric all
brcdvcs;command;brocade::ShowSupport;show support
brcdvcs;command;brocade::ShowMonitor;show system monitor
brcdvcs;command;brocade::ShowConfig;show running-config
Post by Erik Muller
VDXes are a very different codebase than a lot of the other foundry/brocade
gear, and they have a whole new set of quirks as a result. IIRC the
biggest annoyance for rancid is that they don't have an end-of-config marker.
https://github.com/ermuller/rancid-stuff
I haven't tested it widely enough to try to integrate it properly upstream,
but if you wanted to give that a try, I'd appreciate any feedback.
-e
Post by Ross [Eve IT]
Hello,
I've been scratching my head for the last few days trying to figure out how
to get these backups working.
We have a working installation of rancid on debian jessie with no issues.
jessie backports. 3.6.2-2
A combination of cisco and brocade kit, brocade (ICX series) uses the
foundry module just fine.
However the VDX switches are just not backing up.
I've tried both foundry and cisco.
However I can login, issue commands, etc..
:~$ bin/clogin 10.65.65.13
10.65.65.13
spawn ssh -x -l admin 10.65.65.13
Welcome to the Brocade Network Operating System Software
admin connected from 10.0.250.18 using ssh on vdx11-1
vdx11-1#
:~$bin/clogin -c "show vcs" 10.65.65.13
10.65.65.13
spawn ssh -x -l admin 10.65.65.13
Welcome to the Brocade Network Operating System Software
admin connected from 10.0.250.18 using ssh on vdx11-1
vdx11-1#
vdx11-1# terminal length 0
Successfully set This Session Terminal Length to 0.
vdx11-1# terminal width 132
-----------------------^
syntax error: unknown argument.
vdx11-1# show vcs
Config Mode : Distributed
VCS Mode : Logical Chassis
VCS ID : 1
VCS GUID : 54f28a13-7c4b-4516-8198-cafaf637b393
Total Number of Nodes : 4
Rbridge-Id WWN Management IP VCS Status
Fabric Status HostName
--------------------------------------------------------------------------------------------------------------
1 >12:02:52:EC:1A:38:22:4C* 10.65.65.10 Online
Online vdx11-1
2 12:01:5C:EC:1V:3C:F2:AS 10.65.65.11 Online
Online vdx11-2
3 12:04:50:EB:1A:34:E4:90 10.65.65.12 Online
Online vdx12-1
4 12:03:C4:F5:7C:3S:BA:54 10.65.65.14 Online
Online vdx12-2
vdx11-1#exit
Connection to 10.65.65.13 closed.
Logs;
starting: Wednesday 26 April 13:45:12 AEST 2017
cvs add: `10.65.65.13' already exists, with version number 1.1
Added 10.65.65.13
Trying to get all of the configs.
10.65.65.13 <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 1.
10.65.65.13 <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 2.
10.65.65.13 <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 3.
10.65.65.13 <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 4.
10.65.65.13 <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
/var/lib/rancid/CVS/mel/router.db,v <-- router.db
new revision: 1.4; previous revision: 1.3
ending: Wednesday 26 April 13:53:02 AEST 2017
Any help greatly appreciated.
Thanks in advance !
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562)
Ross [Eve IT]
2017-04-28 01:53:39 UTC
Permalink
Thanks Doug, works perfect!
I wrote a vdx-working module that I contributed back in Oct 2016, but not
sure what the current state of it is.
It works with rancid 3.4.1
Below is my etc/rancid.types.conf excerpt
as you can see, brcdvcs uses the a10login module which works fine (I
didn't feel like reinventing the wheel here, and that worked)
and I created a new bcrdvcs and bcrdicx type. You'll want to change the
rbridge-id's to match your stack members. I stopped short of trying to
invent something generic to solve this particular puzzle.
attached is the modified brocade.pm which gets called for vcs.
icx uses the ios module.
brcdicx;script;rancid -t brcdicx
brcdicx;login;clogin
brcdicx;module;ios
brcdicx;inloop;ios::inloop
brcdicx:command;rancid::RunCommmand;skip-page-display
brcdicx;command;ios::ShowVersion;show version
brcdicx;command;ios::WriteTerm;show chassis
brcdicx;command;ios::WriteTerm;show running-config
# Brocade VCS 10g/40g
brcdvcs;script;rancid -t brcdvcs
brcdvcs;login;a10login
brcdvcs;module;brocade
brcdvcs;inloop;brocade::inloop
brcdvcs;command;brocade::ShowVersion;show version all-partitions
brcdvcs;command;brocade::ShowLicense;show license
brcdvcs;command;brocade::ShowRasLicense;show logging raslog rbridge-id 11
brcdvcs;command;brocade::ShowRasLicense;show logging raslog rbridge-id 12
brcdvcs;command;brocade::ShowVcs;show vcs detail
brcdvcs;command;brocade::ShowVlan;show vlan brief
brcdvcs;command;brocade::ShowSnapshots;show config snapshot rbridge-id 1
brcdvcs;command;brocade::ShowFabric;show virtual-fabric status
brcdvcs;command;brocade::ShowFabric;show fabric all
brcdvcs;command;brocade::ShowSupport;show support
brcdvcs;command;brocade::ShowMonitor;show system monitor
brcdvcs;command;brocade::ShowConfig;show running-config
VDXes are a very different codebase than a lot of the other foundry/brocade
gear, and they have a whole new set of quirks as a result. IIRC the
biggest annoyance for rancid is that they don't have an end-of-config marker.
I've gotten it working for VDXes before, my version is here:https://github.com/ermuller/rancid-stuff
I haven't tested it widely enough to try to integrate it properly upstream,
but if you wanted to give that a try, I'd appreciate any feedback.
-e
Hello,
I've been scratching my head for the last few days trying to figure out how
to get these backups working.
We have a working installation of rancid on debian jessie with no issues.
jessie backports. 3.6.2-2
A combination of cisco and brocade kit, brocade (ICX series) uses the
foundry module just fine.
However the VDX switches are just not backing up.
I've tried both foundry and cisco.
However I can login, issue commands, etc..
:~$ bin/clogin 10.65.65.13
10.65.65.13
Welcome to the Brocade Network Operating System Software
admin connected from 10.0.250.18 using ssh on vdx11-1
vdx11-1#
:~$bin/clogin -c "show vcs" 10.65.65.13
10.65.65.13
Welcome to the Brocade Network Operating System Software
admin connected from 10.0.250.18 using ssh on vdx11-1
vdx11-1#
vdx11-1# terminal length 0
Successfully set This Session Terminal Length to 0.
vdx11-1# terminal width 132
-----------------------^
syntax error: unknown argument.
vdx11-1# show vcs
Config Mode : Distributed
VCS Mode : Logical Chassis
VCS ID : 1
VCS GUID : 54f28a13-7c4b-4516-8198-cafaf637b393
Total Number of Nodes : 4
Rbridge-Id WWN Management IP VCS Status
Fabric Status HostName
--------------------------------------------------------------------------------------------------------------
1 >12:02:52:EC:1A:38:22:4C* 10.65.65.10 Online
Online vdx11-1
2 12:01:5C:EC:1V:3C:F2:AS 10.65.65.11 Online
Online vdx11-2
3 12:04:50:EB:1A:34:E4:90 10.65.65.12 Online
Online vdx12-1
4 12:03:C4:F5:7C:3S:BA:54 10.65.65.14 Online
Online vdx12-2
vdx11-1#exit
Connection to 10.65.65.13 closed.
Logs;
starting: Wednesday 26 April 13:45:12 AEST 2017
cvs add: `10.65.65.13' already exists, with version number 1.1
Added 10.65.65.13
Trying to get all of the configs.
10.65.65.13 <http://10.65.65.13> <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13> <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 1.
10.65.65.13 <http://10.65.65.13> <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13> <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 2.
10.65.65.13 <http://10.65.65.13> <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13> <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 3.
10.65.65.13 <http://10.65.65.13> <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13> <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
=====================================
Getting missed routers: round 4.
10.65.65.13 <http://10.65.65.13> <http://10.65.65.13>: missed cmd(s): all commands
10.65.65.13 <http://10.65.65.13> <http://10.65.65.13>: End of run not found
10.65.65.13 flogin error: Error: TIMEOUT reached
!
cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
/var/lib/rancid/CVS/mel/router.db,v <-- router.db
new revision: 1.4; previous revision: 1.3
ending: Wednesday 26 April 13:53:02 AEST 2017
Any help greatly appreciated.
Thanks in advance !
_______________________________________________
_______________________________________________
--
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562)
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Loading...