Discussion:
[rancid] rancid support for Brocade Fabric OS
David Ahrens
2016-01-26 22:31:21 UTC
Permalink
Hi,

Does Rancid work with Brocade switches?

Thanks,
David
heasley
2016-01-27 07:27:12 UTC
Permalink
Tue, Jan 26, 2016 at 10:31:21PM +0000, David Ahrens:
> Does Rancid work with Brocade switches?

another device that I do not have. others have said that brocades may work
as foundry or cisco. test it.
Howard Jones
2016-01-27 10:05:46 UTC
Permalink
On 27/01/2016 07:27, heasley wrote:
> Tue, Jan 26, 2016 at 10:31:21PM +0000, David Ahrens:
>> Does Rancid work with Brocade switches?
> another device that I do not have. others have said that brocades may work
> as foundry or cisco. test it.
>

I have a custom device type 'fabricos' that uses 'brocaderancid'. I
don't know where I got it from though.

It looks like it came from this mailing list:
http://www.shrubbery.net/pipermail/rancid-discuss/2011-January/005441.html

Except my copy uses clogin and not a separate brocadelogin script.

These guys have integrated a version of brocaderancid (using clogin)
into their rancid 2.x fork:
https://github.com/dotwaffle/rancid-git/blob/master/bin/brocaderancid.in

Best Regards,

Howard

(the former Foundry range of *Iron devices is a whole other ball of wax
more like Cisco)
heasley
2016-01-28 00:48:08 UTC
Permalink
Wed, Jan 27, 2016 at 10:05:46AM +0000, Howard Jones:
> On 27/01/2016 07:27, heasley wrote:
> > Tue, Jan 26, 2016 at 10:31:21PM +0000, David Ahrens:
> >> Does Rancid work with Brocade switches?
> > another device that I do not have. others have said that brocades may work
> > as foundry or cisco. test it.
> >
>
> I have a custom device type 'fabricos' that uses 'brocaderancid'. I
> don't know where I got it from though.
>
> It looks like it came from this mailing list:
> http://www.shrubbery.net/pipermail/rancid-discuss/2011-January/005441.html
>
> Except my copy uses clogin and not a separate brocadelogin script.
>
> These guys have integrated a version of brocaderancid (using clogin)
> into their rancid 2.x fork:
> https://github.com/dotwaffle/rancid-git/blob/master/bin/brocaderancid.in

I really do not know brocade from my elbow. But, importing scripts that I
can not test myself is potential for a lot of support grief for *me* - and
a few generous ML contributors. I feel far more comfortable when a number
of folks write on the ML that they use script R on V,V1,etc with login
script L and its been reliable for N months - and I'm willing to test the
import or give you remote access to one to do so.

Who vouches for what scripts with what flavors of Brocade?

> Best Regards,
>
> Howard
>
> (the former Foundry range of *Iron devices is a whole other ball of wax
> more like Cisco)
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Jason Biel
2016-01-28 00:53:16 UTC
Permalink
I have Brocade VDXs and TurboIrons I can assist with.

(I suggested in another thread about moving rancid to GitHub for
reasons just like this. Would allow for collaboration in a much easier
manner.)

> On Jan 27, 2016, at 18:48, heasley <***@shrubbery.net> wrote:
>
> Wed, Jan 27, 2016 at 10:05:46AM +0000, Howard Jones:
>>> On 27/01/2016 07:27, heasley wrote:
>>> Tue, Jan 26, 2016 at 10:31:21PM +0000, David Ahrens:
>>>> Does Rancid work with Brocade switches?
>>> another device that I do not have. others have said that brocades may work
>>> as foundry or cisco. test it.
>>
>> I have a custom device type 'fabricos' that uses 'brocaderancid'. I
>> don't know where I got it from though.
>>
>> It looks like it came from this mailing list:
>> http://www.shrubbery.net/pipermail/rancid-discuss/2011-January/005441.html
>>
>> Except my copy uses clogin and not a separate brocadelogin script.
>>
>> These guys have integrated a version of brocaderancid (using clogin)
>> into their rancid 2.x fork:
>> https://github.com/dotwaffle/rancid-git/blob/master/bin/brocaderancid.in
>
> I really do not know brocade from my elbow. But, importing scripts that I
> can not test myself is potential for a lot of support grief for *me* - and
> a few generous ML contributors. I feel far more comfortable when a number
> of folks write on the ML that they use script R on V,V1,etc with login
> script L and its been reliable for N months - and I'm willing to test the
> import or give you remote access to one to do so.
>
> Who vouches for what scripts with what flavors of Brocade?
>
>> Best Regards,
>>
>> Howard
>>
>> (the former Foundry range of *Iron devices is a whole other ball of wax
>> more like Cisco)
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-***@shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Elliot Wilen
2016-01-28 01:05:22 UTC
Permalink
Just want to mention what I wrote earlier off-list to the original querant:

