andkorn.org

a fine line between curiosity and madness.

RANCID With Brocade ICX6610

I was having a hell of a time configuring Rancid with the Brocade ICX series switches. As with most things, the solution is very simple – after about 10 attempts of doing it wrong. The right solution is always the last one you try!

Anyway, you just need to use the ‘foundry’ rancid scripts. I tried the ones listed here: http://www.gossamer-threads.com/lists/rancid/users/5454 But they didn’t do it for me. The brocaderancid/brocadelogin scripts use these weird commands like chassisShow, fosConfig —show, and configShow. If your equipment has those commands then stop reading my post now and go read that email thread. if your switch does show version and show configuration, then read on!

Anyway, here are the few simple steps to get you going. I have a Brocade ICX6610-48 running Version:07.3.00cT7f3 (FCXR07300c.bin). This worked for me, YMMV.

Step 1: Add your RANCID user to your switch:

1
2
3
4
5
6
7
enable
 config term
 enable skip-page-display
 enable read-only-password RANCIDPASS
 username rancid privilege 4 password RANCIDPASS
 exit
 wr mem

Step 2: Add your switch to RANCID:

1
2
3
4
5
6
7
root@RANCID:~# vim /var/lib/rancid/.cloginrc

  add password 10.13.7.10 RANCIDPASS RANCIDPASSENABLEMODE

 root@RANCID:~# vim /var/lib/rancid/netnycloud/router.db

  BrocadeSwitchIPAddr:foundry:up

Run RANCID by hand to verify:

1
2
3
root@RANCID:~# su rancid
 rancid@RANCID:/$ cd
 rancid@RANCID:~$ /var/lib/rancid/bin/rancid-run

If you screwed up somewhere, first doublecheck that you have the IP addresses and hostnames correct in .cloginrc and router.db, and second, you can do some RANCID debugging. Checking IP addresses is much easier than debugging RANCID.

If you need to debug RANCID:

1
2
3
4
5
6
su rancid
 cd
 export PATH=/var/lib/rancid/bin:$PATH
 /var/lib/rancid/bin/francid -d BrocadeSwitchIPAddr
 /var/lib/rancid/bin/flogin -t 90 -c "show version;show chassis;show module;show flash;show running-config" BrocadeSwitchIPAddr
 /var/lib/rancid/bin/flogin -d -t 90 -c "show version;show chassis;show module;show flash;show running-config" BrocadeSwitchIPAddr

From here you are on your own. I am assuming you know RANCID well enough. Good Luck!

Comments