From sgilmour at enterasys.com Mon Apr 1 14:39:00 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Mon, 1 Apr 2013 10:39:00 -0400 Subject: [rancid] rancid-run script Message-ID: Hi, I am able to login and do a show running by doing /usr/local/rancid/bin/clogin -t 90 -c "show config" 192.168.150.1 but now I want to use the rancid-run command When I run this command I can see the networking.20... files in the /usr/local/rancid/var/logs directory that I have being created every hour through the crontab file. How can I get the show config to work when running the rancid-run script? I am stuck on how to get this to work. Do I add something to the crontab file or the rancid-run script? Also how would I stop the rancid-run script from running? Thanks for all your help Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From matej.vadnjal at arnes.si Tue Apr 2 12:02:18 2013 From: matej.vadnjal at arnes.si (Matej Vadnjal) Date: Tue, 02 Apr 2013 14:02:18 +0200 Subject: [rancid] Dell Switches with "K" in the host name fail In-Reply-To: References: Message-ID: <515AC8CA.3050607@arnes.si> On 27. 03. 2013 18:07, Fleming, Graham wrote: > Hello everyone, > > I'm using the drancid and dlogin scripts from here: http://web.rickyninja.net:81/rancid/ > > Everything works OK except any Powerconnect switches that have the letter "K" in their hostname will fail. > > In debugging I notice the script deletes any instance of the K from the prompt so it never matches the prompt and never knows when commands are finished. > > Therefore, at the end of the script it errors out with: > > ": missed cmd(s): show version,show running-config,show vlan > found_end = 0, clean_run = 0 > : End of run not found" > > Any ideas would be great thanks. Hi Graham In drancid you should have a line that reads: $prompt =~ tr/\033\\\[K//d; Remove the K from there and see if that works. I'm not sure why it is even in there, seems like a bug. Regards Matej Vadnjal Arnes From jody_b at rad.com Mon Apr 1 21:48:02 2013 From: jody_b at rad.com (JODY BERINGER) Date: Mon, 1 Apr 2013 21:48:02 +0000 Subject: [rancid] Willing to pay for creation of new module Message-ID: Hello All, I am new to the Rancid community and was wondering if someone with experience is willing to build a simple module for our RAD ETX product. Please contact me directly for more details and rates. Thank you, Jody Jody Beringer -------------- next part -------------- An HTML attachment was scrubbed... URL: From gfleming at srk.com Tue Apr 2 16:00:15 2013 From: gfleming at srk.com (Fleming, Graham) Date: Tue, 2 Apr 2013 16:00:15 +0000 Subject: [rancid] Dell Switches with "K" in the host name fail In-Reply-To: <515AC8CA.3050607@arnes.si> References: <515AC8CA.3050607@arnes.si> Message-ID: Thanks Matej! I had seen this already but couldn't figure out why it was there. For some reason when running drancid on certain Dell Powerconnect switches, "[K" gets prepended the prompt. This line seems to be trying to remove that "[K". I got rid of the K but now certain switches have "K" prepended. I'm not very good with Perl but this is my fix and I think it works: $prompt =~ tr/\033\\\[//d; $prompt =~ s/^K//d; On 2013-04-02, at 5:02 AM, Matej Vadnjal wrote: > On 27. 03. 2013 18:07, Fleming, Graham wrote: >> Hello everyone, >> >> I'm using the drancid and dlogin scripts from here: http://web.rickyninja.net:81/rancid/ >> >> Everything works OK except any Powerconnect switches that have the letter "K" in their hostname will fail. >> >> In debugging I notice the script deletes any instance of the K from the prompt so it never matches the prompt and never knows when commands are finished. >> >> Therefore, at the end of the script it errors out with: >> >> ": missed cmd(s): show version,show running-config,show vlan >> found_end = 0, clean_run = 0 >> : End of run not found" >> >> Any ideas would be great thanks. > Hi Graham > > In drancid you should have a line that reads: > > $prompt =~ tr/\033\\\[K//d; > > Remove the K from there and see if that works. I'm not sure why it is even in there, seems like a bug. > > Regards > Matej Vadnjal > Arnes > > > > From Alejandro.Sanchez at sitel.com Tue Apr 2 17:13:31 2013 From: Alejandro.Sanchez at sitel.com (Alejandro Sanchez) Date: Tue, 2 Apr 2013 19:13:31 +0200 Subject: [rancid] Cacti voice ip/sip trunk monitoring In-Reply-To: Message-ID: Good day guys, I know this is the rancid discussin but not sure whether to put this. Anyone knows how to monitorize on cacti a voice sip trunk? **CONFIDENTIAL NOTICE** This e-mail and any files transmitted with it may contain PRIVILEGED or CONFIDENTIAL information and may be read or used only by the intended recipient. If you are not the intended recipient of the e-mail or any of its attachments, please be advised that you have received this e-mail in error and that any use, dissemination, distribution, forwarding, printing, or copying of this e-mail or any attached files is strictly prohibited. If you have received this e-mail in error, please immediately purge it and all attachments and notify the sender by reply e-mail. From jwbensley at gmail.com Tue Apr 2 17:52:38 2013 From: jwbensley at gmail.com (James Bensley) Date: Tue, 2 Apr 2013 18:52:38 +0100 Subject: [rancid] Cacti voice ip/sip trunk monitoring In-Reply-To: References: Message-ID: On 2 April 2013 18:13, Alejandro Sanchez wrote: > Good day guys, > I know this is the rancid discussin but not sure whether to put this. > Anyone knows how to monitorize on cacti a voice sip trunk? > Well you could try the Cacti mailing list? :) Also, you haven't said what you want to monitor. Depending on your SIP platform and what stats you can pull from it, you can essentially graph anything in Cacti, even if it doesn't support SNMP because you can write a script to gather stats and feed them into Cacti. Hope that helps. James. -------------- next part -------------- An HTML attachment was scrubbed... URL: From GMourani at prival.ca Tue Apr 2 19:49:33 2013 From: GMourani at prival.ca (Gerhard Mourani) Date: Tue, 2 Apr 2013 19:49:33 +0000 Subject: [rancid] Cacti voice ip/sip trunk monitoring In-Reply-To: References: Message-ID: <312FF37225924E42A1D3D228EDBD119315E5B512@PRIVALEX.PrivalODC.lan> You can also check this solution that use Cacti and more -> www.blesk.ca From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of James Bensley Sent: April-02-13 1:53 PM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] Cacti voice ip/sip trunk monitoring On 2 April 2013 18:13, Alejandro Sanchez > wrote: Good day guys, I know this is the rancid discussin but not sure whether to put this. Anyone knows how to monitorize on cacti a voice sip trunk? Well you could try the Cacti mailing list? :) Also, you haven't said what you want to monitor. Depending on your SIP platform and what stats you can pull from it, you can essentially graph anything in Cacti, even if it doesn't support SNMP because you can write a script to gather stats and feed them into Cacti. Hope that helps. James. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sean.Browne at boeingdefence.co.uk Wed Apr 3 10:13:39 2013 From: Sean.Browne at boeingdefence.co.uk (Browne, Sean) Date: Wed, 3 Apr 2013 11:13:39 +0100 Subject: [rancid] Release Authorised RANCID Email Issue Message-ID: Hi all, I have RANCID up and running with ViewVC for web CVS access. It works great via the web interface but it is not sending emails when a change occurs. The change appears in the web-interface but RANCID does not appear to try to send emails. (There is nothing in /var/log/maillog). I CAN send test messages to and from the RANCID user on the RANCID (Centos) server and they arrive to my / the external email address. The problem seems to be RANCID not attempting to send messages. I have the following in my /etc/aliases file. rancid: myemailaddress rancid-group1: rancid rancid-admin-group1: rancid rancid-group2: rancid rancid-admin-group2: rancid rancid-group3: rancid rancid-admin-group3: rancid Any ideas as to what the problem might be? Many thanks, Sean Browne This communication is intended only for the individual or entity to which it is addressed and may contain proprietary or confidential information. If you have received this communication in error, please notify us immediately by telephone and destroy this original communication without reading, copying or distributing any copies of it. ----------------------------------------------------------------------------------------- Boeing Defence UK Limited is registered in England and Wales (registered number 01290439). Registered office 25 Victoria Street, London SW1H 0EX Phone: +44-20-7930-5000 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tosimpson at forchtgroup.com Wed Apr 3 11:21:04 2013 From: tosimpson at forchtgroup.com (Tom Simpson) Date: Wed, 3 Apr 2013 11:21:04 +0000 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From hpatil at securview.com Wed Apr 3 11:10:19 2013 From: hpatil at securview.com (Harshal Patil) Date: Wed, 3 Apr 2013 07:10:19 -0400 Subject: [rancid] Ranci GUI Message-ID: <0B58A828ECF5874E8AF69053B9DB65A935774C32D5@USNJ01EXC001> Hi, I have successfully configured Rancid GUI through CVSWEB package. However problem is that it showed the Local Repository not Rancid Repository where Device configuration stored. Can someone guide me on this issue means what setting i need do in Cvsroot file. Thanks Harshal ________________________________ Confidentiality: This e-mail and any attachments may be confidential and may also be privileged. If you are not an intended named recipient, please notify the sender immediately and do not disclose the contents to another person use it for any purpose, or store or copy the information in any medium. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sean.Browne at boeingdefence.co.uk Wed Apr 3 13:18:44 2013 From: Sean.Browne at boeingdefence.co.uk (Browne, Sean) Date: Wed, 3 Apr 2013 14:18:44 +0100 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <20130403130204.GE16564@shrubbery.net> References: <20130403130204.GE16564@shrubbery.net> Message-ID: Heasley nailed it. I found "/usr/libexec/rancid/control_rancid: line 503: sendmail: command not found" So sendmail is not installed. Is there somewhere I can tell RANCID to use postfix instead? Thanks a lot! Sean Browne -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: 03 April 2013 14:02 To: Browne, Sean Subject: Re: [rancid] Release Authorised RANCID Email Issue Wed, Apr 03, 2013 at 11:13:39AM +0100, Browne, Sean: > Hi all, > > I have RANCID up and running with ViewVC for web CVS access. > > It works great via the web interface but it is not sending emails when a change occurs. > > The change appears in the web-interface but RANCID does not appear to try to send emails. (There is nothing in /var/log/maillog). > > I CAN send test messages to and from the RANCID user on the RANCID (Centos) server and they arrive to my / the external email address. > > The problem seems to be RANCID not attempting to send messages. > > I have the following in my /etc/aliases file. > > rancid: myemailaddress > rancid-group1: rancid > rancid-admin-group1: rancid > rancid-group2: rancid > rancid-admin-group2: rancid > rancid-group3: rancid > rancid-admin-group3: rancid > > Any ideas as to what the problem might be? look at the log files for the groups. maybe it can't run sendmail. This communication is intended only for the individual or entity to which it is addressed and may contain proprietary or confidential information. If you have received this communication in error, please notify us immediately by telephone and destroy this original communication without reading, copying or distributing any copies of it. ----------------------------------------------------------------------------------------- Boeing Defence UK Limited is registered in England and Wales (registered number 01290439). Registered office 25 Victoria Street, London SW1H 0EX Phone: +44-20-7930-5000 From tosimpson at forchtgroup.com Wed Apr 3 13:20:32 2013 From: tosimpson at forchtgroup.com (Tom Simpson) Date: Wed, 3 Apr 2013 13:20:32 +0000 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403130204.GE16564@shrubbery.net>, Message-ID: <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> You can make an alias for sendmail to postfix, it should already be there with CentOS.... What version of Cent are you running? Thanks, Tom Simpson LAN/WAN Engineer Forcht Group of Kentucky 859.259.9700 x538 "We all knew there was just one way to improve our odds for survival: train, train, train. Sometimes, if your training is properly intense it will kill you. More often -- much, much more often -- it will save your life." - Richard Marcinko, former US Navy SEAL Team Commander ________________________________________ From: rancid-discuss-bounces at shrubbery.net [rancid-discuss-bounces at shrubbery.net] on behalf of Browne, Sean [Sean.Browne at boeingdefence.co.uk] Sent: Wednesday, April 03, 2013 9:18 AM To: heasley Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Release Authorised RANCID Email Issue Heasley nailed it. I found "/usr/libexec/rancid/control_rancid: line 503: sendmail: command not found" So sendmail is not installed. Is there somewhere I can tell RANCID to use postfix instead? Thanks a lot! Sean Browne -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: 03 April 2013 14:02 To: Browne, Sean Subject: Re: [rancid] Release Authorised RANCID Email Issue Wed, Apr 03, 2013 at 11:13:39AM +0100, Browne, Sean: > Hi all, > > I have RANCID up and running with ViewVC for web CVS access. > > It works great via the web interface but it is not sending emails when a change occurs. > > The change appears in the web-interface but RANCID does not appear to try to send emails. (There is nothing in /var/log/maillog). > > I CAN send test messages to and from the RANCID user on the RANCID (Centos) server and they arrive to my / the external email address. > > The problem seems to be RANCID not attempting to send messages. > > I have the following in my /etc/aliases file. > > rancid: myemailaddress > rancid-group1: rancid > rancid-admin-group1: rancid > rancid-group2: rancid > rancid-admin-group2: rancid > rancid-group3: rancid > rancid-admin-group3: rancid > > Any ideas as to what the problem might be? look at the log files for the groups. maybe it can't run sendmail. This communication is intended only for the individual or entity to which it is addressed and may contain proprietary or confidential information. If you have received this communication in error, please notify us immediately by telephone and destroy this original communication without reading, copying or distributing any copies of it. ----------------------------------------------------------------------------------------- Boeing Defence UK Limited is registered in England and Wales (registered number 01290439). Registered office 25 Victoria Street, London SW1H 0EX Phone: +44-20-7930-5000 _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss ________________________________ CONFIDENTIALITY NOTICE: This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Forcht Group IT, 2400 South Main Street, Corbin, Ky. From heas at shrubbery.net Wed Apr 3 13:24:41 2013 From: heas at shrubbery.net (heasley) Date: Wed, 3 Apr 2013 13:24:41 +0000 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> Message-ID: <20130403132441.GH16564@shrubbery.net> Wed, Apr 03, 2013 at 01:20:32PM +0000, Tom Simpson: > You can make an alias for sendmail to postfix, it should already be there with CentOS.... What version of Cent are you running? it should have installed that when postfix was installed; its a basic requirement for compatibility with sendmail. its probably that the path to sendmail (the binary from postfix) is missing from PATH in rancid.conf. From Sean.Browne at boeingdefence.co.uk Wed Apr 3 14:16:44 2013 From: Sean.Browne at boeingdefence.co.uk (Browne, Sean) Date: Wed, 3 Apr 2013 15:16:44 +0100 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <20130403132441.GH16564@shrubbery.net> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> Message-ID: Thank you all. It started working after adding /usr/sbin/ to the path statement in rancid.conf Sean Browne -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: 03 April 2013 14:25 To: Tom Simpson Cc: Browne, Sean; heasley; rancid-discuss at shrubbery.net Subject: Re: [rancid] Release Authorised RANCID Email Issue Wed, Apr 03, 2013 at 01:20:32PM +0000, Tom Simpson: > You can make an alias for sendmail to postfix, it should already be there with CentOS.... What version of Cent are you running? it should have installed that when postfix was installed; its a basic requirement for compatibility with sendmail. its probably that the path to sendmail (the binary from postfix) is missing from PATH in rancid.conf. This communication is intended only for the individual or entity to which it is addressed and may contain proprietary or confidential information. If you have received this communication in error, please notify us immediately by telephone and destroy this original communication without reading, copying or distributing any copies of it. ----------------------------------------------------------------------------------------- Boeing Defence UK Limited is registered in England and Wales (registered number 01290439). Registered office 25 Victoria Street, London SW1H 0EX Phone: +44-20-7930-5000 From daniel.schmidt at wyo.gov Wed Apr 3 15:11:39 2013 From: daniel.schmidt at wyo.gov (Daniel Schmidt) Date: Wed, 3 Apr 2013 09:11:39 -0600 Subject: [rancid] Ranci GUI In-Reply-To: <0B58A828ECF5874E8AF69053B9DB65A935774C32D5@USNJ01EXC001> References: <0B58A828ECF5874E8AF69053B9DB65A935774C32D5@USNJ01EXC001> Message-ID: Search engine. I got http://openmaniak.com/rancid_tutorial.php Scroll down to cvsweb section. Edit cvsweb.conf accordingly *From:* rancid-discuss-bounces at shrubbery.net [mailto: rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Harshal Patil *Sent:* Wednesday, April 03, 2013 5:10 AM *To:* rancid-discuss at shrubbery.net *Subject:* [rancid] Ranci GUI Hi, I have successfully configured Rancid GUI through CVSWEB package. However problem is that it showed the Local Repository not Rancid Repository where Device configuration stored. Can someone guide me on this issue means what setting i need do in Cvsroot file. Thanks Harshal ------------------------------ Confidentiality: This e-mail and any attachments may be confidential and may also be privileged. If you are not an intended named recipient, please notify the sender immediately and do not disclose the contents to another person use it for any purpose, or store or copy the information in any medium. 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Apr 3 19:28:47 2013 From: heas at shrubbery.net (heasley) Date: Wed, 3 Apr 2013 19:28:47 +0000 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> Message-ID: <20130403192847.GC43870@shrubbery.net> Wed, Apr 03, 2013 at 03:04:05PM -0400, Gilmour, Scott: > Hi > I have followed the directions at: > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.UVG_0BeG32t > Now when I go to /usr/local/rancid/var/networking/configs and look in the > config file the file is empty. How do I get it so I can see the > configuration file present. Do I need to add something to the crontab > file. it must first collect sucessfully. look at the log files for errors, to make sure that it is running successfully. otherwise, it might be a configuration error with rancid.conf or the group's router.db files. > I would like to have the script do a "show support" or "show config" it doesnt support that. you can add it > I am currrently running the script every 5 minutes repeatedly. > Under the Clean out configs differ logs what does the 50 and 23 numbers > represent. i'm not answering that. look at the manpage. From sgilmour at enterasys.com Wed Apr 3 20:04:46 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Wed, 3 Apr 2013 16:04:46 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <20130403192847.GC43870@shrubbery.net> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> Message-ID: Sorry I have been looking and I am missing something. I would greatly appreciate any help you can offer. I went to the /usr/local/rancid/bin rancid file and added this to the @commandtable {'show config' => 'WriteTerm'}, #Main {'show controllers cbus' => 'ShowContCbus'}, {'show diagbus' => 'ShowDiagbus'}, {'show diag' => 'ShowDiag'}, {'show capture' => 'ShowCapture'}, # ASA/PIX {'show module' => 'ShowModule'}, # cat 6500-ios {'show spe version' => 'ShowSpeVersion'}, {'show c7200' => 'ShowC7200'}, {'show inventory raw' => 'ShowInventory'}, {'show vtp status' => 'ShowVTP'}, {'show vlan' => 'ShowVLAN'}, {'show vlan-switch' => 'ShowVLAN'}, {'show debug' => 'ShowDebug'}, {'show shun' => 'ShowShun'}, # ASA/PIX {'more system:running-config' => 'WriteTerm'}, # ASA/PIX {'show running-config view full'=> 'WriteTerm'}, # workaround for # role-based CLI {'show running-config' => 'WriteTerm'}, {'show config' => 'WriteTerm'}, {'write term' => 'WriteTerm'}, ); Thanks Scott On Wed, Apr 3, 2013 at 3:28 PM, heasley wrote: > Wed, Apr 03, 2013 at 03:04:05PM -0400, Gilmour, Scott: > > Hi > > I have followed the directions at: > > > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.UVG_0BeG32t > > Now when I go to /usr/local/rancid/var/networking/configs and look in the > > config file the file is empty. How do I get it so I can see the > > configuration file present. Do I need to add something to the crontab > > file. > > it must first collect sucessfully. look at the log files for errors, to > make sure that it is running successfully. otherwise, it might be a > configuration error with rancid.conf or the group's router.db files. > > > I would like to have the script do a "show support" or "show config" > > it doesnt support that. you can add it > > > I am currrently running the script every 5 minutes repeatedly. > > Under the Clean out configs differ logs what does the 50 and 23 numbers > > represent. > > i'm not answering that. look at the manpage. > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgilmour at enterasys.com Wed Apr 3 19:04:05 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Wed, 3 Apr 2013 15:04:05 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <20130403132441.GH16564@shrubbery.net> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> Message-ID: Hi I have followed the directions at: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.UVG_0BeG32t Now when I go to /usr/local/rancid/var/networking/configs and look in the config file the file is empty. How do I get it so I can see the configuration file present. Do I need to add something to the crontab file. I would like to have the script do a "show support" or "show config" I am currrently running the script every 5 minutes repeatedly. Under the Clean out configs differ logs what does the 50 and 23 numbers represent. # Run config differ logs */5 * * * * /usr/local/rancid/bin/rancid-run # Clean out configs differ logs 50 23 * * * /usr/bin/find /usr/local/rancid/var/logs -type f -mtime +2 -exec rm$ Thanks Scott On Wed, Apr 3, 2013 at 9:24 AM, heasley wrote: > Wed, Apr 03, 2013 at 01:20:32PM +0000, Tom Simpson: > > You can make an alias for sendmail to postfix, it should already be > there with CentOS.... What version of Cent are you running? > > it should have installed that when postfix was installed; its a basic > requirement for compatibility with sendmail. > > its probably that the path to sendmail (the binary from postfix) is missing > from PATH in rancid.conf. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From vachon at sessionm.com Wed Apr 3 13:23:02 2013 From: vachon at sessionm.com (Thomas Vachon) Date: Wed, 3 Apr 2013 09:23:02 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> Message-ID: It works natively for us on postfix. # See man 5 aliases for format postmaster: root rancid-admin-networking: rancid-networking rancid-networking: noc noc: foo at example.com .... /etc/postfix/main.cf ... alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases ... That will do it -- Thomas Vachon Principal Operations Architect *session M* +1-617-963-8993 x7104 vachon at sessionm.com On Wed, Apr 3, 2013 at 9:20 AM, Tom Simpson wrote: > You can make an alias for sendmail to postfix, it should already be there > with CentOS.... What version of Cent are you running? > Thanks, > > Tom Simpson > LAN/WAN Engineer > Forcht Group of Kentucky > 859.259.9700 x538 > > "We all knew there was just one way to improve our odds for survival: > train, train, train. Sometimes, if your training is properly intense it > will kill you. More often -- much, much more often -- it will save your > life." - Richard Marcinko, former US Navy SEAL Team Commander > > ________________________________________ > From: rancid-discuss-bounces at shrubbery.net [ > rancid-discuss-bounces at shrubbery.net] on behalf of Browne, Sean [ > Sean.Browne at boeingdefence.co.uk] > Sent: Wednesday, April 03, 2013 9:18 AM > To: heasley > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > Heasley nailed it. > > I found "/usr/libexec/rancid/control_rancid: line 503: sendmail: command > not found" > > So sendmail is not installed. Is there somewhere I can tell RANCID to use > postfix instead? > > Thanks a lot! > > Sean Browne > > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: 03 April 2013 14:02 > To: Browne, Sean > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > Wed, Apr 03, 2013 at 11:13:39AM +0100, Browne, Sean: > > Hi all, > > > > I have RANCID up and running with ViewVC for web CVS access. > > > > It works great via the web interface but it is not sending emails when a > change occurs. > > > > The change appears in the web-interface but RANCID does not appear to > try to send emails. (There is nothing in /var/log/maillog). > > > > I CAN send test messages to and from the RANCID user on the RANCID > (Centos) server and they arrive to my / the external email address. > > > > The problem seems to be RANCID not attempting to send messages. > > > > I have the following in my /etc/aliases file. > > > > rancid: myemailaddress > > rancid-group1: rancid > > rancid-admin-group1: rancid > > rancid-group2: rancid > > rancid-admin-group2: rancid > > rancid-group3: rancid > > rancid-admin-group3: rancid > > > > Any ideas as to what the problem might be? > > look at the log files for the groups. maybe it can't run sendmail. > This communication is intended only for the individual or entity to which > it is addressed and may contain proprietary or confidential information. If > you have received this communication in error, please notify us immediately > by telephone and destroy this original communication without reading, > copying or distributing any copies of it. > > ----------------------------------------------------------------------------------------- > Boeing Defence UK Limited is registered in England and Wales (registered > number 01290439). > Registered office 25 Victoria Street, London SW1H 0EX > Phone: +44-20-7930-5000 > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > ________________________________ > > CONFIDENTIALITY NOTICE: > This message contains confidential information and is intended only for > the individual named. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately by e-mail if you have received this e-mail by mistake and > delete this e-mail from your system. E-mail transmission cannot be > guaranteed to be secure or error-free as information could be intercepted, > corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. > The sender therefore does not accept liability for any errors or omissions > in the contents of this message, which arise as a result of e-mail > transmission. If verification is required please request a hard-copy > version. > > Forcht Group IT, 2400 South Main Street, Corbin, Ky. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgilmour at enterasys.com Thu Apr 4 14:02:26 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Thu, 4 Apr 2013 10:02:26 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <20130404001536.GE52074@shrubbery.net> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> Message-ID: Hi, I am looking in the /usr/local/rancid/var/logs/networking.... file and I am seeing this error could not read /root/.cloginrc no such file or directory. How can I correct this? I believe this is why I am not seeing anything in the config files. Any suggestions is greatly appreciated. Thanks Scott On Wed, Apr 3, 2013 at 8:15 PM, heasley wrote: > Wed, Apr 03, 2013 at 04:04:46PM -0400, Gilmour, Scott: > > Sorry I have been looking and I am missing something. I would greatly > > appreciate any help you can offer. > > try rancid-run networking > else see section 3 of the rancid FAQ. > > > I went to the /usr/local/rancid/bin rancid file and added this to the > > @commandtable > > {'show config' => 'WriteTerm'}, > > #Main > > {'show controllers cbus' => 'ShowContCbus'}, > > {'show diagbus' => 'ShowDiagbus'}, > > {'show diag' => 'ShowDiag'}, > > {'show capture' => 'ShowCapture'}, # ASA/PIX > > {'show module' => 'ShowModule'}, # cat 6500-ios > > {'show spe version' => 'ShowSpeVersion'}, > > {'show c7200' => 'ShowC7200'}, > > {'show inventory raw' => 'ShowInventory'}, > > {'show vtp status' => 'ShowVTP'}, > > {'show vlan' => 'ShowVLAN'}, > > {'show vlan-switch' => 'ShowVLAN'}, > > {'show debug' => 'ShowDebug'}, > > {'show shun' => 'ShowShun'}, # ASA/PIX > > {'more system:running-config' => 'WriteTerm'}, # ASA/PIX > > {'show running-config view full'=> 'WriteTerm'}, # workaround for > > # role-based CLI > > {'show running-config' => 'WriteTerm'}, > > {'show config' => 'WriteTerm'}, > > {'write term' => 'WriteTerm'}, > > ); > > Thanks > > Scott > > > > > > On Wed, Apr 3, 2013 at 3:28 PM, heasley wrote: > > > > > Wed, Apr 03, 2013 at 03:04:05PM -0400, Gilmour, Scott: > > > > Hi > > > > I have followed the directions at: > > > > > > > > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.UVG_0BeG32t > > > > Now when I go to /usr/local/rancid/var/networking/configs and look > in the > > > > config file the file is empty. How do I get it so I can see the > > > > configuration file present. Do I need to add something to the > crontab > > > > file. > > > > > > it must first collect sucessfully. look at the log files for errors, > to > > > make sure that it is running successfully. otherwise, it might be a > > > configuration error with rancid.conf or the group's router.db files. > > > > > > > I would like to have the script do a "show support" or "show config" > > > > > > it doesnt support that. you can add it > > > > > > > I am currrently running the script every 5 minutes repeatedly. > > > > Under the Clean out configs differ logs what does the 50 and 23 > numbers > > > > represent. > > > > > > i'm not answering that. look at the manpage. > > > > > > > > > > > -- > > > > Scott Gilmour | SQA Engineer > > > > Enterasys Networks | A Siemens Enterprise Communications Company > > > > Office: (603) 952-5924 > > > > Email: sgilmour at enterasys.com > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: networking.rtf Type: application/rtf Size: 13209 bytes Desc: not available URL: From willie.s.hinote at nasa.gov Thu Apr 4 14:17:45 2013 From: willie.s.hinote at nasa.gov (Hinote, Scotty (MSFC-IS40)[NICS]) Date: Thu, 4 Apr 2013 09:17:45 -0500 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> Message-ID: <8420D9D639CBE744B778A8916DFFC90FF82671CE01@NDMSSCC08.ndc.nasa.gov> Hi Scott, You should be executing the rancid-run command as the rancid user and not as root. The error message states that it cannot find a .cloginrc file in root's directory. You can su - rancid then execute rancid-run which should successfully backup your devices or produce another error in the logs. Regards, Scotty From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Gilmour, Scott Sent: Thursday, April 04, 2013 9:02 AM To: heasley; rancid-discuss at shrubbery.net; Tom Simpson Subject: Re: [rancid] Release Authorised RANCID Email Issue Hi, I am looking in the /usr/local/rancid/var/logs/networking.... file and I am seeing this error could not read /root/.cloginrc no such file or directory. How can I correct this? I believe this is why I am not seeing anything in the config files. Any suggestions is greatly appreciated. Thanks Scott On Wed, Apr 3, 2013 at 8:15 PM, heasley > wrote: Wed, Apr 03, 2013 at 04:04:46PM -0400, Gilmour, Scott: > Sorry I have been looking and I am missing something. I would greatly > appreciate any help you can offer. try rancid-run networking else see section 3 of the rancid FAQ. > I went to the /usr/local/rancid/bin rancid file and added this to the > @commandtable > {'show config' => 'WriteTerm'}, > #Main > {'show controllers cbus' => 'ShowContCbus'}, > {'show diagbus' => 'ShowDiagbus'}, > {'show diag' => 'ShowDiag'}, > {'show capture' => 'ShowCapture'}, # ASA/PIX > {'show module' => 'ShowModule'}, # cat 6500-ios > {'show spe version' => 'ShowSpeVersion'}, > {'show c7200' => 'ShowC7200'}, > {'show inventory raw' => 'ShowInventory'}, > {'show vtp status' => 'ShowVTP'}, > {'show vlan' => 'ShowVLAN'}, > {'show vlan-switch' => 'ShowVLAN'}, > {'show debug' => 'ShowDebug'}, > {'show shun' => 'ShowShun'}, # ASA/PIX > {'more system:running-config' => 'WriteTerm'}, # ASA/PIX > {'show running-config view full'=> 'WriteTerm'}, # workaround for > # role-based CLI > {'show running-config' => 'WriteTerm'}, > {'show config' => 'WriteTerm'}, > {'write term' => 'WriteTerm'}, > ); > Thanks > Scott > > > On Wed, Apr 3, 2013 at 3:28 PM, heasley > wrote: > > > Wed, Apr 03, 2013 at 03:04:05PM -0400, Gilmour, Scott: > > > Hi > > > I have followed the directions at: > > > > > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.UVG_0BeG32t > > > Now when I go to /usr/local/rancid/var/networking/configs and look in the > > > config file the file is empty. How do I get it so I can see the > > > configuration file present. Do I need to add something to the crontab > > > file. > > > > it must first collect sucessfully. look at the log files for errors, to > > make sure that it is running successfully. otherwise, it might be a > > configuration error with rancid.conf or the group's router.db files. > > > > > I would like to have the script do a "show support" or "show config" > > > > it doesnt support that. you can add it > > > > > I am currrently running the script every 5 minutes repeatedly. > > > Under the Clean out configs differ logs what does the 50 and 23 numbers > > > represent. > > > > i'm not answering that. look at the manpage. > > > > > > -- > > Scott Gilmour | SQA Engineer > > Enterasys Networks | A Siemens Enterprise Communications Company > > Office: (603) 952-5924 > > Email: sgilmour at enterasys.com -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwest at zyedge.com Thu Apr 4 14:18:51 2013 From: rwest at zyedge.com (Ryan West) Date: Thu, 4 Apr 2013 14:18:51 +0000 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> Message-ID: <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> On Thu, Apr 04, 2013 at 10:02:26, Gilmour, Scott wrote: > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > Hi, > I am looking in the /usr/local/rancid/var/logs/networking.... file and > I am seeing this error could not read /root/.cloginrc no such file or directory. > How can I correct this? I believe this is why I am not seeing > anything in the config files. > Any suggestions is greatly appreciated. > Thanks > Scott > Did you create a user, maybe rancid for example, that is owner of /usr/local/rancid? Try crontab -e from the user rancid and see if you get better results. .cloginrc lives in the home directory of the user who ran it. Since you're running it from root, that's where it's checking. -ryan From rwest at zyedge.com Thu Apr 4 18:26:13 2013 From: rwest at zyedge.com (Ryan West) Date: Thu, 4 Apr 2013 18:26:13 +0000 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> Message-ID: <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> On Thu, Apr 04, 2013 at 13:26:15, Gilmour, Scott wrote: > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > Hi, > I tried that and still having issues. Any suggestions would be appreciated. > Still debugging. > > sqauser at FreeRadius:~$ su - rancid > > Password: > > $ /usr/local/rancid/bin/rancid-run > > you have mail > > $ > > /usr/local/rancid/var/logs > > starting: Thu Apr 4 13:04:27 EDT 2013 > > comm: routers.up: Permission denied > > comm: /usr/local/rancid/var/networking/routers.up: Permission denied > > > Chown -R rancid.netadm /usr/local/rancid as root. You missed step 11. http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#Rancid_Installation RANCID / Linux are being pretty descriptive as to what the problem is. -ryan From sgilmour at enterasys.com Thu Apr 4 17:26:15 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Thu, 4 Apr 2013 13:26:15 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> Message-ID: Hi, I tried that and still having issues. Any suggestions would be appreciated. Still debugging. sqauser at FreeRadius:~$ su - rancid Password: $ /usr/local/rancid/bin/rancid-run you have mail $ /usr/local/rancid/var/logs starting: Thu Apr 4 13:04:27 EDT 2013 comm: routers.up: Permission denied comm: /usr/local/rancid/var/networking/routers.up: Permission denied Trying to get all of the configs. 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found ! ! crontab-e # Rancid user's crontab file # # Run config differ logs */5 * * * * /usr/local/rancid/bin/rancid-run # Clean out configs differ logs 50 23 * * * /usr/bin/find /usr/local/rancid/var/logs -type f -mtime +2 -exec rm$ On Thu, Apr 4, 2013 at 10:18 AM, Ryan West wrote: > On Thu, Apr 04, 2013 at 10:02:26, Gilmour, Scott wrote: > > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > > > Hi, > > I am looking in the /usr/local/rancid/var/logs/networking.... file and > > I am seeing this error could not read /root/.cloginrc no such file or > directory. > > How can I correct this? I believe this is why I am not seeing > > anything in the config files. > > Any suggestions is greatly appreciated. > > Thanks > > Scott > > > Did you create a user, maybe rancid for example, that is owner of > /usr/local/rancid? Try crontab -e from the user rancid and see if you get > better results. .cloginrc lives in the home directory of the user who ran > it. Since you're running it from root, that's where it's checking. > > -ryan > > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgilmour at enterasys.com Fri Apr 5 00:13:33 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Thu, 4 Apr 2013 20:13:33 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> Message-ID: Hi All, I feel I am getting closer. Here is the output I have in the /usr/local/rancid/var/logs/networking.... file plus when I go to /usr/local/rancid/var/networking/configs I see the files such as 192.168.150.1 but the config files are totally empty. Thanks again for everyones help, Scott starting: Thu Apr 4 20:00:40 EDT 2013 Trying to get all of the configs. 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found ! ! 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found ! ===================================== Getting missed routers: round 1. 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found On Thu, Apr 4, 2013 at 2:26 PM, Ryan West wrote: > On Thu, Apr 04, 2013 at 13:26:15, Gilmour, Scott wrote: > > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > > > Hi, > > I tried that and still having issues. Any suggestions would be > appreciated. > > Still debugging. > > > > sqauser at FreeRadius:~$ su - rancid > > > > Password: > > > > $ /usr/local/rancid/bin/rancid-run > > > > you have mail > > > > $ > > > > /usr/local/rancid/var/logs > > > > starting: Thu Apr 4 13:04:27 EDT 2013 > > > > comm: routers.up: Permission denied > > > > comm: /usr/local/rancid/var/networking/routers.up: Permission denied > > > > > > > > > Chown -R rancid.netadm /usr/local/rancid as root. You missed step 11. > > > http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#Rancid_Installation > > RANCID / Linux are being pretty descriptive as to what the problem is. > > -ryan > > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From me_gogorza at hotmail.com Fri Apr 5 00:53:38 2013 From: me_gogorza at hotmail.com (Marito ...) Date: Thu, 4 Apr 2013 21:53:38 -0300 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: , <20130403130204.GE16564@shrubbery.net>, , <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local>, <20130403132441.GH16564@shrubbery.net>, , <20130403192847.GC43870@shrubbery.net>, , <20130404001536.GE52074@shrubbery.net>, , <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local>, , <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local>, Message-ID: Hi Scott, Were you able to successfuly login the devices using the rancid scripts?I mean, for example, if you set up the device 192.168.200.4 as a cisco, execute clogin -c 'system show hardware; system show version; system show active-config; system show uptime' 192.168.200.4 (take into account that the "clogin" script depends on your device vendor).Verify that the config in router.db is according to your device vendor.Other thing you can check, is that the user you configured at .cloginrc has enough privileges to execute the commands (I deal with this problem today :-( ).Hope you could make it working !!! RegardsMario Date: Thu, 4 Apr 2013 20:13:33 -0400 From: sgilmour at enterasys.com To: rwest at zyedge.com CC: rancid-discuss at shrubbery.net Subject: Re: [rancid] Release Authorised RANCID Email Issue Hi All,I feel I am getting closer. Here is the output I have in the /usr/local/rancid/var/logs/networking.... file plus when I go to /usr/local/rancid/var/networking/configs I see the files such as 192.168.150.1 but the config files are totally empty. Thanks again for everyones help,Scottstarting: Thu Apr 4 20:00:40 EDT 2013 Trying to get all of the configs. 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found ! ! 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found ! ===================================== Getting missed routers: round 1. 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found On Thu, Apr 4, 2013 at 2:26 PM, Ryan West wrote: On Thu, Apr 04, 2013 at 13:26:15, Gilmour, Scott wrote: > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > Hi, > I tried that and still having issues. Any suggestions would be appreciated. > Still debugging. > > sqauser at FreeRadius:~$ su - rancid > > Password: > > $ /usr/local/rancid/bin/rancid-run > > you have mail > > $ > > /usr/local/rancid/var/logs > > starting: Thu Apr 4 13:04:27 EDT 2013 > > comm: routers.up: Permission denied > > comm: /usr/local/rancid/var/networking/routers.up: Permission denied > > > Chown -R rancid.netadm /usr/local/rancid as root. You missed step 11. http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#Rancid_Installation RANCID / Linux are being pretty descriptive as to what the problem is. -ryan -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwest at zyedge.com Fri Apr 5 05:38:44 2013 From: rwest at zyedge.com (Ryan West) Date: Fri, 5 Apr 2013 05:38:44 +0000 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> Message-ID: <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> On Thu, Apr 04, 2013 at 20:13:33, Gilmour, Scott wrote: > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > Hi All, > I feel I am getting closer. Here is the output I have in the > /usr/local/rancid/var/logs/networking.... file plus when I go to > /usr/local/rancid/var/networking/configs I see the files such as > 192.168.150.1 but the config files are totally empty. > Thanks again for everyones help, > Scott > As someone else already mentioned, clogin to see if you can login. Sounds like the user/pass is incorrect now. From sgilmour at enterasys.com Fri Apr 5 12:14:19 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Fri, 5 Apr 2013 08:14:19 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> Message-ID: Yes I can do for example bin/clogin -c 'show config' 192.168.150.1 and that logs in without any issue. If I do a bin/rancid-run that is where my issue is occurring. I am debugging the script to see if there is something I need to edit in the script. Thanks Scott On Fri, Apr 5, 2013 at 1:38 AM, Ryan West wrote: > On Thu, Apr 04, 2013 at 20:13:33, Gilmour, Scott wrote: > > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > > > Hi All, > > I feel I am getting closer. Here is the output I have in the > > /usr/local/rancid/var/logs/networking.... file plus when I go to > > /usr/local/rancid/var/networking/configs I see the files such as > > 192.168.150.1 but the config files are totally empty. > > Thanks again for everyones help, > > Scott > > > As someone else already mentioned, clogin to see if you can login. > Sounds like the user/pass is incorrect now. > > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwest at zyedge.com Fri Apr 5 13:37:22 2013 From: rwest at zyedge.com (Ryan West) Date: Fri, 5 Apr 2013 13:37:22 +0000 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> Message-ID: <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> On Fri, Apr 05, 2013 at 08:14:19, Gilmour, Scott wrote: > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > Yes I can do for example bin/clogin -c 'show config' 192.168.150.1 > and that logs in without any issue. > If I do a bin/rancid-run that is where my issue is occurring. I am > debugging the script to see if there is something I need to edit in the script. > Try rancid -d 192.168.150.1 and post that. What's in your logs when you try rancid-run? From rwest at zyedge.com Fri Apr 5 14:32:52 2013 From: rwest at zyedge.com (Ryan West) Date: Fri, 5 Apr 2013 14:32:52 +0000 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> Message-ID: <8903D0A8F70EA74FBE57CA9B846B42C05754C4C4@ZY-MBX2.zyedge.local> On Fri, Apr 05, 2013 at 10:28:11, Gilmour, Scott wrote: > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > Ryan, > Here is the output: > > $ bin/rancid -d 192.168.150.1 > executing clogin -t 90 -c"show version;show redundancy secondary;show > idprom backplane;show install active;show env all;show rsp chassis- > info;show gsr chassis;show diag chassis-info;show boot;show > bootvar;show variables boot;show flash;dir /all nvram:;dir /all > bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all > disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all > harddiska:;dir /all harddiskb:;dir /all sup-bootdisk:;dir /all > sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all > slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all > slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all > slavedisk2:;dir /all slavesup- bootflash:;dir /all sec-nvram:;dir /all > sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all > sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec- > disk2:;show controllers;show config;show controllers cbus;show > diagbus;show diag;show capture;show module;show spe version;show > c7200;show inventory raw;show vtp status;show vlan;show > vlan-switch;show debug;show shun;more system:running-config;show > running-config view full;show running-config;show config;write term" > 192.168.150.1 > sh: 1: clogin: not found Login to your box as the rancid user and fix your PATH in .bashrc. Need to include /usr/local/rancid/bin in your path. From sgilmour at enterasys.com Fri Apr 5 14:28:11 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Fri, 5 Apr 2013 10:28:11 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> Message-ID: Ryan, Here is the output: $ bin/rancid -d 192.168.150.1 executing clogin -t 90 -c"show version;show redundancy secondary;show idprom backplane;show install active;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootdisk:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show config;show controllers cbus;show diagbus;show diag;show capture;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;show shun;more system:running-config;show running-config view full;show running-config;show config;write term" 192.168.150.1 sh: 1: clogin: not found 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,show running-config view full,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,show shun,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,show redundancy secondary,show running-config,show c7200,dir /all slot1: 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,show running-config view full,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,show shun,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,show redundancy secondary,show running-config,show c7200,dir /all slot1: 192.168.150.1: End of run not found 192.168.150.1: End of run not found ! you have mail $ Starting rancid-run bin/rancid-run /usr/local/rancid/var/logs/networking.20130405.102327 starting: Fri Apr 5 10:23:27 EDT 2013 Trying to get all of the configs. 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found ! ! ! ===================================== Getting missed routers: round 1. 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found ! 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found ! ! ===================================== Getting missed routers: round 2. 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found ! ! ! ===================================== Getting missed routers: round 3. 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found ! ! ! ===================================== Getting missed routers: round 4. 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found ! 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found ! ! cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Fri Apr 5 10:23:28 EDT 2013 On Fri, Apr 5, 2013 at 9:37 AM, Ryan West wrote: > On Fri, Apr 05, 2013 at 08:14:19, Gilmour, Scott wrote: > > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > > > Yes I can do for example bin/clogin -c 'show config' 192.168.150.1 > > and that logs in without any issue. > > If I do a bin/rancid-run that is where my issue is occurring. I am > > debugging the script to see if there is something I need to edit in the > script. > > > Try rancid -d 192.168.150.1 and post that. What's in your logs when you > try rancid-run? > > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgilmour at enterasys.com Fri Apr 5 14:59:44 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Fri, 5 Apr 2013 10:59:44 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <8903D0A8F70EA74FBE57CA9B846B42C05754C4C4@ZY-MBX2.zyedge.local> References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C4C4@ZY-MBX2.zyedge.local> Message-ID: Ryan I was looking online to see how to add the path to the .bashrc and I want to make sure this is correct since there are a few different versions of how to do this. Would I need to add it like this to the end of the bashrc file under Alias Definitions? if [ -d /usr/local/rancid/bin ]; then PATH=$PATH:/usr/local/rancid/bin fi or would I just add it this way export PATH=$PATH:/usr/local/rancid/bin Thanks for all your help, Scott On Fri, Apr 5, 2013 at 10:32 AM, Ryan West wrote: > On Fri, Apr 05, 2013 at 10:28:11, Gilmour, Scott wrote: > > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > > > Ryan, > > Here is the output: > > > > $ bin/rancid -d 192.168.150.1 > > executing clogin -t 90 -c"show version;show redundancy secondary;show > > idprom backplane;show install active;show env all;show rsp chassis- > > info;show gsr chassis;show diag chassis-info;show boot;show > > bootvar;show variables boot;show flash;dir /all nvram:;dir /all > > bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all > > disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all > > harddiska:;dir /all harddiskb:;dir /all sup-bootdisk:;dir /all > > sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all > > slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all > > slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all > > slavedisk2:;dir /all slavesup- bootflash:;dir /all sec-nvram:;dir /all > > sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all > > sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec- > > disk2:;show controllers;show config;show controllers cbus;show > > diagbus;show diag;show capture;show module;show spe version;show > > c7200;show inventory raw;show vtp status;show vlan;show > > vlan-switch;show debug;show shun;more system:running-config;show > > running-config view full;show running-config;show config;write term" > > 192.168.150.1 > > sh: 1: clogin: not found > > Login to your box as the rancid user and fix your PATH in .bashrc. Need > to include /usr/local/rancid/bin in your path. > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From me_gogorza at hotmail.com Fri Apr 5 16:00:11 2013 From: me_gogorza at hotmail.com (Marito ...) Date: Fri, 5 Apr 2013 13:00:11 -0300 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: , <20130403130204.GE16564@shrubbery.net>, , <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local>, <20130403132441.GH16564@shrubbery.net>, , <20130403192847.GC43870@shrubbery.net>, , <20130404001536.GE52074@shrubbery.net>, , <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local>, , <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local>, , <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local>, , <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local>, Message-ID: Scott, Please check in your router.db which vendor you setup. As per your log file , the script is trying to execute "system show XXXX", while the rancid script executes "show XXXX". I think you are using the rivrancid/rivlogin scripts for this devices. Instead of using clogin, try rivlogin -c 'system show XXXX' 192.168.150.1 (where XXXX is your comand) Regards. Mario Date: Fri, 5 Apr 2013 10:28:11 -0400 From: sgilmour at enterasys.com To: rwest at zyedge.com CC: rancid-discuss at shrubbery.net Subject: Re: [rancid] Release Authorised RANCID Email Issue Ryan, Here is the output: $ bin/rancid -d 192.168.150.1 executing clogin -t 90 -c"show version;show redundancy secondary;show idprom backplane;show install active;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootdisk:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show config;show controllers cbus;show diagbus;show diag;show capture;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;show shun;more system:running-config;show running-config view full;show running-config;show config;write term" 192.168.150.1 sh: 1: clogin: not found 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,show running-config view full,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,show shun,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,show redundancy secondary,show running-config,show c7200,dir /all slot1: 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,show running-config view full,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,show shun,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,show redundancy secondary,show running-config,show c7200,dir /all slot1: 192.168.150.1: End of run not found 192.168.150.1: End of run not found ! you have mail $ Starting rancid-run bin/rancid-run /usr/local/rancid/var/logs/networking.20130405.102327 starting: Fri Apr 5 10:23:27 EDT 2013 Trying to get all of the configs. 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found ! ! ! ===================================== Getting missed routers: round 1. 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found ! 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found ! ! ===================================== Getting missed routers: round 2. 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found ! ! ! ===================================== Getting missed routers: round 3. 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found ! ! ! ===================================== Getting missed routers: round 4. 192.168.200.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.1: End of run not found 192.168.200.4: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.200.4: End of run not found ! 192.168.150.1: missed cmd(s): system show hardware,system show version,system show active-config,system show uptime 192.168.150.1: End of run not found ! ! cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Fri Apr 5 10:23:28 EDT 2013 On Fri, Apr 5, 2013 at 9:37 AM, Ryan West wrote: On Fri, Apr 05, 2013 at 08:14:19, Gilmour, Scott wrote: > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > Yes I can do for example bin/clogin -c 'show config' 192.168.150.1 > and that logs in without any issue. > If I do a bin/rancid-run that is where my issue is occurring. I am > debugging the script to see if there is something I need to edit in the script. > Try rancid -d 192.168.150.1 and post that. What's in your logs when you try rancid-run? -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From adudek16 at gmail.com Fri Apr 5 15:30:27 2013 From: adudek16 at gmail.com (Aaron Dudek) Date: Fri, 5 Apr 2013 11:30:27 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C4C4@ZY-MBX2.zyedge.local> Message-ID: Use the 2nd one On Friday, April 5, 2013, Gilmour, Scott wrote: > Ryan I was looking online to see how to add the path to the .bashrc and I > want to make sure this is correct since there are a few different versions > of how to do this. Would I need to add it like this to the end of the > bashrc file under Alias Definitions? > > if [ -d /usr/local/rancid/bin ]; then > PATH=$PATH:/usr/local/rancid/bin > fi > > or would I just add it this way > > export PATH=$PATH:/usr/local/rancid/bin > > Thanks for all your help, > > Scott > > > > On Fri, Apr 5, 2013 at 10:32 AM, Ryan West > > wrote: > >> On Fri, Apr 05, 2013 at 10:28:11, Gilmour, Scott wrote: >> > Subject: Re: [rancid] Release Authorised RANCID Email Issue >> > >> > Ryan, >> > Here is the output: >> > >> > $ bin/rancid -d 192.168.150.1 >> > executing clogin -t 90 -c"show version;show redundancy secondary;show >> > idprom backplane;show install active;show env all;show rsp chassis- >> > info;show gsr chassis;show diag chassis-info;show boot;show >> > bootvar;show variables boot;show flash;dir /all nvram:;dir /all >> > bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all >> > disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all >> > harddiska:;dir /all harddiskb:;dir /all sup-bootdisk:;dir /all >> > sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all >> > slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all >> > slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all >> > slavedisk2:;dir /all slavesup- bootflash:;dir /all sec-nvram:;dir /all >> > sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all >> > sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec- >> > disk2:;show controllers;show config;show controllers cbus;show >> > diagbus;show diag;show capture;show module;show spe version;show >> > c7200;show inventory raw;show vtp status;show vlan;show >> > vlan-switch;show debug;show shun;more system:running-config;show >> > running-config view full;show running-config;show config;write term" >> > 192.168.150.1 >> > sh: 1: clogin: not found >> >> Login to your box as the rancid user and fix your PATH in .bashrc. Need >> to include /usr/local/rancid/bin in your path. >> > > > > -- > > Scott Gilmour | SQA Engineer > > Enterasys Networks | A Siemens Enterprise Communications Company > > Office: (603) 952-5924 > > Email: sgilmour at enterasys.com 'sgilmour at enterasys.com');> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From r.engehausen at gmail.com Fri Apr 5 15:07:51 2013 From: r.engehausen at gmail.com (Roy) Date: Fri, 05 Apr 2013 08:07:51 -0700 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C4C4@ZY-MBX2.zyedge.local> Message-ID: <515EE8C7.5080403@gmail.com> An HTML attachment was scrubbed... URL: From marc.boisis at univ-lr.fr Tue Apr 9 12:17:44 2013 From: marc.boisis at univ-lr.fr (Marc Boisis-Delavaud) Date: Tue, 9 Apr 2013 14:17:44 +0200 Subject: [rancid] HP procurve Menu logon In-Reply-To: <514AF71E.7020506@chalmers.se> References: <1156DBA5-8167-4772-B42B-620AA8D3ED2F@univ-lr.fr> <20130219051133.GC93736@shrubbery.net> <0FD58A9A-E69C-40E8-AC7E-109AB0EF65FF@univ-lr.fr> <20130219183726.GK12440@shrubbery.net> <8E1B0503-040E-4ABF-992E-AA6A16300A9E@univ-lr.fr> <20130220174317.GG58636@shrubbery.net> <51253DEB.9000301@ale.cx> <5125CF67.7000006@chalmers.se> <20130301231945.GU27275@shrubbery.net> <5134C525.7020506@chalmers.se> <514AF71E.7020506@chalmers.se> Message-ID: Hello Are these patch are integrated into rancid github repository ? Le 21 mars 2013 ? 13:03, Per-Olof Olsson a ?crit : > > Not just a small fix make menu login to work. > Found some more that I think needs to be fixed. > > Now tested on some HP's > HP2524, H41xx, HP2510, HP2610, HP2620, HP2824, HP2910 och HP2920. > Telnet and ssh login to operator and manager level. > Ssh key login to manager level. > > Also tested just hlogin on some Cisco's. > > Look like have this to work. > > How will this new hlogin work for agmrancid and srancid that make > use of hlogin? > > Files from rancid 2.8.3. > > hrancid: > - Fix to prevent hrancid from find/parse "Logout"-text from menu. > Looks like code is move to WriteTerm and not used any more. > > - Also include ShowReloadAt just to get a proper diff output. > > =================================================================== > diff -c hrancid.in_ORG hrancid.in_NEW > *** hrancid.in_ORG 2012-08-29 13:39:33.060145292 +0200 > --- hrancid.in_NEW 2013-03-18 20:18:31.535617594 +0100 > *************** > *** 168,173 **** > --- 168,192 ---- > &ipaddrval($a) <=> &ipaddrval($b); > } > > + # This routine parses "show reload at" > + sub ShowReloadAt { > + print STDERR " In ShowReloadAt: $_" if ($debug); > + > + while () { > + tr/\015//d; > + last if (/^$prompt/); > + next if (/^(\s*|\s*$cmd\s*)$/); > + return(-1) if (/command authorization failed/i); > + return(1) if /^(Invalid|Ambiguous) input:/i; > + > + next if (/ \(in /); > + next if (/ reload is not scheduled/); > + > + ProcessHistory("COMMENTS","keysort","I0",";$_"); > + } > + return(0); > + } > + > # This routine parses "show config files" > sub ShowConfigFiles { > print STDERR " In ShowConfigFiles: $_" if ($debug); > *************** > *** 533,538 **** > --- 552,558 ---- > {'show module' => 'ShowModule'}, > {'show stack' => 'ShowStack'}, > {'show tech transceivers' => 'ShowTechTransceivers'}, > + {'show reload at' => 'ShowReloadAt'}, > {'show config files' => 'ShowConfigFiles'}, > {'show config status' => 'ShowConfigStatus'}, > {'write term' => 'WriteTerm'} > *************** > *** 602,614 **** > ProcessHistory("COMMENTS","keysort","F0",";\n"); # showstack > ProcessHistory("COMMENTS","keysort","G0",";\n"); # showtechtransceivers > ProcessHistory("COMMENTS","keysort","H0",";\n"); # showconfigfiles > ! ProcessHistory("COMMENTS","keysort","I0",";\n"); > TOP: while() { > tr/\015//d; > ! if (/$prompt\s*(exit|logout)\s*$/i) { > ! $clean_run=1; > ! last; > ! } > if (/^Error:/) { > print STDOUT ("$host clogin error: $_"); > print STDERR ("$host clogin error: $_") if ($debug); > --- 622,641 ---- > ProcessHistory("COMMENTS","keysort","F0",";\n"); # showstack > ProcessHistory("COMMENTS","keysort","G0",";\n"); # showtechtransceivers > ProcessHistory("COMMENTS","keysort","H0",";\n"); # showconfigfiles > ! ProcessHistory("COMMENTS","keysort","I0",";\n"); # showreloadat > ! ProcessHistory("COMMENTS","keysort","J0",";\n"); > ! > TOP: while() { > tr/\015//d; > ! > ! # Moved to WriteTerm and not removed from here!!! > ! ## "Logout" text in menu! Don't look for exit or logout before prompt is defined > ! ## if (/$prompt\s*(exit|logout)\s*$/i) { > ! # if (defined($prompt) && /$prompt\s*(exit|logout)\s*$/i) { > ! # print STDERR ("EXIT:$_") if ($debug); > ! # $clean_run=1; > ! # last; > ! # } > if (/^Error:/) { > print STDOUT ("$host clogin error: $_"); > print STDERR ("$host clogin error: $_") if ($debug); > > ============================================= > > > > hlogin: > > - Select "Exit to cli" if menu is default for login. > Include answer to "save config" prompter before menu is started. > > - Handle some more error text to speed up exit on error. > > - Remove/replace code for two inner expect loops to > just have a single expect loop for login. > Don't like to duplicate expect code into inner loops. > > - Include fix for "prompt" characters in banner text. > Will handle banner text except if it the match "/#\s*($cmds_regexp)\s*$/" in hrancid > > - Speed up logout. Don't need to use human wait/type speed. > > ============================================= > diff -c hlogin.in_20130318 hlogin.in_NEW > *** hlogin.in_20130318 2013-02-27 07:56:51.332898135 +0100 > --- hlogin.in_NEW 2013-03-18 20:16:02.286363285 +0100 > *************** > *** 412,417 **** > --- 412,427 ---- > send "\r" > exp_continue > } > + "Do you want to save current configuration" { > + send "n" > + exp_continue > + } > + # Menu output "" grab all in menu to not match prompter! > + -re "(\[0-9])\\. Command Line \\(CLI\\).*" { > + set menu_exit "$expect_out(1,string)" > + send "$menu_exit" > + exp_continue > + } > -re "(Connection refused|Secure connection \[^\n\r]+ refused|Connection closed by)" { > catch {close}; catch {wait}; > if !$progs { > *************** > *** 444,450 **** > send_user "\nError: host key mismatch for $router. Update the SSH known_hosts > file accordingly.\n" > return 1 > } > ! eof { send_user "\nError: Couldn't login\n"; wait; return 1 } > -nocase "unknown host\r" { > catch {close}; catch {wait}; > send_user "\nError: Unknown host\n"; wait; return 1 > --- 454,483 ---- > send_user "\nError: host key mismatch for $router. Update the SSH known_hosts > file accordingly.\n" > return 1 > } > ! "Could not resolve hostname" { > ! send_user "\nError: Could not resolve hostname $router\n"; > ! catch {close}; catch {wait}; > ! return 1 > ! } > ! eof { > ! send_user "\nError: Couldn't login\n"; > ! wait; return 1 > ! } > ! "Permission denied" { > ! send_user "\nError: Permission denied. Check your access to $router\n"; > ! catch {close}; catch {wait}; > ! return 1 > ! } > ! "Invalid password" { > ! send_user "\nError: Invalid password. Check your passwd for $router\n"; > ! catch {close}; catch {wait}; > ! return 1 > ! } > ! "Login invalid" { > ! send_user "\nError: Invalid login\n"; > ! catch {close}; catch {wait}; > ! return 1 > ! } > -nocase "unknown host\r" { > catch {close}; catch {wait}; > send_user "\nError: Unknown host\n"; wait; return 1 > *************** > *** 455,473 **** > send -- "$passphrase\r" > exp_continue > } > ! -re "$u_prompt" { send -- "$user\r" > ! expect { > ! eof { send_user "\nError: Couldn't login\n"; wait; > return 1 } > ! "Login invalid" { send_user "\nError: Invalid login\n"; > ! catch {close}; catch {wait}; > ! return 1 } > ! -re "$p_prompt" { send -- "$userpswd\r" } > ! "$prompt" { set in_proc 0; return 0 } > ! "Press any key to continue" { > ! send " " > ! exp_continue > ! } > ! } > exp_continue > } > -re "$p_prompt" { > --- 488,498 ---- > send -- "$passphrase\r" > exp_continue > } > ! -re "\[#>]+.*\[\n\r]+" { > ! exp_continue > ! } > ! -re "$u_prompt" { > ! send -- "$user\r" > exp_continue > } > -re "$p_prompt" { > *************** > *** 476,502 **** > } else { > send -- "$passwd\r" > } > - expect { > - eof { send_user "\nError: Couldn't login\n"; > - wait; > - return 1 > - } > - "Press any key to continue" { > - send " "; > - exp_continue > - } > - -re "$e_prompt" { send -- "$enapasswd\r" } > - "$prompt" { set in_proc 0; > - return 0 > - } > - } > exp_continue > } > ! "$prompt" { break; } > ! denied { send_user "\nError: Check your passwd for $router\n" > ! catch {close}; catch {wait}; return 1 > ! } > ! "% Bad passwords" {send_user "\nError: Check your passwd for $router\n"; return 1 } > } > } > > --- 501,519 ---- > } else { > send -- "$passwd\r" > } > exp_continue > } > ! "$prompt" { > ! break > ! } > ! denied { > ! send_user "\nError: Check your passwd for $router\n" > ! catch {close}; catch {wait}; return 1 > ! } > ! "% Bad passwords" { > ! send_user "\nError: Check your passwd for $router\n" > ! return 1 > ! } > } > } > > *************** > *** 583,589 **** > } > } > log_user 1 > ! send -h "logout\r" > expect { > "Do you want to save current configuration" { > if {$do_saveconfig} { > --- 600,606 ---- > } > } > log_user 1 > ! send "logout\r" > expect { > "Do you want to save current configuration" { > if {$do_saveconfig} { > > ============================================= > > > > > On 03/04/2013 05:00 PM, Per-Olof Olsson wrote: >> On 03/02/2013 12:19 AM, heasley wrote: >>> Thu, Feb 21, 2013 at 08:40:23AM +0100, Per-Olof Olsson: >>>> Alex DEKKER skrev 02/20/2013 10:19 PM: >>>>> On 20/02/13 17:43, heasley wrote: >>>>>> btw, is this menu a standard thing with procurves? I've never seen it, >>>>>> but the one that i have is a lower-end model. >>>>> It's not the default on current Procurves, you can access it with 'menu'. From what Marc >>>>> is saying, it sounds like there is a way to make it go straight into the menu on login for >>>>> a given username. >>>>> >>>>> alexd >>>>> _______________________________________________ >>>>> Rancid-discuss mailing list >>>>> Rancid-discuss at shrubbery.net >>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >>>> >>>> Only setting I found for this is in "8. Run Setup" menu >>>> where you select "Logon Default" to "CLI" or "Menu" >>> >>> Would you propose a patch for this, since you can test it? >> >> Yes but it will take some time to have it to work and is fully tested. >> >> telnet/ssh login to manager and/or operator level >> ssh key-login >> and some switch types. >> >> "5" only works if you do direct login to manager level. >> Login to operator level needs "3" for "CLI exit". >> >> And one more thing. >> When you start menu mode and not saved config >> "Do you want to save current configuration"-prompt >> shows up before menu is started, even at login. >> >> ... >> >> Have part of it working but not all. >> >>> >>>> /Peo >>>> ---------------------------------------------------------- >>>> Per-Olof Olsson Email: peo at chalmers.se >>>> Chalmers tekniska h?gskola IT-service >>>> H?rsalsv?gen 5 412 96 G?teborg >>>> Tel: 031/772 6738 Fax: 031/772 8660 >>>> ---------------------------------------------------------- >>>> _______________________________________________ >>>> Rancid-discuss mailing list >>>> Rancid-discuss at shrubbery.net >>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> >> >> /Peo >> >> >> >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Marc Boisis-Delavaud Direction du Syst?me d'Information Universit? de La Rochelle marc.boisis at univ-lr.fr | 05 46 45 82 14 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikat at iki.fi Tue Apr 9 15:00:28 2013 From: mikat at iki.fi (Mika Tiainen) Date: Tue, 09 Apr 2013 18:00:28 +0300 Subject: [rancid] hrancid patch to ignore legal disclaimer Message-ID: <8761zvoik3.fsf@divinity.mikat.iki.fi> Hi, We upgraded our 2610 series Procurves to R.11.98. In this software "show tech transceivers" (or any other "show tech" command) is prefixed with this funny legal disclaimer: ,---- | XXX# show tech transceivers | ATTENTION: You are entering a diagnostic mode on this product that is HP | Confidential and Proprietary. This mode, the commands and functionality | specific to this mode, and all output from this mode are HP Confidential | and Proprietary. You may use this mode only by specific permission of, and | under the direction of, an HP support engineer or HP technical engineer. | Unauthorized or improper use of this mode will be considered by HP to be | unauthorized modification of the product, and any resulting defects or | issues are not eligible for coverage under the HP product warranty or any | HP support or service. UNAUTHORIZED OR IMPROPER USE OF THIS MODE CAN | MAKE THE PRODUCT COMPLETELY INOPERABLE. | | | transceivers | | Transceiver Technical Information: | Port # | Type | Prod # | Serial # | Part # `---- I assume that, in some future update, it might get added to other Procurve software families too. Here is a small patch for hrancid to ignore the disclaimer part in "show tech tranceivers" output: -------------- next part -------------- A non-text attachment was scrubbed... Name: hrancid.diff Type: text/x-diff Size: 376 bytes Desc: hrancid patch URL: -------------- next part -------------- -- Mika Tiainen mikat at iki.fi From sgilmour at enterasys.com Thu Apr 11 14:38:33 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Thu, 11 Apr 2013 10:38:33 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <20130403130204.GE16564@shrubbery.net> <0DC5FFF28BCD234295CBAAC35947A81C02E7F97D@SRVEXCH10MB.1stcorbin.local> <20130403132441.GH16564@shrubbery.net> <20130403192847.GC43870@shrubbery.net> <20130404001536.GE52074@shrubbery.net> <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> Message-ID: Hi, When I run bin/clogin 192.168.150.1 I can log into my Enterasys Switch. Since I am using an Enterasys Switch I should be using rivlogin since this is what rancid-run will use for my vendor. But when I run rivlogin I get: $ bin/rivlogin 192.168.150.1 192.168.150.1 ERROR: no enable password found for 192.168.150.1 in /usr/local/rancid/.cloginrc. $ My Understanding if I do add autoenable 192.168.150.1 1 then the 1 would tell the script not to use the enable password. Or is there something in the script I need to change? When I finally run the rancid-run I will edited the rivlogin script to do just a show config or show config all. # Rancid .cloginrc setup add user 192.168.150.1 tacacssu add password 192.168.150.1 tacacs add autoenable 192.168.150.1 1 add method 192.168.150.1 ssh Thanks Scott On Fri, Apr 5, 2013 at 12:00 PM, Marito ... wrote: > Scott, > > Please check in your router.db which vendor you setup. As per your log > file , the script is trying to execute "system show XXXX", while the rancid > script executes "show XXXX". > > I think you are using the rivrancid/rivlogin scripts for this > devices. Instead of using clogin, try rivlogin -c 'system show XXXX' > 192.168.150.1 (where XXXX is your comand) > > Regards. > Mario > > ------------------------------ > Date: Fri, 5 Apr 2013 10:28:11 -0400 > From: sgilmour at enterasys.com > To: rwest at zyedge.com > CC: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > Ryan, > Here is the output: > > $ bin/rancid -d 192.168.150.1 > executing clogin -t 90 -c"show version;show redundancy secondary;show > idprom backplane;show install active;show env all;show rsp > chassis-info;show gsr chassis;show diag chassis-info;show boot;show > bootvar;show variables boot;show flash;dir /all nvram:;dir /all > bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all > disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all > harddiska:;dir /all harddiskb:;dir /all sup-bootdisk:;dir /all > sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all > slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all > slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all > slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all > sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all > sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show > controllers;show config;show controllers cbus;show diagbus;show diag;show > capture;show module;show spe version;show c7200;show inventory raw;show vtp > status;show vlan;show vlan-switch;show debug;show shun;more > system:running-config;show running-config view full;show > running-config;show config;write term" 192.168.150.1 > sh: 1: clogin: not found > 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp > chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all > disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all > disk2:,show running-config view full,dir /all sec-bootflash:,show spe > version,dir /all slaveslot2:,dir /all disk0:,show install active,show > bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir > /all slavenvram:,show flash,dir /all sec-disk2:,dir /all > slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables > boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show > module,show shun,show controllers,show diagbus,more > system:running-config,dir /all slavedisk0:,show debug,show idprom > backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all > sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp status,dir > /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir > /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers > cbus,dir /all slaveslot1:,dir /all nvram:,show version,show > vlan-switch,show redundancy secondary,show running-config,show c7200,dir > /all slot1: > 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp > chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all > disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all > disk2:,show running-config view full,dir /all sec-bootflash:,show spe > version,dir /all slaveslot2:,dir /all disk0:,show install active,show > bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir > /all slavenvram:,show flash,dir /all sec-disk2:,dir /all > slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables > boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show > module,show shun,show controllers,show diagbus,more > system:running-config,dir /all slavedisk0:,show debug,show idprom > backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all > sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp status,dir > /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir > /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers > cbus,dir /all slaveslot1:,dir /all nvram:,show version,show > vlan-switch,show redundancy secondary,show running-config,show c7200,dir > /all slot1: > 192.168.150.1: End of run not found > 192.168.150.1: End of run not found > ! > you have mail > $ > > > Starting rancid-run > bin/rancid-run > /usr/local/rancid/var/logs/networking.20130405.102327 > > starting: Fri Apr 5 10:23:27 EDT 2013 > > > > Trying to get all of the configs. > 192.168.200.1: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.200.1: End of run not found > 192.168.150.1: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.150.1: End of run not found > 192.168.200.4: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.200.4: End of run not found > ! > ! > ! > ===================================== > Getting missed routers: round 1. > 192.168.200.4: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.200.4: End of run not found > 192.168.200.1: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.200.1: End of run not found > ! > 192.168.150.1: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.150.1: End of run not found > ! > ! > ===================================== > Getting missed routers: round 2. > 192.168.150.1: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.150.1: End of run not found > 192.168.200.1: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.200.1: End of run not found > 192.168.200.4: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.200.4: End of run not found > ! > ! > ! > ===================================== > Getting missed routers: round 3. > 192.168.150.1: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.150.1: End of run not found > 192.168.200.1: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.200.1: End of run not found > 192.168.200.4: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.200.4: End of run not found > ! > ! > ! > ===================================== > Getting missed routers: round 4. > 192.168.200.1: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.200.1: End of run not found > 192.168.200.4: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.200.4: End of run not found > ! > 192.168.150.1: missed cmd(s): system show hardware,system show > version,system show active-config,system show uptime > 192.168.150.1: End of run not found > ! > ! > > cvs diff: Diffing . > cvs diff: Diffing configs > cvs commit: Examining . > cvs commit: Examining configs > > ending: Fri Apr 5 10:23:28 EDT 2013 > > > > On Fri, Apr 5, 2013 at 9:37 AM, Ryan West wrote: > > On Fri, Apr 05, 2013 at 08:14:19, Gilmour, Scott wrote: > > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > > > Yes I can do for example bin/clogin -c 'show config' 192.168.150.1 > > and that logs in without any issue. > > If I do a bin/rancid-run that is where my issue is occurring. I am > > debugging the script to see if there is something I need to edit in the > script. > > > Try rancid -d 192.168.150.1 and post that. What's in your logs when you > try rancid-run? > > > > > -- > > Scott Gilmour | SQA Engineer > > Enterasys Networks | A Siemens Enterprise Communications Company > > Office: (603) 952-5924 > > Email: sgilmour at enterasys.com > > _______________________________________________ Rancid-discuss mailing > list Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Apr 11 14:47:53 2013 From: heas at shrubbery.net (heasley) Date: Thu, 11 Apr 2013 14:47:53 +0000 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> Message-ID: <20130411144753.GA23392@shrubbery.net> Thu, Apr 11, 2013 at 10:38:33AM -0400, Gilmour, Scott: > Hi, > When I run bin/clogin 192.168.150.1 I can log into my Enterasys Switch. > Since I am using an Enterasys Switch I should be using rivlogin since this > is what rancid-run will use for my vendor. > But when I run rivlogin I get: > $ bin/rivlogin 192.168.150.1 > 192.168.150.1 > ERROR: no enable password found for 192.168.150.1 in > /usr/local/rancid/.cloginrc. > $ > > My Understanding if I do add autoenable 192.168.150.1 1 then the 1 would > tell the script not to use the enable password. Or is there something in > the script I need to change? > When I finally run the rancid-run I will edited the rivlogin script to do > just a show config or show config all. > > # Rancid .cloginrc setup > add user 192.168.150.1 tacacssu > add password 192.168.150.1 tacacs > add autoenable 192.168.150.1 1 > add method 192.168.150.1 ssh that script was written by guys from enterasys; it does not support autoenable like the other scripts. looking at the code, i suspect that if you just change the line to add password 192.168.150.1 {tacacs} {} it will work. > Thanks > Scott > > On Fri, Apr 5, 2013 at 12:00 PM, Marito ... wrote: > > > Scott, > > > > Please check in your router.db which vendor you setup. As per your log > > file , the script is trying to execute "system show XXXX", while the rancid > > script executes "show XXXX". > > > > I think you are using the rivrancid/rivlogin scripts for this > > devices. Instead of using clogin, try rivlogin -c 'system show XXXX' > > 192.168.150.1 (where XXXX is your comand) > > > > Regards. > > Mario > > > > ------------------------------ > > Date: Fri, 5 Apr 2013 10:28:11 -0400 > > From: sgilmour at enterasys.com > > To: rwest at zyedge.com > > CC: rancid-discuss at shrubbery.net > > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > > > Ryan, > > Here is the output: > > > > $ bin/rancid -d 192.168.150.1 > > executing clogin -t 90 -c"show version;show redundancy secondary;show > > idprom backplane;show install active;show env all;show rsp > > chassis-info;show gsr chassis;show diag chassis-info;show boot;show > > bootvar;show variables boot;show flash;dir /all nvram:;dir /all > > bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all > > disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all > > harddiska:;dir /all harddiskb:;dir /all sup-bootdisk:;dir /all > > sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all > > slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all > > slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all > > slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all > > sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all > > sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show > > controllers;show config;show controllers cbus;show diagbus;show diag;show > > capture;show module;show spe version;show c7200;show inventory raw;show vtp > > status;show vlan;show vlan-switch;show debug;show shun;more > > system:running-config;show running-config view full;show > > running-config;show config;write term" 192.168.150.1 > > sh: 1: clogin: not found > > 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp > > chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all > > disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all > > disk2:,show running-config view full,dir /all sec-bootflash:,show spe > > version,dir /all slaveslot2:,dir /all disk0:,show install active,show > > bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir > > /all slavenvram:,show flash,dir /all sec-disk2:,dir /all > > slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables > > boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show > > module,show shun,show controllers,show diagbus,more > > system:running-config,dir /all slavedisk0:,show debug,show idprom > > backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all > > sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp status,dir > > /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir > > /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers > > cbus,dir /all slaveslot1:,dir /all nvram:,show version,show > > vlan-switch,show redundancy secondary,show running-config,show c7200,dir > > /all slot1: > > 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp > > chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all > > disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all > > disk2:,show running-config view full,dir /all sec-bootflash:,show spe > > version,dir /all slaveslot2:,dir /all disk0:,show install active,show > > bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir > > /all slavenvram:,show flash,dir /all sec-disk2:,dir /all > > slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables > > boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show > > module,show shun,show controllers,show diagbus,more > > system:running-config,dir /all slavedisk0:,show debug,show idprom > > backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all > > sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp status,dir > > /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir > > /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers > > cbus,dir /all slaveslot1:,dir /all nvram:,show version,show > > vlan-switch,show redundancy secondary,show running-config,show c7200,dir > > /all slot1: > > 192.168.150.1: End of run not found > > 192.168.150.1: End of run not found > > ! > > you have mail > > $ > > > > > > Starting rancid-run > > bin/rancid-run > > /usr/local/rancid/var/logs/networking.20130405.102327 > > > > starting: Fri Apr 5 10:23:27 EDT 2013 > > > > > > > > Trying to get all of the configs. > > 192.168.200.1: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.200.1: End of run not found > > 192.168.150.1: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.150.1: End of run not found > > 192.168.200.4: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.200.4: End of run not found > > ! > > ! > > ! > > ===================================== > > Getting missed routers: round 1. > > 192.168.200.4: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.200.4: End of run not found > > 192.168.200.1: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.200.1: End of run not found > > ! > > 192.168.150.1: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.150.1: End of run not found > > ! > > ! > > ===================================== > > Getting missed routers: round 2. > > 192.168.150.1: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.150.1: End of run not found > > 192.168.200.1: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.200.1: End of run not found > > 192.168.200.4: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.200.4: End of run not found > > ! > > ! > > ! > > ===================================== > > Getting missed routers: round 3. > > 192.168.150.1: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.150.1: End of run not found > > 192.168.200.1: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.200.1: End of run not found > > 192.168.200.4: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.200.4: End of run not found > > ! > > ! > > ! > > ===================================== > > Getting missed routers: round 4. > > 192.168.200.1: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.200.1: End of run not found > > 192.168.200.4: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.200.4: End of run not found > > ! > > 192.168.150.1: missed cmd(s): system show hardware,system show > > version,system show active-config,system show uptime > > 192.168.150.1: End of run not found > > ! > > ! > > > > cvs diff: Diffing . > > cvs diff: Diffing configs > > cvs commit: Examining . > > cvs commit: Examining configs > > > > ending: Fri Apr 5 10:23:28 EDT 2013 > > > > > > > > On Fri, Apr 5, 2013 at 9:37 AM, Ryan West wrote: > > > > On Fri, Apr 05, 2013 at 08:14:19, Gilmour, Scott wrote: > > > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > > > > > Yes I can do for example bin/clogin -c 'show config' 192.168.150.1 > > > and that logs in without any issue. > > > If I do a bin/rancid-run that is where my issue is occurring. I am > > > debugging the script to see if there is something I need to edit in the > > script. > > > > > Try rancid -d 192.168.150.1 and post that. What's in your logs when you > > try rancid-run? > > > > > > > > > > -- > > > > Scott Gilmour | SQA Engineer > > > > Enterasys Networks | A Siemens Enterprise Communications Company > > > > Office: (603) 952-5924 > > > > Email: sgilmour at enterasys.com > > > > _______________________________________________ Rancid-discuss mailing > > list Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > -- > > Scott Gilmour | SQA Engineer > > Enterasys Networks | A Siemens Enterprise Communications Company > > Office: (603) 952-5924 > > Email: sgilmour at enterasys.com > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From sgilmour at enterasys.com Thu Apr 11 15:35:22 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Thu, 11 Apr 2013 11:35:22 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: <20130411144753.GA23392@shrubbery.net> References: <8903D0A8F70EA74FBE57CA9B846B42C057544C72@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> <20130411144753.GA23392@shrubbery.net> Message-ID: Thanks Heasley, Now it is just Timing out when getting to the Username Prompt Username: Username:ERROR: Timeout on login Exiting On Thu, Apr 11, 2013 at 10:47 AM, heasley wrote: > Thu, Apr 11, 2013 at 10:38:33AM -0400, Gilmour, Scott: > > Hi, > > When I run bin/clogin 192.168.150.1 I can log into my Enterasys Switch. > > Since I am using an Enterasys Switch I should be using rivlogin since > this > > is what rancid-run will use for my vendor. > > But when I run rivlogin I get: > > $ bin/rivlogin 192.168.150.1 > > 192.168.150.1 > > ERROR: no enable password found for 192.168.150.1 in > > /usr/local/rancid/.cloginrc. > > $ > > > > My Understanding if I do add autoenable 192.168.150.1 1 then the 1 would > > tell the script not to use the enable password. Or is there something in > > the script I need to change? > > When I finally run the rancid-run I will edited the rivlogin script to > do > > just a show config or show config all. > > > > # Rancid .cloginrc setup > > add user 192.168.150.1 tacacssu > > add password 192.168.150.1 tacacs > > add autoenable 192.168.150.1 1 > > add method 192.168.150.1 ssh > > that script was written by guys from enterasys; it does not support > autoenable > like the other scripts. looking at the code, i suspect that if you just > change the line to > > add password 192.168.150.1 {tacacs} {} > > it will work. > > > Thanks > > Scott > > > > On Fri, Apr 5, 2013 at 12:00 PM, Marito ... > wrote: > > > > > Scott, > > > > > > Please check in your router.db which vendor you setup. As per your log > > > file , the script is trying to execute "system show XXXX", while the > rancid > > > script executes "show XXXX". > > > > > > I think you are using the rivrancid/rivlogin scripts for this > > > devices. Instead of using clogin, try rivlogin -c 'system show XXXX' > > > 192.168.150.1 (where XXXX is your comand) > > > > > > Regards. > > > Mario > > > > > > ------------------------------ > > > Date: Fri, 5 Apr 2013 10:28:11 -0400 > > > From: sgilmour at enterasys.com > > > To: rwest at zyedge.com > > > CC: rancid-discuss at shrubbery.net > > > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > > > > > Ryan, > > > Here is the output: > > > > > > $ bin/rancid -d 192.168.150.1 > > > executing clogin -t 90 -c"show version;show redundancy secondary;show > > > idprom backplane;show install active;show env all;show rsp > > > chassis-info;show gsr chassis;show diag chassis-info;show boot;show > > > bootvar;show variables boot;show flash;dir /all nvram:;dir /all > > > bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all > > > disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all > > > harddiska:;dir /all harddiskb:;dir /all sup-bootdisk:;dir /all > > > sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all > > > slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all > > > slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all > > > slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all > > > sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all > > > sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all > sec-disk2:;show > > > controllers;show config;show controllers cbus;show diagbus;show > diag;show > > > capture;show module;show spe version;show c7200;show inventory > raw;show vtp > > > status;show vlan;show vlan-switch;show debug;show shun;more > > > system:running-config;show running-config view full;show > > > running-config;show config;write term" 192.168.150.1 > > > sh: 1: clogin: not found > > > 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp > > > chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all > > > disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir > /all > > > disk2:,show running-config view full,dir /all sec-bootflash:,show spe > > > version,dir /all slaveslot2:,dir /all disk0:,show install active,show > > > bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all > harddiska:,dir > > > /all slavenvram:,show flash,dir /all sec-disk2:,dir /all > > > slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show > variables > > > boot,show boot,show inventory raw,dir /all slavedisk1:,show env > all,show > > > module,show shun,show controllers,show diagbus,more > > > system:running-config,dir /all slavedisk0:,show debug,show idprom > > > backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all > > > sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp > status,dir > > > /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all > slot0:,dir > > > /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers > > > cbus,dir /all slaveslot1:,dir /all nvram:,show version,show > > > vlan-switch,show redundancy secondary,show running-config,show > c7200,dir > > > /all slot1: > > > 192.168.150.1: missed cmd(s): dir /all slavedisk2:,show rsp > > > chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all > > > disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir > /all > > > disk2:,show running-config view full,dir /all sec-bootflash:,show spe > > > version,dir /all slaveslot2:,dir /all disk0:,show install active,show > > > bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all > harddiska:,dir > > > /all slavenvram:,show flash,dir /all sec-disk2:,dir /all > > > slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show > variables > > > boot,show boot,show inventory raw,dir /all slavedisk1:,show env > all,show > > > module,show shun,show controllers,show diagbus,more > > > system:running-config,dir /all slavedisk0:,show debug,show idprom > > > backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all > > > sec-slot0:,show config,dir /all sec-disk1:,write term,show vtp > status,dir > > > /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all > slot0:,dir > > > /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers > > > cbus,dir /all slaveslot1:,dir /all nvram:,show version,show > > > vlan-switch,show redundancy secondary,show running-config,show > c7200,dir > > > /all slot1: > > > 192.168.150.1: End of run not found > > > 192.168.150.1: End of run not found > > > ! > > > you have mail > > > $ > > > > > > > > > Starting rancid-run > > > bin/rancid-run > > > /usr/local/rancid/var/logs/networking.20130405.102327 > > > > > > starting: Fri Apr 5 10:23:27 EDT 2013 > > > > > > > > > > > > Trying to get all of the configs. > > > 192.168.200.1: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.200.1: End of run not found > > > 192.168.150.1: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.150.1: End of run not found > > > 192.168.200.4: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.200.4: End of run not found > > > ! > > > ! > > > ! > > > ===================================== > > > Getting missed routers: round 1. > > > 192.168.200.4: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.200.4: End of run not found > > > 192.168.200.1: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.200.1: End of run not found > > > ! > > > 192.168.150.1: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.150.1: End of run not found > > > ! > > > ! > > > ===================================== > > > Getting missed routers: round 2. > > > 192.168.150.1: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.150.1: End of run not found > > > 192.168.200.1: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.200.1: End of run not found > > > 192.168.200.4: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.200.4: End of run not found > > > ! > > > ! > > > ! > > > ===================================== > > > Getting missed routers: round 3. > > > 192.168.150.1: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.150.1: End of run not found > > > 192.168.200.1: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.200.1: End of run not found > > > 192.168.200.4: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.200.4: End of run not found > > > ! > > > ! > > > ! > > > ===================================== > > > Getting missed routers: round 4. > > > 192.168.200.1: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.200.1: End of run not found > > > 192.168.200.4: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.200.4: End of run not found > > > ! > > > 192.168.150.1: missed cmd(s): system show hardware,system show > > > version,system show active-config,system show uptime > > > 192.168.150.1: End of run not found > > > ! > > > ! > > > > > > cvs diff: Diffing . > > > cvs diff: Diffing configs > > > cvs commit: Examining . > > > cvs commit: Examining configs > > > > > > ending: Fri Apr 5 10:23:28 EDT 2013 > > > > > > > > > > > > On Fri, Apr 5, 2013 at 9:37 AM, Ryan West wrote: > > > > > > On Fri, Apr 05, 2013 at 08:14:19, Gilmour, Scott wrote: > > > > Subject: Re: [rancid] Release Authorised RANCID Email Issue > > > > > > > > Yes I can do for example bin/clogin -c 'show config' 192.168.150.1 > > > > and that logs in without any issue. > > > > If I do a bin/rancid-run that is where my issue is occurring. I am > > > > debugging the script to see if there is something I need to edit in > the > > > script. > > > > > > > Try rancid -d 192.168.150.1 and post that. What's in your logs when > you > > > try rancid-run? > > > > > > > > > > > > > > > -- > > > > > > Scott Gilmour | SQA Engineer > > > > > > Enterasys Networks | A Siemens Enterprise Communications Company > > > > > > Office: (603) 952-5924 > > > > > > Email: sgilmour at enterasys.com > > > > > > _______________________________________________ Rancid-discuss mailing > > > list Rancid-discuss at shrubbery.net > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > > > > > > -- > > > > Scott Gilmour | SQA Engineer > > > > Enterasys Networks | A Siemens Enterprise Communications Company > > > > Office: (603) 952-5924 > > > > Email: sgilmour at enterasys.com > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgilmour at enterasys.com Thu Apr 11 21:43:24 2013 From: sgilmour at enterasys.com (Gilmour, Scott) Date: Thu, 11 Apr 2013 17:43:24 -0400 Subject: [rancid] Release Authorised RANCID Email Issue In-Reply-To: References: <8903D0A8F70EA74FBE57CA9B846B42C0575491C6@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754B6AD@ZY-MBX2.zyedge.local> <8903D0A8F70EA74FBE57CA9B846B42C05754C087@ZY-MBX2.zyedge.local> <20130411144753.GA23392@shrubbery.net> <20130411164030.GD23392@shrubbery.net> Message-ID: Heasley, I am still having issue with the Username Error after attempting to modify the rivlogin script. I was wondering if when I am running these scripts if there is any debugging that will allow me to see where the script is failing? Thanks for your help, Scott On Thu, Apr 11, 2013 at 3:35 PM, Gilmour, Scott wrote: > Heasley > I will check it out. I didn't see anything in the rivlogin script with a > space.for the Username > Thanks > Scott > > > On Thu, Apr 11, 2013 at 12:40 PM, heasley wrote: > >> Thu, Apr 11, 2013 at 11:35:22AM -0400, Gilmour, Scott: >> > Thanks Heasley, >> > Now it is just Timing out when getting to the Username Prompt >> > Username: >> > Username:ERROR: Timeout on login Exiting >> >> the script expects a space after the :. edit the script and remove the >> space. >> > > > > -- > > Scott Gilmour | SQA Engineer > > Enterasys Networks | A Siemens Enterprise Communications Company > > Office: (603) 952-5924 > > Email: sgilmour at enterasys.com > -- Scott Gilmour | SQA Engineer Enterasys Networks | A Siemens Enterprise Communications Company Office: (603) 952-5924 Email: sgilmour at enterasys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From maddockg at gmail.com Mon Apr 15 21:08:31 2013 From: maddockg at gmail.com (Gerry Maddock) Date: Mon, 15 Apr 2013 17:08:31 -0400 Subject: [rancid] (no subject) Message-ID: I have rancid working with my Dell Powerconnect 8024F & PowerConnect 7048. I am having issues with powerconnect 5448 and similar models. I thought a firmware update may do the trick, but still having problems after firmware upgrade. Trying to get all of the configs. opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid line 272. found_end = 0, clean_run = 0 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in /var/lib/rancid/.cloginrc. 10.1.1.1: missed cmd(s): show version,show running-config,show vlan 10.1.1.1: End of run not found ! ===================================== Getting missed routers: round 1. opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid line 272. found_end = 0, clean_run = 0 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in /var/lib/rancid/.cloginrc. 10.1.1.1: missed cmd(s): show version,show running-config,show vlan 10.1.1.1: End of run not found ! ===================================== Getting missed routers: round 2. opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid line 272. found_end = 0, clean_run = 0 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in /var/lib/rancid/.cloginrc. 10.1.1.1: missed cmd(s): show version,show running-config,show vlan 10.1.1.1: End of run not found ! ===================================== Getting missed routers: round 3. opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid line 272. found_end = 0, clean_run = 0 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in /var/lib/rancid/.cloginrc. 10.1.1.1: missed cmd(s): show version,show running-config,show vlan 10.1.1.1: End of run not found ! ===================================== Getting missed routers: round 4. opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid line 272. found_end = 0, clean_run = 0 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in /var/lib/rancid/.cloginrc. 10.1.1.1: missed cmd(s): show version,show running-config,show vlan 10.1.1.1: End of run not found -------------- next part -------------- An HTML attachment was scrubbed... URL: From maddockg at gmail.com Tue Apr 16 14:55:41 2013 From: maddockg at gmail.com (Gerry Maddock) Date: Tue, 16 Apr 2013 10:55:41 -0400 Subject: [rancid] (no subject) In-Reply-To: References: Message-ID: Well, I solved that easy... I had commented out: add autoenable 10.1.1.1 1 while trouble shooting prior to firmware upgrade. All is working now. Thanks anyway On Mon, Apr 15, 2013 at 5:08 PM, Gerry Maddock wrote: > I have rancid working with my Dell Powerconnect 8024F & PowerConnect 7048. > I am having issues with powerconnect 5448 and similar models. I thought a > firmware update may do the trick, but still having problems after firmware > upgrade. > > > Trying to get all of the configs. > opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid > line 272. > found_end = 0, clean_run = 0 > 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in > /var/lib/rancid/.cloginrc. > 10.1.1.1: missed cmd(s): show version,show running-config,show vlan > 10.1.1.1: End of run not found > ! > ===================================== > Getting missed routers: round 1. > opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid > line 272. > found_end = 0, clean_run = 0 > 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in > /var/lib/rancid/.cloginrc. > 10.1.1.1: missed cmd(s): show version,show running-config,show vlan > 10.1.1.1: End of run not found > ! > ===================================== > Getting missed routers: round 2. > opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid > line 272. > found_end = 0, clean_run = 0 > 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in > /var/lib/rancid/.cloginrc. > 10.1.1.1: missed cmd(s): show version,show running-config,show vlan > 10.1.1.1: End of run not found > ! > ===================================== > Getting missed routers: round 3. > opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid > line 272. > found_end = 0, clean_run = 0 > 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in > /var/lib/rancid/.cloginrc. > 10.1.1.1: missed cmd(s): show version,show running-config,show vlan > 10.1.1.1: End of run not found > ! > ===================================== > Getting missed routers: round 4. > opened network stream from 10.1.1.1 if () at /usr/lib/rancid/bin/drancid > line 272. > found_end = 0, clean_run = 0 > 10.1.1.1 dlogin error: Error: no enable password for 10.1.1.1 in > /var/lib/rancid/.cloginrc. > 10.1.1.1: missed cmd(s): show version,show running-config,show vlan > 10.1.1.1: End of run not found > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From howie at thingy.com Wed Apr 17 13:41:43 2013 From: howie at thingy.com (Howard Jones) Date: Wed, 17 Apr 2013 14:41:43 +0100 Subject: [rancid] Renaming devices? (svn backend) Message-ID: <516EA697.5020109@thingy.com> Hi Folks, I'm just about to implement a new naming scheme for all our network gear, and I'd like to rename it in such a way that I don't lose the history in RANCID. I found a couple of messages in the list archive for the way to do this with a CVS backend, but I have Subversion. Does anyone know the svn-fu necessary to do this cleanly? Thanks, Howard From peo at chalmers.se Wed Apr 17 14:45:40 2013 From: peo at chalmers.se (Per-Olof Olsson) Date: Wed, 17 Apr 2013 16:45:40 +0200 Subject: [rancid] Renaming devices? (svn backend) In-Reply-To: <516EA697.5020109@thingy.com> References: <516EA697.5020109@thingy.com> Message-ID: <516EB594.9010408@chalmers.se> Howard Jones skrev 2013-04-17 15:41: > Hi Folks, > > I'm just about to implement a new naming scheme for all our network gear, and I'd like to rename it in such a way that I don't > lose the history in RANCID. I found a couple of messages in the list archive for the way to do this with a CVS backend, but I have > Subversion. Does anyone know the svn-fu necessary to do this cleanly? > > Thanks, > > Howard > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid FAQ: ... Q. I am renaming a device but would like to retain the history in CVS. How is this done? A. CVS does not provide a way (AFAIK) to rename files or to rename or delete directories. The best way is to copy the CVS repository file manually like this (disclaimer: BE VERY CAREFUL mucking around with the repository): % su - rancid_user % cd % echo "new_device_name:device_type:up" >> /router.db % cp -p CVS//configs/old_device_name,v \ CVS//configs/new_device_name,v % cd /configs % cvs update where GROUP is the name of the rancid group that the device is a member of. Once the renaming is complete, remove the old name from the router.db file and leave the CVS clean-up of the old filename to rancid. If one wanted to move a device to a different group and maintain the history, the same procedure would work, substituting the new group name appropriately and editing the router.db of both old and new groups, of course. SVN provides a rename function; but we suggest that you use it's copy function instead, and leave the clean-up of the old name to rancid. So, you would use the copy function (proper substitutions, of course) in place of the cp in the CVS example, then commit the new file. ... Done this for some switches. Have worked nicely (I using CVS) /Peo ---------------------------------------------------------- Per-Olof Olsson Email: peo at chalmers.se Chalmers tekniska h?gskola IT-service H?rsalsv?gen 5 412 96 G?teborg Tel: 031/772 6738 Fax: 031/772 8680 ---------------------------------------------------------- From daniel.schmidt at wyo.gov Wed Apr 17 15:28:15 2013 From: daniel.schmidt at wyo.gov (Daniel Schmidt) Date: Wed, 17 Apr 2013 09:28:15 -0600 Subject: [rancid] Renaming devices? (svn backend) In-Reply-To: <516EA697.5020109@thingy.com> References: <516EA697.5020109@thingy.com> Message-ID: <9fbb4c35bc35c12356d1730ada9ea586@mail.gmail.com> An example: I threw something together quick (not well - quick) for the other network guys so they could copy/paste output. If I weren't so lazy/busy, I would make it run the commands it's self, set a path at the top, yada yada. Change paths & it work 4 U. $ cat stupid_change.py #!/usr/bin/python # Just tell me how to change it! # not written well, just written in 15 minutes # could probably be done in bash import sys def check_yn(message, default): answer = '' while not ((answer == 'y') or (answer =='n')): answer = raw_input(message) answer = answer.lower() if answer == '': return default if answer == 'y': return True else: return False def gen_crap(old_name, new_name, type): print ("sed -i 's/%s/%s/g' /home/rancid/var/%s/router.db" % (old_name, new_name, type)) print ("cp -p /home/rancid/var/CVS/%s/configs/%s,v \ /home/rancid/var/CVS/%s/configs/%s,v" % (type, old_name, type, new_name)) print "cd /home/rancid/var/%s/configs" % type print "cvs update" print "/home/rancid/bin/rancid-run -r %s" % new_name print "cd ~\n" def main(): if not len(sys.argv) == 3: if len(sys.argv) == 4: gen_crap(sys.argv[1], sys.argv[2], sys.argv[3]) else: print "Usage:\n./stupid_change.py old_name new_name type(optional)" else: if check_yn("Is this a switch?(y):", True): gen_crap(sys.argv[1], sys.argv[2], 'Switches') else: gen_crap(sys.argv[1], sys.argv[2], 'Routers') if __name__ == "__main__": main() -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Howard Jones Sent: Wednesday, April 17, 2013 7:42 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Renaming devices? (svn backend) Hi Folks, I'm just about to implement a new naming scheme for all our network gear, and I'd like to rename it in such a way that I don't lose the history in RANCID. I found a couple of messages in the list archive for the way to do this with a CVS backend, but I have Subversion. Does anyone know the svn-fu necessary to do this cleanly? Thanks, Howard _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/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. From heas at shrubbery.net Wed Apr 17 18:20:40 2013 From: heas at shrubbery.net (heasley) Date: Wed, 17 Apr 2013 11:20:40 -0700 Subject: [rancid] hrancid patch to ignore legal disclaimer In-Reply-To: <20130417181510.BF0F3AD1C@guelah.shrubbery.net> <8761zvoik3.fsf@divinity.mikat.iki.fi> Message-ID: <20130417182040.GB64137@shrubbery.net> Tue, Apr 09, 2013 at 06:00:28PM +0300, Mika Tiainen: > Hi, > > We upgraded our 2610 series Procurves to R.11.98. In this software "show > tech transceivers" (or any other "show tech" command) is prefixed with > this funny legal disclaimer: > > ,---- > | XXX# show tech transceivers > | ATTENTION: You are entering a diagnostic mode on this product that is HP > | Confidential and Proprietary. This mode, the commands and functionality > | specific to this mode, and all output from this mode are HP Confidential > | and Proprietary. You may use this mode only by specific permission of, and > | under the direction of, an HP support engineer or HP technical engineer. > | Unauthorized or improper use of this mode will be considered by HP to be > | unauthorized modification of the product, and any resulting defects or > | issues are not eligible for coverage under the HP product warranty or any > | HP support or service. UNAUTHORIZED OR IMPROPER USE OF THIS MODE CAN > | MAKE THE PRODUCT COMPLETELY INOPERABLE. > | > | > | transceivers > | > | Transceiver Technical Information: > | Port # | Type | Prod # | Serial # | Part # > `---- > > I assume that, in some future update, it might get added to other > Procurve software families too. Here is a small patch for hrancid to > ignore the disclaimer part in "show tech tranceivers" output: > > --- hrancid.orig 2013-01-30 18:20:15.000000000 +0200 > +++ hrancid 2013-04-09 10:24:54.000000000 +0300 > @@ -312,6 +312,13 @@ > > s/ Technical Information//i; > > + if (/^ATTENTION: You are entering a diagnostic mode/) { > + while () { > + tr/\015//d; > + last if (/^(\s*)$/); > + } > + next; > + } > ProcessHistory("COMMENTS","keysort","G0",";$_"); > } > return(0); ok. i think that the prompt should also be matched, in case it returns nothing after the notice. like so: Index: bin/hrancid.in =================================================================== --- bin/hrancid.in (revision 2684) +++ bin/hrancid.in (working copy) @@ -312,6 +312,14 @@ return(1) if /^(Invalid|Ambiguous) input:/i; s/ Technical Information//i; + if (/^ATTENTION: You are entering a diagnostic mode/) { + while () { + tr/\015//d; + return(1) if (/^$prompt/); + last if (/^(\s*)$/); + } + next; + } ProcessHistory("COMMENTS","keysort","G0",";$_"); } thanks From howie at thingy.com Thu Apr 18 15:54:58 2013 From: howie at thingy.com (Howard Jones) Date: Thu, 18 Apr 2013 16:54:58 +0100 Subject: [rancid] Renaming devices? (svn backend) In-Reply-To: <516EB594.9010408@chalmers.se> References: <516EA697.5020109@thingy.com> <516EB594.9010408@chalmers.se> Message-ID: <51701752.6020107@thingy.com> On 17/04/2013 15:45, Per-Olof Olsson wrote: > > From rancid FAQ: > % cp -p CVS//configs/old_device_name,v \ > CVS//configs/new_device_name,v [...] > SVN provides a rename function; but we suggest that you use it's > copy function instead, and leave the clean-up of the old name > to rancid. So, you would use the copy function (proper > substitutions, of course) in place of the cp in the CVS example, > then commit the new file. While it's true that this is in the FAQ, it doesn't really make sense. I guess it depends on how you interpret "proper substitutions", but the CVS directory in a SVN-backed installation is the opaque svn repository. So: cd var//configs svn copy oldname newname svn commit newname -m "Renamed oldname to newname" looks to be the proper substitution. Thanks, Howie From ekoons at sectv.com Thu Apr 25 01:30:55 2013 From: ekoons at sectv.com (Eric Koons) Date: Wed, 24 Apr 2013 21:30:55 -0400 Subject: [rancid] Cisco 10K sflog Message-ID: Anyone having problems with Cisco 10Ks running IPDR getting constant rancid updates where the sflog file changes? Supposedly this was fixed in rancid 2.3.6: rancid: filter sflog from DirSlotN() for IOS on cisco 10k I'm running 2.3.7 and I'm still seeing this issue. Any help is appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ameyer at tsg2.com Sun Apr 28 21:59:10 2013 From: ameyer at tsg2.com (Andrew S. Meyer) Date: Sun, 28 Apr 2013 16:59:10 -0500 Subject: [rancid] Rancid on CentOS 6.3 Message-ID: Hi, i'm trying to setup Rancid on CentOS 6.3 from the EPEL yum repo. I was able to get it installed but, but can't seem to get it working. This is what is in my /var/log/rancid/rancidlog.log starting: Sun Apr 28 15:01:01 CDT 2013 ending: Sun Apr 28 15:01:01 CDT 2013 [root at server rancid]# Is there a reason why there are no details in the log files? Also I have no idea where the backup files are going too... Can anyone shed some light on this? Or should I uninstall and install from source? Is there a RPM avaialble elsewhere? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From metabolik at live.fr Tue Apr 30 08:49:40 2013 From: metabolik at live.fr (Flo) Date: Tue, 30 Apr 2013 08:49:40 +0000 (UTC) Subject: [rancid] Vlans Message-ID: Thanks for this patch, this is working fine ! However it does not give any "show vlan" informations Could it be possible ? Best regards, Flo