I've found that rancid works well with Brocade Fabric OS; at least I have it working with Fabric OS v7.3.1. On one switch, though, the zoning portion of the config seems to get truncated in random ways, which causes unnecessary revisions to be logged. I haven't had time to troubleshoot this, but I'm still using rancid 2.x.

I use "brocade" in my router.db. Note that this is for Fabric OS. For my brocade _network_ switches, I use "foundry" and it works perfectly other than needing to tweak the script to ignore trivial changes. Apparently I added this at line 301 of francid:

/^Invalid Port Id - 128/ && next; # kill bogus output from DEFECT000274041

But that may not even apply to current versions of the switch software or even to the Brocade-branded network switches as opposed to the older Foundry ones that I've retired since I started using rancid.

--Elliot Wilen
heasley
2016-01-28 01:30:22 UTC
Permalink
Thu, Jan 28, 2016 at 01:05:22AM +0000, Elliot Wilen:
> Just want to mention what I wrote earlier off-list to the original querant:
>
> I've found that rancid works well with Brocade Fabric OS; at least I have it working with Fabric OS v7.3.1. On one switch, though, the zoning portion of the config seems to get truncated in random ways, which causes unnecessary revisions to be logged. I haven't had time to troubleshoot this, but I'm still using rancid 2.x.
>
> I use "brocade" in my router.db. Note that this is for Fabric OS. For my brocade _network_ switches, I use "foundry" and it works perfectly other than needing to tweak the script to ignore trivial changes. Apparently I added this at line 301 of francid:
>
> /^Invalid Port Id - 128/ && next; # kill bogus output from DEFECT000274041
>
> But that may not even apply to current versions of the switch software or even to the Brocade-branded network switches as opposed to the older Foundry ones that I've retired since I started using rancid.

Thanks. Which script did you import for device type "brocade"? Or just
provide it as an attachment, please.
Elliot Wilen
2016-01-28 07:39:51 UTC
Permalink
Ah, sorry, I forgot that I must have gotten the scripts from a 3rd party. Here are the files.
heasley
2016-01-28 19:33:39 UTC
Permalink
Thu, Jan 28, 2016 at 07:39:51AM +0000, Elliot Wilen:
> Ah, sorry, I forgot that I must have gotten the scripts from a 3rd party. Here are the files.


Thanks. Howard, would you provide your brocade script?
Howard Jones
2016-01-29 10:14:17 UTC
Permalink
On 28/01/2016 19:33, heasley wrote:
> Thu, Jan 28, 2016 at 07:39:51AM +0000, Elliot Wilen:
>> Ah, sorry, I forgot that I must have gotten the scripts from a 3rd party. Here are the files.
>
> Thanks. Howard, would you provide your brocade script?
>

Sure, here it is. We're using this against some relatively ancient IBM
OEMed Brocade 8G fabrics.
Elliot Wilen
2016-01-29 19:00:22 UTC
Permalink
Comparing Howard's version of the script to mine, I see a few differences, one of which may be a modification I made. Instead of using configShow directly, my script uses configUpload -all and saves it to a local file on the switch, followed by configShow -l to display that file. I think this yields a more complete configuration similar to what one would use to back up the switch via ftp.

His version also has a couple additions relative to whatever the common source was.
David Ahrens
2016-02-03 18:37:45 UTC
Permalink
Hi Elliot,

I have some old Brocade 200 SAN switches running version 5.2.2 of Fabric OS. The brocaderancid script seems to run properly but for some reason doesn't recognize/capture the out of the commands. The attached log file shows the output of the switch commands, any ideas?

Thanks,
David



