From h-hardin at northwestern.edu Wed Oct 5 15:37:45 2011 From: h-hardin at northwestern.edu (Henry P Hardin) Date: Wed, 5 Oct 2011 15:37:45 +0000 Subject: [rancid] su - rancid password Message-ID: Hi guys, I'm following the Rhys Evans linux install doc. I'm installing in /var/rancid-2.3.6 rather than /usr/local/rancid but other than that following the notes. My problem is that in step 18 when I run the /var/rancid-2.3.6/bin/clogin I get an error: password file (/home/hph839/.cloginrc) does not exist. This is my home directory. I thought it would look for .cloginrc in /var/rancid-2.3.6/.cloginrc as I put it there per step 9) of the doc. I notice in the code of /var/rancid-2.3.6/clogin the password file is set as follows: # Password file set password_file $env(HOME)/.cloginrc ------------ I assume I could set this value to /var/rancid-2.3.6/.cloginrc but I think I this shouldn't be necessary. I populated the LIST_OF_GROUPS in step 10 from an earlier version of Rancid as well as the password files in step 17. Unfortunately the guy who installed the previous version is gone and he left no documentation. Sorry for the length of this. I appreciate any information you guys can share. Thanks, Pat --------------------- Pat Hardin Monitor Cyberinfrastructure - MMS Northwestern University 1-847-467-1387 Office -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwest at zyedge.com Wed Oct 5 15:56:10 2011 From: rwest at zyedge.com (Ryan West) Date: Wed, 5 Oct 2011 15:56:10 +0000 Subject: [rancid] su - rancid password In-Reply-To: References: Message-ID: <082224AF-6F3E-4FA9-8128-594FE4EE5A53@zyedge.com> Are you logged in as rancid or root? Sent from handheld On Oct 5, 2011, at 11:54 AM, Henry P Hardin > wrote: Hi guys, I'm following the Rhys Evans linux install doc. I'm installing in /var/rancid-2.3.6 rather than /usr/local/rancid but other than that following the notes. My problem is that in step 18 when I run the /var/rancid-2.3.6/bin/clogin I get an error: password file (/home/hph839/.cloginrc) does not exist. This is my home directory. I thought it would look for .cloginrc in /var/rancid-2.3.6/.cloginrc as I put it there per step 9) of the doc. I notice in the code of /var/rancid-2.3.6/clogin the password file is set as follows: # Password file set password_file $env(HOME)/.cloginrc ------------ I assume I could set this value to /var/rancid-2.3.6/.cloginrc but I think I this shouldn't be necessary. I populated the LIST_OF_GROUPS in step 10 from an earlier version of Rancid as well as the password files in step 17. Unfortunately the guy who installed the previous version is gone and he left no documentation. Sorry for the length of this. I appreciate any information you guys can share. Thanks, Pat --------------------- Pat Hardin Monitor Cyberinfrastructure - MMS Northwestern University 1-847-467-1387 Office _______________________________________________ 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 heas at shrubbery.net Wed Oct 5 16:05:25 2011 From: heas at shrubbery.net (john heasley) Date: Wed, 5 Oct 2011 16:05:25 +0000 Subject: [rancid] su - rancid password In-Reply-To: References: Message-ID: <20111005160525.GD13473@shrubbery.net> Wed, Oct 05, 2011 at 03:37:45PM +0000, Henry P Hardin: > Hi guys, > > I'm following the Rhys Evans linux install doc. I'm installing in /var/rancid-2.3.6 rather than /usr/local/rancid but other than that following the notes. > > My problem is that in step 18 when I run the /var/rancid-2.3.6/bin/clogin I get an error: password file (/home/hph839/.cloginrc) does not exist. > > This is my home directory. I thought it would look for .cloginrc in /var/rancid-2.3.6/.cloginrc as I put it there per step 9) of the doc. its in ${HOME}/.cloginrc, so if you're running it as yourself or root (and your environment is inheritted), it will look there. if you were logged in as the user who will run rancid, it will look in that users' homedir. you can ln -s /var/rancid-whatever/.clogin ~ assuming you have common unix group membership. > I notice in the code of /var/rancid-2.3.6/clogin the password file is set as follows: > > # Password file > > set password_file $env(HOME)/.cloginrc > > ------------ > > I assume I could set this value to /var/rancid-2.3.6/.cloginrc but I think I this shouldn't be necessary. > > I populated the LIST_OF_GROUPS in step 10 from an earlier version of Rancid as well as the password files in step 17. Unfortunately the guy who installed the previous version is gone and he left no documentation. > > Sorry for the length of this. I appreciate any information you guys can share. > > Thanks, > > Pat > > > > --------------------- > Pat Hardin > Monitor > Cyberinfrastructure - MMS > Northwestern University > 1-847-467-1387 Office > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From me_gogorza at hotmail.com Wed Oct 5 20:36:37 2011 From: me_gogorza at hotmail.com (Marito ...) Date: Wed, 5 Oct 2011 17:36:37 -0300 Subject: [rancid] FW: Arris C4 In-Reply-To: References: , Message-ID: Dear all, I want to share with you, a scipt done for Arris C3 & C4. I took a copy of bsrrancid, and made some changes to make it work(Despite I am a newbie at Rancid and with Perl) At show version, I removed the Uptime, as every time you run it, you get a new record. Also remove the first line from show running, as it also include the time. Attached are the files I used for both C3 & C4. Hope they were useful to you. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: arrislogin Type: application/octet-stream Size: 26037 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: arrisc4rancid Type: application/octet-stream Size: 18810 bytes Desc: not available URL: From JBoutin at taleo.com Fri Oct 7 02:07:31 2011 From: JBoutin at taleo.com (Jerome Boutin) Date: Thu, 6 Oct 2011 22:07:31 -0400 Subject: [rancid] How can I modify nslogin to manage my netscaler running v9.x Message-ID: Hi guys, I have hard time to modify the original nslogin script to logon and send command to my netscalers running v9.3. Can someone help me out please? I read on the archive that a slight change to the script could do the trick but I don't know how to find the patch and apply it. -- Jerome -------------- next part -------------- An HTML attachment was scrubbed... URL: From peo at chalmers.se Sat Oct 8 07:29:00 2011 From: peo at chalmers.se (Per-Olof Olsson) Date: Sat, 8 Oct 2011 09:29:00 +0200 Subject: [rancid] comparing device running config against startup config In-Reply-To: <4E78DC26.7080405@chalmers.se> References: <4E78DC26.7080405@chalmers.se> Message-ID: <4E8FFBBC.1070602@chalmers.se> Looks like I have a working version that compare timestamps from Cisco IOS show running-config output. We only have Cisco switches/routers running later versions of IOS 12.2, so thats what I have run tests on. Found on our site, 5 switches with not proper saved config. Note that time have to be in sync to get timestamps in config files. After boot it take several minutes to get time in sync. ------------------------------------------------------ diff -c rancid.in_pre_ts rancid.in *** rancid.in_pre_ts Sat Oct 8 08:43:50 2011 --- rancid.in Sat Oct 8 08:39:27 2011 *************** *** 63,68 **** --- 63,75 ---- $found_diag = 0; $timeo = 90; # clogin timeout in seconds + #Timestamp for running and saved config + use Time::Local + $ts_runing_cfg = 0; + $ts_saved_cfg = 0; + %ts_mon=("Jan",0,"Feb",1,"Mar",2,"Apr",3,"May",4,"Jun",5, + "Jul",6,"Aug",7,"Sep",8,"Oct",9,"Nov",10,"Dec",11); + my(@commandtable, %commands, @commands);# command lists my($aclsort) = ("ipsort"); # ACL sorting mode my($config_register); # configuration register value *************** *** 1586,1591 **** --- 1593,1612 ---- } tr/\015//d; } + + #Get timestamps from Cisco IOS. + #! Last configuration change at 11:04:03 MET-DST Tue Sep 6 2011 by XXX + #! NVRAM config last updated at 11:04:12 MET-DST Tue Sep 6 2011 by XXX + #! Last configuration change at 11:28:27 MET-DST Wed May 25 2011 + #! NVRAM config last updated at 11:44:14 MET-DST Wed May 25 2011 + # + if (/^! Last configuration change at (\d+):(\d+):(\d+) \S+ \w+ (\w+) (\d+) (\d+)/) { + $ts_running_cfg = timelocal($3,$2,$1,$5,$ts_mon{$4},$6); + } + if (/^! NVRAM config last updated at (\d+):(\d+):(\d+) \S+ \w+ (\w+) (\d+) (\d+)/) { + $ts_saved_cfg = timelocal($3,$2,$1,$5,$ts_mon{$4},$6); + } + # skip ASA 5520 configuration author line /^: written by /i && next; # some versions have other crap mixed in with the bits in the *************** *** 2053,2058 **** --- 2074,2089 ---- } } } + # Check if running config is't saved + if ($ts_running_cfg > $ts_saved_cfg) { + ProcessHistory("","","","! Running config not saved!\n"); + } + #if ($debug) { + # print STDERR ("Running config from:" . localtime($ts_running_cfg) . "\n"); + # print STDERR ("Saved cofnig from:" . localtime($ts_saved_cfg) . "\n"); + #} + + print STDOUT "Done $logincmd: $_\n" if ($log); # Flush History ProcessHistory("","","",""); --------------------------------------------------- /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 ---------------------------------------------------------- Per-Olof Olsson 2011-09-20 20:32: > Ian Stong 2011-09-20 16:10: >> We are using rancid to grab the running config and look for differences >> over the previous running config. That works great and as advertised. I >> was wondering what others are doing to catch the occasional issue where >> someone makes a change to the running config but for whatever reason it >> doesn't get saved and the device crashes - hence loosing that part of >> the config. >> >> What suggestions do you have for ensuring the running config matches the >> startup config? >> > Thinks there begin to be useful info for some platforms. > > HP procurve have on later switches "show running-config status" > Not fully working on 2650! After reboot it always differ. > HP support have fixed this for 2610's after I bug report it. > > > Cisco IOS. Compare time stamp from "show running-config" > Some of the first lines. > > > Nexus. Look at output from "show running-config diff". > Can't test latest version if it still generate diffs for some lines. > > >> >> Thanks, >> >> Ian >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > /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 > ---------------------------------------------------------- > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From tyler at tolaris.com Tue Oct 11 15:55:14 2011 From: tyler at tolaris.com (Tyler J. Wagner) Date: Tue, 11 Oct 2011 16:55:14 +0100 Subject: [rancid] Changes in "show inventory raw" every night on Cisco 6509 chassis In-Reply-To: <20110921175059.GF8731@shrubbery.net> References: <4E79FAEA.1050903@tolaris.com> <20110921175059.GF8731@shrubbery.net> Message-ID: <4E9466E2.4060509@tolaris.com> On 2011-09-21 18:50, john heasley wrote: > Wed, Sep 21, 2011 at 03:55:38PM +0100, Tyler J. Wagner: >> I have a problem with rancid and one of my Cisco 6509 9-slot switch >> chassis. I have two of them, nearly identical. One of them behaves normally >> with rancid. On the other, the output of "show inventory raw" changes every >> night. It is usually missing, some lines one night, then has them back the >> next. So I get emails every night with: >> > > most likely a cvs problem; look for cvs errors in the log file for the group. > otherwise, the device might not be displaying those lines reliably, though > you see no problem in your manual test. CVS seems fine, no errors in logs, no CVS lock files persist, "sudo -u rancid cvs update -PdA" displays nothing of interest. Logs show CVS generating a new revision. Suppose my hardware is display changing output. How do I tell rancid to ignore "show inventory raw" with respect to the nightly email or diff? Regards, Tyler -- "To have a child is to give fate a hostage." -- John F. Kennedy From metzgers at web.de Wed Oct 12 05:18:16 2011 From: metzgers at web.de (Stefan Metzger) Date: Wed, 12 Oct 2011 07:18:16 +0200 (CEST) Subject: [rancid] Restore of rancid-based hp procurve config files failed Message-ID: <335410265.4614363.1318396696570.JavaMail.fmail@mwmweb071> An HTML attachment was scrubbed... URL: From metzgers at web.de Wed Oct 12 05:22:50 2011 From: metzgers at web.de (Stefan Metzger) Date: Wed, 12 Oct 2011 07:22:50 +0200 (CEST) Subject: [rancid] Restore of rancid-based hp procurve config files failed Message-ID: <1228697293.2958819.1318396970368.JavaMail.fmail@mwmweb079> Hi, ? configured rancid (version 2.3.6, expect version 5.44 on a SLES 11.1) based on different tutorials. Created a user ?rancid?, the .cloginrc file, modified the rancid.conf file, created the svn/cvs repository (rancid-cvs) and tested successfully the login on our hp procurve switch infrastructure by using hlogin. ? After running the ?rancid-run? script to backup the configuration of a hp procurve 4208 switch, the config file under /usr/local/rancid/var//configs looks like this: ? ----- ;RANCID-CONTENT-TYPE: hp ; ;Chassis type: J8773A ;Serial Number: SG746VB024 ; ;Memory: 47M ; ;Image: stamp:??? /sw/code/build/rmm(rm11) ;Image: Mar 12 2010 01:28:36 ;Image: L.11.24 ;Image: 76 ;Image: Boot Image:???? Primary ;Image: ROM L.10.03 ; ;Flash: Image?????????? Size(Bytes)?? Date?? Version ;Flash: -----?????????? ----------? -------- ------- ;Flash: Primary Image?? : 4542313?? 03/12/10 L.11.24 ;Flash: Secondary Image : 4542313?? 03/12/10 L.11.24 ;Flash: Boot Rom Version: L.10.03 ;Flash: Current Boot??? : Primary ; ;? Status and Counters - Module Information ;?? Slot? Module Description?????????????????????? Serial Number ;?? ----- ---------------------------------------- -------------- ;?? A???? ProCurve J9033A Gig-T/SFP vl Module????? SG743AM06Y ;?? B???? ProCurve J8768A 24p Gig-T vl Module????? SG744AK0D9 ; ; Stacking Status ;? Stack State?????????? : Candidate ;? Transmission Interval : 60 ;? Auto Join???????????? : Yes ; ; hostname "ProCurve Switch 4208vl" max-vlans 256 module 1 type J9033A module 2 type J8768A [?] ; --------- ? If I try to restore this file by using scp on the switch startup-config (scp @:/cfg/startup-config I got an error: ? scp: /cfg/startup-config/: errno = 0xe ? ? If I backup the config manually by using scp the backup file (header) looks a little bit different: ? ----- ; J8773A Configuration Editor; Created on release #L.11.24 ? hostname "ProCurve Switch 4208vl" max-vlans 256 module 2 type J8768A module 1 type J9033A [?] ? ----- ? Restoring this one works well. If I replace the comments header of the rancid backup file by the second one (; J8773A Configuration Editor; Created on release #L.11.24) the restore works also. ? Any idea/solution? ? Br Stefan ___________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 From peo at chalmers.se Fri Oct 14 18:26:59 2011 From: peo at chalmers.se (Per-Olof Olsson) Date: Fri, 14 Oct 2011 20:26:59 +0200 Subject: [rancid] Restore of rancid-based hp procurve config files failed In-Reply-To: <1228697293.2958819.1318396970368.JavaMail.fmail@mwmweb079> References: <1228697293.2958819.1318396970368.JavaMail.fmail@mwmweb079> Message-ID: <4E987EF3.3010408@chalmers.se> Hi Yes Procurve switches use the first comment line as a type of identifier to prevent loading wrong (or none) config files to the switch. I don't know why hrancid remove that line from the backup. After put that line back its easier to use. I just make a copy of the rancid backup file, removing the comment part up to identifier line, and load it to the switch. diff -c hrancid.in.ORG hrancid.in ... *** 302,307 **** --- 340,346 ---- s/\$(Revision|Id):/ $1:/; /^; (\S+) configuration editor;/i && ProcessHistory("COMMENTS","keysort","A0",";Chassis type: $1\n") && + ProcessHistory("","","",";\n;Running config file:\n$_") && next; # order logging statements - doesnt appear to do syslog as of right now *************** ... /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 ---------------------------------------------------------- Stefan Metzger 2011-10-12 07:22: > Hi, > > configured rancid (version 2.3.6, expect version 5.44 on a SLES 11.1) based on different tutorials. Created a user ?rancid?, the .cloginrc file, modified the > rancid.conf file, created the svn/cvs repository (rancid-cvs) and tested successfully the login on our hp procurve switch > infrastructure by using hlogin. > > After running the ?rancid-run? script to backup the configuration of a hp procurve 4208 switch, the config file under > /usr/local/rancid/var//configs looks like this: > > ----- > ;RANCID-CONTENT-TYPE: hp > ; > ;Chassis type: J8773A > ;Serial Number: SG746VB024 > ; > ;Memory: 47M > ; > ;Image: stamp: /sw/code/build/rmm(rm11) > ;Image: Mar 12 2010 01:28:36 > ;Image: L.11.24 > ;Image: 76 > ;Image: Boot Image: Primary > ;Image: ROM L.10.03 > ; > ;Flash: Image Size(Bytes) Date Version Y> ;Flash: ----- ---------- -------- ------- > ;Flash: Primary Image : 4542313 03/12/10 L.11.24 > ;Flash: Secondary Image : 4542313 03/12/10 L.11.24 > ;Flash: Boot Rom Version: L.10.03 > ;Flash: Current Boot : Primary > ; > ; Status and Counters - Module Information > ; Slot Module Description Serial Number > ; ----- ---------------------------------------- -------------- > ; A ProCurve J9033A Gig-T/SFP vl Module SG743AM06Y > ; B ProCurve J8768A 24p Gig-T vl Module SG744AK0D9 > ; > ; Stacking Status > ; Stack State : Candidate > ; Transmission Interval : 60 > ; Auto Join : Yes > ; > ; > hostname "ProCurve Switch 4208vl" > max-vlans 256 > module 1 type J9033A > module 2 type J8768A > [?] > ; > --------- > > If I try to restore this file by using scp on the switch startup-config (scp @:/cfg/startup-config > I got an error: > > scp: /cfg/startup-config/: errno = 0xe > > > If I backup the config manually by using scp the backup file (header) looks a little bit different: > > ----- > ; J8773A Configuration Editor; Created on release #L.11.24 > > hostname "ProCurve Switch 4208vl" > max-vlans 256 > module 2 type J8768A > module 1 type J9033A > [?] > > ----- > > Restoring this one works well. > If I replace the comments header of the rancid backup file by the second one (; J8773A Configuration Editor; Created on release #L.11.24) the restore > works also. > > Any idea/solution? > > Br > Stefan > ___________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From ler762 at gmail.com Sun Oct 16 16:57:20 2011 From: ler762 at gmail.com (Lee) Date: Sun, 16 Oct 2011 12:57:20 -0400 Subject: [rancid] comparing device running config against startup config In-Reply-To: References: Message-ID: On 9/20/11, Ian Stong wrote: > We are using rancid to grab the running config and look for differences > over the previous running config. That works great and as advertised. I > was wondering what others are doing to catch the occasional issue where > someone makes a change to the running config but for whatever reason it > doesn't get saved and the device crashes - hence loosing that part of > the config. > > What suggestions do you have for ensuring the running config matches the > startup config? If you have SNMP enabled on your devices: cat ${DEVLIST} | while read DEV trash do chgTime=`snmpget -Le -OqUtv $DEV CISCO-CONFIG-MAN-MIB::ccmHistoryRunningLastChanged.0 ` savTime=`snmpget -Le -OqUtv $DEV CISCO-CONFIG-MAN-MIB::ccmHistoryStartupLastChanged.0 ` if [ $savTime -lt $chgTime ]; then printf "%-14s config needs to be saved %s %s\n" $DEV $chgTime $savTime fi done Then you can use CISCO-CONFIG-COPY-MIB to do the equivalent of 'copy run start' or generate & run a 'clogin -c "copy run start" router1 ... routerN' shell script Regards, Lee From GMourani at prival.ca Tue Oct 18 19:38:38 2011 From: GMourani at prival.ca (Gerhard Mourani) Date: Tue, 18 Oct 2011 15:38:38 -0400 Subject: [rancid] HP Procurve 2810 Message-ID: Hello List, I've problem making Rancid (version 2.3.6) work with HP Procurve 2810 switches. I'm able to connect to the switch correctly but the generated report is empty! If I check inside the log files, I can see the following: 10.1.6.254: found unexpected command - "show system" 10.1.6.254: missed cmd(s): show stack,write term 10.1.6.254: End of run not found I use the following parameters in my .cloginrc file: add autoenable 10.1.6.254 1 add user 10.1.6.254 myadmin add password 10.1.6.254 mypassword myenpassword Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From b225ccc at gmail.com Tue Oct 18 19:43:00 2011 From: b225ccc at gmail.com (Brian Talley) Date: Tue, 18 Oct 2011 13:43:00 -0600 Subject: [rancid] HP Procurve 2810 In-Reply-To: References: Message-ID: What does router.db look like? 2011/10/18 Gerhard Mourani > Hello List,**** > > ** ** > > I?ve problem making Rancid (version 2.3.6) work with HP Procurve 2810 > switches. I?m able to connect to the switch correctly but the generated > report is empty! If I check inside the log files, I can see the following: > **** > > ** ** > > 10.1.6.254: found unexpected command - "show system"**** > > 10.1.6.254: missed cmd(s): show stack,write term**** > > 10.1.6.254: End of run not found**** > > ** ** > > I use the following parameters in my *.cloginrc* file:**** > > add autoenable 10.1.6.254 1**** > > add user 10.1.6.254 myadmin**** > > add password 10.1.6.254 mypassword myenpassword**** > > ** ** > > Regards,**** > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- Brian Talley b225ccc at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From me_gogorza at hotmail.com Tue Oct 18 19:49:34 2011 From: me_gogorza at hotmail.com (Marito ...) Date: Tue, 18 Oct 2011 16:49:34 -0300 Subject: [rancid] HP Procurve 2810 In-Reply-To: References: , Message-ID: Gerhard, Also check if the Procurve can run "show system". Try doing clogin -c 'show system' IPADDRS. Regards Date: Tue, 18 Oct 2011 13:43:00 -0600 From: b225ccc at gmail.com To: GMourani at prival.ca CC: rancid-discuss at shrubbery.net Subject: Re: [rancid] HP Procurve 2810 What does router.db look like? 2011/10/18 Gerhard Mourani Hello List, I?ve problem making Rancid (version 2.3.6) work with HP Procurve 2810 switches. I?m able to connect to the switch correctly but the generated report is empty! If I check inside the log files, I can see the following: 10.1.6.254: found unexpected command - "show system" 10.1.6.254: missed cmd(s): show stack,write term 10.1.6.254: End of run not found I use the following parameters in my .cloginrc file: add autoenable 10.1.6.254 1 add user 10.1.6.254 myadmin add password 10.1.6.254 mypassword myenpassword Regards, _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -- Brian Talley b225ccc at gmail.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 GMourani at prival.ca Tue Oct 18 19:54:31 2011 From: GMourani at prival.ca (Gerhard Mourani) Date: Tue, 18 Oct 2011 15:54:31 -0400 Subject: [rancid] HP Procurve 2810 In-Reply-To: References: , Message-ID: I get the following error: PC-2810-48G-01# couldn't compile regular expression pattern: parentheses () not balanced while executing "expect { -re $reprompt {} -re "\[\n\r]+" { exp_continue } }" (procedure "run_commands" line 21) invoked from within "run_commands $prompt $command" ("foreach" body line 166) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 743) PC-2810-48G-01# couldn't compile regular expression pattern: parentheses () not balanced while executing "expect { -re $reprompt {} -re "\[\n\r]+" { exp_continue } }" (procedure "run_commands" line 21) invoked from within "run_commands $prompt $command" ("foreach" body line 166) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 743) From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Marito ... Sent: October-18-11 3:50 PM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] HP Procurve 2810 Gerhard, Also check if the Procurve can run "show system". Try doing clogin -c 'show system' IPADDRS. Regards ________________________________ Date: Tue, 18 Oct 2011 13:43:00 -0600 From: b225ccc at gmail.com To: GMourani at prival.ca CC: rancid-discuss at shrubbery.net Subject: Re: [rancid] HP Procurve 2810 What does router.db look like? 2011/10/18 Gerhard Mourani > Hello List, I've problem making Rancid (version 2.3.6) work with HP Procurve 2810 switches. I'm able to connect to the switch correctly but the generated report is empty! If I check inside the log files, I can see the following: 10.1.6.254: found unexpected command - "show system" 10.1.6.254: missed cmd(s): show stack,write term 10.1.6.254: End of run not found I use the following parameters in my .cloginrc file: add autoenable 10.1.6.254 1 add user 10.1.6.254 myadmin add password 10.1.6.254 mypassword myenpassword Regards, _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -- Brian Talley b225ccc at gmail.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 GMourani at prival.ca Tue Oct 18 20:00:37 2011 From: GMourani at prival.ca (Gerhard Mourani) Date: Tue, 18 Oct 2011 16:00:37 -0400 Subject: [rancid] HP Procurve 2810 In-Reply-To: References: , Message-ID: But if I run -> hlogin -c 'show system' 10.1.6.254 It returns: PC-2810-48G-01# no page PC-2810-48G-01# show system Status and Counters - General System Information System Name : PC-2810-48G-01 System Contact : magagnon at bmr.co System Location : Ville-St-Laurent MAC Age Time (sec) : 300 Time Zone : 0 Daylight Time Rule : None Software revision : N.11.25 Base MAC Addr : b439d6-042cc0 ROM Version : N.10.01 Serial Number : CN048XJ04W Up Time : 137 days Memory - Total : 24,034,944 CPU Util (%) : 36 Free : 16,221,792 IP Mgmt - Pkts Rx : 908,669 Packet - Total : 3022 Pkts Tx : 634,030 Buffers Free : 2780 Lowest : 1841 Missed : 0 PC-2810-48G-01#exit PC-2810-48G-01> exit Do you want to log out [y/n]? y Connection to 10.1.6.254 closed by remote host. Connection to 10.1.6.254 closed. From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Gerhard Mourani Sent: October-18-11 3:55 PM To: Marito ...; rancid-discuss at shrubbery.net Subject: Re: [rancid] HP Procurve 2810 I get the following error: PC-2810-48G-01# couldn't compile regular expression pattern: parentheses () not balanced while executing "expect { -re $reprompt {} -re "\[\n\r]+" { exp_continue } }" (procedure "run_commands" line 21) invoked from within "run_commands $prompt $command" ("foreach" body line 166) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 743) PC-2810-48G-01# couldn't compile regular expression pattern: parentheses () not balanced while executing "expect { -re $reprompt {} -re "\[\n\r]+" { exp_continue } }" (procedure "run_commands" line 21) invoked from within "run_commands $prompt $command" ("foreach" body line 166) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 743) From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Marito ... Sent: October-18-11 3:50 PM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] HP Procurve 2810 Gerhard, Also check if the Procurve can run "show system". Try doing clogin -c 'show system' IPADDRS. Regards ________________________________ Date: Tue, 18 Oct 2011 13:43:00 -0600 From: b225ccc at gmail.com To: GMourani at prival.ca CC: rancid-discuss at shrubbery.net Subject: Re: [rancid] HP Procurve 2810 What does router.db look like? 2011/10/18 Gerhard Mourani > Hello List, I've problem making Rancid (version 2.3.6) work with HP Procurve 2810 switches. I'm able to connect to the switch correctly but the generated report is empty! If I check inside the log files, I can see the following: 10.1.6.254: found unexpected command - "show system" 10.1.6.254: missed cmd(s): show stack,write term 10.1.6.254: End of run not found I use the following parameters in my .cloginrc file: add autoenable 10.1.6.254 1 add user 10.1.6.254 myadmin add password 10.1.6.254 mypassword myenpassword Regards, _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -- Brian Talley b225ccc at gmail.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 GMourani at prival.ca Tue Oct 18 20:02:46 2011 From: GMourani at prival.ca (Gerhard Mourani) Date: Tue, 18 Oct 2011 16:02:46 -0400 Subject: [rancid] HP Procurve 2810 In-Reply-To: References: Message-ID: router.db contains the following: 10.1.6.254:hp:up -----Original Message----- From: Adam Korab [mailto:adam.korab at gmail.com] Sent: October-18-11 4:00 PM To: Gerhard Mourani Cc: Marito ...; rancid-discuss at shrubbery.net Subject: Re: [rancid] HP Procurve 2810 Hi Gerhard, That looks like clogin and the Procurves need to use hlogin (and hrancid) instead. Copy and paste your router.db please, it may be something like pc-2810-48g-01:cisco:up when it ought to be: pc2810-48g-01:hp:up --Adam 2011/10/18 Gerhard Mourani : > I get the following error: > > > > PC-2810-48G-01# couldn't compile regular expression pattern: > parentheses () not balanced > > ??? while executing > > "expect { > > ??????????????? ??? -re $reprompt?????????????? {} > > ??????????????? ??? -re "\[\n\r]+" { exp_continue } > > ??????????????? }" > > ??? (procedure "run_commands" line 21) > > ??? invoked from within > > "run_commands $prompt $command" > > ??? ("foreach" body line 166) > > ??? invoked from within > > "foreach router [lrange $argv $i end] { > > ??? set router [string tolower $router] > > ??? # attempt at platform switching. > > ??? set platform "" > > ??? send_user ..." > > ??? (file "/usr/bin/clogin" line 743) PC-2810-48G-01# couldn't compile > regular expression pattern: parentheses () not balanced > > ??? while executing > > "expect { > > ??????????????? ??? -re $reprompt?????????????? {} > > ??????????????? ??? -re "\[\n\r]+" { exp_continue } > > ??????????????? }" > > ??? (procedure "run_commands" line 21) > > ??? invoked from within > > "run_commands $prompt $command" > > ??? ("foreach" body line 166) > > ??? invoked from within > > "foreach router [lrange $argv $i end] { > > ??? set router [string tolower $router] > > ??? # attempt at platform switching. > > ??? set platform "" > > ??? send_user ..." > > ??? (file "/usr/bin/clogin" line 743) > > > > > > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Marito ... > Sent: October-18-11 3:50 PM > To: rancid-discuss at shrubbery.net > > Subject: Re: [rancid] HP Procurve 2810 > > > > Gerhard, > > Also check if the Procurve can run "show system". Try doing clogin -c > 'show system'?IPADDRS. > > Regards > > ________________________________ > > Date: Tue, 18 Oct 2011 13:43:00 -0600 > From: b225ccc at gmail.com > To: GMourani at prival.ca > CC: rancid-discuss at shrubbery.net > Subject: Re: [rancid] HP Procurve 2810 > > What does router.db look like? > > 2011/10/18 Gerhard Mourani > > Hello List, > > > > I've problem making Rancid (version 2.3.6) work with HP Procurve 2810 > switches. I'm able to connect to the switch correctly but the > generated report is empty! If I check inside the log files, I can see the following: > > > > 10.1.6.254: found unexpected command - "show system" > > 10.1.6.254: missed cmd(s): show stack,write term > > 10.1.6.254: End of run not found > > > > I use the following parameters in my .cloginrc file: > > add autoenable? 10.1.6.254????????? 1 > > add user??????? ????????10.1.6.254????????? myadmin > > add password??? 10.1.6.254?????????? mypassword????? myenpassword > > > > Regards, > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > -- > Brian Talley > b225ccc at gmail.com > > > _______________________________________________ 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 > From adam.korab at gmail.com Tue Oct 18 20:00:01 2011 From: adam.korab at gmail.com (Adam Korab) Date: Tue, 18 Oct 2011 15:00:01 -0500 Subject: [rancid] HP Procurve 2810 In-Reply-To: References: Message-ID: Hi Gerhard, That looks like clogin and the Procurves need to use hlogin (and hrancid) instead. Copy and paste your router.db please, it may be something like pc-2810-48g-01:cisco:up when it ought to be: pc2810-48g-01:hp:up --Adam 2011/10/18 Gerhard Mourani : > I get the following error: > > > > PC-2810-48G-01# couldn't compile regular expression pattern: parentheses () > not balanced > > ??? while executing > > "expect { > > ??????????????? ??? -re $reprompt?????????????? {} > > ??????????????? ??? -re "\[\n\r]+" { exp_continue } > > ??????????????? }" > > ??? (procedure "run_commands" line 21) > > ??? invoked from within > > "run_commands $prompt $command" > > ??? ("foreach" body line 166) > > ??? invoked from within > > "foreach router [lrange $argv $i end] { > > ??? set router [string tolower $router] > > ??? # attempt at platform switching. > > ??? set platform "" > > ??? send_user ..." > > ??? (file "/usr/bin/clogin" line 743) PC-2810-48G-01# couldn't compile > regular expression pattern: parentheses () not balanced > > ??? while executing > > "expect { > > ??????????????? ??? -re $reprompt?????????????? {} > > ??????????????? ??? -re "\[\n\r]+" { exp_continue } > > ??????????????? }" > > ??? (procedure "run_commands" line 21) > > ??? invoked from within > > "run_commands $prompt $command" > > ??? ("foreach" body line 166) > > ??? invoked from within > > "foreach router [lrange $argv $i end] { > > ??? set router [string tolower $router] > > ??? # attempt at platform switching. > > ??? set platform "" > > ??? send_user ..." > > ??? (file "/usr/bin/clogin" line 743) > > > > > > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Marito ... > Sent: October-18-11 3:50 PM > To: rancid-discuss at shrubbery.net > > Subject: Re: [rancid] HP Procurve 2810 > > > > Gerhard, > > Also check if the Procurve can run "show system". Try doing clogin -c 'show > system'?IPADDRS. > > Regards > > ________________________________ > > Date: Tue, 18 Oct 2011 13:43:00 -0600 > From: b225ccc at gmail.com > To: GMourani at prival.ca > CC: rancid-discuss at shrubbery.net > Subject: Re: [rancid] HP Procurve 2810 > > What does router.db look like? > > 2011/10/18 Gerhard Mourani > > Hello List, > > > > I?ve problem making Rancid (version 2.3.6) work with HP Procurve 2810 > switches. I?m able to connect to the switch correctly but the generated > report is empty! If I check inside the log files, I can see the following: > > > > 10.1.6.254: found unexpected command - "show system" > > 10.1.6.254: missed cmd(s): show stack,write term > > 10.1.6.254: End of run not found > > > > I use the following parameters in my .cloginrc file: > > add autoenable? 10.1.6.254????????? 1 > > add user??????? ????????10.1.6.254????????? myadmin > > add password??? 10.1.6.254?????????? mypassword????? myenpassword > > > > Regards, > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > -- > Brian Talley > b225ccc at gmail.com > > > _______________________________________________ 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 > From misch at schwartzkopff.org Wed Oct 19 07:47:40 2011 From: misch at schwartzkopff.org (Michael Schwartzkopff) Date: Wed, 19 Oct 2011 09:47:40 +0200 Subject: [rancid] Problem with "enable" Message-ID: <201110190947.41022.misch@schwartzkopff.org> Hi, I added my switch to cloginrc and to a group. When i do clogin it stops at the normal ">" prompt and does not switch to enabled mode. Running rancid the logs tell me: End of run not found Since this is a plain Cisco device I do not really know where to troubleshoot this problem further. Logging in manually and switching to enables mode does not show anything unusual from the prompts. Any idea? Thanks. -- Dr. Michael Schwartzkopff Guardinistr. 63 81375 M?nchen Tel: (0163) 172 50 98 Fax: (089) 620 304 13 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From misch at schwartzkopff.org Wed Oct 19 11:52:48 2011 From: misch at schwartzkopff.org (Michael Schwartzkopff) Date: Wed, 19 Oct 2011 13:52:48 +0200 Subject: [rancid] Problem with "enable" In-Reply-To: <201110190947.41022.misch@schwartzkopff.org> References: <201110190947.41022.misch@schwartzkopff.org> Message-ID: <201110191352.48724.misch@schwartzkopff.org> > Hi, > > I added my switch to cloginrc and to a group. > > When i do > > clogin > > it stops at the normal ">" prompt and does not switch to enabled mode. > > Running rancid the logs tell me: > > End of run not found > > Since this is a plain Cisco device I do not really know where to > troubleshoot this problem further. Logging in manually and switching to > enables mode does not show anything unusual from the prompts. > > Any idea? Thanks. Found it out. The banner contained the "#" sign. -- Dr. Michael Schwartzkopff Guardinistr. 63 81375 M?nchen Tel: (0163) 172 50 98 Fax: (089) 620 304 13 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From paleola at gmail.com Wed Oct 19 17:27:19 2011 From: paleola at gmail.com (Aleksey P) Date: Wed, 19 Oct 2011 21:27:19 +0400 Subject: [rancid] Problem with "enable" In-Reply-To: <201110190947.41022.misch@schwartzkopff.org> References: <201110190947.41022.misch@schwartzkopff.org> Message-ID: Hi. Chek file rancid for the string " while (/#\s*($cmds_regexp)\s*$/) {| and if it is - change it for "while (/[>#]\s*($cmds_regexp)\s*$/) {" 2011/10/19 Michael Schwartzkopff > Hi, > > I added my switch to cloginrc and to a group. > > When i do > > clogin > > it stops at the normal ">" prompt and does not switch to enabled mode. > > Running rancid the logs tell me: > > End of run not found > > Since this is a plain Cisco device I do not really know where to > troubleshoot > this problem further. Logging in manually and switching to enables mode > does > not show anything unusual from the prompts. > > Any idea? Thanks. > > -- > Dr. Michael Schwartzkopff > Guardinistr. 63 > 81375 M?nchen > > Tel: (0163) 172 50 98 > Fax: (089) 620 304 13 > > _______________________________________________ > 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 heas at shrubbery.net Wed Oct 19 18:02:57 2011 From: heas at shrubbery.net (john heasley) Date: Wed, 19 Oct 2011 18:02:57 +0000 Subject: [rancid] Problem with "enable" In-Reply-To: References: <201110190947.41022.misch@schwartzkopff.org> Message-ID: <20111019180257.GH4355@shrubbery.net> Wed, Oct 19, 2011 at 09:27:19PM +0400, Aleksey P: > Hi. Chek file rancid for the string > " while (/#\s*($cmds_regexp)\s*$/) {| > and if it is - change it for > "while (/[>#]\s*($cmds_regexp)\s*$/) {" no, fix it so that the login script reaches enable mode, whose prompt ends with #. From danielc at vmware.com Thu Oct 20 04:30:37 2011 From: danielc at vmware.com (danielc at vmware.com) Date: Wed, 19 Oct 2011 21:30:37 -0700 (PDT) Subject: [rancid] anyway to escape prevent expect interpretation of commands sent to clogin In-Reply-To: <2c503ac5-1947-4441-8f85-df08e4ea75c1@mozyits-MacBook-Pro.local> Message-ID: I would like to bulk build change some locally store hashed passwords. Unfortunately the hashed passwords contain '$' which is causing the clogin spawning of expect to crash. example of the execution: vyalogin -x commandsfile some-vyatta-router commandsfile has the following: configure set system login user ppark authentication encrypted-password '$1$3MvsA/KO$mpbdAwnlTZEcXXT.sWXqa10' set system login user ppark level admin show system login commit save exit The $1$3 are causing problem in either the clogin or expect. Is there a way to escape those character? Thanks, Daniel Chen -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Oct 20 14:25:11 2011 From: heas at shrubbery.net (john heasley) Date: Thu, 20 Oct 2011 14:25:11 +0000 Subject: [rancid] anyway to escape prevent expect interpretation of commands sent to clogin In-Reply-To: References: <2c503ac5-1947-4441-8f85-df08e4ea75c1@mozyits-MacBook-Pro.local> Message-ID: <20111020142511.GC3946@shrubbery.net> Wed, Oct 19, 2011 at 09:30:37PM -0700, danielc at vmware.com: > I would like to bulk build change some locally store hashed passwords. Unfortunately the hashed passwords contain '$' which is causing the clogin spawning of expect to crash. \$ depending on context, it may need to be \\\$ From paul at gear.dyndns.org Sat Oct 22 06:01:26 2011 From: paul at gear.dyndns.org (Paul Gear) Date: Sat, 22 Oct 2011 16:01:26 +1000 Subject: [rancid] HP Procurve 2810 In-Reply-To: References: Message-ID: On 19/10/11 05:38, Gerhard Mourani wrote: > ... > I?ve problem making Rancid (version 2.3.6) work with HP Procurve 2810 > switches. I?m able to connect to the switch correctly but the generated > report is empty! If I check inside the log files, I can see the following: > > > > 10.1.6.254: found unexpected command - "show system" > > 10.1.6.254: missed cmd(s): show stack,write term > > 10.1.6.254: End of run not found > > > > I use the following parameters in my *.cloginrc* file: > > add autoenable 10.1.6.254 1 > > add user 10.1.6.254 myadmin > > add password 10.1.6.254 mypassword myenpassword I don't know if it makes any difference, but i have lots of 2810s working fine. The only difference i can spot between my .cloginrc and yours is that i don't have an enable password specified. My understanding (limited as it is) is that if you have created a manager account on the ProCurve, there is no need for that extra password. If you remove it, does it work? Also, do you have the required {} around the password? Paul From lind108 at hotmail.com Mon Oct 24 15:57:08 2011 From: lind108 at hotmail.com (Kenneth Lind) Date: Mon, 24 Oct 2011 11:57:08 -0400 Subject: [rancid] Ignore updates to "AC Revision" for Cisco uBR7200 Message-ID: Using Rancid current installation of 2.3.6 and having problems removing notifications for the results of "show env all" for a Cisco uBR7200 and the resulting cycling of reported power supply revisions such as: !Power: Power Supply 1 is AC Revision F0. Unit is on. !Power: Power Supply 2 is AC Revision F0. Unit is on. Revisions randomly cycle between "F0" and "E0" and is not considered alarming or worthy of notifications from Rancid. Previous steps taken to hush the notifications involved editing control_rancid to attempt post config captures from notifying. Approximately line 449 in control_rancid changed from: cvs -f diff -U 4 -ko | sed -e '/^RCS file: /d' -e '/^--- /d' \ -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff Changed to: cvs -f diff -U 4 --ignore-matching-lines='AC Revision' | sed -e '/^RCS file: /d' -e '/^--- /d' -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff Results did not function as expected and Rancid continued to notify on changes to "AC Revision." Further attempted to change same lines above with use of wildcards, but doing so removed all notifications: cvs -f diff -U 4 --ignore-matching-lines='*AC Revision*' | sed -e '/^RCS file: /d' -e '/^--- /d' -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff Ultimate goal: do not capture the changes for versioning/differs to the "AC Revision" updates for particular model devices while maintaining use of the sub ShowEnv in rancid file. Suggestions? From CAsensio at nexica.com Thu Oct 27 09:44:50 2011 From: CAsensio at nexica.com (Carlos Asensio) Date: Thu, 27 Oct 2011 11:44:50 +0200 Subject: [rancid] Also Problem with 'enable' Message-ID: Hi there, I have the same problem with "enable" that Michael Schwartzkopff posted. I've tried to login with the "clogin" from 2.3.6 version without success, but if I use the "clogin" from 2.3.1 it works! How can we fix the 2.3.6 clogin version ?? Here you have the example of what I'm saying: [rancid at nex-netman01 ~]$ ./bin/clogin-2.3.6 fw.noc.net fw.noc.net spawn ssh -c 3des -x -l nex_rancid fw.noc.net nex_rancid at fw.noc.net's password: ##################################################################### # # # Todos los accesos estan siendo monitorizados # # Acceso restringido exclusivamente a personal autorizado # # Desconecte inmediatamente # # # ##################################################################### Type help or '?' for a list of available commands. FW-NOC> FW-NOC> exit Logoff Connection to fw.noc.net closed. [rancid at nex-netman01 ~]$ ./bin/clogin-2.3.1 fw.noc.net fw.noc.net spawn ssh -c 3des -x -l nex_rancid fw.noc.net nex_rancid at fw.noc.net's password: ##################################################################### # # # Todos los accesos estan siendo monitorizados # # Acceso restringido exclusivamente a personal autorizado # # Desconecte inmediatamente # # # ##################################################################### Type help or '?' for a list of available commands. FW-NOC> enable Password: ************ FW-NOC# FW-NOC# exit Logoff Connection to fw.noc.net closed. [rancid at nex-netman01 ~]$ Thanks in advance! Carlos. -------------- next part -------------- An HTML attachment was scrubbed... URL: From misch at schwartzkopff.org Thu Oct 27 10:04:02 2011 From: misch at schwartzkopff.org (Michael Schwartzkopff) Date: Thu, 27 Oct 2011 12:04:02 +0200 Subject: [rancid] Also Problem with 'enable' In-Reply-To: References: Message-ID: <201110271204.03399.misch@schwartzkopff.org> > Hi there, > > I have the same problem with "enable" that Michael Schwartzkopff posted. > > I've tried to login with the "clogin" from 2.3.6 version without success, > but if I use the "clogin" from 2.3.1 it works! > > How can we fix the 2.3.6 clogin version ?? > > Here you have the example of what I'm saying: > > [rancid at nex-netman01 ~]$ ./bin/clogin-2.3.6 fw.noc.net > fw.noc.net > spawn ssh -c 3des -x -l nex_rancid fw.noc.net > nex_rancid at fw.noc.net's password: > ##################################################################### > # # > # Todos los accesos estan siendo monitorizados # > # Acceso restringido exclusivamente a personal autorizado # > # Desconecte inmediatamente # > # # > ##################################################################### > Type help or '?' for a list of available commands. > FW-NOC> > FW-NOC> exit > > Logoff Hi, please do not use the '#' sign in the banner. This solved our problem. -- Dr. Michael Schwartzkopff Guardinistr. 63 81375 M?nchen Tel: (0163) 172 50 98 Fax: (089) 620 304 13 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From CAsensio at nexica.com Thu Oct 27 10:11:38 2011 From: CAsensio at nexica.com (Carlos Asensio) Date: Thu, 27 Oct 2011 12:11:38 +0200 Subject: [rancid] Also Problem with 'enable' In-Reply-To: <201110271204.03399.misch@schwartzkopff.org> References: <201110271204.03399.misch@schwartzkopff.org> Message-ID: > Hi there, > > I have the same problem with "enable" that Michael Schwartzkopff posted. > > I've tried to login with the "clogin" from 2.3.6 version without > success, but if I use the "clogin" from 2.3.1 it works! > > How can we fix the 2.3.6 clogin version ?? > > Here you have the example of what I'm saying: > > [rancid at nex-netman01 ~]$ ./bin/clogin-2.3.6 fw.noc.net fw.noc.net > spawn ssh -c 3des -x -l nex_rancid fw.noc.net nex_rancid at fw.noc.net's > password: > ##################################################################### > # # > # Todos los accesos estan siendo monitorizados # > # Acceso restringido exclusivamente a personal autorizado # > # Desconecte inmediatamente # > # # > ##################################################################### > Type help or '?' for a list of available commands. > FW-NOC> > FW-NOC> exit > > Logoff Hi, please do not use the '#' sign in the banner. This solved our problem. -- Dr. Michael Schwartzkopff Guardinistr. 63 81375 M?nchen Tel: (0163) 172 50 98 Fax: (089) 620 304 13 ************************************* Hi Michael, Thanks for your answer. Unfortunately we have a lot of devices to manage, so it's not so easy to change the banner at all of them. I was just wondering if the way that clogin--2.3.1 handle the prompt can be implemented/fixed at the cloing--2.3.6. Best regards, Carlos. From misch at schwartzkopff.org Thu Oct 27 10:46:03 2011 From: misch at schwartzkopff.org (Michael Schwartzkopff) Date: Thu, 27 Oct 2011 12:46:03 +0200 Subject: [rancid] Also Problem with 'enable' In-Reply-To: References: <201110271204.03399.misch@schwartzkopff.org> Message-ID: <201110271246.04883.misch@schwartzkopff.org> > > Hi there, > > > > I have the same problem with "enable" that Michael Schwartzkopff posted. > > > > I've tried to login with the "clogin" from 2.3.6 version without > > success, but if I use the "clogin" from 2.3.1 it works! > > > > How can we fix the 2.3.6 clogin version ?? > > > > Here you have the example of what I'm saying: > > > > [rancid at nex-netman01 ~]$ ./bin/clogin-2.3.6 fw.noc.net fw.noc.net > > spawn ssh -c 3des -x -l nex_rancid fw.noc.net nex_rancid at fw.noc.net's > > password: > > ##################################################################### > > # # > > # Todos los accesos estan siendo monitorizados # > > # Acceso restringido exclusivamente a personal autorizado # > > # Desconecte inmediatamente # > > # # > > ##################################################################### > > Type help or '?' for a list of available commands. > > FW-NOC> > > FW-NOC> exit > > > > Logoff > > Hi, > > please do not use the '#' sign in the banner. This solved our problem. > > -- > Dr. Michael Schwartzkopff > Guardinistr. 63 > 81375 M?nchen > > Tel: (0163) 172 50 98 > Fax: (089) 620 304 13 > > ************************************* > > Hi Michael, > > Thanks for your answer. > > Unfortunately we have a lot of devices to manage, so it's not so easy to > change the banner at all of them. I am thinking about a solution to do config changes on many hosts with cfengine. See cfengine.com. Software under GPL. With this solution it should be possible to automate changes on many (!) cisco devices. Since nobody sponsors this work I have to do it in my spare time. So it can be a while until I will finish this work. Sorry. Greetings, -- Dr. Michael Schwartzkopff Guardinistr. 63 81375 M?nchen Tel: (0163) 172 50 98 Fax: (089) 620 304 13 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From CAsensio at nexica.com Thu Oct 27 11:02:27 2011 From: CAsensio at nexica.com (Carlos Asensio) Date: Thu, 27 Oct 2011 13:02:27 +0200 Subject: [rancid] Also Problem with 'enable' In-Reply-To: <201110271246.04883.misch@schwartzkopff.org> References: <201110271204.03399.misch@schwartzkopff.org> <201110271246.04883.misch@schwartzkopff.org> Message-ID: > > Hi there, > > > > I have the same problem with "enable" that Michael Schwartzkopff posted. > > > > I've tried to login with the "clogin" from 2.3.6 version without > > success, but if I use the "clogin" from 2.3.1 it works! > > > > How can we fix the 2.3.6 clogin version ?? > > > > Here you have the example of what I'm saying: > > > > [rancid at nex-netman01 ~]$ ./bin/clogin-2.3.6 fw.noc.net fw.noc.net > > spawn ssh -c 3des -x -l nex_rancid fw.noc.net > > nex_rancid at fw.noc.net's > > password: > > ##################################################################### > > # # > > # Todos los accesos estan siendo monitorizados # > > # Acceso restringido exclusivamente a personal autorizado # > > # Desconecte inmediatamente # > > # # > > #################################################################### > > # Type help or '?' for a list of available commands. > > FW-NOC> > > FW-NOC> exit > > > > Logoff > > Hi, > > please do not use the '#' sign in the banner. This solved our problem. > > -- > Dr. Michael Schwartzkopff > Guardinistr. 63 > 81375 M?nchen > > Tel: (0163) 172 50 98 > Fax: (089) 620 304 13 > > ************************************* > > Hi Michael, > > Thanks for your answer. > > Unfortunately we have a lot of devices to manage, so it's not so easy > to change the banner at all of them. I am thinking about a solution to do config changes on many hosts with cfengine. See cfengine.com. Software under GPL. With this solution it should be possible to automate changes on many (!) cisco devices. Since nobody sponsors this work I have to do it in my spare time. So it can be a while until I will finish this work. Sorry. Greetings, -- Dr. Michael Schwartzkopff Guardinistr. 63 81375 M?nchen Tel: (0163) 172 50 98 Fax: (089) 620 304 13 ***************************************** Thanks for the idea, Michael. We also have others software alternatives to do that, but it's little bit messy. So I want to know if anybody knows if the way that clogin--2.3.1 handle the prompt/banner can be implemented/fixed at the cloing--2.3.6. Best regards, Carlos. From dpacheco at unap.cl Thu Oct 27 15:43:36 2011 From: dpacheco at unap.cl (Dago Pacheco) Date: Thu, 27 Oct 2011 12:43:36 -0300 Subject: [rancid] Rancid faild to create SVN repository Message-ID: <4EA97C28.5020908@unap.cl> Hi everybody I'm trying to set up rancid on a Centos 5.7 machine. I installed rancid-2.3.6-1.el5 rpm package form repository and set up correct values on rancid.conf (every path and parameter is correctly set). i set SVN as the revision system and, of course, SVN is installed (v1.6.11-7). The problem comes when running rancid-cvs script. It correctly generate group folder (and internal file and folder structure) but it faild to create SVN repository and, therefor, can't import and checkout files form it. Then, when I run rancid-run, it correctly download router's config files to folder group, but, because repositry creation error, it can't checkout new files. As a way of testing, I manually run svn repository creation commands, the same way rancid-cvs script does, and it works finen, repository was created, group files and folders were imported and I can successfully checkout a working copy form repository. This is the output for rancid-cvs [rancid at pintados rancid]$ rancid-cvs svn: No se pudo abrir una sesi?n ra_local con el URL svn: No se pudo abrir el repositorio 'file:///var/rancid/CVS/unap_Iqq_PB' svn: No se pudo abrir una sesi?n ra_local con el URL svn: No se pudo abrir el repositorio 'file:///var/rancid/CVS/unap_Iqq_PB' svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB' no es una copia de trabajo This is the list of files on $CVSROOT (/var/rancid/CVS), as you can see, no repository structure files and folders were created. [rancid at pintados CVS]$ cd /var/rancid/CVS/ [rancid at pintados CVS]$ ll total 0 [rancid at pintados CVS]$ This is the list of files and folders from $BASEDIR (/var/rancid), as you can see, group folder was created [rancid at pintados rancid]$ ls -al total 32 drwxr-x--- 6 rancid rancid 4096 oct 27 12:26 . drwxr-xr-x 29 root root 4096 oct 21 11:32 .. -rw-r----- 1 rancid netadm 73 oct 27 12:01 .cloginrc drwxrwxr-x 2 rancid netadm 4096 oct 26 15:36 CVS drwxr-x--- 2 rancid netadm 4096 oct 19 12:46 logs drwxr-x--- 3 rancid netadm 4096 oct 19 13:01 .subversion drwxr-x--- 3 rancid netadm 4096 oct 27 12:26 unap_Iqq_PB After running rancid-run, router's config files are downloaded to $BASEDIR/$GROUP/config, but as I said, no svn interaction is completed, couse, there is no repository. This is the log (there is a problem with an specific router, but for the svn problems, it doesn't matter) [rancid at pintados rancid]$ cat unap_Iqq_PB.20111027.123211 starting: jue oct 27 12:32:11 CLST 2011 svn: '.' no es una copia de trabajo Omitiendo '.' svn: '/var/rancid/unap_Iqq_PB' no es una copia de trabajo /usr/libexec/rancid/control_rancid: line 276: sendmail: command not found svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.10 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.11 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.12 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.13 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.14 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.15 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.16 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.17 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.18 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.19 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.1 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.20 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.21 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.22 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.23 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.24 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.26 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.27 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.28 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.2 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.30 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.31 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.32 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.33 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.36 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.37 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.38 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.3 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.40 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.41 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.42 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.44 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.45 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.46 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.47 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.4 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.53 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.54 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.55 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.5 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.6 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.7 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.8 svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo Added 10.100.10.9 svn: aviso: '10.100.10.10' no es una copia de trabajo svn: aviso: '10.100.10.11' no es una copia de trabajo svn: aviso: '10.100.10.12' no es una copia de trabajo svn: aviso: '10.100.10.13' no es una copia de trabajo svn: aviso: '10.100.10.14' no es una copia de trabajo svn: aviso: '10.100.10.15' no es una copia de trabajo svn: aviso: '10.100.10.16' no es una copia de trabajo svn: aviso: '10.100.10.17' no es una copia de trabajo svn: aviso: '10.100.10.18' no es una copia de trabajo svn: aviso: '10.100.10.19' no es una copia de trabajo svn: aviso: '10.100.10.1' no es una copia de trabajo svn: aviso: '10.100.10.20' no es una copia de trabajo svn: aviso: '10.100.10.21' no es una copia de trabajo svn: aviso: '10.100.10.22' no es una copia de trabajo svn: aviso: '10.100.10.23' no es una copia de trabajo svn: aviso: '10.100.10.24' no es una copia de trabajo svn: aviso: '10.100.10.26' no es una copia de trabajo svn: aviso: '10.100.10.27' no es una copia de trabajo svn: aviso: '10.100.10.28' no es una copia de trabajo svn: aviso: '10.100.10.2' no es una copia de trabajo svn: aviso: '10.100.10.30' no es una copia de trabajo svn: aviso: '10.100.10.31' no es una copia de trabajo svn: aviso: '10.100.10.32' no es una copia de trabajo svn: aviso: '10.100.10.33' no es una copia de trabajo svn: aviso: '10.100.10.36' no es una copia de trabajo svn: aviso: '10.100.10.37' no es una copia de trabajo svn: aviso: '10.100.10.38' no es una copia de trabajo svn: aviso: '10.100.10.3' no es una copia de trabajo svn: aviso: '10.100.10.40' no es una copia de trabajo svn: aviso: '10.100.10.41' no es una copia de trabajo svn: aviso: '10.100.10.42' no es una copia de trabajo svn: aviso: '10.100.10.44' no es una copia de trabajo svn: aviso: '10.100.10.45' no es una copia de trabajo svn: aviso: '10.100.10.46' no es una copia de trabajo svn: aviso: '10.100.10.47' no es una copia de trabajo svn: aviso: '10.100.10.4' no es una copia de trabajo svn: aviso: '10.100.10.53' no es una copia de trabajo svn: aviso: '10.100.10.54' no es una copia de trabajo svn: aviso: '10.100.10.55' no es una copia de trabajo svn: aviso: '10.100.10.5' no es una copia de trabajo svn: aviso: '10.100.10.6' no es una copia de trabajo svn: aviso: '10.100.10.7' no es una copia de trabajo svn: aviso: '10.100.10.8' no es una copia de trabajo svn: aviso: '10.100.10.9' no es una copia de trabajo Trying to get all of the configs. 10.100.10.32 clogin error: Error: TIMEOUT reached 10.100.10.32: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,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 controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,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: 10.100.10.32: End of run not found ! ===================================== Getting missed routers: round 1. 10.100.10.32 clogin error: Error: TIMEOUT reached 10.100.10.32: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,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 controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,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: 10.100.10.32: End of run not found ! ===================================== Getting missed routers: round 2. 10.100.10.32 clogin error: Error: TIMEOUT reached 10.100.10.32: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,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 controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,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: 10.100.10.32: End of run not found ! ===================================== Getting missed routers: round 3. 10.100.10.32 clogin error: Error: TIMEOUT reached 10.100.10.32: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,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 controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,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: 10.100.10.32: End of run not found ! ===================================== Getting missed routers: round 4. 10.100.10.32 clogin error: Error: TIMEOUT reached 10.100.10.32: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,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 controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,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: 10.100.10.32: End of run not found ! svn: '.' no es una copia de trabajo svn: '/var/rancid/unap_Iqq_PB' no es una copia de trabajo ending: jue oct 27 12:40:44 CLST 2011 I don't know what is the problem. Every file/folder permition is correctly set (I think) to rancid.netadm owner and folder. Can you help me out, please. Thanks everybody. -- Dago Pacheco Bravo Administrador de Infraestructura y Servicios Unidad de Inform?tica y Comunicaciones Anexo: 2388 - Fono: (57) 394388 - Cel: 88059332 Universidad Arturo Prat - Sede Iquique -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.schmidt at wyo.gov Thu Oct 27 15:27:28 2011 From: daniel.schmidt at wyo.gov (Daniel Schmidt) Date: Thu, 27 Oct 2011 09:27:28 -0600 Subject: [rancid] Also Problem with 'enable' In-Reply-To: References: <201110271204.03399.misch@schwartzkopff.org> Message-ID: You have a list of devices in rancid. Use cut, split on ':' - first column, pipe and you have list of every device on the network to put in a textfile. Then, use ciscocmd, or iosrun to change it on all devices. Or, just write an expect script yourself using autoexpect as a template. Then, sit back and watch while it does the work for you. -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Carlos Asensio Sent: Thursday, October 27, 2011 4:12 AM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] Also Problem with 'enable' > Hi there, > > I have the same problem with "enable" that Michael Schwartzkopff posted. > > I've tried to login with the "clogin" from 2.3.6 version without > success, but if I use the "clogin" from 2.3.1 it works! > > How can we fix the 2.3.6 clogin version ?? > > Here you have the example of what I'm saying: > > [rancid at nex-netman01 ~]$ ./bin/clogin-2.3.6 fw.noc.net fw.noc.net > spawn ssh -c 3des -x -l nex_rancid fw.noc.net nex_rancid at fw.noc.net's > password: > ##################################################################### > # # > # Todos los accesos estan siendo monitorizados # > # Acceso restringido exclusivamente a personal autorizado # > # Desconecte inmediatamente # > # # > ##################################################################### > Type help or '?' for a list of available commands. > FW-NOC> > FW-NOC> exit > > Logoff Hi, please do not use the '#' sign in the banner. This solved our problem. -- Dr. Michael Schwartzkopff Guardinistr. 63 81375 M?nchen Tel: (0163) 172 50 98 Fax: (089) 620 304 13 ************************************* Hi Michael, Thanks for your answer. Unfortunately we have a lot of devices to manage, so it's not so easy to change the banner at all of them. I was just wondering if the way that clogin--2.3.1 handle the prompt can be implemented/fixed at the cloing--2.3.6. Best regards, Carlos. _______________________________________________ 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 Fri Oct 28 05:55:48 2011 From: heas at shrubbery.net (john heasley) Date: Fri, 28 Oct 2011 05:55:48 +0000 Subject: [rancid] Also Problem with 'enable' In-Reply-To: References: <201110271204.03399.misch@schwartzkopff.org> Message-ID: <20111028055547.GA22888@shrubbery.net> Thu, Oct 27, 2011 at 12:11:38PM +0200, Carlos Asensio: > Unfortunately we have a lot of devices to manage, so it's not so easy to change the banner at all of them. > > I was just wondering if the way that clogin--2.3.1 handle the prompt can be implemented/fixed at the cloing--2.3.6. it was changed to be more flexible in matching the prompt and doing so in a manner that is not confused by information in the output. but, it cant manage that until it sees the prompt the first time - and it must find it somehow. hence, dont use [>#] in your banners...or dont have banners at all. From CAsensio at nexica.com Fri Oct 28 10:20:15 2011 From: CAsensio at nexica.com (Carlos Asensio) Date: Fri, 28 Oct 2011 12:20:15 +0200 Subject: [rancid] Also Problem with 'enable' In-Reply-To: <20111028055547.GA22888@shrubbery.net> References: <201110271204.03399.misch@schwartzkopff.org> <20111028055547.GA22888@shrubbery.net> Message-ID: Thu, Oct 27, 2011 at 12:11:38PM +0200, Carlos Asensio: > Unfortunately we have a lot of devices to manage, so it's not so easy to change the banner at all of them. > > I was just wondering if the way that clogin--2.3.1 handle the prompt can be implemented/fixed at the cloing--2.3.6. it was changed to be more flexible in matching the prompt and doing so in a manner that is not confused by information in the output. but, it cant manage that until it sees the prompt the first time - and it must find it somehow. hence, dont use [>#] in your banners...or dont have banners at all. ******************************** Thanks for your answer John. I'll do that. Best regards, Carlos. From FMALAPEL at bouyguestelecom.fr Fri Oct 28 17:54:08 2011 From: FMALAPEL at bouyguestelecom.fr (MALAPELLE, FRANCK) Date: Fri, 28 Oct 2011 19:54:08 +0200 Subject: [rancid] rancid not keeping the newly created .new file Message-ID: Hi, I'm facing a really strange problem. I have routers A and B; both are 7750 Alcatel routers. Except that router A was a Cisco before, we kept the same name. I can run the alurancid / alulogin perfectly on both of these. However when I ran rancid-run only router B has a file with its configuration. Router A still has the cisco config file. I then created a new group within rancid and started over, this time the conf file of router A is empty! While rancid-run is running, I can see the routerA.new and routerB.new files. The configuration of routerA is effectively within the routerA.new file! But, when rancid-run is done, the routerA conf file remains empty...! As someone ever experienced this? Can someone help me on this subject? I am actually banging my head against my keyboard :) Thanks, Franck ________________________________ L'int?grit? de ce message n'?tant pas assur?e sur internet, la soci?t? exp?ditrice ne peut ?tre tenue responsable de son contenu ni de ses pi?ces jointes. Toute utilisation ou diffusion non autoris?e est interdite. Si vous n'?tes pas destinataire de ce message, merci de le d?truire et d'avertir l'exp?diteur. The integrity of this message cannot be guaranteed on the Internet. The company that sent this message cannot therefore be held liable for its content nor attachments. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Oct 28 20:12:57 2011 From: heas at shrubbery.net (john heasley) Date: Fri, 28 Oct 2011 20:12:57 +0000 Subject: [rancid] rancid not keeping the newly created .new file In-Reply-To: References: Message-ID: <20111028201257.GG29419@shrubbery.net> Fri, Oct 28, 2011 at 07:54:08PM +0200, MALAPELLE, FRANCK: > Hi, > > I'm facing a really strange problem. > I have routers A and B; both are 7750 Alcatel routers. Except that router A was a Cisco before, we kept the same name. > I can run the alurancid / alulogin perfectly on both of these. > > However when I ran rancid-run only router B has a file with its configuration. Router A still has the cisco config file. > I then created a new group within rancid and started over, this time the conf file of router A is empty! the parsing of the received data is probably failing in alurancid. see the group's logfile and dry alurancid -d hostname. From heas at shrubbery.net Fri Oct 28 23:46:01 2011 From: heas at shrubbery.net (john heasley) Date: Fri, 28 Oct 2011 23:46:01 +0000 Subject: [rancid] Rancid faild to create SVN repository In-Reply-To: <4EA97C28.5020908@unap.cl> References: <4EA97C28.5020908@unap.cl> Message-ID: <20111028234601.GU553@shrubbery.net> Thu, Oct 27, 2011 at 12:43:36PM -0300, Dago Pacheco: > Hi everybody > > I'm trying to set up rancid on a Centos 5.7 machine. I installed > rancid-2.3.6-1.el5 rpm package form repository and set up correct > values on rancid.conf (every path and parameter is correctly set). > i set SVN as the revision system and, of course, SVN is installed > (v1.6.11-7). > The problem comes when running rancid-cvs script. It correctly > generate group folder (and internal file and folder structure) but > it faild to create SVN repository and, therefor, can't import and > checkout files form it. Then, when I run rancid-run, it correctly > download router's config files to folder group, but, because > repositry creation error, it can't checkout new files. > As a way of testing, I manually run svn repository creation > commands, the same way rancid-cvs script does, and it works finen, > repository was created, group files and folders were imported and I > can successfully checkout a working copy form repository. > > This is the output for rancid-cvs > > [rancid at pintados rancid]$ rancid-cvs > svn: No se pudo abrir una sesi?n ra_local con el URL > svn: No se pudo abrir el repositorio > 'file:///var/rancid/CVS/unap_Iqq_PB' > svn: No se pudo abrir una sesi?n ra_local con el URL > svn: No se pudo abrir el repositorio > 'file:///var/rancid/CVS/unap_Iqq_PB' > svn: '.' no es una copia de trabajo > svn: '/var/rancid/unap_Iqq_PB/configs' no es una copia de trabajo > svn: '.' no es una copia de trabajo > svn: '/var/rancid/unap_Iqq_PB' no es una copia de trabajo > > This is the list of files on $CVSROOT (/var/rancid/CVS), as you can > see, no repository structure files and folders were created. > > [rancid at pintados CVS]$ cd /var/rancid/CVS/ > [rancid at pintados CVS]$ ll > total 0 > [rancid at pintados CVS]$ I've created a test installation for myself from source and svn and cvs both work fine. perhaps start fresh: rm -rf CVS unap_Iqq_PB; rancid-cvs unap_Iqq_PB or ditch the centos package and install from source. > svn: '/var/rancid/unap_Iqq_PB' no es una copia de trabajo > /usr/libexec/rancid/control_rancid: line 276: sendmail: command not > found the path of sendmail must be included in PATH in rancid.conf.