{"id":1166,"date":"2014-02-14T09:46:46","date_gmt":"2014-02-14T14:46:46","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1166"},"modified":"2015-05-13T10:00:52","modified_gmt":"2015-05-13T15:00:52","slug":"rancid-and-dell-switches","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2014\/02\/rancid-and-dell-switches\/","title":{"rendered":"Rancid and Dell Switches"},"content":{"rendered":"<p>Running rancid for all of our cisco gear is pretty nice, but we&#8217;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.<\/p>\n<p>Anyway, we needed to add Dell PowerConnect 8132 and 8132F switches to the monitor.<\/p>\n<p>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)<\/p>\n<p><strong>Download the required bin files<\/strong><br \/>\n<code>cd \/var\/lib\/rancid\/bin<\/code><br \/>\n<code>wget http:\/\/it.thelibrarie.com\/utilities\/dlogin<\/code><br \/>\n<code>wget http:\/\/it.thelibrarie.com\/utilities\/drancid<\/code><br \/>\n<code>chmod +x dlogin<\/code><br \/>\n<code>chmod +x drancid<\/code><\/p>\n<p><strong>Edit the Rancid manufacturer file<\/strong><br \/>\n<code>nano rancid-fe<\/code><br \/>\nUnder %vendortable add the Dell brand<br \/>\n<code>'dell' => 'drancid',<\/code><br \/>\nSave and Exit<\/p>\n<p><strong>Open your router.db file<\/strong><br \/>\n<code>nano \/var\/lib\/rancid\/IMO\/router.db<\/code><\/p>\n<p><strong>Set your switch in the database<\/strong><br \/>\n<code>your.dell.switch:dell:up<\/code><br \/>\nSave and Exit<\/p>\n<p><strong>Either run rancid or wait until your cron job kicks off<\/strong><br \/>\n<code>sudo -u rancid -H \/usr\/bin\/rancid-run<\/code><\/p>\n<hr>\n<p>****EDIT 4\/2\/14****<br \/>\nSo I ran the dlogin\/drancid against one of my Dell switches and was receiving the following error in my \/var\/log\/rancid\/newestfilehere:<\/p>\n<blockquote><p>exec failed router manufacturer dell: No such file or directory<\/p><\/blockquote>\n<p>Dang, that&#8217;s no good.<\/p>\n<p><code>cd \/var\/lib\/rancid\/bin<\/code><br \/>\n<code>.\/dlogin IPADDRESS_OR_NAME_OF_DEVICE<\/code><\/p>\n<blockquote><p>-bash: .\/dlogin: @EXPECT_PATH@: bad interpreter: No such file or directory<\/p><\/blockquote>\n<p>Well that solves that issue.<\/p>\n<p><code>nano \/var\/lib\/rancid\/bin\/dlogin<\/code><br \/>\nAdd this to the very top:<br \/>\n<code>#!\/usr\/bin\/env expect<\/code><br \/>\nSave and quit<br \/>\n<code>.\/dlogin IPADDRESS_OR_NAME_OF_DEVICE<\/code><\/p>\n<blockquote><p>root@rancid:\/var\/lib\/rancid\/bin# .\/dlogin fp-dell8132sw1<br \/>\nfp-dell8132sw1<br \/>\nspawn ssh -c 3des -x -l dellsw fp-dell8132sw1<br \/>\nThe authenticity of host &#8216;fp-dell8132sw1 (10.20.209.000)&#8217; can&#8217;t be established.<br \/>\nRSA key fingerprint is 0b:05:08:c1:00:e9:00:30:0d:00:00:00:00:00:00:00.<br \/>\nAre you sure you want to continue connecting (yes\/no)?<br \/>\nHost fp-dell8132sw1 added to the list of known hosts.<br \/>\nyes<br \/>\nWarning: Permanently added &#8216;fp-dell8132sw1,10.20.209.000&#8217; (RSA) to the list of known hosts.<br \/>\ndellsw@fp-dell8132sw1&#8217;s password:<\/p>\n<p>FP-DELL8132SW1>enable<br \/>\nPassword:********<\/p><\/blockquote>\n<p>Success!<\/p>\n<p>And make sure you do the same to @PERLV_PATH@: bad interpreter: No such file or directory<br \/>\n<code>nano \/var\/lib\/rancid\/bin\/drancid<\/code><br \/>\nAdd the following to the top of the file<\/p>\n<blockquote><p>#!\/usr\/bin\/perl -w<\/p><\/blockquote>\n<p>Save and close<br \/>\n.\/drancid to verify<\/p>\n<p>EDIT!!!<br \/>\napparently my hosting company doesn&#8217;t like me having perl, python, or other scripts laying around in a directory with no index page. So here&#8217;s the tarball of the files:<br \/>\n<a href=\"http:\/\/it.thelibrarie.com\/utilities\/rancid-dell-extension.tgz\">Tarball of 3 files<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Running rancid for all of our cisco gear is pretty nice, but we&#8217;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 &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2014\/02\/rancid-and-dell-switches\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Rancid and Dell Switches<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1166","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1166"}],"version-history":[{"count":7,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1166\/revisions"}],"predecessor-version":[{"id":1271,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1166\/revisions\/1271"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}