-----Original Message-----
From: Rancid-discuss [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Elliot Wilen
Sent: Friday, January 29, 2016 11:00 AM
To: rancid-***@shrubbery.net
Subject: Re: [rancid] rancid support for Brocade Fabric OS

Comparing Howard's version of the script to mine, I see a few differences, one of which may be a modification I made. Instead of using configShow directly, my script uses configUpload -all and saves it to a local file on the switch, followed by configShow -l to display that file. I think this yields a more complete configuration similar to what one would use to back up the switch via ftp.

His version also has a couple additions relative to whatever the common source was.
John Heasley
2016-02-17 10:21:27 UTC
Permalink
Wed, Feb 03, 2016 at 06:37:45PM +0000, David Ahrens:
> Hi Elliot,
>
> I have some old Brocade 200 SAN switches running version 5.2.2 of Fabric OS. The brocaderancid script seems to run properly but for some reason doesn't recognize/capture the out of the commands. The attached log file shows the output of the switch commands, any ideas?

So, how many different O/S's does brocade have? FabricOS, what else?

I've cleaned-up the brocadelogin script a little bit and imported it as
brlogin. This could probably be cleaned-up further, remove ExtremeOS-specific
stuff etc, but I have nothing to test against.

ftp://ftp.shrubbery.net/pub/rancid/alpha/rancid-3.4.99.tar.gz

> Thanks,
> David
>
>
>
> -----Original Message-----
> From: Rancid-discuss [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Elliot Wilen
> Sent: Friday, January 29, 2016 11:00 AM
> To: rancid-***@shrubbery.net
> Subject: Re: [rancid] rancid support for Brocade Fabric OS
>
> Comparing Howard's version of the script to mine, I see a few differences, one of which may be a modification I made. Instead of using configShow directly, my script uses configUpload -all and saves it to a local file on the switch, followed by configShow -l to display that file. I think this yields a more complete configuration similar to what one would use to back up the switch via ftp.
>
> His version also has a couple additions relative to whatever the common source was.
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Jethro R Binks
2016-02-17 10:40:28 UTC
Permalink
FabricOS is the SAN stuff. Then there's the network device OS, which is
mostly supported in the foundry/flogin (Brocade bought Foundry years ago).
It varies a bit across devices, at the moment two similar-but-different
code bases are being integrated, but it is superficially the same and
config file is cisco-ish.

I think if brocadelogin/etc is being written for the SAN product line
FabricOS, it should be explicit about that, as otherwise there will be
confusion to anyone coming to Brocade networking in the last several
years, selecting this new brocadelogin, and not realising they actually
want the Foundry stuff. Call it brocadesanlogin etc?

Jethro.


On Wed, 17 Feb 2016, John Heasley wrote:

> Wed, Feb 03, 2016 at 06:37:45PM +0000, David Ahrens:
> > Hi Elliot,
> >
> > I have some old Brocade 200 SAN switches running version 5.2.2 of Fabric OS. The brocaderancid script seems to run properly but for some reason doesn't recognize/capture the out of the commands. The attached log file shows the output of the switch commands, any ideas?
>
> So, how many different O/S's does brocade have? FabricOS, what else?
>
> I've cleaned-up the brocadelogin script a little bit and imported it as
> brlogin. This could probably be cleaned-up further, remove ExtremeOS-specific
> stuff etc, but I have nothing to test against.
>
> ftp://ftp.shrubbery.net/pub/rancid/alpha/rancid-3.4.99.tar.gz
>
> > Thanks,
> > David
> >
> >
> >
> > -----Original Message-----
> > From: Rancid-discuss [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Elliot Wilen
> > Sent: Friday, January 29, 2016 11:00 AM
> > To: rancid-***@shrubbery.net
> > Subject: Re: [rancid] rancid support for Brocade Fabric OS
> >
> > Comparing Howard's version of the script to mine, I see a few differences, one of which may be a modification I made. Instead of using configShow directly, my script uses configUpload -all and saves it to a local file on the switch, followed by configShow -l to display that file. I think this yields a more complete configuration similar to what one would use to back up the switch via ftp.
> >
> > His version also has a couple additions relative to whatever the common source was.
> >
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-***@shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
>
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>

. . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks, Network Manager,
Information Services Directorate, University Of Strathclyde, Glasgow, UK

The University of Strathclyde is a charitable body, registered in
Scotland, number SC015263.
Howard Jones
2016-02-17 10:43:05 UTC
Permalink
On 17/02/2016 10:21, John Heasley wrote:
> Wed, Feb 03, 2016 at 06:37:45PM +0000, David Ahrens:
>> Hi Elliot,
>>
>> I have some old Brocade 200 SAN switches running version 5.2.2 of Fabric OS. The brocaderancid script seems to run properly but for some reason doesn't recognize/capture the out of the commands. The attached log file shows the output of the switch commands, any ideas?
> So, how many different O/S's does brocade have? FabricOS, what else?
>
> I've cleaned-up the brocadelogin script a little bit and imported it as
> brlogin. This could probably be cleaned-up further, remove ExtremeOS-specific
> stuff etc, but I have nothing to test against.
>
> ftp://ftp.shrubbery.net/pub/rancid/alpha/rancid-3.4.99.tar.gz
>

Brocade bought Foundry, so they have FabricOS/FabOS for their own
traditional SAN Switches (silkworm etc), plus the Foundry OS (Ironware?)
which is a lot like ios. They also recently bought Vyatta, which has its
own config style.

IMHO vendor names are not a good choice for device types - 'cisco' is
really 'ios', not css/arrowpoint, or nxos, or iosxr, or catos. Those are
all supported, but sometimes only if you know which vendor bought which
10 years ago... same sort of thing for companies like Dell and HP where
it's not even different ranges with different OS - some HP is comware
and some is procurve-classic, all in the Procurve range, as far as I can
see. Juniper SSG is another - 'netscreen' isn't in the product name or
company name anymore.
heasley
2016-02-17 13:04:10 UTC
Permalink
Wed, Feb 17, 2016 at 10:43:05AM +0000, Howard Jones:
> Brocade bought Foundry, so they have FabricOS/FabOS for their own
> traditional SAN Switches (silkworm etc), plus the Foundry OS (Ironware?)
> which is a lot like ios. They also recently bought Vyatta, which has its
> own config style.
>
> IMHO vendor names are not a good choice for device types - 'cisco' is
> really 'ios', not css/arrowpoint, or nxos, or iosxr, or catos. Those are
> all supported, but sometimes only if you know which vendor bought which
> 10 years ago... same sort of thing for companies like Dell and HP where
> it's not even different ranges with different OS - some HP is comware
> and some is procurve-classic, all in the Procurve range, as far as I can
> see. Juniper SSG is another - 'netscreen' isn't in the product name or
> company name anymore.

i'm happy to rename the foundry scripts and convert them to the rancid
3.0-style; but someone will have to help test as I no longer have this
equipment.

the brocadelogin script folks sent to me looks like a mix of flogin and
clogin. If i've coalesced all the comments together, that script works
for fabricos & ironware (at least some versions thereof). Do I have this
right?

but the brocaderancid script is for fabricos, given the command set?

{'chassisShow' => 'ChassisShow'},
{'firmwareShow' => 'FirmwareShow'},
{'version' => 'FirmwareShow'},
{'zoneshow' => 'FirmwareShow'},
{'portcfgshow' => 'FirmwareShow'},
#{'fosConfig --show' => 'Fosconfig'},
{'ipAddrShow' => 'IpAddrShow'},
{'licenseShow' => 'LicenseShow'},
{'domainsShow' => 'DomainsShow'},
{'configupload -force -all -l config.txt' => 'ConfigShow'},
{'configShow -l config.txt' => 'ConfigShow'}

and, i received scripts from another user today that I have not looked
through yet.
Jason Biel
2016-02-17 17:32:16 UTC
Permalink
*plug* github would be perfect for things like this *plug*

> On Feb 17, 2016, at 08:04, heasley <***@shrubbery.net> wrote:
>
> Wed, Feb 17, 2016 at 10:43:05AM +0000, Howard Jones:
>> Brocade bought Foundry, so they have FabricOS/FabOS for their own
>> traditional SAN Switches (silkworm etc), plus the Foundry OS (Ironware?)
>> which is a lot like ios. They also recently bought Vyatta, which has its
>> own config style.
>>
>> IMHO vendor names are not a good choice for device types - 'cisco' is
>> really 'ios', not css/arrowpoint, or nxos, or iosxr, or catos. Those are
>> all supported, but sometimes only if you know which vendor bought which
>> 10 years ago... same sort of thing for companies like Dell and HP where
>> it's not even different ranges with different OS - some HP is comware
>> and some is procurve-classic, all in the Procurve range, as far as I can
>> see. Juniper SSG is another - 'netscreen' isn't in the product name or
>> company name anymore.
>
> i'm happy to rename the foundry scripts and convert them to the rancid
> 3.0-style; but someone will have to help test as I no longer have this
> equipment.
>
> the brocadelogin script folks sent to me looks like a mix of flogin and
> clogin. If i've coalesced all the comments together, that script works
> for fabricos & ironware (at least some versions thereof). Do I have this
> right?
>
> but the brocaderancid script is for fabricos, given the command set?
>
> {'chassisShow' => 'ChassisShow'},
> {'firmwareShow' => 'FirmwareShow'},
> {'version' => 'FirmwareShow'},
> {'zoneshow' => 'FirmwareShow'},
> {'portcfgshow' => 'FirmwareShow'},
> #{'fosConfig --show' => 'Fosconfig'},
> {'ipAddrShow' => 'IpAddrShow'},
> {'licenseShow' => 'LicenseShow'},
> {'domainsShow' => 'DomainsShow'},
> {'configupload -force -all -l config.txt' => 'ConfigShow'},
> {'configShow -l config.txt' => 'ConfigShow'}
>
> and, i received scripts from another user today that I have not looked
> through yet.
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Nick Hilliard
2016-02-17 17:33:20 UTC
Permalink
Jason Biel wrote:
> *plug* github would be perfect for things like this *plug*

yeah, it really really would. Pull requests make community workflow way
easier.

Nick
Daniel Schmidt
2017-11-07 16:39:52 UTC
Permalink
I suddenly have acquired an interest in this. Is anybody using it in 3.7?
Thank you for your time.

On Wed, Feb 17, 2016 at 6:04 AM, heasley <***@shrubbery.net> wrote:

> Wed, Feb 17, 2016 at 10:43:05AM +0000, Howard Jones:
> > Brocade bought Foundry, so they have FabricOS/FabOS for their own
> > traditional SAN Switches (silkworm etc), plus the Foundry OS (Ironware?)
> > which is a lot like ios. They also recently bought Vyatta, which has its
> > own config style.
> >
> > IMHO vendor names are not a good choice for device types - 'cisco' is
> > really 'ios', not css/arrowpoint, or nxos, or iosxr, or catos. Those are
> > all supported, but sometimes only if you know which vendor bought which
> > 10 years ago... same sort of thing for companies like Dell and HP where
> > it's not even different ranges with different OS - some HP is comware
> > and some is procurve-classic, all in the Procurve range, as far as I can
> > see. Juniper SSG is another - 'netscreen' isn't in the product name or
> > company name anymore.
>
> i'm happy to rename the foundry scripts and convert them to the rancid
> 3.0-style; but someone will have to help test as I no longer have this
> equipment.
>
> the brocadelogin script folks sent to me looks like a mix of flogin and
> clogin. If i've coalesced all the comments together, that script works
> for fabricos & ironware (at least some versions thereof). Do I have this
> right?
>
> but the brocaderancid script is for fabricos, given the command set?
>
> {'chassisShow' => 'ChassisShow'},
> {'firmwareShow' => 'FirmwareShow'},
> {'version' => 'FirmwareShow'},
> {'zoneshow' => 'FirmwareShow'},
> {'portcfgshow' => 'FirmwareShow'},
> #{'fosConfig --show' => 'Fosconfig'},
> {'ipAddrShow' => 'IpAddrShow'},
> {'licenseShow' => 'LicenseShow'},
> {'domainsShow' => 'DomainsShow'},
> {'configupload -force -all -l config.txt' => 'ConfigShow'},
> {'configShow -l config.txt' => 'ConfigShow'}
>
> and, i received scripts from another user today that I have not looked
> through yet.
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-***@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>

--

E-Mail to and from me, in connection with the transaction
of public business, is subject to the Wyoming Public Records
Act and may be disclosed to third parties.
Loading...