From heas at shrubbery.net Sun Oct 2 02:09:24 2005 From: heas at shrubbery.net (john heasley) Date: Sun, 2 Oct 2005 02:09:24 +0000 Subject: -re "\b+" { exp_continue } in clogin? In-Reply-To: <20050930153300.GA327@ytti.fi> References: <20050930153300.GA327@ytti.fi> Message-ID: <20051002020924.GC12615@shrubbery.net> Fri, Sep 30, 2005 at 06:33:00PM +0300, Saku Ytti: > Hi, > > I've made module for telco systems switches using binos, however there > is situation for one reason or another the router outputs literal backspace > in output of 'show vlan', clearly vendor problem of course. When it does that, > my module does not funcition properly, and when I comment: > -re "\b+" { exp_continue } > out in clogin, it fixes the problem. Now where in practice is the above needed? there are two loops (which can actually be reduced to one) in run_commands() where you will need to handle this. see clogin. > For people interested in the telco/binos module or module for corecess > 6800 chassis based IP-dslams let me know and I'll share the modules. > They're probably too niche for the distribution and I don't plan to > commit on supporting them. > > -- > ++ytti From saku+rancid at ytti.fi Sun Oct 2 06:24:26 2005 From: saku+rancid at ytti.fi (Saku Ytti) Date: Sun, 2 Oct 2005 09:24:26 +0300 Subject: -re "\b+" { exp_continue } in clogin? In-Reply-To: <20051002020924.GC12615@shrubbery.net> References: <20050930153300.GA327@ytti.fi> <20051002020924.GC12615@shrubbery.net> Message-ID: <20051002062426.GA5135@ytti.fi> On (2005-10-02 02:09 +0000), john heasley wrote: > > my module does not funcition properly, and when I comment: > > -re "\b+" { exp_continue } > > out in clogin, it fixes the problem. Now where in practice is the above needed? > > there are two loops (which can actually be reduced to one) in run_commands() > where you will need to handle this. see clogin. Now I'm but confused, I know where these are located and I can fix my problem by commenting them out. But what I'm trying to find out, what's the purpose of these, eg. what could I have broken by commenting them out as I have difficulties imagining where they might be needed. Thanks, -- ++ytti From heas at shrubbery.net Sun Oct 2 08:16:41 2005 From: heas at shrubbery.net (john heasley) Date: Sun, 2 Oct 2005 08:16:41 +0000 Subject: -re "\b+" { exp_continue } in clogin? In-Reply-To: <20051002062426.GA5135@ytti.fi> References: <20050930153300.GA327@ytti.fi> <20051002020924.GC12615@shrubbery.net> <20051002062426.GA5135@ytti.fi> Message-ID: <20051002081641.GA29233@shrubbery.net> Sun, Oct 02, 2005 at 09:24:26AM +0300, Saku Ytti: > On (2005-10-02 02:09 +0000), john heasley wrote: > > > > my module does not funcition properly, and when I comment: > > > -re "\b+" { exp_continue } > > > out in clogin, it fixes the problem. Now where in practice is the above needed? > > > > there are two loops (which can actually be reduced to one) in run_commands() > > where you will need to handle this. see clogin. > > Now I'm but confused, I know where these are located and I can fix my > problem by commenting them out. But what I'm trying to find out, what's > the purpose of these, eg. what could I have broken by commenting them > out as I have difficulties imagining where they might be needed. i just misread. for clogin, its intended to eat the backspaces that clear the pager's prompt (--More--) for one of the platforms. From jeekay at gmail.com Mon Oct 3 15:09:00 2005 From: jeekay at gmail.com (Jee Kay) Date: Mon, 3 Oct 2005 16:09:00 +0100 Subject: Using commands with clogin that require confirmation Message-ID: Hi, I am trying to script (using clogin) various commands, one of which is 'clear counters'. This unfortunately requires a confirmation that doesn't appear to be disableable. Is there any way to force clogin to, fx, wait 1 second, hit enter, and _then_ expect the prompt again? I've tried various combinations of -c 'clear count;;' but it doesn't seem to send anything until it has seen a new prompt. Thanks, Ras From saku+rancid at ytti.fi Mon Oct 3 15:21:59 2005 From: saku+rancid at ytti.fi (Saku Ytti) Date: Mon, 3 Oct 2005 18:21:59 +0300 Subject: Using commands with clogin that require confirmation In-Reply-To: References: Message-ID: <20051003152159.GA4112@ytti.fi> On (2005-10-03 16:09 +0100), Jee Kay wrote: > Is there any way to force clogin to, fx, wait 1 second, hit enter, and > _then_ expect the prompt again? I've tried various combinations of -c > 'clear count;;' but it doesn't seem to send anything until it has seen > a new prompt. Waiting probably doesn't work, but \r should work. You should have all in one line, until you're back in the prompt. -- ++ytti From david_laporte at harvard.edu Mon Oct 3 15:29:09 2005 From: david_laporte at harvard.edu (David LaPorte) Date: Mon, 03 Oct 2005 11:29:09 -0400 Subject: Using commands with clogin that require confirmation In-Reply-To: <20051003152159.GA4112@ytti.fi> References: <20051003152159.GA4112@ytti.fi> Message-ID: <43414E45.9070407@harvard.edu> Using "\n" has worked for us. The following is an example showing an ACL being uploaded via the interactive prompts on a 6509 running native IOS: -c "conf net\nhost\n192.168.1.1\nACL/123-routergw1.ip\n;wr mem" Dave Saku Ytti wrote: > On (2005-10-03 16:09 +0100), Jee Kay wrote: > >> Is there any way to force clogin to, fx, wait 1 second, hit enter, and >> _then_ expect the prompt again? I've tried various combinations of -c >> 'clear count;;' but it doesn't seem to send anything until it has seen >> a new prompt. > > Waiting probably doesn't work, but \r should work. You should have > all in one line, until you're back in the prompt. > From saku+rancid at ytti.fi Mon Oct 3 15:35:10 2005 From: saku+rancid at ytti.fi (Saku Ytti) Date: Mon, 3 Oct 2005 18:35:10 +0300 Subject: Using commands with clogin that require confirmation In-Reply-To: <43414E45.9070407@harvard.edu> References: <20051003152159.GA4112@ytti.fi> <43414E45.9070407@harvard.edu> Message-ID: <20051003153510.GA4197@ytti.fi> On (2005-10-03 11:29 -0400), David LaPorte wrote: > Using "\n" has worked for us. The following is an example showing an > ACL being uploaded via the interactive prompts on a 6509 running native IOS: > > -c "conf net\nhost\n192.168.1.1\nACL/123-routergw1.ip\n;wr mem" This was not asked, but canonical way to separate commands is ';'. -- ++ytti From david_laporte at harvard.edu Mon Oct 3 15:37:50 2005 From: david_laporte at harvard.edu (David LaPorte) Date: Mon, 03 Oct 2005 11:37:50 -0400 Subject: Using commands with clogin that require confirmation In-Reply-To: <20051003153510.GA4197@ytti.fi> References: <20051003152159.GA4112@ytti.fi> <43414E45.9070407@harvard.edu> <20051003153510.GA4197@ytti.fi> Message-ID: <4341504E.5080605@harvard.edu> We had no luck descending through the interactive prompts with ";". The changing prompt was likely the issue, I assume Saku Ytti wrote: > On (2005-10-03 11:29 -0400), David LaPorte wrote: > >> Using "\n" has worked for us. The following is an example showing an >> ACL being uploaded via the interactive prompts on a 6509 running native IOS: >> >> -c "conf net\nhost\n192.168.1.1\nACL/123-routergw1.ip\n;wr mem" > > This was not asked, but canonical way to separate commands is ';'. > From saku+rancid at ytti.fi Mon Oct 3 15:39:37 2005 From: saku+rancid at ytti.fi (Saku Ytti) Date: Mon, 3 Oct 2005 18:39:37 +0300 Subject: Using commands with clogin that require confirmation In-Reply-To: <43414E45.9070407@harvard.edu> References: <20051003152159.GA4112@ytti.fi> <43414E45.9070407@harvard.edu> Message-ID: <20051003153937.GB4197@ytti.fi> On (2005-10-03 11:29 -0400), David LaPorte wrote: > Using "\n" has worked for us. The following is an example showing an > ACL being uploaded via the interactive prompts on a 6509 running native IOS: > > -c "conf net\nhost\n192.168.1.1\nACL/123-routergw1.ip\n;wr mem" Sorry my hasty posting, I misread your command, and indeed \n works as well as \r. Now I only have to wonder why I thought it didn't, as I'm sure I tried it first when I had same problem :) -- ++ytti From andre at is.co.za Tue Oct 4 10:40:06 2005 From: andre at is.co.za (Andre van der Merwe) Date: Tue, 4 Oct 2005 12:40:06 +0200 Subject: Acme Packet SD In-Reply-To: <20050831134336.GM52661@is.co.za> References: <20050831134336.GM52661@is.co.za> Message-ID: <20051004104006.GF47706@is.co.za> On Wed, Aug 31, 2005 at 03:43:36PM +0200, Andre van der Merwe wrote: > > Anyone hack RANCID to grab info from the Acme Packet Session Director ? > OK For now I just added the following to rancid to make it "roughly" work with the "show run". *** rancid.orig Tue Feb 8 19:26:53 2005 --- rancid Sun Sep 25 21:14:18 2005 *************** *** 1443,1448 **** --- 1446,1457 ---- ProcessHistory("","","","$_"); # end of config. the ": " game is for the PIX if (/^(: +)?end$/) { + $found_end = 1; + return(1); + # + # Added for the SD Acme. + # + } elsif (/^task done$/) { $found_end = 1; return(1); } -Andr? From dmack at gnilink.net Tue Oct 4 14:17:47 2005 From: dmack at gnilink.net (Mack, Dave) Date: Tue, 4 Oct 2005 10:17:47 -0400 Subject: Clogin issue with Cisco 10K Message-ID: <923175FC567CCE4B84CA6D225B23CAAA016ACB45@resmail01.restoncampus.com> Hello All! I am trying to troubleshoot an issue with clogin hanging with Rancid. I have tried to troubleshoot it myself and have gotten to the point where I have determined that clogin is hanging on the output of "show diag". The funny part is that it appears to be only one router having this issue. I have tried running clogin -c "sh diag" on other routers running the same exact code and they work fine. With this router output hangs and I have to ctrl-c to kill clogin. Here is an example of the input from a console session to the router: POP-EDGE-RTR1#sh diag Slot A: Primary PRE card RP EEPROM contents: Hardware Revision : 1.0 Part Number : 73-7041-03 Board Revision : C0 Deviation Number : 0-0 Fab Version : 02 PCB Serial Number : CAT07230QB1 RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Part Number : 800-17437-06 CLEI Code : CNRUGMVBAA FP EEPROM contents: Hardware Revision : 1.0 Part Number : 73-7042-06 Board Revision : A0 Deviation Number : 0-0 Fab Version : 05 PCB Serial Number : CAT07230Q6X RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Operational Image Version, Slot A Cisco Internetwork Operating System Software IOS (tm) 10000 Software (C10K-K4P10-M), Experimental Version 12.0(20040113:203533) [REL-v120_26_sz_throttle.ios-weekly 100] Copyright (c) 1986-2004 by cisco Systems, Inc. Compiled Tue 13-Jan-04 15:35 by leccese Slot B: Secondary PRE card RP EEPROM Contents: Hardware Revision : 1.0 Part Number : 73-7041-03 Board Revision : C0 Deviation Number : 0-0 Fab Version : 02 PCB Serial Number : CAT07230S3K RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Part Number : 800-17437-06 CLEI Code : CNRUGMVBAA FP EEPROM Contents: Hardware Revision : 1.0 Part Number : 73-7042-06 Board Revision : A0 Deviation Number : 0-0 Fab Version : 05 PCB Serial Number : CAT07230RW3 RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Standby version: Cisco Internetwork Operating System Software IOS (tm) 10000 Software (C10K-K4P10-M), Experimental Version 12.0(20040113:203533) [REL-v120_26_sz_throttle.ios-weekly 100] Copyright (c) 1986-2004 by cisco Systems, Inc. Compiled Tue 13-Jan-04 15:35 by leccese Slot/Subslot 1/0: 1oc12atm-1 card, 1 port Card is full slot size Card is analyzed Card detected 1y26w ago Card uptime 710 days, 16722 hours, 1002185 minutes, 60129563 seconds Card idle time 523 days, 11937 hours, 715828 minutes, 42949689 seconds Voltage status: 3.3V Nominal 2.5V Nominal EEPROM contents, slot 1/0: Hardware Revision : 1.0 Part Number : 800-06568-03 Board Revision : D0 Deviation Number : 0-0 Fab Version : 02 PCB Serial Number : CAT072504KB RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 CLEI Code : BAA8LKDCAA LCMON version, slot 1/0 LCDOS (C10000 PowerQUICC-II Line Card MONitor Image : Release branch:c10k_lc_bgp_reorg 20011120:145454) Built by richv at Tue Nov 20 17:04:22 2001. Reset reason 0x00000003 (external hard reset). Operational Image version, slot 1/0 LCDOS (C10000 1 Port OC12 ATM Line Card Image : DEVELOPMENT BUILD REL-v120_26_s_lc_throttle.lcdos-weekly /vob/lcdos/obj-c10k-oc12atm 101) major version 1060699281. Built by leccese at Tue Aug 12 10:41:22 2003. ECC 1 bit errors since last cleared (dd hh mm ss) = 0 (0 days, 0 hours, 0 minutes, 0 seconds) ECC 1 bit errors while up (total) = 0 Slot/Subslot 3/0: 1oc12pos-1 card, 1 port Card is full slot size Card is analyzed Card detected 1y26w ago Card uptime 713 days, 16707 hours, 1002169 minutes, 60129583 seconds Card idle time 589 days, 13137 hours, 787424 minutes, 47244688 seconds Voltage status: 3.3V Nominal EEPROM contents, slot 3/0: Hardware Revision : 2.0 Part Number : 800-05546-03 Board Revision : F0 Deviation Number : 0-0 Fab Version : 03 PCB Serial Number : CAT072209MG RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 LCMON version, slot 3/0 LCDOS (C10000 Line Card MONitor Image : Release 20000427:084233) Built by richv at Thu Apr 27 08:44:08 2000. Reset reason 0xC0000000 (external hard reset). Operational Image version, slot 3/0 LCDOS (C10000 1 Port OC12 POS Line Card Image : DEVELOPMENT BUILD REL-v120_26_s_lc_throttle.lcdos-weekly /vob/lcdos/obj-c10k-oc12pos 101) major version 1060698969. Built by leccese at Tue Aug 12 10:36:10 2003. Slot/Subslot 4/0: 1oc12pos-1 card, 1 port Card is full slot size Card is analyzed Card detected 1y26w ago Card uptime 713 days, 16707 hours, 1002171 minutes, 60129593 seconds Card idle time 588 days, 13128 hours, 787446 minutes, 47244643 seconds Voltage status: 3.3V Nominal EEPROM contents, slot 4/0: Hardware Revision : 2.0 Part Number : 800-05546-03 Board Revision : F0 Deviation Number : 0-0 Fab Version : 03 PCB Serial Number : CAT072209MS RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 LCMON version, slot 4/0 LCDOS (C10000 Line Card MONitor Image : Release 20000427:084233) Built by richv at Thu Apr 27 08:44:08 2000. Reset reason 0xC0000000 (external hard reset). Operational Image version, slot 4/0 LCDOS (C10000 1 Port OC12 POS Line Card Image : DEVELOPMENT BUILD REL-v120_26_s_lc_throttle.lcdos-weekly /vob/lcdos/obj-c10k-oc12pos 101) major version 1060698969. Built by leccese at Tue Aug 12 10:36:10 2003. Slot/Subslot 5/0: 6cht3-1 card, 6 ports Card is full slot size Card is analyzed Card detected 1y26w ago Card uptime 644 days, 14333 hours, 859025 minutes, 51539618 seconds Card idle time 431 days, 9561 hours, 572664 minutes, 34359774 seconds Voltage status: 3.3V Nominal EEPROM contents, slot 5/0: Hardware Revision : 1.0 Part Number : 800-05547-05 Board Revision : A0 Deviation Number : 0-0 Fab Version : 03 PCB Serial Number : CAB0609MT72 RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Board Revision : AA Unknown Field (type 0036): 4B Unknown Field (type 004C): 58 43 Hardware Revision : 66.255 LCMON version, slot 5/0 LCDOS (C10000 Line Card MONitor Image : Release 20000427:084233) Built by richv at Thu Apr 27 08:44:08 2000. Reset reason 0xC0000000 (external hard reset). Operational Image version, slot 5/0 LCDOS (C10000 6 Port Channelized T3 Line Card Image : DEVELOPMENT BUILD REL-v120_26_s_lc_throttle.lcdos-weekly /vob/lcdos/obj-c10k-ct3 101) major version 1060698849. Built by leccese at Tue Aug 12 10:34:11 2003. Slot/Subslot 6/0: 6cht3-1 card, 6 ports Card is full slot size Card is analyzed Card detected 1y26w ago Card uptime 644 days, 14333 hours, 859003 minutes, 51539640 seconds Card idle time 431 days, 9551 hours, 572663 minutes, 34359740 seconds Voltage status: 3.3V Nominal EEPROM contents, slot 6/0: Hardware Revision : 1.0 Part Number : 800-05547-05 Board Revision : A0 Deviation Number : 0-0 Fab Version : 03 PCB Serial Number : CAB0609MT78 RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Board Revision : AA Unknown Field (type 0036): 4B Unknown Field (type 004C): 58 43 Hardware Revision : 66.255 LCMON version, slot 6/0 LCDOS (C10000 Line Card MONitor Image : Release 20000427:084233) Built by richv at Thu Apr 27 08:44:08 2000. Reset reason 0xC0000000 (external hard reset). Operational Image version, slot 6/0 LCDOS (C10000 6 Port Channelized T3 Line Card Image : DEVELOPMENT BUILD REL-v120_26_s_lc_throttle.lcdos-weekly /vob/lcdos/obj-c10k-ct3 101) major version 1060698849. Built by leccese at Tue Aug 12 10:34:11 2003. POP-EDGE-RTR1# And here is what I get with clogin: nms-lab3$ clogin -c "sh diag" pop-edge-rtr1 pop-edge-rtr1 spawn telnet pop-edge-rtr1 Trying 192.168.67.60... telnet: Unable to connect to remote host: Connection refused spawn ssh -c 3des -x -l rancid pop-edge-rtr1 rancid at pop-edge-rtr1's password: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! NO CHANGES TO THIS CONFIG ARE TO BE MADE ! ! WITHOUT ENGINEERING OR NOC TIER 3 SUPPORT! ! ! ! ! ** DO NOT DISABLE CEF ON THIS ROUTER ** ! ! ! ! TACACS LOGS WILL BE AUDITED! ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! POP-EDGE-RTR1>enable Password: POP-EDGE-RTR1# POP-EDGE-RTR1#term length 0 POP-EDGE-RTR1#sh diag Slot A: Primary PRE card RP EEPROM contents: Hardware Revision : 1.0 Part Number : 73-7041-03 Board Revision : C0 Deviation Number : 0-0 Fab Version : 02 PCB Serial Number : CAT07230QB1 RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Part Number : 800-17437-06 CLEI Code : CNRUGMVBAA FP EEPROM contents: Hardware Revision : 1.0 Part Number : 73-7042-06 Board Revision : A0 Deviation Number : 0-0 Fab Version : 05 PCB Serial Number : CAT07230Q6X RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Operational Image Version, Slot A Cisco Internetwork Operating System Software IOS (tm) 10000 Software (C10K-K4P10-M), Experimental Version 12.0(20040113:203533) [REL-v120_26_sz_throttle.ios-weekly 100] Copyright (c) 1986-2004 by cisco Systems, Inc. Compiled Tue 13-Jan-04 15:35 by leccese Slot B: Secondary PRE card RP EEPROM Contents: Hardware Revision : 1.0 Part Number : 73-7041-03 Board Revision : C0 Deviation Number : 0-0 Fab Version : 02 PCB Serial Number : CAT07230S3K RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Part Number : 800-17437-06 CLEI Code : CNRUGMVBAA FP EEPROM Contents: Hardware Revision : 1.0 Part Number : 73-7042-06 Board Revision : A0 Deviation Number : 0-0 Fab Version : 05 PCB Serial Number : CAT07230RW3 RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Standby version: Cisco Internetwork Operating System Software IOS (tm) 10000 Software (C10K-K4P10-M), Experimental Version 12.0(20040113:203533) [REL-v120_26_sz_throttle.ios-weekly 100] Copyright (c) 1986-2004 by cisco Systems, Inc. Compiled Tue 13-Jan-04 15:35 by leccese Slot/Subslot 1/0: 1oc12atm-1 card, 1 port Card is full slot size Card is analyzed Card detected 1y26w ago Card uptime 710 days, 16722 hours, 1002178 minutes, 60129567 seconds Card idle time 523 days, 11936 hours, 715883 minutes, 42949683 seconds Voltage status: 3.3V Nominal 2.5V Nominal EEPROM contents, slot 1/0: Hardware Revision : 1.0 Part Number : 800-06568-03 Board Revision : D0 Deviation Number : 0-0 Fab Version : 02 PCB Serial Number : CAT072504KB RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 CLEI Code : BAA8LKDCAA LCMON version, slot 1/0 LCDOS (C10000 PowerQUICC-II Line Card MONitor Image : Release branch:c10k_lc_bgp_reorg 20011120:145454) Built by richv at Tue Nov 20 17:04:22 2001. Reset reason 0x00000003 (external hard reset). Operational Image version, slot 1/0 LCDOS (C10000 1 Port OC12 ATM Line Card Image : DEVELOPMENT BUILD REL-v120_26_s_lc_throttle.lcdos-weekly /vob/lcdos/obj-c10k-oc12atm 101) major version 1060699281. Built by leccese at Tue Aug 12 10:41:22 2003. ECC 1 bit errors since last cleared (dd hh mm ss) = 0 (0 days, 0 hours, 0 minutes, 0 seconds) ECC 1 bit errors while up (total) = 0 Slot/Subslot 3/0: 1oc12pos-1 card, 1 port Card is full slot size Card is analyzed Card detected 1y26w ago Card uptime 713 days, 16707 hours, 1002162 minutes, 60129584 seconds Card idle time 589 days, 13137 hours, 787419 minutes, 47244641 seconds Voltage status: 3.3V Nominal EEPROM contents, slot 3/0: Hardware Revision : 2.0 Part Number : 800-05546-03 Board Revision : F0 Deviation Number : 0-0 Fab Version : 03 PCB Serial Number : CAT072209MG RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 LCMON version, slot 3/0 LCDOS (C10000 Line Card MONitor Image : Release 20000427:084233) Built by richv at Thu Apr 27 08:44:08 2000. Reset reason 0xC0000000 (external hard reset). Operational Image version, slot 3/0 LCDOS (C10000 1 Port OC12 POS Line Card Image : DEVELOPMENT BUILD REL-v120_26_s_lc_throttle.lcdos-weekly /vob/lcdos/obj-c10k-oc12pos 101) major version 1060698969. Built by leccese at Tue Aug 12 10:36:10 2003. Slot/Subslot 4/0: 1oc12pos-1 card, 1 port Card is full slot size Card is analyzed Card detected 1y26w ago Card uptime 713 days, 16707 hours, 1002164 minutes, 60129593 seconds Card idle time 588 days, 13128 hours, 787440 minutes, 47244657 seconds Voltage status: 3.3V Nominal EEPROM contents, slot 4/0: Hardware Revision : 2.0 Part Number : 800-05546-03 Board Revision : F0 Deviation Number : 0-0 Fab Version : 03 PCB Serial Number : CAT072209MS RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 LCMON version, slot 4/0 LCDOS (C10000 Line Card MONitor Image : Release 20000427:084233) Built by richv at Thu Apr 27 08:44:08 2000. Reset reason 0xC0000000 (external hard reset). Operational Image version, slot 4/0 LCDOS (C10000 1 Port OC12 POS Line Card Image : DEVELOPMENT BUILD REL-v120_26_s_lc_throttle.lcdos-weekly /vob/lcdos/obj-c10k-oc12pos 101) major version 1060698969. Built by leccese at Tue Aug 12 10:36:10 2003. Slot/Subslot 5/0: 6cht3-1 card, 6 ports Card is full slot size Card is analyzed Card detected 1y26w ago Card uptime 644 days, 14333 hours, 859018 minutes, 51539657 seconds Card idle time 431 days, 9560 hours, 572720 minutes, 34359759 seconds Voltage status: 3.3V Nominal EEPROM contents, slot 5/0: Hardware Revision : 1.0 Part Number : 800-05547-05 Board Revision : A0 Deviation Number : 0-0 Fab Version : 03 PCB Serial Number : CAB0609MT72 RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Board Revision : AA Unknown Field (type 0036): 4B Unknown Field (type 004C): 58 43 Hardware Revision : 66.255 LCMON version, slot 5/0 LCDOS (C10000 Line Card MONitor Image : Release 20000427:084233) Built by richv at Thu Apr 27 08:44:08 2000. Reset reason 0xC0000000 (external hard reset). Operational Image version, slot 5/0 LCDOS (C10000 6 Port Channelized T3 Line Card Image : DEVELOPMENT BUILD REL-v120_26_s_lc_throttle.lcdos-weekly /vob/lcdos/obj-c10k-ct3 101) major version 1060698849. Built by leccese at Tue Aug 12 10:34:11 2003. Slot/Subslot 6/0: 6cht3-1 card, 6 ports Card is full slot size Card is analyzed Card detected 1y26w ago Card uptime 644 days, 14333 hours, 858997 minutes, 51539619 seconds Card idle time 431 days, 9550 hours, 572718 minutes, 34359783 seconds Voltage status: 3.3V Nominal EEPROM contents, slot 6/0: Hardware Revision : 1.0 Part Number : 800-05547-05 Board Revision : A0 Deviation Number : 0-0 Fab Version : 03 PCB Serial Number : CAB0609MT78 RMA Test History : 00 RMA Number : 0-0-0-0 RMA History : 00 Board Revision : AA Unknown Field (type 0036): 4B Unknown Field (type 004C): 58 43 Hardware Revision : 66.255 LCMON version, slot 6/0 LCDOS (C10000 Line Card MONitor Image : Release 20000427:084233) Built by richv at Thu Apr 27 08:44:08 2000. Reset reason 0xC0000000 (external hard reset). Operational Image version, slot 6/0 ^Cnms-lab3$ Does anyone have any ideas on how to troubleshoot this further? Thanks in Advance! Dave ___________________________________________________________ David A. Mack (703) 295-4398 (W) CCIE #6963 JNCIS (703) 431-7617 (C) email: dmack at gnilink.net (888) 631-0336 (P) Text: mackd at myairmail.com ___________________________________________________________ "For Those About to Route, We Salute You!" From jgervia at nc.rr.com Wed Oct 5 21:54:03 2005 From: jgervia at nc.rr.com (Jason E. Gervia) Date: Wed, 05 Oct 2005 17:54:03 -0400 Subject: Routing Tables Message-ID: <43444B7B.2010303@nc.rr.com> Hello, How hard would it be to get routing information out of cisco routers and into CVS using rancid? I've run into the following situation: 1) I want to use rancid as designed for configuration management 2) I would like a way to also get the routing tables from devices so I can see what changes have occurred there as well. 3) I don't want these 2 things in the same file: ie: configuration in one file, routing table in another file, both in CVS. Doable? And if so, how hard? --Jason From heas at shrubbery.net Thu Oct 6 00:15:55 2005 From: heas at shrubbery.net (john heasley) Date: Thu, 6 Oct 2005 00:15:55 +0000 Subject: Routing Tables In-Reply-To: <43444B7B.2010303@nc.rr.com> References: <43444B7B.2010303@nc.rr.com> Message-ID: <20051006001555.GB8925@shrubbery.net> Wed, Oct 05, 2005 at 05:54:03PM -0400, Jason E. Gervia: > Hello, > > How hard would it be to get routing information out of cisco routers and > into CVS using rancid? > > I've run into the following situation: > > 1) I want to use rancid as designed for configuration management > 2) I would like a way to also get the routing tables from devices so I > can see what changes have occurred there as well. > 3) I don't want these 2 things in the same file: ie: configuration in > one file, routing table in another file, both in CVS. > > Doable? And if so, how hard? requires a little more than just configuration; but add a new device type to rancid-fe & modify a copy of rancid to collect the commands you want and add a separate group for those versions of the devices. From david_laporte at harvard.edu Thu Oct 6 01:01:16 2005 From: david_laporte at harvard.edu (David LaPorte) Date: Wed, 05 Oct 2005 21:01:16 -0400 Subject: Routing Tables In-Reply-To: <43444B7B.2010303@nc.rr.com> References: <43444B7B.2010303@nc.rr.com> Message-ID: <4344775C.1010001@harvard.edu> We've been including IGP routing tables in our rancid diffs for some time now as part of a "whois" type system we've layered on top of rancid using interface description tags. I'd be happy to forward along the diffs if you're interested. Dave Jason E. Gervia wrote: > Hello, > > How hard would it be to get routing information out of cisco routers and > into CVS using rancid? > I've run into the following situation: > > 1) I want to use rancid as designed for configuration management > 2) I would like a way to also get the routing tables from devices so I > can see what changes have occurred there as well. > 3) I don't want these 2 things in the same file: ie: configuration in > one file, routing table in another file, both in CVS. > > Doable? And if so, how hard? > > --Jason From terry at tmk.com Fri Oct 7 21:49:27 2005 From: terry at tmk.com (Terry Kennedy) Date: Fri, 07 Oct 2005 17:49:27 -0400 (EDT) Subject: First cut of a RANCID module for APC network management cards Message-ID: <01LTX8HKV9QU0001Z2@tmk.com> I've developed a RANCID module that talks to current-generation APC network management cards (those with software image names that start with apc_hw02*, such as the AP7900 and the AP9617/8/8 cards). This will let you track config- uration and software version changes on various APC devices, such as UPSs, power strips, and environmental monitors. It will probably work with other APC devices that use the same firmware family. It honors the usual settings for suppression of passwords and community strings. I have tested it on all of the above devices at the latest firmware levels, but would like to give the module additional exposure before suggesting it for inclusion as part of the next RANCID release. As far as I know, this is the first RANCID module that uses FTP to commun- icate with the managed device, so there may be issues with responses from FTP clients other than the one I tested with (FreeBSD 5.x). A compressed tarball of the code can be downloaded from: http://www.tmk.com/transient/rancid-apc.tar.gz I would be interested in any reports (of success or problems) with the code. Depending on the amount of general interest in this module, those reports can be sent to either the mailing list or to me directly. Terry Kennedy http://www.tmk.com terry at tmk.com New York, NY USA From jeekay at gmail.com Sat Oct 8 13:19:46 2005 From: jeekay at gmail.com (Jee Kay) Date: Sat, 8 Oct 2005 14:19:46 +0100 Subject: RANCID sending empty 'routers down' messages Message-ID: I have just added a third site to our RANCID config (the previous two are working fine), but now whenever RANCID runs it sends an empty 'changes in xxxx routers' with a body of 'Routers changed to down' on every run. It only does it for this one site, the other two are having no problems. (When I say 'site', I mean another group within RANCID - there is only one install of the actual software, I'm just adding a new entry to the LIST_OF_GROUPS variable) The only difference between this new site and the other sites is that it consists of a single router.. would that make any difference? If not, any idea what might be causing this? Thanks in advance, Ras From asp at partan.com Sat Oct 8 17:34:01 2005 From: asp at partan.com (Andrew Partan) Date: Sat, 8 Oct 2005 13:34:01 -0400 Subject: RANCID sending empty 'routers down' messages In-Reply-To: References: Message-ID: <20051008173401.GA26668@partan.com> On Sat, Oct 08, 2005 at 02:19:46PM +0100, Jee Kay wrote: > I have just added a third site to our RANCID config (the previous two > are working fine), but now whenever RANCID runs it sends an empty > 'changes in xxxx routers' with a body of 'Routers changed to down' on > every run. It only does it for this one site, the other two are having > no problems. Did you run rancid-cvs after adding the new group to LIST_OF_GROUPS in your rancid.conf file? --asp From david_laporte at harvard.edu Sun Oct 9 02:41:40 2005 From: david_laporte at harvard.edu (David LaPorte) Date: Sat, 08 Oct 2005 22:41:40 -0400 Subject: IGP routing tables diff Message-ID: <43488364.7070701@harvard.edu> I received several requests for the IGP diff, so I thought it'd be easiest to just forward to the list. Attached is a diff against 2.3.1 to grab IGP (static, rip, ospg, igrp, eigrp) tables and include in the archived config as comments. If your network experiences lots of routing changes, this will probably annoy you quite a bit. We've been using it for a couple years without issue on a relatively quiet net. I don't imagine this is anything that should be included in the distribution, but I welcome any suggestions. thanks, Dave -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: rancid.patch Url: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20051008/c6d008e0/attachment.ksh From jeekay at gmail.com Mon Oct 10 05:34:35 2005 From: jeekay at gmail.com (Jee Kay) Date: Mon, 10 Oct 2005 06:34:35 +0100 Subject: RANCID sending empty 'routers down' messages In-Reply-To: <20051008173401.GA26668@partan.com> References: <20051008173401.GA26668@partan.com> Message-ID: On 08/10/05, Andrew Partan wrote: > Did you run rancid-cvs after adding the new group to LIST_OF_GROUPS > in your rancid.conf file? Yep, all the appropriate CVS bits are there. It actually works just fine, sends diffs when there are changes etc, except for every run it also sens the empty email. From frnkblk at iname.com Thu Oct 13 19:19:02 2005 From: frnkblk at iname.com (Frank Bulk) Date: Thu, 13 Oct 2005 14:19:02 -0500 Subject: Adding Motorola BSR1000 support to RANCID Message-ID: I'm a newbie to RANCID, and just finished installing it today. I've added by Cisco devices, but our Motorola CMTS (which has an IOS-like interface) doesn't want to play nice. I used the Cisco device type, and it successfully logs in, but the CLI must be different enough to throw it off. In the logs I get this: cmts: End of run not found ! ===================================== Getting missed routers: round 1. cmts: End of run not found ! ===================================== Getting missed routers: round 2. cmts: End of run not found ! ===================================== Getting missed routers: round 3. cmts: End of run not found ! ===================================== Getting missed routers: round 4. cmts: End of run not found ! That's because the 'show running' ends with exclamation marks rather than how Cisco configs normally ends. ================================================================= enable rdn-process ! ! ! ! ! cable service-class ! ! RDN# ================================================================= I modified the rancid expect file so that 'found_end' was set to '1', but alas, that wasn't enough. Has anyone come with a mod for this device, or a simple workaround? Anyone want to take a stab at this? I'm willing to set up another username/password so that it can be tested. Kind regards, Frank Bulk From dmack at gnilink.net Fri Oct 14 20:24:03 2005 From: dmack at gnilink.net (Mack, Dave) Date: Fri, 14 Oct 2005 16:24:03 -0400 Subject: Rancid Error Message-ID: <923175FC567CCE4B84CA6D225B23CAAA016ACB7A@resmail01.restoncampus.com> Hello! Does anyone know what this error from the log file mean? nms-lab3$ more atc.20051014.161016 starting: Fri Oct 14 16:10:16 EDT 2005 Trying to get all of the configs. All routers sucessfully completed. cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs cvs commit: Up-to-date check failed for `configs/atc-dsl-rtr1' cvs [commit aborted]: correct above errors first! ending: Fri Oct 14 16:12:01 EDT 2005 nms-lab3$ Thanks! Dave ___________________________________________________________ David A. Mack (703) 295-4398 (W) CCIE #6963 JNCIS (703) 431-7617 (C) email: dmack at gnilink.net (888) 631-0336 (P) Text: mackd at myairmail.com ___________________________________________________________ "For Those About to Route, We Salute You!" From grbell at lbl.gov Fri Oct 21 20:51:26 2005 From: grbell at lbl.gov (Gregory Bell) Date: Fri, 21 Oct 2005 13:51:26 -0700 Subject: rancid + Force10 S50? Message-ID: <435954CE.10205@lbl.gov> Has anyone extended f10rancid to work with the Force10 S50 switch? - Greg Bell From faron.hopper at capgemini.com Mon Oct 24 16:13:15 2005 From: faron.hopper at capgemini.com (Hopper, Faron W.) Date: Mon, 24 Oct 2005 12:13:15 -0400 Subject: username field not 1st line rancid see's Message-ID: <0D9EF3454D8EFC4B8BFFD2B862941681C1AB51@caonmastxm03.na.capgemini.com> Hello all, I have a router without tacacs installed on it. It does have a user configured, but it doesn't prompt with the ususal login: prompt. It asks for the password first. I have checked the FAQ and the readme, so what am I missing in my .clogin to get this to work? Thanks in advance, Faron netcfgbak at ckcus0002-cfgbak01$ clogin -c "show version;exit" k0001-intswi k0001-intswi spawn telnet k0001-intswi Trying 10.1.7.228... Connected to k0001-intswi. Escape character is '^]'. User Access Verification Password: Kerberos: No default realm defined for Kerberos! Password: Password: % Bad passwords Error: Check your passwd for k0001-intswi ..clogin #k add user {k0001-intrtr} {user} add user {k0001-intswi} {user} add password {k0001-intrtr} {pass} {pass} add password {k0001-intswi} {pass} {pass} add method {k0001-intrtr} {telnet} add method {k0001-intfw} {telnet} add autoenable *rtr* {1} add autoenable * {0} add enauser * {kcsc/netcfgbak} add user * {kcsc/netcfgbak} add password * {pass} {pass} add method * {telnet} {ssh} add cyphertype * {3des} From mstefani at redhat.com Mon Oct 31 17:23:58 2005 From: mstefani at redhat.com (Michael Stefaniuc) Date: Mon, 31 Oct 2005 18:23:58 +0100 Subject: License question Message-ID: <4366532E.9010206@redhat.com> Hello, while trying to improve the rancid spec file i got from Dan Pfleger so i can start testing rancid i run into a non technical problem: the license. I have read the COPYING file and there is the "non-commerical purposes" limitation for copying, modifying and redistribution. But there is no mention of "use" of the software in there. I googled around and what i found is that FreshMeat shows as license "Other/Proprietary License" (http://themes.freshmeat.net/projects/rancid/) and Debian marks it as "non-free" (http://packages.debian.org/unstable/source/rancid). Couldn't find any previous license discussions for rancid that's why i'm asking now. To me the software looks like an advertising BSD license with some non-commercial restrictions but IANAL so i asked one. His answer was: "I would ask that you contact the maintainers and ask that they clarify that the non-commercial restriction applies only to re-distribution, not to use, copying or modification." What we want to do is to use the rancid internaly at Red Hat, not to sell it, not to distribute it and not to sell any services based on it. Only pure internal use. bye michael -- Michael Stefaniuc Tel.: +49-711-96437-199 Sr. Network Engineer Fax.: +49-711-96437-111 Red Hat GmbH Email: mstefani at redhat.com Hauptstaetterstr. 58 http://www.redhat.de/ D-70178 Stuttgart From hank at rem.com Mon Oct 31 18:16:05 2005 From: hank at rem.com (Hank Kilmer) Date: Mon, 31 Oct 2005 13:16:05 -0500 Subject: License question In-Reply-To: <4366532E.9010206@redhat.com> References: <4366532E.9010206@redhat.com> Message-ID: <43665F65.8020705@rem.com> The intent of the license to to maintain recognition but still allow free use. We have discussed updating the license to make it more "standard" and clear - more later on that. You are free to use it as described. -Hank Michael Stefaniuc wrote: > Hello, > > while trying to improve the rancid spec file i got from Dan Pfleger so i > can start testing rancid i run into a non technical problem: the > license. I have read the COPYING file and there is the "non-commerical > purposes" limitation for copying, modifying and redistribution. But > there is no mention of "use" of the software in there. > I googled around and what i found is that FreshMeat shows as license > "Other/Proprietary License" > (http://themes.freshmeat.net/projects/rancid/) and Debian marks it as > "non-free" (http://packages.debian.org/unstable/source/rancid). Couldn't > find any previous license discussions for rancid that's why i'm asking now. > To me the software looks like an advertising BSD license with some > non-commercial restrictions but IANAL so i asked one. His answer was: "I > would ask that you contact the maintainers and ask that they clarify > that the non-commercial restriction applies only to re-distribution, not > to use, copying or modification." > > What we want to do is to use the rancid internaly at Red Hat, not to > sell it, not to distribute it and not to sell any services based on it. > Only pure internal use. > > bye > michael