Running rancid for all of our cisco gear is pretty nice, but we’re acquiring more and more non-cisco (dell/F10) switches for our iSCSI 10Gb and 40Gb needs. Price is a major contributor to that shift.
Anyway, we needed to add Dell PowerConnect 8132 and 8132F switches to the monitor.
This is geared towards the Debian/Ubuntu install I did in an earlier post. Files are from GIT (https://github.com/dotwaffle/rancid-git/tree/master/bin)
Download the required bin files
cd /var/lib/rancid/bin
wget http://it.thelibrarie.com/utilities/dlogin
wget http://it.thelibrarie.com/utilities/drancid
chmod +x dlogin
chmod +x drancid
Edit the Rancid manufacturer file
nano rancid-fe
Under %vendortable add the Dell brand
'dell' => 'drancid',
Save and Exit
Open your router.db file
nano /var/lib/rancid/IMO/router.db
Set your switch in the database
your.dell.switch:dell:up
Save and Exit
Either run rancid or wait until your cron job kicks off
sudo -u rancid -H /usr/bin/rancid-run
****EDIT 4/2/14****
So I ran the dlogin/drancid against one of my Dell switches and was receiving the following error in my /var/log/rancid/newestfilehere:
exec failed router manufacturer dell: No such file or directory
Dang, that’s no good.
cd /var/lib/rancid/bin
./dlogin IPADDRESS_OR_NAME_OF_DEVICE
-bash: ./dlogin: @EXPECT_PATH@: bad interpreter: No such file or directory
Well that solves that issue.
nano /var/lib/rancid/bin/dlogin
Add this to the very top:
#!/usr/bin/env expect
Save and quit
./dlogin IPADDRESS_OR_NAME_OF_DEVICE
root@rancid:/var/lib/rancid/bin# ./dlogin fp-dell8132sw1
fp-dell8132sw1
spawn ssh -c 3des -x -l dellsw fp-dell8132sw1
The authenticity of host ‘fp-dell8132sw1 (10.20.209.000)’ can’t be established.
RSA key fingerprint is 0b:05:08:c1:00:e9:00:30:0d:00:00:00:00:00:00:00.
Are you sure you want to continue connecting (yes/no)?
Host fp-dell8132sw1 added to the list of known hosts.
yes
Warning: Permanently added ‘fp-dell8132sw1,10.20.209.000’ (RSA) to the list of known hosts.
dellsw@fp-dell8132sw1’s password:
FP-DELL8132SW1>enable
Password:********
Success!
And make sure you do the same to @PERLV_PATH@: bad interpreter: No such file or directory
nano /var/lib/rancid/bin/drancid
Add the following to the top of the file
#!/usr/bin/perl -w
Save and close
./drancid to verify
EDIT!!!
apparently my hosting company doesn’t like me having perl, python, or other scripts laying around in a directory with no index page. So here’s the tarball of the files:
Tarball of 3 files