From cterpreau at gmail.com Mon Oct 1 08:25:42 2007 From: cterpreau at gmail.com (Christophe Terpreau) Date: Mon, 1 Oct 2007 10:25:42 +0200 Subject: [rancid] use rancid via a web interface ?? Message-ID: <8f7786aa0710010125m23221bb1o64d78d9950ba41a0@mail.gmail.com> Hello, i used rancid to backup all my cisco devices but also a script with clogin to change local password on them. Is there a way to use this script with a web interface ?? I would allow other user to start the script to change password but to be easy it will be on a web interface. Thx Christophe. From nduda at VistaPrint.com Mon Oct 1 14:09:07 2007 From: nduda at VistaPrint.com (Nick Duda) Date: Mon, 1 Oct 2007 10:09:07 -0400 Subject: [rancid] Duplicate emails each poll Message-ID: For a couple days now I keep getting the same email(s) over and over from Rancid. Is it hung up on an email or something? How can I clear this - Nick From Brad.Fox at bdk.com Mon Oct 1 14:14:26 2007 From: Brad.Fox at bdk.com (Fox, Brad) Date: Mon, 1 Oct 2007 10:14:26 -0400 Subject: [rancid] Back-up procedures Message-ID: Hello all, Just out curiosity when I look to back-up my rancid directories are there any special considerations I should be concerned about? I have attempted to look on-line for procedures to back-up Rancid but all I can seem to find are the tutorials for backing up network equipment. What I am looking to do is to back-up the rancid system in-case of hardware or software failure. Thank you in advance for your help. Brad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071001/8afc84a2/attachment.html From heas at shrubbery.net Mon Oct 1 14:40:59 2007 From: heas at shrubbery.net (john heasley) Date: Mon, 1 Oct 2007 14:40:59 +0000 Subject: [rancid] Re: Back-up procedures In-Reply-To: References: Message-ID: <20071001144059.GB12880@shrubbery.net> Mon, Oct 01, 2007 at 10:14:26AM -0400, Fox, Brad: > Hello all, > > > > Just out curiosity when I look to back-up my rancid directories are > there any special considerations I should be concerned about? I have > attempted to look on-line for procedures to back-up Rancid but all I can > seem to find are the tutorials for backing up network equipment. What I > am looking to do is to back-up the rancid system in-case of hardware or > software failure. Thank you in advance for your help. In theory, disk/fsys dumps are all you need. the caveat is that I think they'd need to be done in silent state. That is, I do not know what might occur if the CVS repository were updated at the same time that dumps were run. The repository file changes, rather than being updated, so it may be in an inconsistent state when hits tape. From Todd at equivoice.com Mon Oct 1 15:31:05 2007 From: Todd at equivoice.com (Todd Heide) Date: Mon, 1 Oct 2007 10:31:05 -0500 Subject: [rancid] Re: Back-up procedures In-Reply-To: Message-ID: <082FEA82DC985B4F8A6B412D5AC4E22093CFCD@exchange.Equivoice.local> What I have done in the past is tarball the directory after it has completed its run. I have been able to fully restore it on another machine with some minor tweaking to rancid and Viewvc. ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Fox, Brad Sent: Monday, October 01, 2007 9:14 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Back-up procedures Hello all, Just out curiosity when I look to back-up my rancid directories are there any special considerations I should be concerned about? I have attempted to look on-line for procedures to back-up Rancid but all I can seem to find are the tutorials for backing up network equipment. What I am looking to do is to back-up the rancid system in-case of hardware or software failure. Thank you in advance for your help. Brad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071001/3be64408/attachment.html From edenny at techvalleycom.com Mon Oct 1 15:39:06 2007 From: edenny at techvalleycom.com (Erik Denny) Date: Mon, 1 Oct 2007 11:39:06 -0400 Subject: [rancid] Issues with inherited install of Rancid Message-ID: I'm the lucky owner of an inherited running copy of Rancid. I love the product, but I have a nightmare. First, I can't tell you what version I'm running as each script appears to have it's own version number, so there is no consistency on version identification. It's running, I see the collected files, but it appears to not be checking things into CVS properly. No errors, disk space is ok, the usual suspect list appears fine. I haven't seen anything like this in the archives, and it seems like it would be a simple fix. I plan on upgrading to the latest version when migrated to a new machine, but the current install is so mangled all over the place that I'd rather just get that one working, rather than trying to figure out how to upgrade in place. Thanks in advance. ...erik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071001/5bd66253/attachment.html From rancid at gheek.net Mon Oct 1 15:53:25 2007 From: rancid at gheek.net (Lance) Date: Mon, 01 Oct 2007 08:53:25 -0700 Subject: [rancid] Re: Issues with inherited install of Rancid Message-ID: <20071001085325.8e114e4890519e5179c192e02d6bca26.44299b2528.wbe@email.secureserver.net> Erik, A while back I posted something called PSV. It basically prints to each file the version of the scripts used to collect the data at the top of the files. This helps in knowing "1" what versions you are running to get each configs data and "2" identifying where you have received errors when doing an upgrade (you would see what script versions have been updated). Read this thread to see the script I wrote and an example output of it. http://www.shrubbery.net/pipermail/rancid-discuss/2006-September/001777.html In regards to upgrading, it is easy as along as you keep the same CVS/SVN repo. If you change your repo then you have some challenges to over come. Lastly, RANCID is not a single script. It is a collection of scripts. -Lance > -------- Original Message -------- > From: "Erik Denny" > Date: Mon, October 01, 2007 8:39 am > To: > > > I'm the lucky owner of an inherited running copy of Rancid. > > I love the product, but I have a nightmare. > > First, I can't tell you what version I'm running as each script appears > to have it's own version number, so there is no consistency on version > identification. > > It's running, I see the collected files, but it appears to not be > checking things into CVS properly. No errors, disk space is ok, the > usual suspect list appears fine. > > I haven't seen anything like this in the archives, and it seems like it > would be a simple fix. > > I plan on upgrading to the latest version when migrated to a new > machine, but the current install is so mangled all over the place that > I'd rather just get that one working, rather than trying to figure out > how to upgrade in place. > > Thanks in advance. > > ...erik
_______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Mon Oct 1 15:58:22 2007 From: rancid at gheek.net (Lance) Date: Mon, 01 Oct 2007 08:58:22 -0700 Subject: [rancid] Re: Duplicate emails each poll Message-ID: <20071001085822.8e114e4890519e5179c192e02d6bca26.acfb42cfe2.wbe@email.secureserver.net> Nick, You might want to make sure no one has changed your aliases file and make sure it isn't sending to two different group which you might be a part of. Also make sure RANCID isn't running two times in a row. Check your local mail queue on your rancid server for repeat emails issue. That is the best info I can provide given the little bit of info that was provided. -lance > -------- Original Message -------- > From: "Nick Duda" > Date: Mon, October 01, 2007 7:09 am > To: > > > For a couple days now I keep getting the same email(s) over and over > from Rancid. Is it hung up on an email or something? How can I clear > this > > - Nick > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Mon Oct 1 15:59:08 2007 From: rancid at gheek.net (Lance) Date: Mon, 01 Oct 2007 08:59:08 -0700 Subject: [rancid] Re: use rancid via a web interface ?? Message-ID: <20071001085908.8e114e4890519e5179c192e02d6bca26.4e49c67f71.wbe@email.secureserver.net> Christophe, I have not seen anything in regards to this. I have seen one for making changes to the rancid.conf configuration that is about it. -lance > -------- Original Message -------- > From: "Christophe Terpreau" > Date: Mon, October 01, 2007 1:25 am > To: rancid-discuss at shrubbery.net > > > Hello, > > i used rancid to backup all my cisco devices but also a script with > clogin to change local password on them. Is there a way to use this > script with a web interface ?? > I would allow other user to start the script to change password but to > be easy it will be on a web interface. > > Thx Christophe. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From tex at off.org Mon Oct 1 16:25:03 2007 From: tex at off.org (Austin Schutz) Date: Mon, 1 Oct 2007 09:25:03 -0700 Subject: [rancid] Re: use rancid via a web interface ?? In-Reply-To: <8f7786aa0710010125m23221bb1o64d78d9950ba41a0@mail.gmail.com> References: <8f7786aa0710010125m23221bb1o64d78d9950ba41a0@mail.gmail.com> Message-ID: <20071001162503.GA5928@gblx.net> On Mon, Oct 01, 2007 at 10:25:42AM +0200, Christophe Terpreau wrote: > Hello, > > i used rancid to backup all my cisco devices but also a script with > clogin to change local password on them. Is there a way to use this > script with a web interface ?? > I would allow other user to start the script to change password but to > be easy it will be on a web interface. > Sure, program it. Learn a useful web interfacing programming language, such as php. Austin From s.juergensen at kielnet.de Tue Oct 2 08:05:42 2007 From: s.juergensen at kielnet.de (Sven Juergensen (KielNET)) Date: Tue, 02 Oct 2007 10:05:42 +0200 Subject: [rancid] Problem gathering data from an updated ERX junose Message-ID: <4701FBD6.1070405@kielnet.de> hi list, i'm experiencing issues with collecting data from a juniper erx. the device was updated from 5.x to 8.x the day before. logs result the following: ---8<--- Trying to get all of the configs. : missed cmd(s): show configuration,show hardware,dir : End of run not found ! srp redundancy: mode is high-availability, state active ===================================== --->8--- this happens four times and then it gives up. according to the troubleshooting-help in your faq under 3) General, first question, i can successfully complete the steps of 1) ./clogin 2) ./clogin -c 'show configuration' 3) however does the following: ---8<--- ./rancid sh: clogin: command not found : 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:,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,dir /all slavedisk1:,show env all,show module,show controllers,show diagbus,dir /all slavedisk0:,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 redundancy secondary,show running-config,show c7200,dir /all slot1: : End of run not found ! --->8--- lacking a router.new file, adding a '-d' results in: ---8<--- ./rancid -d 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 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-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 controllers cbus;show diagbus;show diag;show module;show spe version;show c7200;show vtp status;show vlan;show running-config;write term" sh: clogin: command not found : 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:,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,dir /all slavedisk1:,show env all,show module,show controllers,show diagbus,dir /all slavedisk0:,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 redundancy secondary,show running-config,show c7200,dir /all slot1: : 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:,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,dir /all slavedisk1:,show env all,show module,show controllers,show diagbus,dir /all slavedisk0:,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 redundancy secondary,show running-config,show c7200,dir /all slot1: : End of run not found : End of run not found ! # cat router.new !RANCID-CONTENT-TYPE: cisco ! ! ! ! ! --->8--- is this a dialogue with the device at all or just some dummyattempt? i'm a bit confused to why it says cisco - it's configured as 'erx' in the cloginrc. any input on this greatly appreciated. thanks and best regards, sven03 From s.juergensen at kielnet.de Tue Oct 2 08:26:42 2007 From: s.juergensen at kielnet.de (Sven Juergensen (KielNET)) Date: Tue, 02 Oct 2007 10:26:42 +0200 Subject: [rancid] Re: [update]Problem gathering data from an updated ERX junose In-Reply-To: <4701FBD6.1070405@kielnet.de> References: <4701FBD6.1070405@kielnet.de> Message-ID: <470200C2.7080205@kielnet.de> hi again, after putting clogin into the $PATH and redoing the /rancid -d results in [...] HIT COMMAND:#write term : found unexpected command - "write term" : End of run not found : End of run not found this command doesn't exist on the new junose release or the previous one. getting closer but not by much. thanks for any input. sven03 Sven Juergensen (KielNET) wrote: > hi list, > > i'm experiencing issues with collecting > data from a juniper erx. the device was > updated from 5.x to 8.x the day before. > > logs result the following: > > ---8<--- > Trying to get all of the configs. > : missed cmd(s): show configuration,show hardware,dir > : End of run not found > ! srp redundancy: mode is high-availability, state active > ===================================== > --->8--- > > this happens four times and then it > gives up. > > according to the troubleshooting-help in > your faq under 3) General, first question, > i can successfully complete the steps of > > 1) ./clogin > 2) ./clogin -c 'show configuration' > > 3) however does the following: > > ---8<--- > ./rancid > sh: clogin: command not found > : 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:,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,dir /all slavedisk1:,show env all,show > module,show controllers,show diagbus,dir /all slavedisk0:,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 redundancy secondary,show > running-config,show c7200,dir /all slot1: > : End of run not found > ! > --->8--- > > lacking a router.new file, adding a > '-d' results in: > > ---8<--- > ./rancid -d > 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 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-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 controllers cbus;show diagbus;show > diag;show module;show spe version;show c7200;show vtp status;show > vlan;show running-config;write term" > sh: clogin: command not found > : 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:,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,dir /all slavedisk1:,show env all,show > module,show controllers,show diagbus,dir /all slavedisk0:,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 redundancy secondary,show > running-config,show c7200,dir /all slot1: > : 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:,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,dir /all slavedisk1:,show env all,show > module,show controllers,show diagbus,dir /all slavedisk0:,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 redundancy secondary,show > running-config,show c7200,dir /all slot1: > : End of run not found > : End of run not found > ! > > > # cat router.new > !RANCID-CONTENT-TYPE: cisco > ! > ! > ! > ! > ! > --->8--- > > is this a dialogue with the device at all > or just some dummyattempt? i'm a bit confused > to why it says cisco - it's configured as > 'erx' in the cloginrc. > > any input on this greatly appreciated. > > thanks and best regards, > > sven03 > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From sanderb at sara.nl Tue Oct 2 08:33:30 2007 From: sanderb at sara.nl (Sander Boele) Date: Tue, 2 Oct 2007 10:33:30 +0200 Subject: [rancid] Re: use rancid via a web interface ?? In-Reply-To: <20071001162503.GA5928@gblx.net> References: <8f7786aa0710010125m23221bb1o64d78d9950ba41a0@mail.gmail.com> <20071001162503.GA5928@gblx.net> Message-ID: <4702025A.7060709@sara.nl> Hi, I'm working on a webinterface in PHP/AJAX, progress is slow as can be as I haven't got much time for this. Maybe I'll post a working prototype soon if people are interested. regards, Sander Austin Schutz wrote: > On Mon, Oct 01, 2007 at 10:25:42AM +0200, Christophe Terpreau wrote: >> Hello, >> >> i used rancid to backup all my cisco devices but also a script with >> clogin to change local password on them. Is there a way to use this >> script with a web interface ?? >> I would allow other user to start the script to change password but to >> be easy it will be on a web interface. >> > > Sure, program it. Learn a useful web interfacing programming language, > such as php. > > Austin > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From cterpreau at gmail.com Tue Oct 2 08:46:57 2007 From: cterpreau at gmail.com (Christophe Terpreau) Date: Tue, 2 Oct 2007 10:46:57 +0200 Subject: [rancid] Re: use rancid via a web interface ?? In-Reply-To: <4702025A.7060709@sara.nl> References: <8f7786aa0710010125m23221bb1o64d78d9950ba41a0@mail.gmail.com> <20071001162503.GA5928@gblx.net> <4702025A.7060709@sara.nl> Message-ID: <8f7786aa0710020146u360b45a3o27d6e997ccb75a98@mail.gmail.com> Hello Sander, yes i'm very interested by this webinterface. Don't hesitate to contact me ! Christophe. 2007/10/2, Sander Boele : > Hi, I'm working on a webinterface in PHP/AJAX, progress is slow as can > be as I haven't got much time for this. Maybe I'll post a working > prototype soon if people are interested. > > regards, > > Sander > > Austin Schutz wrote: > > On Mon, Oct 01, 2007 at 10:25:42AM +0200, Christophe Terpreau wrote: > >> Hello, > >> > >> i used rancid to backup all my cisco devices but also a script with > >> clogin to change local password on them. Is there a way to use this > >> script with a web interface ?? > >> I would allow other user to start the script to change password but to > >> be easy it will be on a web interface. > >> > > > > Sure, program it. Learn a useful web interfacing programming language, > > such as php. > > > > Austin > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From mloveley at plus.net Tue Oct 2 10:44:08 2007 From: mloveley at plus.net (Mark Loveley) Date: Tue, 2 Oct 2007 11:44:08 +0100 Subject: [rancid] Re: Problem gathering data from an updated ERX junose In-Reply-To: <4701FBD6.1070405@kielnet.de> References: <4701FBD6.1070405@kielnet.de> Message-ID: <2A34D575-3EE3-4AB0-B1FF-1DFD6CA2069E@plus.net> On 2 Oct 2007, at 09:05, Sven Juergensen (KielNET) wrote: > hi list, > > i'm experiencing issues with collecting > data from a juniper erx. the device was > updated from 5.x to 8.x the day before. > > logs result the following: > > ---8<--- > Trying to get all of the configs. > : missed cmd(s): show configuration,show hardware,dir > : End of run not found > ! srp redundancy: mode is high-availability, state active > ===================================== > --->8-- Between versions 5 and 8 the output of "show env" changed. Currently we use version 7 code and my changes are below, your milage may vary depending on how your ERX is configured (ie dual SRPs/fileSync/HA etc), we now run a HA setup, pre 7 we used fileSync. I fixed it for us by editing the "sub ShowEnv" subroutine in the jerancid script to look like this. > # This routine parses "show environment all" > sub ShowEnv { > print STDERR " In ShowEnv: $_" if ($debug); > my $autoSyncEna = 0; # assume auto-sync is disabled > > while () { > tr/\015//d; > last if (/^$prompt/); > next if (/^(\s*|\s*$cmd\s*)$/); > next if (/^Please wait/i); > return(-1) if (/command authorization failed/i); > # is autoSync enabled? > $autoSyncEna =1 if (/enabled, switch-on-error > enabled/); # pre 7 code > $autoSyncEna =1 if (/auto-sync > enabled/); # post 7 code > # fail if the RP is amid the auto-sync process > return(-1) if (($autoSyncEna == 1) && (/out of sync \(file > system\)/)); # pre 7 code > return(-1) if (($autoSyncEna == 1) && (/sync in > progress/)); # post 7 code > #return(-1) if (/auto-sync enabled/ && !/in sync/); > > # skip the temperature goop > if (/processor\s+processor/) { > ; ; ; > next; > } > /^\d+\s+\d+\s+\S+/ && next; > # skip the temperature on a E320 > if (/temperature\s+temperature/) { > ; ; > next; > } > /^\d+\s+\w+-\d+\s+\d+\s+\S+/ && next; > /^\d+\/\d+\s+\w+[-\d+]*\sIOA\s+\d+\s+\S+/ && next; > > # strip nvs usage > s/, \d+% \S+\)/\)/; > > s/^ //; > ProcessHistory("COMMENTS","keysort","D1","! $_"); > } > ProcessHistory("COMMENTS","keysort","D1","!\n"); > return(0); > } Also under DirSlotN I found the need to add a extra regex to avoid false diffs. > # fail if the RP is amid the auto-sync process > return(-1) if (/active\/standby/i && /not sync/); > return(-1) if (/active\/standby/i && /being sync/); These changes have avoided 99% of the false diffs for me. HTH -- | Mark Loveley Broadband Solutions for | Network Engineer home and business | PlusNet PLC @www.plus.net | Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY | Registered in England no: 3279013 + ------------ PlusNet - The smarter way to broadband ----------------+ From rancid at gheek.net Tue Oct 2 15:50:18 2007 From: rancid at gheek.net (Lance) Date: Tue, 02 Oct 2007 08:50:18 -0700 Subject: [rancid] Re: use rancid via a web interface ?? Message-ID: <20071002085018.8e114e4890519e5179c192e02d6bca26.676af128e1.wbe@email.secureserver.net> Sander, Posting back to the list the URL where you will keep the mod will be most beneficial for everyone that may be interested. -Lance > -------- Original Message -------- > From: "Christophe Terpreau" > Date: Tue, October 02, 2007 1:46 am > To: rancid-discuss at shrubbery.net > > > Hello Sander, > > yes i'm very interested by this webinterface. Don't hesitate to contact me ! > > Christophe. > > 2007/10/2, Sander Boele : > > Hi, I'm working on a webinterface in PHP/AJAX, progress is slow as can > > be as I haven't got much time for this. Maybe I'll post a working > > prototype soon if people are interested. > > > > regards, > > > > Sander > > > > Austin Schutz wrote: > > > On Mon, Oct 01, 2007 at 10:25:42AM +0200, Christophe Terpreau wrote: > > >> Hello, > > >> > > >> i used rancid to backup all my cisco devices but also a script with > > >> clogin to change local password on them. Is there a way to use this > > >> script with a web interface ?? > > >> I would allow other user to start the script to change password but to > > >> be easy it will be on a web interface. > > >> > > > > > > Sure, program it. Learn a useful web interfacing programming language, > > > such as php. > > > > > > Austin > > > _______________________________________________ > > > 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 sanderb at sara.nl Tue Oct 2 16:12:09 2007 From: sanderb at sara.nl (Sander Boele) Date: Tue, 2 Oct 2007 18:12:09 +0200 Subject: [rancid] Re: use rancid via a web interface ?? In-Reply-To: <20071002085018.8e114e4890519e5179c192e02d6bca26.676af128e1.wbe@email.secureserver.net> References: <20071002085018.8e114e4890519e5179c192e02d6bca26.676af128e1.wbe@email.secureserver.net> Message-ID: <47026DD9.6050806@sara.nl> Hi, once I have something that works, I will post back. First functionality I'm going to implement is to allow a user to choose a system from a drop-down menu and save the config of a device to RANCID with a CVS comment. I'll be using xajax with php. http://www.xajaxproject.org/ cheers, Sander Lance wrote: > Sander, > > Posting back to the list the URL where you will keep the mod will be > most beneficial for everyone that may be interested. > > -Lance > >> -------- Original Message -------- >> From: "Christophe Terpreau" >> Date: Tue, October 02, 2007 1:46 am >> To: rancid-discuss at shrubbery.net >> >> >> Hello Sander, >> >> yes i'm very interested by this webinterface. Don't hesitate to contact me ! >> >> Christophe. >> >> 2007/10/2, Sander Boele : >>> Hi, I'm working on a webinterface in PHP/AJAX, progress is slow as can >>> be as I haven't got much time for this. Maybe I'll post a working >>> prototype soon if people are interested. >>> >>> regards, >>> >>> Sander >>> >>> Austin Schutz wrote: >>>> On Mon, Oct 01, 2007 at 10:25:42AM +0200, Christophe Terpreau wrote: >>>>> Hello, >>>>> >>>>> i used rancid to backup all my cisco devices but also a script with >>>>> clogin to change local password on them. Is there a way to use this >>>>> script with a web interface ?? >>>>> I would allow other user to start the script to change password but to >>>>> be easy it will be on a web interface. >>>>> >>>> Sure, program it. Learn a useful web interfacing programming language, >>>> such as php. >>>> >>>> Austin >>>> _______________________________________________ >>>> 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 > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From grbell at lbl.gov Thu Oct 4 22:43:47 2007 From: grbell at lbl.gov (Gregory Bell) Date: Thu, 04 Oct 2007 15:43:47 -0700 Subject: [rancid] clogin hangs (ssh + cisco + bad password) Message-ID: <47056CA3.3050507@lbl.gov> Hello, In my environment, clogin hangs (taking >70% cpu) in the following situation: - monitored device is running IOS - method = ssh - bad login password in .cloginrc Obviously I should try to configure .cloginrc correctly ;-) but typos do occur and the hung process seems undesirable. In the situation I described, it appears that this 'close' doesn't succeed in killing the ssh process: -re "(denied|Sorry)" { send_user "\nError: Check your passwd for $router\n" catch {close}; wait; return 1 } If I capture the ssh pid and try to kill it this way, -re "(denied|Sorry)" { send_user "\nError: Check your passwd for $router\n" catch {exec kill $foo; close}; wait; return 1 } - ssh dies as expected, but clogin hangs with high CPU nevertheless. This is just blundering around, though; I know nothing about expect. I'm running FreeBSD 6.2, rancid 2.3.1, expect 5.43.0, OpenSSH_4.7p1. I've tried using the version of clogin in rancid-2.3.2a7, with the same results. Here's what I see when I run clogin manually: rancid at mon ~ clogin c29s-50a-5191a-us24.lbnl.us c29s-50a-5191a-us24.lbnl.us spawn /usr/local/bin/ssh-441 -c 3des -x -l lblnet c29s-50a-5191a-us24.lbnl.us CC NOTICE TO USERS Error: Check your passwd for c29s-50a-5191a-us24.lbnl.us ###### here clogin hangs, with the expect process consuming > 70% CPU. Any help would be appreciated. - Greg From greenlog at gmail.com Fri Oct 5 01:35:55 2007 From: greenlog at gmail.com (Allen Tsang) Date: Thu, 04 Oct 2007 21:35:55 -0400 Subject: [rancid] Re: clogin hangs (ssh + cisco + bad password) In-Reply-To: <47056CA3.3050507@lbl.gov> References: <47056CA3.3050507@lbl.gov> Message-ID: <470594FB.60601@advance.net> Good catch, Greg. It'd be nice if rancid had a bugzilla, or at least a wiki, to keep track of such bugs and other things, such as all these incremental patches that we've seen on this mailing-list for random fixes that haven't made it into mainline. Anyone else want to volunteer ( preferable ;p ), or should I step up to the plate? - Allen Tsang Gregory Bell wrote: > Hello, > > In my environment, clogin hangs (taking >70% cpu) in the following > situation: > > - monitored device is running IOS > - method = ssh > - bad login password in .cloginrc > > Obviously I should try to configure .cloginrc correctly ;-) but typos do > occur and the hung process seems undesirable. > > In the situation I described, it appears that this 'close' doesn't > succeed in killing the ssh process: > > -re "(denied|Sorry)" { > send_user "\nError: Check your passwd for $router\n" > catch {close}; wait; return 1 > } > > If I capture the ssh pid and try to kill it this way, > > -re "(denied|Sorry)" { > send_user "\nError: Check your passwd for $router\n" > catch {exec kill $foo; close}; wait; return 1 > } > > - ssh dies as expected, but clogin hangs with high CPU nevertheless. > This is just blundering around, though; I know nothing about expect. > > I'm running FreeBSD 6.2, rancid 2.3.1, expect 5.43.0, OpenSSH_4.7p1. > > I've tried using the version of clogin in rancid-2.3.2a7, with the same > results. > > Here's what I see when I run clogin manually: > > rancid at mon ~ clogin c29s-50a-5191a-us24.lbnl.us > c29s-50a-5191a-us24.lbnl.us > spawn /usr/local/bin/ssh-441 -c 3des -x -l lblnet > c29s-50a-5191a-us24.lbnl.us > CC > > NOTICE TO USERS > > > > Error: Check your passwd for c29s-50a-5191a-us24.lbnl.us > > ###### here clogin hangs, with the expect process consuming > 70% CPU. > > Any help would be appreciated. > > - Greg > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From Michael.Skinner at virginmedia.co.uk Fri Oct 5 08:26:23 2007 From: Michael.Skinner at virginmedia.co.uk (Skinner, Michael) Date: Fri, 5 Oct 2007 09:26:23 +0100 Subject: [rancid] Re: clogin hangs (ssh + cisco + bad password) Message-ID: Go on, step up! It would be great to have an "amnesty" of everyone's private fixes. -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Allen Tsang Sent: 05 October 2007 02:36 To: Gregory Bell Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: clogin hangs (ssh + cisco + bad password) Good catch, Greg. It'd be nice if rancid had a bugzilla, or at least a wiki, to keep track of such bugs and other things, such as all these incremental patches that we've seen on this mailing-list for random fixes that haven't made it into mainline. Anyone else want to volunteer ( preferable ;p ), or should I step up to the plate? - Allen Tsang Gregory Bell wrote: > Hello, > > In my environment, clogin hangs (taking >70% cpu) in the following > situation: > > - monitored device is running IOS > - method = ssh > - bad login password in .cloginrc > > Obviously I should try to configure .cloginrc correctly ;-) but typos > do occur and the hung process seems undesirable. > > In the situation I described, it appears that this 'close' doesn't > succeed in killing the ssh process: > > -re "(denied|Sorry)" { > send_user "\nError: Check your passwd for $router\n" > catch {close}; wait; return 1 > } > > If I capture the ssh pid and try to kill it this way, > > -re "(denied|Sorry)" { > send_user "\nError: Check your passwd for $router\n" > catch {exec kill $foo; close}; wait; return 1 > } > > - ssh dies as expected, but clogin hangs with high CPU nevertheless. > This is just blundering around, though; I know nothing about expect. > > I'm running FreeBSD 6.2, rancid 2.3.1, expect 5.43.0, OpenSSH_4.7p1. > > I've tried using the version of clogin in rancid-2.3.2a7, with the > same results. > > Here's what I see when I run clogin manually: > > rancid at mon ~ clogin c29s-50a-5191a-us24.lbnl.us > c29s-50a-5191a-us24.lbnl.us spawn /usr/local/bin/ssh-441 -c 3des -x -l > lblnet c29s-50a-5191a-us24.lbnl.us CC > > NOTICE TO USERS > > > > Error: Check your passwd for c29s-50a-5191a-us24.lbnl.us > > ###### here clogin hangs, with the expect process consuming > 70% CPU. > > Any help would be appreciated. > > - Greg > > > > _______________________________________________ > 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 ------------------------------------------------------------------------------ Save Paper - Do you really need to print this e-mail? Visit www.virginmedia.com for more information, and more fun. This email and any attachments are or may be confidential and legally privileged and are sent solely for the attention of the addressee(s). If you have received this email in error, please delete it from your system: its use, disclosure or copying is unauthorised. Statements and opinions expressed in this email may not represent those of Virgin Media. Any representations or commitments in this email are subject to contract. Please note that we are migrating our email addresses to a company wide address of "@virginmedia.co.uk". If you are sending to a Telewest or ntl email address your email will be re-directed. Registered office: 160 Great Portland Street, London W1W 5QA. Registered in England and Wales with number 2591237 ============================================================================== From wmuriithi at iwayafrica.com Fri Oct 5 08:48:00 2007 From: wmuriithi at iwayafrica.com (William Muriithi) Date: Fri, 5 Oct 2007 11:48:00 +0300 Subject: [rancid] Rancid without radius Message-ID: <200710051148.00114.wmuriithi@iwayafrica.com> Hallo pals, I have a quick question that I don't seem to find answer from google search. We have issues setting up radius such that if radius is unavailable, the NAS can fall back to the local account. Yeah yeah, the last option in aaa command should be local, but for some reason, its not working. This mean we are still using local accounts Now, I am attempting to backup a pix device. The backup account is local and with enable 5 rights. The network guys have decided its not wise to give this account enable 15 access. The problem is, I am not able to have rancid log in to the pix device with enable 5 permission. Is anyone aware of how to achieve this? I would be grateful for any pointer? Thanks in advance William From david at infotrek.co.uk Fri Oct 5 09:47:03 2007 From: david at infotrek.co.uk (David Croft) Date: Fri, 5 Oct 2007 10:47:03 +0100 Subject: [rancid] Re: Rancid without radius In-Reply-To: <200710051148.00114.wmuriithi@iwayafrica.com> References: <200710051148.00114.wmuriithi@iwayafrica.com> Message-ID: Hi William, The PIX/ASA drops you in at level 0 after login when you use local authentication, you need to either "enable" (with the enable password) or "login" (with your own password) again. Try ths patch http://www.shrubbery.net/pipermail/rancid-discuss/2007-June/002252.html and then add to your .cloginrc add enacmd login Regards, David On 05/10/2007, William Muriithi wrote: > Hallo pals, > > I have a quick question that I don't seem to find answer from google search. > We have issues setting up radius such that if radius is unavailable, the NAS > can fall back to the local account. Yeah yeah, the last option in aaa command > should be local, but for some reason, its not working. This mean we are > still using local accounts > > Now, I am attempting to backup a pix device. The backup account is local and > with enable 5 rights. The network guys have decided its not wise to give this > account enable 15 access. > > The problem is, I am not able to have rancid log in to the pix device with > enable 5 permission. Is anyone aware of how to achieve this? I would be > grateful for any pointer? > > Thanks in advance > William > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From mloveley at plus.net Tue Oct 9 13:09:31 2007 From: mloveley at plus.net (Mark Loveley) Date: Tue, 9 Oct 2007 14:09:31 +0100 Subject: [rancid] Custom devices and ttys Message-ID: Hi I'm trying to customize a rancid plugin to work with an Ellacoya e30 which has a very cisco like interface. clogin works fine from the command line by bails out when run from cron. From cron it asks me to "press any key to continue", when I send a carriage return, or any other key it asks me the same thing again. it seems that the e30 behaves differently when there is a tty attached, as when I add -nottycopy after the spawn in the login script I get the same behavior on the cli as when it is run from cron without the ttycopy option. ie to get this behavior on the cli I changed set retval [ catch {spawn telnet $router} reason ] to set retval [ catch {spawn -nottycopy telnet $router} reason ] Anyone here got any experience with devices that behave like this? Or does anyone know the expect syntax to make rancid behave as if there is a tty? I'm reasonably sure it's a tty issue as I have manually set environment variables such as TERM,COLUMNS,LINES etc. A packet trace of the telnet session shows that when launched from cron the width and height is set to zero when it negotiates the window size. http://expect.nist.gov/FAQ.html#q26 implies there is a way to do this but helpfully you have to buy their book. http://www.issociate.de/board/post/181281/%22expect% 22_spawns_telnet_--_screen_height.html seems to solve a very similar issue in a perl script. Any ideas? Thanks -- | Mark Loveley Broadband Solutions for | Network Engineer home and business | PlusNet PLC @www.plus.net | Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY | Registered in England no: 3279013 + ------------ PlusNet - The smarter way to broadband ----------------+ From Todd at equivoice.com Tue Oct 9 17:17:53 2007 From: Todd at equivoice.com (Todd Heide) Date: Tue, 9 Oct 2007 12:17:53 -0500 Subject: [rancid] ASA Timeouts Message-ID: <082FEA82DC985B4F8A6B412D5AC4E22093D6D1@exchange.Equivoice.local> I have a weird problem, on a few ASA devices I get timeouts "clogin error: Error: TIMEOUT reached", yet from the command I can easily ssh into the devices, so I know it isn't a connectivity issue. I can login using the credentials in the .cloginrc file, and use the same setup for all the PIX/ASA logins save for the IP address, some work, some don't. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071009/1b2a1d30/attachment.html From david+rancid at luyer.net Tue Oct 9 17:37:39 2007 From: david+rancid at luyer.net (David Luyer) Date: Tue, 9 Oct 2007 10:37:39 -0700 (PDT) Subject: [rancid] Re: Custom devices and ttys In-Reply-To: References: Message-ID: <50023.208.201.244.10.1191951459.squirrel@www.luyer.net> Rather than messing with $LINES and $COLUMNS which are shell convenience variables, you might have more luck along the lines of: spawn telnetscript.sh $router and then in telnetscript.sh #!/bin/sh stty rows 1024 stty cols 1024 exec telnet $* I don't have the device in question to test, so, good luck! :) David. > Hi > > I'm trying to customize a rancid plugin to work with an Ellacoya e30 > which has a very cisco like interface. > clogin works fine from the command line by bails out when run from cron. > > From cron it asks me to "press any key to continue", when I send a > carriage return, or any other key it asks me the same thing again. > > it seems that the e30 behaves differently when there is a tty > attached, as when I add -nottycopy after the spawn in the login > script I get the same behavior on the cli as when it is run from cron > without the ttycopy option. > ie to get this behavior on the cli I changed > set retval [ catch {spawn telnet $router} reason ] > to > set retval [ catch {spawn -nottycopy telnet $router} > reason ] > > Anyone here got any experience with devices that behave like this? > Or does anyone know the expect syntax to make rancid behave as if > there is a tty? > > I'm reasonably sure it's a tty issue as I have manually set > environment variables such as TERM,COLUMNS,LINES etc. A packet trace > of the telnet session shows that when launched from cron the width > and height is set to zero when it negotiates the window size. > > http://expect.nist.gov/FAQ.html#q26 implies there is a way to do this > but helpfully you have to buy their book. > > http://www.issociate.de/board/post/181281/%22expect% > 22_spawns_telnet_--_screen_height.html seems to solve a very similar > issue in a perl script. > > Any ideas? > > Thanks > > -- > | Mark Loveley Broadband Solutions for > | Network Engineer home and business > | PlusNet PLC @www.plus.net > | Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY > | Registered in England no: 3279013 > + ------------ PlusNet - The smarter way to broadband ----------------+ > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From heas at shrubbery.net Tue Oct 9 17:40:54 2007 From: heas at shrubbery.net (john heasley) Date: Tue, 9 Oct 2007 17:40:54 +0000 Subject: [rancid] Re: Custom devices and ttys In-Reply-To: References: Message-ID: <20071009174054.GB1172@shrubbery.net> Tue, Oct 09, 2007 at 02:09:31PM +0100, Mark Loveley: > Hi > > I'm trying to customize a rancid plugin to work with an Ellacoya e30 > which has a very cisco like interface. > clogin works fine from the command line by bails out when run from cron. > > From cron it asks me to "press any key to continue", when I send a > carriage return, or any other key it asks me the same thing again. > > it seems that the e30 behaves differently when there is a tty > attached, as when I add -nottycopy after the spawn in the login > script I get the same behavior on the cli as when it is run from cron > without the ttycopy option. > ie to get this behavior on the cli I changed > set retval [ catch {spawn telnet $router} reason ] > to > set retval [ catch {spawn -nottycopy telnet $router} > reason ] > > Anyone here got any experience with devices that behave like this? > Or does anyone know the expect syntax to make rancid behave as if > there is a tty? > > I'm reasonably sure it's a tty issue as I have manually set > environment variables such as TERM,COLUMNS,LINES etc. A packet trace > of the telnet session shows that when launched from cron the width > and height is set to zero when it negotiates the window size. > > http://expect.nist.gov/FAQ.html#q26 implies there is a way to do this > but helpfully you have to buy their book. > > http://www.issociate.de/board/post/181281/%22expect%22_spawns_telnet_--_screen_height.html seems to solve a very similar > issue in a perl script. > > Any ideas? I think you've identified the problem correctly, the screen height of zero affecting a broken pager. Normally rancid sets the TERM to "network" in rancid.conf, which implies a height of 0. AND, clogin sends the command 'term length 0' to disable the pager. Assuming your device does not recognize the 'term length' command, try setting TERM to something which normally has a fixed height, such as vt100. Another possibility is to use hlogin, which has become somewhat the home of the bastard children, with the addition of a stty command to hard-code the height to something greater than 0. Note that hlogin also tries to disable the pager with HP's 'no page' command. From rancid at gheek.net Tue Oct 9 19:46:42 2007 From: rancid at gheek.net (Lance) Date: Tue, 09 Oct 2007 12:46:42 -0700 Subject: [rancid] Re: ASA Timeouts Message-ID: <20071009124642.8e114e4890519e5179c192e02d6bca26.b6c46cb6d7.wbe@email.secureserver.net> Todd, Have you tried "sudo su - " and then "source etc/rancid.conf" and then last but not least tried to connect to the devices after you have all the environmentals? -lance > -------- Original Message -------- > From: "Todd Heide" > Date: Tue, October 09, 2007 10:17 am > To: > > > I have a weird problem, on a few ASA devices I get timeouts "clogin > error: Error: TIMEOUT reached", yet from the command I can easily ssh > into the devices, so I know it isn't a connectivity issue. I can login > using the credentials in the .cloginrc file, and use the same setup for > all the PIX/ASA logins save for the IP address, some work, some don't.
_______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From Todd at equivoice.com Tue Oct 9 20:04:22 2007 From: Todd at equivoice.com (Todd Heide) Date: Tue, 9 Oct 2007 15:04:22 -0500 Subject: [rancid] Re: ASA Timeouts In-Reply-To: <20071009124642.8e114e4890519e5179c192e02d6bca26.b6c46cb6d7.wbe@email.secureserver.net> Message-ID: <082FEA82DC985B4F8A6B412D5AC4E22093D714@exchange.Equivoice.local> Yep, trying everything under the rancid user login. When I run bin/clogin it doesn't appear to be sending the password in the .cloginrc file. I have the entries Add password {telnetpd} {enablepd} Add method telnet For the ASA, when I try bin/clogin, it spawns telnet instead of SSH. Entries are add autoenable 0 add user rancid add cyphertype des add password {passwd} {passwd} add method ssh I do see updates on some devices, and not on others. If I just do either a telnet or ssh session under rancid user, I can connect OK, so I know the user/passwords are OK. Thanks -----Original Message----- From: Lance [mailto:rancid at gheek.net] Sent: Tuesday, October 09, 2007 2:47 PM To: Todd Heide Cc: rancid-discuss at shrubbery.net Subject: RE: [rancid] ASA Timeouts Todd, Have you tried "sudo su - " and then "source etc/rancid.conf" and then last but not least tried to connect to the devices after you have all the environmentals? -lance > -------- Original Message -------- > From: "Todd Heide" > Date: Tue, October 09, 2007 10:17 am > To: > > > I have a weird problem, on a few ASA devices I get timeouts "clogin > error: Error: TIMEOUT reached", yet from the command I can easily ssh > into the devices, so I know it isn't a connectivity issue. I can login > using the credentials in the .cloginrc file, and use the same setup for > all the PIX/ASA logins save for the IP address, some work, some don't.
_______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From Todd at equivoice.com Tue Oct 9 20:42:06 2007 From: Todd at equivoice.com (Todd Heide) Date: Tue, 9 Oct 2007 15:42:06 -0500 Subject: [rancid] Re: ASA Timeouts In-Reply-To: <20071009124642.8e114e4890519e5179c192e02d6bca26.b6c46cb6d7.wbe@email.secureserver.net> Message-ID: <082FEA82DC985B4F8A6B412D5AC4E22093D726@exchange.Equivoice.local> OK, here is something else that is weird. I have 4 devices showing up in Viewvc under a different author, none of these have been updated, and don't show up in the logs. Where would I find this at? Thanks Todd Heide Equivoice Inc. CCNA CWLSS CS-CISecS 847-235-3308 Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -----Original Message----- From: Lance [mailto:rancid at gheek.net] Sent: Tuesday, October 09, 2007 2:47 PM To: Todd Heide Cc: rancid-discuss at shrubbery.net Subject: RE: [rancid] ASA Timeouts Todd, Have you tried "sudo su - " and then "source etc/rancid.conf" and then last but not least tried to connect to the devices after you have all the environmentals? -lance > -------- Original Message -------- > From: "Todd Heide" > Date: Tue, October 09, 2007 10:17 am > To: > > > I have a weird problem, on a few ASA devices I get timeouts "clogin > error: Error: TIMEOUT reached", yet from the command I can easily ssh > into the devices, so I know it isn't a connectivity issue. I can login > using the credentials in the .cloginrc file, and use the same setup for > all the PIX/ASA logins save for the IP address, some work, some don't.
_______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From mark.meijerink at sara.nl Wed Oct 10 08:52:40 2007 From: mark.meijerink at sara.nl (Mark Meijerink) Date: Wed, 10 Oct 2007 10:52:40 +0200 Subject: [rancid] How-to guide adding a new vendor In-Reply-To: <20071009174054.GB1172@shrubbery.net> References: <20071009174054.GB1172@shrubbery.net> Message-ID: Hi there, I there a how-to guide or something alike to add a new vendor type to rancid? Which steps are neccesary to add a new vendor and which files do I have to edit. Thanks in advance. Regards, Mark From mloveley at plus.net Wed Oct 10 10:41:40 2007 From: mloveley at plus.net (Mark Loveley) Date: Wed, 10 Oct 2007 11:41:40 +0100 Subject: [rancid] Re: Custom devices and ttys In-Reply-To: <50023.208.201.244.10.1191951459.squirrel@www.luyer.net> References: <50023.208.201.244.10.1191951459.squirrel@www.luyer.net> Message-ID: <6191D61D-BA1D-494E-80FB-94958494B3CD@plus.net> On 9 Oct 2007, at 18:37, David Luyer wrote: > Rather than messing with $LINES and $COLUMNS which are shell > convenience > variables, you might have more luck along the lines of: > #!/bin/sh > stty rows 1024 > stty cols 1024 > exec telnet $* Already been down this path. Unfortunately cron has no controlling pty and so the script errors with a stty error. couldn't write file "/dev/tty": no such device or address while executing "exec /bin/stty cols 140 >/dev/tty" invoked from within "stty cols 140" I tried this by using the stty command within the expect script, as expect sees stty as a valid option. from the man page:- stty args changes terminal modes similarly to the external stty command. Thanks -- | Mark Loveley Broadband Solutions for | Network Engineer home and business | PlusNet PLC @www.plus.net | Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY | Registered in England no: 3279013 + ------------ PlusNet - The smarter way to broadband ----------------+ From mloveley at plus.net Wed Oct 10 11:22:41 2007 From: mloveley at plus.net (Mark Loveley) Date: Wed, 10 Oct 2007 12:22:41 +0100 Subject: [rancid] Re: Custom devices and ttys In-Reply-To: <20071009174054.GB1172@shrubbery.net> References: <20071009174054.GB1172@shrubbery.net> Message-ID: On 9 Oct 2007, at 18:40, john heasley wrote: > I think you've identified the problem correctly, the screen height > of zero > affecting a broken pager. Normally rancid sets the TERM to > "network" in > rancid.conf, which implies a height of 0. AND, clogin sends the > command > 'term length 0' to disable the pager. Assuming your device does not > recognize the 'term length' command, try setting TERM to something > which > normally has a fixed height, such as vt100. Unfortunately I had already tried vt100 as a TERM type. My issue is that when launched from cron it doesn't even get to disabling the pager. from the command line It reads the banner, matches the login prompt "Login:", sends my username, matches the password prompt "Password:" and sends my password, and gets logged in. from cron it matches the login prompt, but the device never prints the password prompt, just a "Press any key to continue (Q to quit)", if thats matched it sends "any key" and gets the same prompt back. So when connecting via cron I never get the chance to disable the pager (btw on this system the command needed is "no more" which is why I created a custom login script called e30login). > Another possibility is to use hlogin, which has become somewhat the > home > of the bastard children, with the addition of a stty command to > hard-code > the height to something greater than 0. Note that hlogin also > tries to > disable the pager with HP's 'no page' command. hlogin seems to spawn hpuifilter which I assume only strips nasty control characters. Using this from the command line I've no yet managed to get it to login. How do you suggest using stty to set the height? See my previous email for examples for failures using that from cron. -- | Mark Loveley Broadband Solutions for | Network Engineer home and business | PlusNet PLC @www.plus.net | Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY | Registered in England no: 3279013 + ------------ PlusNet - The smarter way to broadband ----------------+ From rancid at gheek.net Wed Oct 10 16:21:32 2007 From: rancid at gheek.net (Lance) Date: Wed, 10 Oct 2007 09:21:32 -0700 Subject: [rancid] Re: How-to guide adding a new vendor Message-ID: <20071010092132.8e114e4890519e5179c192e02d6bca26.0452e17814.wbe@email.secureserver.net> Mark, Off the top of my head without looking in places. rancid-fe create a new rancid file for the vendor (this file should call the login file) create a new login file for the new vendor That is my two cents. > -------- Original Message -------- > From: Mark Meijerink > Date: Wed, October 10, 2007 1:52 am > To: "rancid-discuss at shrubbery.net" > > > Hi there, > > I there a how-to guide or something alike to add a new vendor type to rancid? Which steps are neccesary to add a new vendor and which files do I have to edit. Thanks in advance. > > Regards, > Mark > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Wed Oct 10 16:42:13 2007 From: rancid at gheek.net (Lance) Date: Wed, 10 Oct 2007 09:42:13 -0700 Subject: [rancid] Re: ASA Timeouts Message-ID: <20071010094213.8e114e4890519e5179c192e02d6bca26.5960c231ca.wbe@email.secureserver.net> Todd, Make sure you don't have a * mentioned above those lines. add method * {telent} {ssh} I use the above when rancid runs because I have some PIXes that just don't like expect running ssh from cron. -lance > -------- Original Message -------- > From: "Todd Heide" > Date: Tue, October 09, 2007 1:04 pm > To: "Lance" > Cc: > > > Yep, trying everything under the rancid user login. When I run > bin/clogin it doesn't appear to be sending the password in > the .cloginrc file. > > I have the entries > > Add password {telnetpd} {enablepd} > Add method telnet > > For the ASA, when I try bin/clogin, it spawns telnet instead of SSH. > > Entries are > > add autoenable 0 > add user rancid > add cyphertype des > add password {passwd} {passwd} > add method ssh > > I do see updates on some devices, and not on others. > > If I just do either a telnet or ssh session under rancid user, I can > connect OK, so I know the user/passwords are OK. > > Thanks > > -----Original Message----- > From: Lance [mailto:rancid at gheek.net] > Sent: Tuesday, October 09, 2007 2:47 PM > To: Todd Heide > Cc: rancid-discuss at shrubbery.net > Subject: RE: [rancid] ASA Timeouts > > Todd, > > Have you tried "sudo su - " and then "source > etc/rancid.conf" and then last but not least tried to connect to the > devices after you have all the environmentals? > > -lance > > > -------- Original Message -------- > > From: "Todd Heide" > > Date: Tue, October 09, 2007 10:17 am > > To: > > > > > > I have a weird problem, on a few ASA devices I get timeouts "clogin > > error: Error: TIMEOUT reached", yet from the command I can easily ssh > > into the devices, so I know it isn't a connectivity issue. I can login > > using the credentials in the .cloginrc file, and use the same setup > for > > all the PIX/ASA logins save for the IP address, some work, some > don't.
_______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From david+rancid at luyer.net Wed Oct 10 16:52:38 2007 From: david+rancid at luyer.net (David Luyer) Date: Wed, 10 Oct 2007 09:52:38 -0700 (PDT) Subject: [rancid] Re: Custom devices and ttys In-Reply-To: <6191D61D-BA1D-494E-80FB-94958494B3CD@plus.net> References: <50023.208.201.244.10.1191951459.squirrel@www.luyer.net> <6191D61D-BA1D-494E-80FB-94958494B3CD@plus.net> Message-ID: <50175.208.201.244.10.1192035158.squirrel@www.luyer.net> > On 9 Oct 2007, at 18:37, David Luyer wrote: >> Rather than messing with $LINES and $COLUMNS which are shell >> convenience >> variables, you might have more luck along the lines of: >> #!/bin/sh >> stty rows 1024 >> stty cols 1024 >> exec telnet $* > > Already been down this path. Unfortunately cron has no controlling > pty and so the script errors with a stty error. > > couldn't write file "/dev/tty": no such device or address > while executing > "exec /bin/stty cols 140 >/dev/tty" > invoked from within > "stty cols 140" > > I tried this by using the stty command within the expect script, as > expect sees stty as a valid option. from the man page:- > stty args > changes terminal modes similarly to the external stty > command. The approach you tried failed because there is no tty at this point. However if you try the exact approach above (wrapping telnet and using spawn to call the wrapper) there is a tty. That's exactly what expect does (creates a tty). David. From heas at shrubbery.net Wed Oct 10 17:09:16 2007 From: heas at shrubbery.net (john heasley) Date: Wed, 10 Oct 2007 17:09:16 +0000 Subject: [rancid] Re: Custom devices and ttys In-Reply-To: References: <20071009174054.GB1172@shrubbery.net> Message-ID: <20071010170916.GB11926@shrubbery.net> Wed, Oct 10, 2007 at 12:22:41PM +0100, Mark Loveley: > > On 9 Oct 2007, at 18:40, john heasley wrote: > >I think you've identified the problem correctly, the screen height > >of zero > >affecting a broken pager. Normally rancid sets the TERM to > >"network" in > >rancid.conf, which implies a height of 0. AND, clogin sends the > >command > >'term length 0' to disable the pager. Assuming your device does not > >recognize the 'term length' command, try setting TERM to something > >which > >normally has a fixed height, such as vt100. > > Unfortunately I had already tried vt100 as a TERM type. My issue is > that when launched from cron it doesn't even get to disabling the pager. > > from the command line It reads the banner, matches the login prompt > "Login:", sends my username, matches the password prompt "Password:" > and sends my password, and gets logged in. > > from cron it matches the login prompt, but the device never prints > the password prompt, just a "Press any key to continue (Q to quit)", > if thats matched it sends "any key" and gets the same prompt back. > > So when connecting via cron I never get the chance to disable the > pager (btw on this system the command needed is "no more" which is > why I created a custom login script called e30login). > > >Another possibility is to use hlogin, which has become somewhat the > >home > >of the bastard children, with the addition of a stty command to > >hard-code > >the height to something greater than 0. Note that hlogin also > >tries to > >disable the pager with HP's 'no page' command. > > hlogin seems to spawn hpuifilter which I assume only strips nasty > control characters. > Using this from the command line I've no yet managed to get it to login. tried hlogin or hpuifilter? try hlogin, which allocates a pty for telnet/ssh. > How do you suggest using stty to set the height? See my previous > email for examples for failures using that from cron. As david luyer said, spawn should allocate a pty for you, which should give you a controlling terminal. so, I think that stty whatever > spawn_out(slave,name) will affect the slave (telnet/ssh) side of the pty From mjones at mnsi.net Wed Oct 10 20:26:30 2007 From: mjones at mnsi.net (Mark Jones) Date: Wed, 10 Oct 2007 16:26:30 -0400 Subject: [rancid] hourly polling References: <20071009174054.GB1172@shrubbery.net> <20071010170916.GB11926@shrubbery.net> Message-ID: <0f7401c80b7b$d76013a0$3704a8c0@LONDONLAPTOP> I have rancid polling all my routers once every hour. There is one device that I would prefer to not poll that often. is there an easy way to do that? From jlewis at lewis.org Wed Oct 10 20:32:24 2007 From: jlewis at lewis.org (Jon Lewis) Date: Wed, 10 Oct 2007 16:32:24 -0400 (EDT) Subject: [rancid] Re: hourly polling In-Reply-To: <0f7401c80b7b$d76013a0$3704a8c0@LONDONLAPTOP> References: <20071009174054.GB1172@shrubbery.net> <20071010170916.GB11926@shrubbery.net> <0f7401c80b7b$d76013a0$3704a8c0@LONDONLAPTOP> Message-ID: On Wed, 10 Oct 2007, Mark Jones wrote: > I have rancid polling all my routers once every hour. There is one device > that I would prefer to not poll that often. is there an easy way to do that? You could put it in its own group, and then explicitly do-diffs for each group hourly, except for that one. ---------------------------------------------------------------------- Jon Lewis | I route Senior Network Engineer | therefore you are Atlantic Net | _________ http://www.lewis.org/~jlewis/pgp for PGP public key_________ From saku+rancid at ytti.fi Thu Oct 11 05:44:27 2007 From: saku+rancid at ytti.fi (Saku Ytti) Date: Thu, 11 Oct 2007 08:44:27 +0300 Subject: [rancid] Re: hourly polling In-Reply-To: <0f7401c80b7b$d76013a0$3704a8c0@LONDONLAPTOP> References: <20071010170916.GB11926@shrubbery.net> <0f7401c80b7b$d76013a0$3704a8c0@LONDONLAPTOP> Message-ID: <20071011054427.GA8514@mx.ytti.net> On (2007-10-10 16:26 -0400), Mark Jones wrote: > I have rancid polling all my routers once every hour. There is one device > that I would prefer to not poll that often. is there an easy way to do that? What I do, to accomplish same: 0 0,6,12,18 * * * nice -n19 rancid-run 00 23 * * sat nice -n19 rancid-run CPE -- ++ytti From saku+rancid at ytti.fi Thu Oct 11 05:46:49 2007 From: saku+rancid at ytti.fi (Saku Ytti) Date: Thu, 11 Oct 2007 08:46:49 +0300 Subject: [rancid] Re: hourly polling In-Reply-To: <20071011054427.GA8514@mx.ytti.net> References: <20071010170916.GB11926@shrubbery.net> <0f7401c80b7b$d76013a0$3704a8c0@LONDONLAPTOP> <20071011054427.GA8514@mx.ytti.net> Message-ID: <20071011054649.GB8514@mx.ytti.net> > > I have rancid polling all my routers once every hour. There is one device > > that I would prefer to not poll that often. is there an easy way to do that? > > What I do, to accomplish same: > 0 0,6,12,18 * * * nice -n19 rancid-run > 00 23 * * sat nice -n19 rancid-run CPE Forgot to mention, that you should also remove 'CPE' from $LIST_OF_GROUPS in rancid.conf. -- ++ytti From mloveley at plus.net Thu Oct 11 09:30:31 2007 From: mloveley at plus.net (Mark Loveley) Date: Thu, 11 Oct 2007 10:30:31 +0100 Subject: [rancid] Re: Custom devices and ttys In-Reply-To: <50175.208.201.244.10.1192035158.squirrel@www.luyer.net> References: <50023.208.201.244.10.1191951459.squirrel@www.luyer.net> <6191D61D-BA1D-494E-80FB-94958494B3CD@plus.net> <50175.208.201.244.10.1192035158.squirrel@www.luyer.net> Message-ID: <0D7E6638-7B59-4862-9E62-C1AE795A97DA@plus.net> On 10 Oct 2007, at 17:52, David Luyer wrote: > The approach you tried failed because there is no tty at this point. > However if you try the exact approach above (wrapping telnet and using > spawn to call the wrapper) there is a tty. That's exactly what expect > does (creates a tty). Suddenly the light dawns and I see what you are saying. That works fine for me. I'll tidy up my scripts and if anyone is interested send them in. Thanks for your help. -- | Mark Loveley Broadband Solutions for | Network Engineer home and business | PlusNet PLC @www.plus.net | Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY | Registered in England no: 3279013 + ------------ PlusNet - The smarter way to broadband ----------------+ From greenlog at gmail.com Thu Oct 11 12:16:22 2007 From: greenlog at gmail.com (Allen Tsang) Date: Thu, 11 Oct 2007 08:16:22 -0400 Subject: [rancid] Re: hourly polling In-Reply-To: <20071011054649.GB8514@mx.ytti.net> References: <20071010170916.GB11926@shrubbery.net> <0f7401c80b7b$d76013a0$3704a8c0@LONDONLAPTOP> <20071011054427.GA8514@mx.ytti.net> <20071011054649.GB8514@mx.ytti.net> Message-ID: <470E1416.90805@advance.net> For those that didn't understand the explanation (I found it a little too terse and lacking), the idea to to separate your routers and devices into groups based on your polling interval. So for example, you have four groups: general, testing, monitor_weekly and monitor_daily, such that general is updated every 15 minutes, a testing group is never updated automatically (for testing all those fancy netscaler hacks you've picked up on this mailing-list ;p), monitor_weekly gets polled once every Saturday at 2am and monitor_daily is polled every day at 4am. You would set up three crontab entries (you don't need testing, because well, it's only for testing, right?): */15 * * * * rancid-run general 0 4 * * * rancid-run monitor_daily 0 2 * * sat rancid-run monitor_weekly You would never want to run rancid-run, since that would cycle through the whole list of groups defined in your rancid.conf. Note that now you would have to set up mail aliases for all these new groups, if you want to still receive notifications from them. This is the one major minus about partitioning all your stuff into separate groups; if your infrastructure's mail configuration is ... complicated ... like mine is, it's a real PITA. This is the sort of stuff that belongs on the wiki, which I may get around to doing this weekend (I just had a pretty bad on-call week; sysadmining is hard :/ ) - allen tsang Saku Ytti wrote: >>> I have rancid polling all my routers once every hour. There is one device >>> that I would prefer to not poll that often. is there an easy way to do that? >>> >> What I do, to accomplish same: >> 0 0,6,12,18 * * * nice -n19 rancid-run >> 00 23 * * sat nice -n19 rancid-run CPE >> > > Forgot to mention, that you should also remove 'CPE' from $LIST_OF_GROUPS > in rancid.conf. > > From Shon.Hender at spservicing.com Thu Oct 11 16:04:31 2007 From: Shon.Hender at spservicing.com (Shon Hender) Date: Thu, 11 Oct 2007 10:04:31 -0600 Subject: [rancid] "config fetcher problems" Message-ID: <70262067E7786B458AF587D944A209590157C3AC@SLEX1.fairbankscapital.com> Each time I run rancid-run at least 1 CatOS device fails. Is this a known issue and is there a known fix for this? Here is the email notification I'm getting: The following routers have not been successfully contacted for more than 4 hours. -rw-r----- 1 rancid rancid 407973 Oct 7 04:15 jxa6509a -rw-r----- 1 rancid rancid 79815 Oct 10 04:02 jxd4006c -rw-r----- 1 rancid rancid 79992 Oct 10 04:02 jxc4006b Thanks, -Shon From mario.carassale at sohonet.co.uk Thu Oct 11 16:14:31 2007 From: mario.carassale at sohonet.co.uk (mario.carassale) Date: Thu, 11 Oct 2007 17:14:31 +0100 Subject: [rancid] Rancid email notification help Message-ID: <470E4BE7.2010701@sohonet.co.uk> An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071011/593b1061/attachment.html From James.Munroe at gnb.ca Mon Oct 15 10:17:42 2007 From: James.Munroe at gnb.ca (Munroe, James (DSS/MAS)) Date: Mon, 15 Oct 2007 07:17:42 -0300 Subject: [rancid] Newbie Question...sorry! Message-ID: Hello, Could someone please tell me if there is a way to add a variable to a command file for processing with nlogin? For example I want to issue the following command on 170 simliar devices: "get event > tftp 192.168.1.1 .log" The needs to be unique for each device. I don't care if it's the device's IP or hostname or whatever...as long as it is unique. Hostname or IP would be nice though :-) Also when using nlogin or clogin what's the easiest way to specify a large number of remote devices? I've got like 380+ firewalls and routers that I'd like to issue a nlogin/clogin against. I know the command line gives you the option to list each deviceon the same command line...but I was looking for something a little more manageable. I'd eventually like to automate this...or script it. Any help or tips would be greatly appreciated!!! Thanks! Jim From CBell at thig.com Mon Oct 15 14:04:47 2007 From: CBell at thig.com (Chris Bell) Date: Mon, 15 Oct 2007 10:04:47 -0400 Subject: [rancid] Rancid-run not writing configs Message-ID: <5A7F36775DDD854CB1873E5F790C4D3709F59EBC@mailhost.thig.com> Hi all.. I've searched the email list for the last several months for a similar situation and have not found anything that applies. Hopefully somebody can set me straight as I'm sure it's a simple configuration error on my part. OS = Ubuntu 7.04 lts Rancid = rancid-2.3.1 Expect = expect_5.43.0 I can ssh into any of HP devices (3400cl-48) from the same rancid server, as user rancid, with no error. I can "clogin 192.168.1.1" to each device no error. When I "clogin -c 'sh run' 192.168.1.1" rancid hangs and will no complete the command. When I run /home/rancid/bin/rancid-run I get the following messages in the /home/rancid/var/rancid/logs file: Getting missed routers: round 1. 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; ===================================== Getting missed routers: round 2. 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; ===================================== Getting missed routers: round 3. 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; ===================================== Getting missed routers: round 4. 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; I am using a radius server to authenticate, but I also have the correct password in my /.cloginrc script. I verified this by sshing manually using the username and password listed in there. Suggestions, help, advice.. anything would be much appreciated! Thanks kindly in advance. Christopher Bell CCNA, MCP, Network + Chris Bell Systems, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From shawn at smorris.com Mon Oct 15 14:12:41 2007 From: shawn at smorris.com (Shawn Morris) Date: Mon, 15 Oct 2007 09:12:41 -0500 Subject: [rancid] Re: Newbie Question...sorry! In-Reply-To: References: Message-ID: James, in the past when I've needed to do something like this I've just written a little shell script and had that pass the router name to the xlogin command. Also you can then just read the list of routers from a text file, database, etc. On 10/15/07, Munroe, James (DSS/MAS) wrote: > Hello, > > Could someone please tell me if there is a way to add a variable to a command file for processing with nlogin? For example I want to issue the following command on 170 simliar devices: "get event > tftp 192.168.1.1 .log" The needs to be unique for each device. I don't care if it's the device's IP or hostname or whatever...as long as it is unique. Hostname or IP would be nice though :-) > > Also when using nlogin or clogin what's the easiest way to specify a large number of remote devices? I've got like 380+ firewalls and routers that I'd like to issue a nlogin/clogin against. I know the command line gives you the option to list each deviceon the same command line...but I was looking for something a little more manageable. I'd eventually like to automate this...or script it. > > Any help or tips would be greatly appreciated!!! > > Thanks! > > Jim > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- Shawn Morris IP Development - NTT America shawn at smorris.com/shawn at ntt.net/shawn at us.ntt.net v: +1 214 915 1361 f: +1 815 327 3016 From rancid at gheek.net Mon Oct 15 16:17:14 2007 From: rancid at gheek.net (Lance) Date: Mon, 15 Oct 2007 09:17:14 -0700 Subject: [rancid] Re: Rancid-run not writing configs Message-ID: <20071015091714.8e114e4890519e5179c192e02d6bca26.5b14937717.wbe@email.secureserver.net> When you are running rancid-run are you running it as the same user you clogin to the device as? If you are doing HP devices why are you using clogin. Why not hlogin or hpuifilter? > -------- Original Message -------- > From: Chris Bell > Date: Mon, October 15, 2007 7:04 am > To: "'rancid-discuss at shrubbery.net'" > > > Hi all.. I've searched the email list for the last several months for a > similar situation and have not found anything that applies. Hopefully > somebody can set me straight as I'm sure it's a simple configuration error > on my part. > > OS = Ubuntu 7.04 lts > Rancid = rancid-2.3.1 > Expect = expect_5.43.0 > > I can ssh into any of HP devices (3400cl-48) from the same rancid server, as > user rancid, with no error. I can "clogin 192.168.1.1" to each device no > error. When I "clogin -c 'sh run' 192.168.1.1" rancid hangs and will no > complete the command. When I run /home/rancid/bin/rancid-run I get the > following messages in the /home/rancid/var/rancid/logs file: > > Getting missed routers: round 1. > 192.168.1.1 clogin error: Error: Couldn't login > 192.168.1.1: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.1: End of run not found > ; > 192.168.1.2 clogin error: Error: Couldn't login > 192.168.1.2: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.2: End of run not found > ; > ===================================== > Getting missed routers: round 2. > 192.168.1.2 clogin error: Error: Couldn't login > 192.168.1.2: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.2: End of run not found > ; > 192.168.1.1 clogin error: Error: Couldn't login > 192.168.1.1: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.1: End of run not found > ; > ===================================== > Getting missed routers: round 3. > 192.168.1.1 clogin error: Error: Couldn't login > 192.168.1.1: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.1: End of run not found > ; > 192.168.1.2 clogin error: Error: Couldn't login > 192.168.1.2: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.2: End of run not found > ; > ===================================== > Getting missed routers: round 4. > 192.168.1.2 clogin error: Error: Couldn't login > 192.168.1.2: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.2: End of run not found > ; > 192.168.1.1 clogin error: Error: Couldn't login > 192.168.1.1: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.1: End of run not found > ; > > I am using a radius server to authenticate, but I also have the correct > password in my /.cloginrc script. I verified this by sshing manually using > the username and password listed in there. > > Suggestions, help, advice.. anything would be much appreciated! Thanks > kindly in advance. > > Christopher Bell CCNA, MCP, Network + > > > > Chris Bell > Systems, ext 1734 > > > > > CONFIDENTIAL NOTICE: This email including any attachments, contains > confidential information belonging to the sender. It may also be > privileged or otherwise protected by work product immunity or other > legal rules. This information is intended only for the use of the > individual or entity named above. If you are not the intended > recipient, you are hereby notified that any disclosure, copying, > distribution or the taking of any action in reliance on the contents > of this emailed information is strictly prohibited. If you have > received this email in error, please immediately notify us by > reply email of the error and then delete this email immediately. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From cgauthie at pcc.edu Mon Oct 15 17:35:19 2007 From: cgauthie at pcc.edu (Chris Gauthier) Date: Mon, 15 Oct 2007 10:35:19 -0700 Subject: [rancid] Re: Rancid-run not writing configs In-Reply-To: <20071015091714.8e114e4890519e5179c192e02d6bca26.5b14937717.wbe@email.secureserver.net> References: <20071015091714.8e114e4890519e5179c192e02d6bca26.5b14937717.wbe@email.secureserver.net> Message-ID: <4713A4D7.3030208@pcc.edu> Or, if your HP is one of the ones that Foundry Networks OEM's for HP, why not flogin? Chris Lance wrote: > When you are running rancid-run are you running it as the same user you > clogin to the device as? > > If you are doing HP devices why are you using clogin. Why not hlogin or > hpuifilter? > > >> -------- Original Message -------- >> From: Chris Bell >> Date: Mon, October 15, 2007 7:04 am >> To: "'rancid-discuss at shrubbery.net'" >> >> >> Hi all.. I've searched the email list for the last several months for a >> similar situation and have not found anything that applies. Hopefully >> somebody can set me straight as I'm sure it's a simple configuration error >> on my part. >> >> OS = Ubuntu 7.04 lts >> Rancid = rancid-2.3.1 >> Expect = expect_5.43.0 >> >> I can ssh into any of HP devices (3400cl-48) from the same rancid server, as >> user rancid, with no error. I can "clogin 192.168.1.1" to each device no >> error. When I "clogin -c 'sh run' 192.168.1.1" rancid hangs and will no >> complete the command. When I run /home/rancid/bin/rancid-run I get the >> following messages in the /home/rancid/var/rancid/logs file: >> >> Getting missed routers: round 1. >> 192.168.1.1 clogin error: Error: Couldn't login >> 192.168.1.1: missed cmd(s): show stack,show module,show flash,show >> version,show system-information,write term >> 192.168.1.1: End of run not found >> ; >> 192.168.1.2 clogin error: Error: Couldn't login >> 192.168.1.2: missed cmd(s): show stack,show module,show flash,show >> version,show system-information,write term >> 192.168.1.2: End of run not found >> ; >> ===================================== >> Getting missed routers: round 2. >> 192.168.1.2 clogin error: Error: Couldn't login >> 192.168.1.2: missed cmd(s): show stack,show module,show flash,show >> version,show system-information,write term >> 192.168.1.2: End of run not found >> ; >> 192.168.1.1 clogin error: Error: Couldn't login >> 192.168.1.1: missed cmd(s): show stack,show module,show flash,show >> version,show system-information,write term >> 192.168.1.1: End of run not found >> ; >> ===================================== >> Getting missed routers: round 3. >> 192.168.1.1 clogin error: Error: Couldn't login >> 192.168.1.1: missed cmd(s): show stack,show module,show flash,show >> version,show system-information,write term >> 192.168.1.1: End of run not found >> ; >> 192.168.1.2 clogin error: Error: Couldn't login >> 192.168.1.2: missed cmd(s): show stack,show module,show flash,show >> version,show system-information,write term >> 192.168.1.2: End of run not found >> ; >> ===================================== >> Getting missed routers: round 4. >> 192.168.1.2 clogin error: Error: Couldn't login >> 192.168.1.2: missed cmd(s): show stack,show module,show flash,show >> version,show system-information,write term >> 192.168.1.2: End of run not found >> ; >> 192.168.1.1 clogin error: Error: Couldn't login >> 192.168.1.1: missed cmd(s): show stack,show module,show flash,show >> version,show system-information,write term >> 192.168.1.1: End of run not found >> ; >> >> I am using a radius server to authenticate, but I also have the correct >> password in my /.cloginrc script. I verified this by sshing manually using >> the username and password listed in there. >> >> Suggestions, help, advice.. anything would be much appreciated! Thanks >> kindly in advance. >> >> Christopher Bell CCNA, MCP, Network + >> >> >> >> Chris Bell >> Systems, ext 1734 >> >> >> >> >> CONFIDENTIAL NOTICE: This email including any attachments, contains >> confidential information belonging to the sender. It may also be >> privileged or otherwise protected by work product immunity or other >> legal rules. This information is intended only for the use of the >> individual or entity named above. If you are not the intended >> recipient, you are hereby notified that any disclosure, copying, >> distribution or the taking of any action in reliance on the contents >> of this emailed information is strictly prohibited. If you have >> received this email in error, please immediately notify us by >> reply email of the error and then delete this email immediately. >> _______________________________________________ >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071015/798c7abd/attachment.html From heas at shrubbery.net Mon Oct 15 17:40:27 2007 From: heas at shrubbery.net (john heasley) Date: Mon, 15 Oct 2007 10:40:27 -0700 Subject: [rancid] Re: Newbie Question...sorry! In-Reply-To: References: Message-ID: <20071015174027.GD27977@shrubbery.net> Mon, Oct 15, 2007 at 07:17:42AM -0300, Munroe, James (DSS/MAS): > Could someone please tell me if there is a way to add a variable to a command file for processing with nlogin? For example I want to issue the following command on 170 simliar devices: "get event > tftp 192.168.1.1 .log" The needs to be unique for each device. I don't care if it's the device's IP or hostname or whatever...as long as it is unique. Hostname or IP would be nice though :-) as shawn suggested, process one device at a time and wrap it in a shell script which passes -E to the script and use -s with your own script OR use -c instead of -E=. > Also when using nlogin or clogin what's the easiest way to specify a large number of remote devices? I've got like 380+ firewalls and routers that I'd like to issue a nlogin/clogin against. I know the command line gives you the option to list each deviceon the same command line...but I was looking for something a little more manageable. I'd eventually like to automate this...or script it. xargs(1) From cstave at gmail.com Mon Oct 15 15:57:35 2007 From: cstave at gmail.com (Chris Stave) Date: Mon, 15 Oct 2007 11:57:35 -0400 Subject: [rancid] Re: Newbie Question...sorry! In-Reply-To: References: Message-ID: <5471c93d0710150857s3cf8ca68t73b2f26c31d8b2d4@mail.gmail.com> I've made a script to call clogin, our devices are numbered fairly sequentially, from 10.0.0.1 to 10.0.0.86 with cluster members getting 10.0.1.x and 10.0.2.x , etc... I put whatever commands I want to run into cmds.txt and then make sure that the switches I want those commands run on are represented in the script. A slight change to this would be to put the actual command you want to run in in place of the cmds.txt, which would make it easy to specify the ip address as a filename for the log. This obviously works better if your devices are all similarly numbered. I've appended the script, but do note that it won't work for you without changes, but just as an example of how I did it. I suspect that there is a cleaner way to do the conditional statements, but this way worked for me. (As a bonus, is there an easy way to avoid the repeated "-o $i =" in the script below?) ****************************** ************************************************************ for (( i = 1; i <= 86; i++ )) do /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.0.$i if [ $i = 6 -o $i = 12 -o $i = 13 -o $i = 14 -o $i = 16 -o $i = 19 -o $i = 23 -o $i = 27 -o $i = 30 -o $i = 32 -o $i = 37 -o $i = 44 -o $i = 45 -o $i = 46 -o $i = 48 -o $i = 49 -o $i = 52 -o $i = 53 -o $i = 55 -o $i = 56 -o $i = 57 -o $i = 58 -o $i = 59 -o $i = 60 -o $i = 61 -o $i = 64 -o $i = 65 -o $i = 70 -o $i = 71 -o $i = 81 -o $i = 72 -o $i = 73 -o $i = 77 -o $i = 82 -o $i = 83 -o $i = 84 -o $i = 85 -o $i = 86 ]; then /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.1.$i fi if [ $i = 6 -o $i = 12 -o $i = 14 -o $i = 23 -o $i = 37 -o $i = 44 -o $i = 45 -o $i = 52 -o $i = 53 -o $i = 57 -o $i = 61 -o $i = 64 -o $i = 72 -o $i = 73 -o $i = 77 -o $i = 83 -o $i = 86 ]; then /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.2.$i fi if [ $i = 6 -o $i = 12 -o $i = 37 -o $i = 53 -o $i = 57 -o $i = 61 -o $i=64 ]; t hen /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.3.$i fi done *******************************************************************************************************8 good luck with it! On 10/15/07, Munroe, James (DSS/MAS) wrote: > > Hello, > > Could someone please tell me if there is a way to add a variable to a > command file for processing with nlogin? For example I want to issue the > following command on 170 simliar devices: "get event > tftp 192.168.1.1.log" The needs to be unique for each device. I > don't care if it's the device's IP or hostname or whatever...as long as it > is unique. Hostname or IP would be nice though :-) > > Also when using nlogin or clogin what's the easiest way to specify a large > number of remote devices? I've got like 380+ firewalls and routers that I'd > like to issue a nlogin/clogin against. I know the command line gives you > the option to list each deviceon the same command line...but I was looking > for something a little more manageable. I'd eventually like to automate > this...or script it. > > Any help or tips would be greatly appreciated!!! > > Thanks! > > Jim > _______________________________________________ > 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: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071015/afa02e8e/attachment.html From atsang at advance.net Mon Oct 15 19:05:38 2007 From: atsang at advance.net (Allen Tsang) Date: Mon, 15 Oct 2007 15:05:38 -0400 Subject: [rancid] Re: Newbie Question...sorry! In-Reply-To: <5471c93d0710150857s3cf8ca68t73b2f26c31d8b2d4@mail.gmail.com> References: Message-ID: <4713BA02.7050405@advance.net> zomg lulz! holy moly i-can-see-forever-levels of phail, this reminds me of the hijinks that the eventual biz-tech refugees pulled on a daily basis in CS111 ^^;;;; Sorry, I'm being mean.... please do a 'man router.db'. most of the answers to your questions lie there; you specify plenty of conditions for your routers and will get a nice filtered amount of logging information via email. it's the whole point of rancid! OTOH, I see that you're just surfing on the back of the expect script to run a custom command.... I'll tell you how, but holy moly please learn to properly write proper bash scripts!!!... (e.g. use a real list, dude, that's the most ugly if statement I've seen in years and years and years): LIST="6 12 14 16 19 23" for element in $LIST do LOGGING=10.0.0.$element clogin -x /home/rancid/cmds.txt 10.0.0.$element done Use the "LOGGING" environmental variable in your custom clogin script to output wherever you want your output to be. repeat if you so desire, for ips in other ranges. And please learn to script properly! :D - allen tsang Chris Stave wrote: > I've made a script to call clogin, our devices are numbered fairly > sequentially, from 10.0.0.1 to 10.0.0.86 > with cluster members getting 10.0.1.x and 10.0.2.x , > etc... > I put whatever commands I want to run into cmds.txt and then make sure > that the switches I want those commands run on are represented in the > script. A slight change to this would be to put the actual command you > want to run in in place of the cmds.txt, which would make it easy to > specify the ip address as a filename for the log. > > This obviously works better if your devices are all similarly numbered. > > I've appended the script, but do note that it won't work for you without > changes, but just as an example of how I did it. I suspect that there > is a cleaner way to do the conditional statements, but this way worked > for me. (As a bonus, is there an easy way to avoid the repeated "-o $i > =" in the script below?) > > ****************************** > ************************************************************ > for (( i = 1; i <= 86; i++ )) > do > /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.0.$i > if [ $i = 6 -o $i = 12 -o $i = 13 -o $i = 14 -o $i = 16 -o $i = 19 -o $i > = 23 -o > $i = 27 -o $i = 30 -o $i = 32 -o $i = 37 -o $i = 44 -o $i = 45 -o $i = > 46 -o $i > = 48 -o $i = 49 -o $i = 52 -o $i = 53 -o $i = 55 -o $i = 56 -o $i = 57 > -o $i = > 58 -o $i = 59 -o $i = 60 -o $i = 61 -o $i = 64 -o $i = 65 -o $i = 70 -o > $i = 71 > -o $i = 81 -o $i = 72 -o $i = 73 -o $i = 77 -o $i = 82 -o $i = 83 -o $i > = 84 -o > $i = 85 -o $i = 86 ]; then > /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.1.$i > fi > if [ $i = 6 -o $i = 12 -o $i = 14 -o $i = 23 -o $i = 37 -o $i = 44 -o $i > = 45 -o > $i = 52 -o $i = 53 -o $i = 57 -o $i = 61 -o $i = 64 -o $i = 72 -o $i = > 73 -o $i > = 77 -o $i = 83 -o $i = 86 ]; then > /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.2.$i > fi > if [ $i = 6 -o $i = 12 -o $i = 37 -o $i = 53 -o $i = 57 -o $i = 61 -o > $i=64 ]; t > hen > /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.3.$i > fi > done > > *******************************************************************************************************8 > > good luck with it! > > > On 10/15/07, *Munroe, James (DSS/MAS)* > wrote: > > Hello, > > Could someone please tell me if there is a way to add a variable to > a command file for processing with nlogin? For example I want to > issue the following command on 170 simliar devices: "get event > > tftp 192.168.1.1 .log" The > needs to be unique for each device. I don't care if > it's the device's IP or hostname or whatever...as long as it is > unique. Hostname or IP would be nice though :-) > > Also when using nlogin or clogin what's the easiest way to specify a > large number of remote devices? I've got like 380+ firewalls and > routers that I'd like to issue a nlogin/clogin against. I know the > command line gives you the option to list each deviceon the same > command line...but I was looking for something a little more > manageable. I'd eventually like to automate this...or script it. > > Any help or tips would be greatly appreciated!!! > > Thanks! > > Jim > _______________________________________________ > 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 David.Stewart at asurion.com Mon Oct 15 21:10:47 2007 From: David.Stewart at asurion.com (Stewart, David) Date: Mon, 15 Oct 2007 16:10:47 -0500 Subject: [rancid] Re: Rancid-run not writing configs Message-ID: This is virtually the same problem I asked about this past June 2007( Re: missed cmd issues - "wr term"). Rancid simply fails on some devices that worked for months previously. The failure becomes a regular failure. Part of life with rancid. The only response I got at that time that seemed to fit was that the problem may be related to the Linux platform...e.g. no problems found on FreeBSD, but has been seen on other Linux products. It seems a common problem with no other solution to date. I just live with it and rely on other products to cover the gaps. _____ From: Chris Gauthier [mailto:cgauthie at pcc.edu] Sent: Monday, October 15, 2007 12:35 PM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] Re: Rancid-run not writing configs Or, if your HP is one of the ones that Foundry Networks OEM's for HP, why not flogin? Chris Lance wrote: When you are running rancid-run are you running it as the same user you clogin to the device as? If you are doing HP devices why are you using clogin. Why not hlogin or hpuifilter? -------- Original Message -------- From: Chris Bell Date: Mon, October 15, 2007 7:04 am To: "'rancid-discuss at shrubbery.net'" Hi all.. I've searched the email list for the last several months for a similar situation and have not found anything that applies. Hopefully somebody can set me straight as I'm sure it's a simple configuration error on my part. OS = Ubuntu 7.04 lts Rancid = rancid-2.3.1 Expect = expect_5.43.0 I can ssh into any of HP devices (3400cl-48) from the same rancid server, as user rancid, with no error. I can "clogin 192.168.1.1" to each device no error. When I "clogin -c 'sh run' 192.168.1.1" rancid hangs and will no complete the command. When I run /home/rancid/bin/rancid-run I get the following messages in the /home/rancid/var/rancid/logs file: Getting missed routers: round 1. 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; ===================================== Getting missed routers: round 2. 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; ===================================== Getting missed routers: round 3. 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; ===================================== Getting missed routers: round 4. 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; I am using a radius server to authenticate, but I also have the correct password in my /.cloginrc script. I verified this by sshing manually using the username and password listed in there. Suggestions, help, advice.. anything would be much appreciated! Thanks kindly in advance. Christopher Bell CCNA, MCP, Network + Chris Bell Systems, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071015/25f96ffe/attachment.html From CBell at thig.com Mon Oct 15 23:43:08 2007 From: CBell at thig.com (Chris Bell) Date: Mon, 15 Oct 2007 19:43:08 -0400 Subject: [rancid] Re: Rancid-run not writing configs Message-ID: <5A7F36775DDD854CB1873E5F790C4D3709F59ECE@mailhost.thig.com> This was actually fixed today via some good advice from a mentor of mine who also subscribes to this mail list. The version of Rancid I was running was 2.3.1. When using HP devices, you must use the version listed 2.3.2a6. I simply installed the updated version over my already configured (wrong) version and Voila! It works. Now if I can just figure out how I screwed up my cvsweb install... I'll be doing good. Thanks for all the help... great group, and RANCID is a must have. -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net]On Behalf Of Stewart, David Sent: Monday, October 15, 2007 5:11 PM To: 'Chris Gauthier'; 'rancid-discuss at shrubbery.net' Subject: [rancid] Re: Rancid-run not writing configs This is virtually the same problem I asked about this past June 2007( Re: missed cmd issues - "wr term"). Rancid simply fails on some devices that worked for months previously. The failure becomes a regular failure. Part of life with rancid. The only response I got at that time that seemed to fit was that the problem may be related to the Linux platform...e.g. no problems found on FreeBSD, but has been seen on other Linux products. It seems a common problem with no other solution to date. I just live with it and rely on other products to cover the gaps. _____ From: Chris Gauthier [mailto:cgauthie at pcc.edu] Sent: Monday, October 15, 2007 12:35 PM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] Re: Rancid-run not writing configs Or, if your HP is one of the ones that Foundry Networks OEM's for HP, why not flogin? Chris Lance wrote: When you are running rancid-run are you running it as the same user you clogin to the device as? If you are doing HP devices why are you using clogin. Why not hlogin or hpuifilter? -------- Original Message -------- From: Chris Bell Date: Mon, October 15, 2007 7:04 am To: "'rancid-discuss at shrubbery.net'" Hi all.. I've searched the email list for the last several months for a similar situation and have not found anything that applies. Hopefully somebody can set me straight as I'm sure it's a simple configuration error on my part. OS = Ubuntu 7.04 lts Rancid = rancid-2.3.1 Expect = expect_5.43.0 I can ssh into any of HP devices (3400cl-48) from the same rancid server, as user rancid, with no error. I can "clogin 192.168.1.1" to each device no error. When I "clogin -c 'sh run' 192.168.1.1" rancid hangs and will no complete the command. When I run /home/rancid/bin/rancid-run I get the following messages in the /home/rancid/var/rancid/logs file: Getting missed routers: round 1. 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; ===================================== Getting missed routers: round 2. 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; ===================================== Getting missed routers: round 3. 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; ===================================== Getting missed routers: round 4. 192.168.1.2 clogin error: Error: Couldn't login 192.168.1.2: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.2: End of run not found ; 192.168.1.1 clogin error: Error: Couldn't login 192.168.1.1: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term 192.168.1.1: End of run not found ; I am using a radius server to authenticate, but I also have the correct password in my /.cloginrc script. I verified this by sshing manually using the username and password listed in there. Suggestions, help, advice.. anything would be much appreciated! Thanks kindly in advance. Christopher Bell CCNA, MCP, Network + Chris Bell Systems, ext 1734 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. _______________________________________________ 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 CONFIDENTIAL NOTICE: This email including any attachments, contains confidential information belonging to the sender. It may also be privileged or otherwise protected by work product immunity or other legal rules. This information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this emailed information is strictly prohibited. If you have received this email in error, please immediately notify us by reply email of the error and then delete this email immediately. From mashcraft at omniture.com Mon Oct 15 23:52:27 2007 From: mashcraft at omniture.com (Mike Ashcraft) Date: Mon, 15 Oct 2007 17:52:27 -0600 Subject: [rancid] Re: Newbie Question...sorry! In-Reply-To: <5471c93d0710150857s3cf8ca68t73b2f26c31d8b2d4@mail.gmail.com> References: <5471c93d0710150857s3cf8ca68t73b2f26c31d8b2d4@mail.gmail.com> Message-ID: <45EB285310B55542A513F93230F0A5330235EE45@EXCHANGE0.orm.omniture.com> As John H already mentioned, xargs(1) is your friend here. Start with a text file listing your devices, one per line. If you don't have this already try cut(1) on your router.db file. I'll provide a few examples. Run the commands in cmds.txt on the devices listed in devices.txt: cat devices.txt | xargs clogin -x cmds.txt If the commands need to include the device name as James requested, create a custom script that runs the right command when passed the devicename. Then pass this script the devices in the list one at a time: cat devices.txt | xargs -n1 customscript.sh Mike ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Stave Sent: Monday, October 15, 2007 9:58 AM To: Munroe, James (DSS/MAS) Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: Newbie Question...sorry! I've made a script to call clogin, our devices are numbered fairly sequentially, from 10.0.0.1 to 10.0.0.86 with cluster members getting 10.0.1.x and 10.0.2.x , etc... I put whatever commands I want to run into cmds.txt and then make sure that the switches I want those commands run on are represented in the script. A slight change to this would be to put the actual command you want to run in in place of the cmds.txt, which would make it easy to specify the ip address as a filename for the log. This obviously works better if your devices are all similarly numbered. I've appended the script, but do note that it won't work for you without changes, but just as an example of how I did it. I suspect that there is a cleaner way to do the conditional statements, but this way worked for me. (As a bonus, is there an easy way to avoid the repeated "-o $i =" in the script below?) ****************************** ************************************************************ for (( i = 1; i <= 86; i++ )) do /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.0.$i if [ $i = 6 -o $i = 12 -o $i = 13 -o $i = 14 -o $i = 16 -o $i = 19 -o $i = 23 -o $i = 27 -o $i = 30 -o $i = 32 -o $i = 37 -o $i = 44 -o $i = 45 -o $i = 46 -o $i = 48 -o $i = 49 -o $i = 52 -o $i = 53 -o $i = 55 -o $i = 56 -o $i = 57 -o $i = 58 -o $i = 59 -o $i = 60 -o $i = 61 -o $i = 64 -o $i = 65 -o $i = 70 -o $i = 71 -o $i = 81 -o $i = 72 -o $i = 73 -o $i = 77 -o $i = 82 -o $i = 83 -o $i = 84 -o $i = 85 -o $i = 86 ]; then /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.1.$i fi if [ $i = 6 -o $i = 12 -o $i = 14 -o $i = 23 -o $i = 37 -o $i = 44 -o $i = 45 -o $i = 52 -o $i = 53 -o $i = 57 -o $i = 61 -o $i = 64 -o $i = 72 -o $i = 73 -o $i = 77 -o $i = 83 -o $i = 86 ]; then /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.2.$i fi if [ $i = 6 -o $i = 12 -o $i = 37 -o $i = 53 -o $i = 57 -o $i = 61 -o $i=64 ]; t hen /home/rancid/bin/clogin -x /home/rancid/cmds.txt 10.0.3.$i fi done ************************************************************************ *******************************8 good luck with it! On 10/15/07, Munroe, James (DSS/MAS) wrote: Hello, Could someone please tell me if there is a way to add a variable to a command file for processing with nlogin? For example I want to issue the following command on 170 simliar devices: "get event > tftp 192.168.1.1 .log" The needs to be unique for each device. I don't care if it's the device's IP or hostname or whatever...as long as it is unique. Hostname or IP would be nice though :-) Also when using nlogin or clogin what's the easiest way to specify a large number of remote devices? I've got like 380+ firewalls and routers that I'd like to issue a nlogin/clogin against. I know the command line gives you the option to list each deviceon the same command line...but I was looking for something a little more manageable. I'd eventually like to automate this...or script it. Any help or tips would be greatly appreciated!!! Thanks! Jim _______________________________________________ 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: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071015/28fb6a6e/attachment.html From mashcraft at omniture.com Mon Oct 15 23:56:07 2007 From: mashcraft at omniture.com (Mike Ashcraft) Date: Mon, 15 Oct 2007 17:56:07 -0600 Subject: [rancid] Re: "config fetcher problems" In-Reply-To: <70262067E7786B458AF587D944A209590157C3AC@SLEX1.fairbankscapital.com> References: <70262067E7786B458AF587D944A209590157C3AC@SLEX1.fairbankscapital.com> Message-ID: <45EB285310B55542A513F93230F0A5330235EE47@EXCHANGE0.orm.omniture.com> I would not expect this issue on a properly configured Rancid installation. Mike -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Shon Hender Sent: Thursday, October 11, 2007 10:05 AM To: rancid-discuss at shrubbery.net Subject: [rancid] "config fetcher problems" Each time I run rancid-run at least 1 CatOS device fails. Is this a known issue and is there a known fix for this? Here is the email notification I'm getting: The following routers have not been successfully contacted for more than 4 hours. -rw-r----- 1 rancid rancid 407973 Oct 7 04:15 jxa6509a -rw-r----- 1 rancid rancid 79815 Oct 10 04:02 jxd4006c -rw-r----- 1 rancid rancid 79992 Oct 10 04:02 jxc4006b Thanks, -Shon _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From thecomputerking at gmail.com Mon Oct 15 14:25:38 2007 From: thecomputerking at gmail.com (Riley Tompkins) Date: Mon, 15 Oct 2007 10:25:38 -0400 Subject: [rancid] Re: Rancid-run not writing configs In-Reply-To: <5A7F36775DDD854CB1873E5F790C4D3709F59EBC@mailhost.thig.com> References: <5A7F36775DDD854CB1873E5F790C4D3709F59EBC@mailhost.thig.com> Message-ID: <337a72540710150725y6711fc1dv7b2c7d8cdb7f30c4@mail.gmail.com> You need to use at least version 2.3.2a6 for your HP Procurves. Regards, -Charles On 10/15/07, Chris Bell wrote: > Hi all.. I've searched the email list for the last several months for a > similar situation and have not found anything that applies. Hopefully > somebody can set me straight as I'm sure it's a simple configuration error > on my part. > > OS = Ubuntu 7.04 lts > Rancid = rancid-2.3.1 > Expect = expect_5.43.0 > > I can ssh into any of HP devices (3400cl-48) from the same rancid server, as > user rancid, with no error. I can "clogin 192.168.1.1" to each device no > error. When I "clogin -c 'sh run' 192.168.1.1" rancid hangs and will no > complete the command. When I run /home/rancid/bin/rancid-run I get the > following messages in the /home/rancid/var/rancid/logs file: > > Getting missed routers: round 1. > 192.168.1.1 clogin error: Error: Couldn't login > 192.168.1.1: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.1: End of run not found > ; > 192.168.1.2 clogin error: Error: Couldn't login > 192.168.1.2: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.2: End of run not found > ; > ===================================== > Getting missed routers: round 2. > 192.168.1.2 clogin error: Error: Couldn't login > 192.168.1.2: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.2: End of run not found > ; > 192.168.1.1 clogin error: Error: Couldn't login > 192.168.1.1: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.1: End of run not found > ; > ===================================== > Getting missed routers: round 3. > 192.168.1.1 clogin error: Error: Couldn't login > 192.168.1.1: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.1: End of run not found > ; > 192.168.1.2 clogin error: Error: Couldn't login > 192.168.1.2: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.2: End of run not found > ; > ===================================== > Getting missed routers: round 4. > 192.168.1.2 clogin error: Error: Couldn't login > 192.168.1.2: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.2: End of run not found > ; > 192.168.1.1 clogin error: Error: Couldn't login > 192.168.1.1: missed cmd(s): show stack,show module,show flash,show > version,show system-information,write term > 192.168.1.1: End of run not found > ; > > I am using a radius server to authenticate, but I also have the correct > password in my /.cloginrc script. I verified this by sshing manually using > the username and password listed in there. > > Suggestions, help, advice.. anything would be much appreciated! Thanks > kindly in advance. > > Christopher Bell CCNA, MCP, Network + > > > > Chris Bell > Systems, ext 1734 > > > > > CONFIDENTIAL NOTICE: This email including any attachments, contains > confidential information belonging to the sender. It may also be > privileged or otherwise protected by work product immunity or other > legal rules. This information is intended only for the use of the > individual or entity named above. If you are not the intended > recipient, you are hereby notified that any disclosure, copying, > distribution or the taking of any action in reliance on the contents > of this emailed information is strictly prohibited. If you have > received this email in error, please immediately notify us by > reply email of the error and then delete this email immediately. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From adudek16 at gmail.com Tue Oct 16 16:07:17 2007 From: adudek16 at gmail.com (Aaron Dudek) Date: Tue, 16 Oct 2007 12:07:17 -0400 Subject: [rancid] Website update... Message-ID: <96ba9bee0710160907x3a7d1a23m5d5ba81377a845b@mail.gmail.com> Is there any chance that the website will be updated to show 2.3.2a7 as being available? Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071016/d4ba45c4/attachment.html From will.miller at gtri.gatech.edu Wed Oct 17 17:28:08 2007 From: will.miller at gtri.gatech.edu (Will Miller) Date: Wed, 17 Oct 2007 13:28:08 -0400 Subject: [rancid] The annoyance of whitespace changes. Message-ID: <47164628.9080802@gtri.gatech.edu> Hey guys, I'm a newcomer, so be gentle. I've looked high and low for a solution to this, but to no avail-- hence my adding to your inboxes. So, here's my problem. I have a device (specifically a firewall services module in a 6509) being monitored by rancid. Much to frequently, though (on the order of a few times a day), I get config diffs mailed to me that contain a bunch of changes like this: @@ -500,9 +500,9 @@ port-object eq 27002 port-object eq 27003 port-object eq 27004 port-object eq 27005 - port-object eq 27006 + port-object eq 27006 port-object eq 27007 port-object eq 27008 port-object eq 27009 port-object eq 27010 Note that the only thing that changed is the whitespace before the command. Try as I might, I can't figure out a workaround. I tried modifying control_rancid from "cvs -f diff -U 4" to "cvs -f diff -w -U 4". This, however, didn't change the number of emails coming in. It still printed the header with no diffs listed: Index: configs/ =================================================================== retrieving revision 1.240 diff -w -U4 -r1.240 (Yeah, that was revision 240... no, we don't change the config quite that often.) So, any of you have any ideas why this might be happening or, failing that, how I might work around it? Thanks for any help, -- Will From rancid at gheek.net Wed Oct 17 19:12:44 2007 From: rancid at gheek.net (Lance) Date: Wed, 17 Oct 2007 12:12:44 -0700 Subject: [rancid] Re: The annoyance of whitespace changes. Message-ID: <20071017121244.8e114e4890519e5179c192e02d6bca26.f918a1e4a8.wbe@email.secureserver.net> Will, A crude but functional method might be to remove all starting whitespace on each line before you write to the file. That will make your cvs check not a problem. :-D -Lance > -------- Original Message -------- > From: Will Miller > Date: Wed, October 17, 2007 10:28 am > To: > > > Hey guys, I'm a newcomer, so be gentle. > > I've looked high and low for a solution to this, but to no avail-- hence > my adding to your inboxes. > > So, here's my problem. I have a device (specifically a firewall > services module in a 6509) being monitored by rancid. Much to > frequently, though (on the order of a few times a day), I get config > diffs mailed to me that contain a bunch of changes like this: > > @@ -500,9 +500,9 @@ > port-object eq 27002 > port-object eq 27003 > port-object eq 27004 > port-object eq 27005 > - port-object eq 27006 > + port-object eq 27006 > port-object eq 27007 > port-object eq 27008 > port-object eq 27009 > port-object eq 27010 > > Note that the only thing that changed is the whitespace before the > command. > > Try as I might, I can't figure out a workaround. I tried modifying > control_rancid from "cvs -f diff -U 4" to "cvs -f diff -w -U 4". This, > however, didn't change the number of emails coming in. It still printed > the header with no diffs listed: > > Index: configs/ > =================================================================== > retrieving revision 1.240 > diff -w -U4 -r1.240 > > (Yeah, that was revision 240... no, we don't change the config quite > that often.) > > So, any of you have any ideas why this might be happening or, failing > that, how I might work around it? > > Thanks for any help, > > -- > Will > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From geecla at mail.nih.gov Thu Oct 18 13:04:12 2007 From: geecla at mail.nih.gov (Gee-clough, Aaron (NIH/CIT) [C]) Date: Thu, 18 Oct 2007 09:04:12 -0400 Subject: [rancid] Re: The annoyance of whitespace changes. In-Reply-To: <47164628.9080802@gtri.gatech.edu> References: <47164628.9080802@gtri.gatech.edu> Message-ID: <574EDBCEEAD4F84C8DBBE177B7AC8CD101AB587E@NIHCESMLBX3.nih.gov> This is happening because the regex that deals with the pager on the FWSM (and PIX and ASA) is eating the indentation along with the "<-- More -->" characters from the pager. (Where in the config the pager will occur chagnes with the length of the config, leading to lots of cascading changes when you change a line in the middle of the config.) Try turning off the pager. That should make these go away. aaron ----------------- Aaron Gee-Clough CIT/DNST/NEB/NSS Contractor. Geek. -----Original Message----- From: Will Miller [mailto:will.miller at gtri.gatech.edu] Sent: Wednesday, October 17, 2007 1:28 PM To: rancid-discuss at shrubbery.net Subject: [rancid] The annoyance of whitespace changes. Hey guys, I'm a newcomer, so be gentle. I've looked high and low for a solution to this, but to no avail-- hence my adding to your inboxes. So, here's my problem. I have a device (specifically a firewall services module in a 6509) being monitored by rancid. Much to frequently, though (on the order of a few times a day), I get config diffs mailed to me that contain a bunch of changes like this: @@ -500,9 +500,9 @@ port-object eq 27002 port-object eq 27003 port-object eq 27004 port-object eq 27005 - port-object eq 27006 + port-object eq 27006 port-object eq 27007 port-object eq 27008 port-object eq 27009 port-object eq 27010 Note that the only thing that changed is the whitespace before the command. Try as I might, I can't figure out a workaround. I tried modifying control_rancid from "cvs -f diff -U 4" to "cvs -f diff -w -U 4". This, however, didn't change the number of emails coming in. It still printed the header with no diffs listed: Index: configs/ =================================================================== retrieving revision 1.240 diff -w -U4 -r1.240 (Yeah, that was revision 240... no, we don't change the config quite that often.) So, any of you have any ideas why this might be happening or, failing that, how I might work around it? Thanks for any help, -- Will _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From gregoryzill at solutionary.com Thu Oct 18 16:41:49 2007 From: gregoryzill at solutionary.com (Gregory W Zill) Date: Thu, 18 Oct 2007 11:41:49 -0500 Subject: [rancid] cisco pix clogin timeout Message-ID: <1192725709.6230.51.camel@oddjob> I know this has been covered quite a bit but my visits to FAQ and list searches have not resolved. I am trying to automatically login with a new rancid setup to a 6.3(5) pix whose prompt looks like AbCdEf> The login portion appears to work but enable never finishes and eventually times out even when I add "-t 100" The clogin I use looks like clogin abcdef.clients.company.com I can ssh manually to "abcdef.clients.company.com". The enable just turns the > into a #. Any help appreciated. gregory w zill, mba, cissp Information Security Engineer Managed Devices Team ----------------------------- Solutionary, Inc. Making Security Manageable v: 402-361-3066 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071018/dce52d59/attachment.bin From rancid at gheek.net Thu Oct 18 17:59:18 2007 From: rancid at gheek.net (Lance) Date: Thu, 18 Oct 2007 10:59:18 -0700 Subject: [rancid] Re: cisco pix clogin timeout Message-ID: <20071018105917.8e114e4890519e5179c192e02d6bca26.5e7728213d.wbe@email.secureserver.net> Maybe you have autoenable set. You have not provided much information. Show us what a login typically looks like, show us what you have in your .cloginrc. -Lance > -------- Original Message -------- > From: Gregory W Zill > Date: Thu, October 18, 2007 9:41 am > To: rancid-discuss at shrubbery.net > > > I know this has been covered quite a bit but my visits to FAQ and list > searches have not resolved. > > I am trying to automatically login with a new rancid setup to a 6.3(5) > pix whose prompt looks like > AbCdEf> > > The login portion appears to work but enable never finishes and > eventually times out even when I add "-t 100" > > The clogin I use looks like > clogin abcdef.clients.company.com > > I can ssh manually to "abcdef.clients.company.com". The enable just > turns the > into a #. > > Any help appreciated. > > gregory w zill, mba, cissp > Information Security Engineer > Managed Devices Team > ----------------------------- > Solutionary, Inc. > Making Security Manageable > v: 402-361-3066
_______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From gregoryzill at solutionary.com Thu Oct 18 18:01:49 2007 From: gregoryzill at solutionary.com (Gregory W Zill) Date: Thu, 18 Oct 2007 13:01:49 -0500 Subject: [rancid] Re: cisco pix clogin timeout In-Reply-To: <20071018105917.8e114e4890519e5179c192e02d6bca26.5e7728213d.wbe@email.secureserver.net> References: <20071018105917.8e114e4890519e5179c192e02d6bca26.5e7728213d.wbe@email.secureserver.net> Message-ID: <1192730509.6230.58.camel@oddjob> I just needed to set autoenable to 0 in my .cloginrc. Thanks heas. > > -------- Original Message -------- > > From: Gregory W Zill > > Date: Thu, October 18, 2007 9:41 am > > To: rancid-discuss at shrubbery.net > > > > > > I know this has been covered quite a bit but my visits to FAQ and list > > searches have not resolved. > > > > I am trying to automatically login with a new rancid setup to a 6.3(5) > > pix whose prompt looks like > > AbCdEf> > > > > The login portion appears to work but enable never finishes and > > eventually times out even when I add "-t 100" > > > > The clogin I use looks like > > clogin abcdef.clients.company.com > > > > I can ssh manually to "abcdef.clients.company.com". The enable just > > turns the > into a #. > > > > Any help appreciated. > > > > gregory w zill, mba, cissp > > Information Security Engineer > > Managed Devices Team > > ----------------------------- > > Solutionary, Inc. > > Making Security Manageable > > v: 402-361-3066
_______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- gregory w zill, mba, cissp Information Security Engineer Managed Devices Team ----------------------------- Solutionary, Inc. Making Security Manageable v: 402-361-3066 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071018/76e5025c/attachment.bin From smunzani at comcast.net Thu Oct 18 19:53:28 2007 From: smunzani at comcast.net (Sam Munzani) Date: Thu, 18 Oct 2007 14:53:28 -0500 Subject: [rancid] "End of run not found" troubleshooting Message-ID: <4717B9B8.2090106@comcast.net> Team, I am troubleshooting a "End of run not found" message in the log. The device type is 6509 switch running IOS. When I run "clogin device-name" it works fine and puts me on the box. However when rancid runs, I get "End of run not found" After reading through /opt/rancid/bin/rancid file, I discovered following piece of code. Can somebody help me understand this RegEx? if (/^(: +)?end$/) { $found_end = 1; return(1); } Is it looking for :end or something else? If it looks for ":end" on a line shouldn't regex be "/^:end$/"? Last few lines on my device config is as below. ntp clock-period 17180035 ntp server xx.xx.xx.xx prefer end corp-rtr-1# LOG file info: corp-rtr-01: missed cmd(s): dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all sec-nvram:,dir /all sec-bootflash:,show spe version,di r /all slaveslot2:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all slavedisk1:,show module,show controllers,show diagbus,dir /all slavedisk0:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir / all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,show running-config,show c7200 corp-rtr-01: End of run not found Thanks in advance, Sam From mashcraft at omniture.com Thu Oct 18 20:30:20 2007 From: mashcraft at omniture.com (Mike Ashcraft) Date: Thu, 18 Oct 2007 14:30:20 -0600 Subject: [rancid] Re: "End of run not found" troubleshooting In-Reply-To: <4717B9B8.2090106@comcast.net> References: <4717B9B8.2090106@comcast.net> Message-ID: <45EB285310B55542A513F93230F0A53302524DB9@EXCHANGE0.orm.omniture.com> Sam, /^(: +)?end$/ translates to: Line starting with an optional (colon followed by one or more spaces) followed by the string 'end' with the 'd' being the last character on the line. So this matches any of the following lines: end : end : end : end I don't see this regex as your problem. Mike -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sam Munzani Sent: Thursday, October 18, 2007 1:53 PM To: rancid-discuss at shrubbery.net Subject: [rancid] "End of run not found" troubleshooting Team, I am troubleshooting a "End of run not found" message in the log. The device type is 6509 switch running IOS. When I run "clogin device-name" it works fine and puts me on the box. However when rancid runs, I get "End of run not found" After reading through /opt/rancid/bin/rancid file, I discovered following piece of code. Can somebody help me understand this RegEx? if (/^(: +)?end$/) { $found_end = 1; return(1); } Is it looking for :end or something else? If it looks for ":end" on a line shouldn't regex be "/^:end$/"? Last few lines on my device config is as below. ntp clock-period 17180035 ntp server xx.xx.xx.xx prefer end corp-rtr-1# LOG file info: corp-rtr-01: missed cmd(s): dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all sec-nvram:,dir /all sec-bootflash:,show spe version,di r /all slaveslot2:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all slavedisk1:,show module,show controllers,show diagbus,dir /all slavedisk0:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir / all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,show running-config,show c7200 corp-rtr-01: End of run not found Thanks in advance, Sam _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From smunzani at comcast.net Thu Oct 18 20:47:47 2007 From: smunzani at comcast.net (Sam Munzani) Date: Thu, 18 Oct 2007 15:47:47 -0500 Subject: [rancid] Re: "End of run not found" troubleshooting In-Reply-To: <45EB285310B55542A513F93230F0A53302524DB9@EXCHANGE0.orm.omniture.com> References: <4717B9B8.2090106@comcast.net> <45EB285310B55542A513F93230F0A53302524DB9@EXCHANGE0.orm.omniture.com> Message-ID: <4717C673.5030501@comcast.net> Any suggestions on how should I start my troubleshooting? Any debug flags etc. Thanks, Sam > Sam, > > /^(: +)?end$/ translates to: > > Line starting with an optional (colon followed by one or more spaces) > followed by the string 'end' with the 'd' being the last character on > the line. > > So this matches any of the following lines: > > end > : end > : end > : end > > I don't see this regex as your problem. > > Mike > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sam Munzani > Sent: Thursday, October 18, 2007 1:53 PM > To: rancid-discuss at shrubbery.net > Subject: [rancid] "End of run not found" troubleshooting > > Team, > > I am troubleshooting a "End of run not found" message in the log. The > device type is 6509 switch running IOS. When I run "clogin device-name" > it works fine and puts me on the box. However when rancid runs, I get > "End of run not found" > > After reading through /opt/rancid/bin/rancid file, I discovered > following piece of code. Can somebody help me understand this RegEx? > if (/^(: +)?end$/) { > $found_end = 1; > return(1); > } > > Is it looking for :end or something else? If it looks for ":end" on a > line shouldn't regex be "/^:end$/"? Last few lines on my device config > is as below. > ntp clock-period 17180035 > ntp server xx.xx.xx.xx prefer > end > > corp-rtr-1# > > > LOG file info: > corp-rtr-01: missed cmd(s): dir /all slavedisk2:,dir /all > sec-slot2:,show diag,dir /all sec-nvram:,dir /all sec-bootflash:,show > spe version,di > r /all slaveslot2:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all > slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all > sec-disk0:,dir > /all slavedisk1:,show module,show controllers,show diagbus,dir /all > slavedisk0:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp > status,dir / > all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers > cbus,dir /all slaveslot1:,show running-config,show c7200 > corp-rtr-01: End of run not found > > Thanks in advance, > Sam > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > From smitha at byui.edu Thu Oct 18 21:27:10 2007 From: smitha at byui.edu (Aaron Smith) Date: Thu, 18 Oct 2007 15:27:10 -0600 Subject: [rancid] Re: "End of run not found" troubleshooting In-Reply-To: <4717C673.5030501@comcast.net> References: <4717B9B8.2090106@comcast.net> <45EB285310B55542A513F93230F0A53302524DB9@EXCHANGE0.orm.omniture.com> <4717C673.5030501@comcast.net> Message-ID: <1192742830.8755.5.camel@preto> On Thu, 2007-10-18 at 15:47 -0500, Sam Munzani wrote: > Any suggestions on how should I start my troubleshooting? Any debug > flags etc. I had a similar problem when grabbing configs off Catalyst 4006 devices running CatOS. If you look at the last lines in cat5rancid (or rancid), you see: # check for completeness if (scalar(%commands) || !$clean_run || !$found_end) { if (scalar(%commands)) { printf(STDOUT "$host: missed cmd(s): %s\n", join(',', keys(% commands))); printf(STDERR "$host: missed cmd(s): %s\n", join(',', keys(% commands))) if ($debug); } if (!$clean_run || !$found_end) { print STDOUT "$host: End of run not found\n"; print STDERR "$host: End of run not found\n" if ($debug); system("/usr/bin/tail -1 $host.new"); } unlink "$host.new" if (! $debug); } I recommend you print out the value of $clean_run and $found_end. That tells you which is causing the problem. In my case, it was $clean_run. For some reason it wasn't seeing the completed "exit" command, and thus wouldn't back up the config. Until I get time to dig in further and find the root cause, I inserted these lines before the code block above: # I don't care if it sees "exit" $clean_run = 1; Works for now, maybe forever. -- @@ron Smith IT Infrastructure BYU Idaho From adam.korab at gmail.com Thu Oct 18 20:57:15 2007 From: adam.korab at gmail.com (Adam Korab) Date: Thu, 18 Oct 2007 16:57:15 -0400 Subject: [rancid] cloginrc password and login failure. Message-ID: Hi, Just added a new device to my rancid configuration - Cisco PIX firewall. Added the following to .cloginrc for the rancid user: add method fw*.site.us ssh add user fw*.site.us {username} add password fw*.site.us {foo} {foo} Running clogin fw01.site.us yields: -bash-3.00$ clogin fw01.site.us fw01.site.us spawn ssh -c 3des -x -l username fw01.site.us username at fw01.site.us's password: Permission denied, please try again. Error: Check your passwd for fw01.bstnma02.us However, running this command works just fine. -bash-3.00$ clogin -p foo fw01.site.us fw01.site.us spawn ssh -c 3des -x -l username fw01.site.us username at fw01.site.us's password: Type help or '?' for a list of available commands. pix> pix> enable Password: ******* pix# Thanks much for any insight or comments. --Adam From heas at shrubbery.net Thu Oct 18 22:34:20 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 18 Oct 2007 22:34:20 +0000 Subject: [rancid] Re: "End of run not found" troubleshooting In-Reply-To: <1192742830.8755.5.camel@preto> References: <4717B9B8.2090106@comcast.net> <45EB285310B55542A513F93230F0A53302524DB9@EXCHANGE0.orm.omniture.com> <4717C673.5030501@comcast.net> <1192742830.8755.5.camel@preto> Message-ID: <20071018223420.GA17302@shrubbery.net> Thu, Oct 18, 2007 at 03:27:10PM -0600, Aaron Smith: > I had a similar problem when grabbing configs off Catalyst 4006 devices > running CatOS. If you look at the last lines in cat5rancid (or rancid), > you see: > > # check for completeness > if (scalar(%commands) || !$clean_run || !$found_end) { > if (scalar(%commands)) { > printf(STDOUT "$host: missed cmd(s): %s\n", join(',', keys(% > commands))); > printf(STDERR "$host: missed cmd(s): %s\n", join(',', keys(% > commands))) if ($debug); > } > if (!$clean_run || !$found_end) { > print STDOUT "$host: End of run not found\n"; > print STDERR "$host: End of run not found\n" if ($debug); > system("/usr/bin/tail -1 $host.new"); > } > unlink "$host.new" if (! $debug); > } > > I recommend you print out the value of $clean_run and $found_end. That > tells you which is causing the problem. In my case, it was $clean_run. > For some reason it wasn't seeing the completed "exit" command, and thus > wouldn't back up the config. Until I get time to dig in further and > find the root cause, I inserted these lines before the code block above: > > # I don't care if it sees "exit" > $clean_run = 1; It looks for all these tag for a reason; to ensure that everything is collected. truncation can occur, and without these it will commit incomplete configurations to the repository. re: your exit problem specifically; that is an catOS bug, which I believe is largely worked-around by a patch someone offered. try 2.3.2a7. From smunzani at comcast.net Fri Oct 19 00:21:09 2007 From: smunzani at comcast.net (Sam Munzani) Date: Thu, 18 Oct 2007 19:21:09 -0500 Subject: [rancid] Re: "End of run not found" troubleshooting In-Reply-To: <20071018223114.GZ17302@shrubbery.net> References: <4717B9B8.2090106@comcast.net> <20071018223114.GZ17302@shrubbery.net> Message-ID: <4717F875.2020803@comcast.net> That's what I have. I have 182 of these devices. 181 of them are working fine. Only one of them is giving me the grief. I am inclined to think there is something goofy for this device only but not obvious. Thanks, Sam > You should configure your IOS 6500 as a "cisco", not a "cat5". see > router.db(5). > > Thu, Oct 18, 2007 at 02:53:28PM -0500, Sam Munzani: > >> Team, >> >> I am troubleshooting a "End of run not found" message in the log. The >> device type is 6509 switch running IOS. When I run "clogin device-name" >> it works fine and puts me on the box. However when rancid runs, I get >> "End of run not found" >> >> After reading through /opt/rancid/bin/rancid file, I discovered >> following piece of code. Can somebody help me understand this RegEx? >> if (/^(: +)?end$/) { >> $found_end = 1; >> return(1); >> } >> >> Is it looking for :end or something else? If it looks for ":end" on a >> line shouldn't regex be "/^:end$/"? Last few lines on my device config >> is as below. >> ntp clock-period 17180035 >> ntp server xx.xx.xx.xx prefer >> end >> >> corp-rtr-1# >> >> >> LOG file info: >> corp-rtr-01: missed cmd(s): dir /all slavedisk2:,dir /all >> sec-slot2:,show diag,dir /all sec-nvram:,dir /all sec-bootflash:,show >> spe version,di >> r /all slaveslot2:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all >> slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all >> sec-disk0:,dir >> /all slavedisk1:,show module,show controllers,show diagbus,dir /all >> slavedisk0:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp >> status,dir / >> all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers >> cbus,dir /all slaveslot1:,show running-config,show c7200 >> corp-rtr-01: End of run not found >> >> Thanks in advance, >> Sam >> _______________________________________________ >> 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: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071018/849ca04a/attachment.html From bwindle at fint.org Tue Oct 23 12:30:38 2007 From: bwindle at fint.org (Burton Windle) Date: Tue, 23 Oct 2007 08:30:38 -0400 (EDT) Subject: [rancid] OT: how to compare configs of two devices Message-ID: (This may be OT, as it is mostly a CVS question) How would one compare the stored configs of two devices? I'd like to make sure that all of my branch office's routers are configured the same (except for the obvious things, like IP addresses). Is there an easy way to do this using either the CLI cvs tools or the cvsweb.cgi web-gui? -- Burton Windle bwindle at fint.org From lance at gheek.net Tue Oct 23 16:33:25 2007 From: lance at gheek.net (Lance Vermilion) Date: Tue, 23 Oct 2007 09:33:25 -0700 Subject: [rancid] Re: OT: how to compare configs of two devices Message-ID: <20071023093325.8e114e4890519e5179c192e02d6bca26.c3028c1890.wbe@email.secureserver.net> Burton, The way I do it is via diff or sdiff against the configs in var//configs/ Never heard of a CVS way to do it, as they are not directly related. -Lance > -------- Original Message -------- > Subject: [rancid] OT: how to compare configs of two devices > From: Burton Windle > Date: Tue, October 23, 2007 5:30 am > To: rancid-discuss at shrubbery.net > > > (This may be OT, as it is mostly a CVS question) > > How would one compare the stored configs of two devices? I'd like to make > sure that all of my branch office's routers are configured the same > (except for the obvious things, like IP addresses). Is there an easy way > to do this using either the CLI cvs tools or the cvsweb.cgi web-gui? > > > -- > Burton Windle bwindle at fint.org > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From jamie at simplyhired.com Fri Oct 26 22:24:02 2007 From: jamie at simplyhired.com (Jamie Manley) Date: Fri, 26 Oct 2007 15:24:02 -0700 Subject: [rancid] francid fails, flogin works? Message-ID: I?m running into a fun issue, where francid fails claiming all the commands it tries to run fail. Specifically, I see ?missed cmd(s)? and ?End of run not found? running `francid ?d?. Yet running that same flogin command line works perfectly fine. Using 2.3.2a6 and 2.3.2a7, same result for both. Jamie -- Jamie Manley System Administrator Simply Hired, Inc jamie at simplyhired.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071026/600f2a11/attachment.html From rdehbasteh at yahoo.com Tue Oct 30 20:20:02 2007 From: rdehbasteh at yahoo.com (roya dehbateh) Date: Tue, 30 Oct 2007 20:20:02 +0000 (GMT) Subject: [rancid] Installing RANCID prerequirements Message-ID: <530236.87091.qm@web30908.mail.mud.yahoo.com> I want to install pre requirements of RANCID on Fedora6 but i know alittle . could anyone help me with full installing instruction ? actually when I want to install expect by " yum install expect ", this error is shown : cant find a valid baseurl for repo : updates_released , as it described I download expect from net and extract it in the root file . I know how to install RANCID but some software like expect , TCL and ... are the problem . thanx for your guide . Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071030/a7fb63cb/attachment.html From Todd at equivoice.com Wed Oct 31 16:11:59 2007 From: Todd at equivoice.com (Todd Heide) Date: Wed, 31 Oct 2007 11:11:59 -0500 Subject: [rancid] Re: Installing RANCID prerequirements In-Reply-To: <530236.87091.qm@web30908.mail.mud.yahoo.com> References: <530236.87091.qm@web30908.mail.mud.yahoo.com> Message-ID: <082FEA82DC985B4F8A6B412D5AC4E22099A73E@exchange.Equivoice.local> Go to howtoforge.com and look up perfect setup for FC6, or LAMP FC6 and follow that guide. I used that for my install and everything fell into place. ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of roya dehbateh Sent: Tuesday, October 30, 2007 3:20 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Installing RANCID prerequirements I want to install pre requirements of RANCID on Fedora6 but i know alittle . could anyone help me with full installing instruction ? actually when I want to install expect by " yum install expect ", this error is shown : cant find a valid baseurl for repo : updates_released , as it described I download expect from net and extract it in the root file . I know how to install RANCID but some software like expect , TCL and ... are the problem . thanx for your guide . Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20071031/d2ff048d/attachment.html From f.pecora at p3networking.com Wed Oct 31 16:23:10 2007 From: f.pecora at p3networking.com (Frank Pecora) Date: Wed, 31 Oct 2007 11:23:10 -0500 Subject: [rancid] ASA5510/520 QUESTION Message-ID: <3cdbb4486edba885b8986a2516435706@p3networking.com> P3 recently purchased an ASA5510-BUN-K9, when we got the unit in (password protected) the serial runs a ASA5520-BUN-K9. We also are trying to figure out why this unit reads 5510 on it and the serial is different? Any body out there have the same thing happen? Frank Pecora P3 Systems Inc. P3 Data Center Solutions Rochester NY 14614 Office: +1-585-319-5413 Mobile: +1-585-406-1928 www.p3networking.com "Coming Soon" www.remarketcisco.com