From mgelwaharieth at yahoo.com Thu Aug 1 06:13:44 2013 From: mgelwaharieth at yahoo.com (harieth) Date: Thu, 1 Aug 2013 06:13:44 +0000 (UTC) Subject: [rancid] rancid with huawei Message-ID: hello Anyone got Rancid to work with Huawei olt and would care to share? Regards, From jethro.binks at strath.ac.uk Thu Aug 1 12:30:59 2013 From: jethro.binks at strath.ac.uk (Jethro R Binks) Date: Thu, 1 Aug 2013 13:30:59 +0100 (BST) Subject: [rancid] rancid with huawei In-Reply-To: References: Message-ID: Take a look at: http://sites.google.com/site/jrbinks/code/rancid/h3c but it needs some revision and update. Jethro. On Thu, 1 Aug 2013, harieth wrote: > hello > Anyone got Rancid to work with Huawei olt and would care to share? > Regards, > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > . . . . . . . . . . . . . . . . . . . . . . . . . Jethro R Binks, Network Manager, Information Services Directorate, University Of Strathclyde, Glasgow, UK The University of Strathclyde is a charitable body, registered in Scotland, number SC015263. From vachon at sessionm.com Thu Aug 1 12:39:10 2013 From: vachon at sessionm.com (Thomas Vachon) Date: Thu, 1 Aug 2013 08:39:10 -0400 Subject: [rancid] Force10 FTOS 9 keeps triggering alerts due to flash mod time changing Message-ID: It seems in Force10 FTOS9 the mod time on ".." on the flash changes every time a login happens. So everytime RANCID logs in, it triggers an alert. Has anyone else seen this and stopped it from triggering? Just to note, I am not seeing this on the FTOS 8 switches (S55) only the FTOS 9 right after upgrade (S4810P stacked). Below is a few examples. =================================================================== retrieving revision 1.41 diff -u -4 -r1.41 192.168.124.199 !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS = 0.0.0.0 !Boot Variables: Reload Mode = normal-reload ! !Flash: flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . - !Flash: flash: 2 drwx 2048 Aug 02 2013 01:53:36 +00:00 .. + !Flash: flash: 2 drwx 2048 Aug 02 2013 02:53:36 +00:00 .. !Flash: flash: 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 TRACE_LOG_DIR !Flash: flash: 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 CORE_DUMP_DIR !Flash: flash: 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 ADMIN_DIR !Flash: flash: 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 CONFIG_TEMPLATE -------------------- =================================================================== retrieving revision 1.42 diff -u -4 -r1.42 192.168.124.199 @@ -27,9 +27,9 @@ !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS = 0.0.0.0 !Boot Variables: Reload Mode = normal-reload ! !Flash: flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . - !Flash: flash: 2 drwx 2048 Aug 02 2013 02:53:36 +00:00 .. + !Flash: flash: 2 drwx 2048 Aug 02 2013 03:53:36 +00:00 .. !Flash: flash: 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 TRACE_LOG_DIR !Flash: flash: 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 CORE_DUMP_DIR !Flash: flash: 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 ADMIN_DIR !Flash: flash: 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 CONFIG_TEMPLATE -- Thomas Vachon Principal Operations Architect *session M* vachon at sessionm.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Aug 1 13:28:08 2013 From: heas at shrubbery.net (heasley) Date: Thu, 1 Aug 2013 13:28:08 +0000 Subject: [rancid] Force10 FTOS 9 keeps triggering alerts due to flash mod time changing In-Reply-To: <20130801132538.51CC624D041@sea.shrubbery.net> Message-ID: <20130801132808.GB30471@shrubbery.net> Thu, Aug 01, 2013 at 08:39:10AM -0400, Thomas Vachon: > It seems in Force10 FTOS9 the mod time on ".." on the flash changes every > time a login happens. So everytime RANCID logs in, it triggers an alert. > Has anyone else seen this and stopped it from triggering? Just to note, I > am not seeing this on the FTOS 8 switches (S55) only the FTOS 9 right after > upgrade (S4810P stacked). Below is a few examples. > > =================================================================== > retrieving revision 1.41 > diff -u -4 -r1.41 192.168.124.199 > !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS = 0.0.0.0 > !Boot Variables: Reload Mode = normal-reload > ! > !Flash: flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . > - !Flash: flash: 2 drwx 2048 Aug 02 2013 01:53:36 +00:00 .. > + !Flash: flash: 2 drwx 2048 Aug 02 2013 02:53:36 +00:00 .. > > !Flash: flash: 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 > TRACE_LOG_DIR > !Flash: flash: 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 > CORE_DUMP_DIR > !Flash: flash: 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 > ADMIN_DIR > !Flash: flash: 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 > CONFIG_TEMPLATE > > -------------------- > > =================================================================== > retrieving revision 1.42 > diff -u -4 -r1.42 192.168.124.199 > @@ -27,9 +27,9 @@ > !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS = 0.0.0.0 > !Boot Variables: Reload Mode = normal-reload > ! > !Flash: flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . > - !Flash: flash: 2 drwx 2048 Aug 02 2013 02:53:36 +00:00 .. > + !Flash: flash: 2 drwx 2048 Aug 02 2013 03:53:36 +00:00 .. > > !Flash: flash: 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 > TRACE_LOG_DIR > !Flash: flash: 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 > CORE_DUMP_DIR > !Flash: flash: 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 > ADMIN_DIR > !Flash: flash: 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 > CONFIG_TEMPLATE Try Index: bin/f10rancid.in =================================================================== --- bin/f10rancid.in (revision 2719) +++ bin/f10rancid.in (working copy) @@ -336,6 +336,8 @@ return(1) if /(Open device \S+ failed|Error opening \S+:)/; /Directory of/ && next; + # . & .. + / \.{1,2}$/ && next; # clean up totals line if (/.* (\d+) bytes total/) { Index: CHANGES =================================================================== --- CHANGES (revision 2719) +++ CHANGES (working copy) @@ -1,4 +1,6 @@ 3.0a3 + f10rancid: skip . & .. + *login: change -c handling of ;'s for escaping like \; rancid.conf: add MAILSPLIT to split large diff mail by kilobytes From Douglas.Hughes at DEShawResearch.com Thu Aug 1 14:52:33 2013 From: Douglas.Hughes at DEShawResearch.com (Hughes, Doug) Date: Thu, 1 Aug 2013 14:52:33 +0000 Subject: [rancid] Force10 FTOS 9 keeps triggering alerts due to flash mod time changing In-Reply-To: References: Message-ID: I don't have FTOS9 yet, so I haven't seen it. Heasley's patch seems reasonable. I'd probably just make it skip lines in the Flash callback routine that match drwx From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Thomas Vachon Sent: Thursday, August 01, 2013 8:39 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Force10 FTOS 9 keeps triggering alerts due to flash mod time changing It seems in Force10 FTOS9 the mod time on ".." on the flash changes every time a login happens. So everytime RANCID logs in, it triggers an alert. Has anyone else seen this and stopped it from triggering? Just to note, I am not seeing this on the FTOS 8 switches (S55) only the FTOS 9 right after upgrade (S4810P stacked). Below is a few examples. =================================================================== retrieving revision 1.41 diff -u -4 -r1.41 192.168.124.199 !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS = 0.0.0.0 !Boot Variables: Reload Mode = normal-reload ! !Flash: flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . - !Flash: flash: 2 drwx 2048 Aug 02 2013 01:53:36 +00:00 .. + !Flash: flash: 2 drwx 2048 Aug 02 2013 02:53:36 +00:00 .. [https://mail.google.com/mail/u/0/images/cleardot.gif] !Flash: flash: 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 TRACE_LOG_DIR !Flash: flash: 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 CORE_DUMP_DIR !Flash: flash: 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 ADMIN_DIR !Flash: flash: 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 CONFIG_TEMPLATE -------------------- =================================================================== retrieving revision 1.42 diff -u -4 -r1.42 192.168.124.199 @@ -27,9 +27,9 @@ !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS = 0.0.0.0 !Boot Variables: Reload Mode = normal-reload ! !Flash: flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . - !Flash: flash: 2 drwx 2048 Aug 02 2013 02:53:36 +00:00 .. + !Flash: flash: 2 drwx 2048 Aug 02 2013 03:53:36 +00:00 .. [https://mail.google.com/mail/u/0/images/cleardot.gif] !Flash: flash: 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 TRACE_LOG_DIR !Flash: flash: 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 CORE_DUMP_DIR !Flash: flash: 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 ADMIN_DIR !Flash: flash: 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 CONFIG_TEMPLATE -- Thomas Vachon Principal Operations Architect session M vachon at sessionm.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From vachon at sessionm.com Thu Aug 1 13:52:27 2013 From: vachon at sessionm.com (Thomas Vachon) Date: Thu, 1 Aug 2013 09:52:27 -0400 Subject: [rancid] Force10 FTOS 9 keeps triggering alerts due to flash mod time changing In-Reply-To: <20130801132808.GB30471@shrubbery.net> References: <20130801132538.51CC624D041@sea.shrubbery.net> <20130801132808.GB30471@shrubbery.net> Message-ID: No better. Still happens on ever rancid-run. I tried moving it to a non-terminating regex and adding a \n with no luck. IT seems to trip up on the date. Here is the exact output of dir flash: Directory of flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . 2 drwx 2048 Aug 02 2013 05:36:24 +00:00 .. 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 TRACE_LOG_DIR 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 CORE_DUMP_DIR 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 ADMIN_DIR 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 CONFIG_TEMPLATE 7 -rwx 16712 Jul 31 2013 11:53:56 +00:00 startup-config 8 drwx 4096 Jul 31 2012 09:38:16 +00:00 RUNTIME_PATCH_DIR 9 -rwx 16351 Jun 19 2013 10:26:30 +00:00 startup-config.bak Looking at dir flash:/.. it is actually the / mount of the FTOS OS, which is getting modified by a log entry for the login as far as I can tell. -- Thomas Vachon Principal Operations Architect *session M* +1-617-963-8993 x7104 vachon at sessionm.com On Thu, Aug 1, 2013 at 9:28 AM, heasley wrote: > Thu, Aug 01, 2013 at 08:39:10AM -0400, Thomas Vachon: > > It seems in Force10 FTOS9 the mod time on ".." on the flash changes > every > > time a login happens. So everytime RANCID logs in, it triggers an alert. > > Has anyone else seen this and stopped it from triggering? Just to note, > I > > am not seeing this on the FTOS 8 switches (S55) only the FTOS 9 right > after > > upgrade (S4810P stacked). Below is a few examples. > > > > =================================================================== > > retrieving revision 1.41 > > diff -u -4 -r1.41 192.168.124.199 > > !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS = 0.0.0.0 > > !Boot Variables: Reload Mode = normal-reload > > ! > > !Flash: flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . > > - !Flash: flash: 2 drwx 2048 Aug 02 2013 01:53:36 +00:00 .. > > + !Flash: flash: 2 drwx 2048 Aug 02 2013 02:53:36 +00:00 .. > > > > !Flash: flash: 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 > > TRACE_LOG_DIR > > !Flash: flash: 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 > > CORE_DUMP_DIR > > !Flash: flash: 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 > > ADMIN_DIR > > !Flash: flash: 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 > > CONFIG_TEMPLATE > > > > -------------------- > > > > =================================================================== > > retrieving revision 1.42 > > diff -u -4 -r1.42 192.168.124.199 > > @@ -27,9 +27,9 @@ > > !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS = 0.0.0.0 > > !Boot Variables: Reload Mode = normal-reload > > ! > > !Flash: flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . > > - !Flash: flash: 2 drwx 2048 Aug 02 2013 02:53:36 +00:00 .. > > + !Flash: flash: 2 drwx 2048 Aug 02 2013 03:53:36 +00:00 .. > > > > !Flash: flash: 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 > > TRACE_LOG_DIR > > !Flash: flash: 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 > > CORE_DUMP_DIR > > !Flash: flash: 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 > > ADMIN_DIR > > !Flash: flash: 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 > > CONFIG_TEMPLATE > > Try > > Index: bin/f10rancid.in > =================================================================== > --- bin/f10rancid.in (revision 2719) > +++ bin/f10rancid.in (working copy) > @@ -336,6 +336,8 @@ > return(1) if /(Open device \S+ failed|Error opening \S+:)/; > > /Directory of/ && next; > + # . & .. > + / \.{1,2}$/ && next; > > # clean up totals line > if (/.* (\d+) bytes total/) { > Index: CHANGES > =================================================================== > --- CHANGES (revision 2719) > +++ CHANGES (working copy) > @@ -1,4 +1,6 @@ > 3.0a3 > + f10rancid: skip . & .. > + > *login: change -c handling of ;'s for escaping like \; > > rancid.conf: add MAILSPLIT to split large diff mail by kilobytes > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Douglas.Hughes at DEShawResearch.com Thu Aug 1 15:05:56 2013 From: Douglas.Hughes at DEShawResearch.com (Hughes, Doug) Date: Thu, 1 Aug 2013 15:05:56 +0000 Subject: [rancid] Force10 FTOS 9 keeps triggering alerts due to flash mod time changing In-Reply-To: References: <20130801132538.51CC624D041@sea.shrubbery.net> <20130801132808.GB30471@shrubbery.net> Message-ID: Try this.. Edit f10rancid Go to sub ShowFlash If you want to just remove the '..' directory that is triggering: Right after one of the two 'next if' lines, add another: next if (/\.\.$/); Or if you want to remove all drwx directories (they don't add much value. We mostly care about the files) next if (/drwx/); From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Thomas Vachon Sent: Thursday, August 01, 2013 9:52 AM To: heasley Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Force10 FTOS 9 keeps triggering alerts due to flash mod time changing No better. Still happens on ever rancid-run. I tried moving it to a non-terminating regex and adding a \n with no luck. IT seems to trip up on the date. Here is the exact output of dir flash: Directory of flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . 2 drwx 2048 Aug 02 2013 05:36:24 +00:00 .. 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 TRACE_LOG_DIR 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 CORE_DUMP_DIR 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 ADMIN_DIR 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 CONFIG_TEMPLATE 7 -rwx 16712 Jul 31 2013 11:53:56 +00:00 startup-config 8 drwx 4096 Jul 31 2012 09:38:16 +00:00 RUNTIME_PATCH_DIR 9 -rwx 16351 Jun 19 2013 10:26:30 +00:00 startup-config.bak Looking at dir flash:/.. it is actually the / mount of the FTOS OS, which is getting modified by a log entry for the login as far as I can tell. -- Thomas Vachon Principal Operations Architect session M +1-617-963-8993 x7104 vachon at sessionm.com On Thu, Aug 1, 2013 at 9:28 AM, heasley > wrote: Thu, Aug 01, 2013 at 08:39:10AM -0400, Thomas Vachon: > It seems in Force10 FTOS9 the mod time on ".." on the flash changes every > time a login happens. So everytime RANCID logs in, it triggers an alert. > Has anyone else seen this and stopped it from triggering? Just to note, I > am not seeing this on the FTOS 8 switches (S55) only the FTOS 9 right after > upgrade (S4810P stacked). Below is a few examples. > > =================================================================== > retrieving revision 1.41 > diff -u -4 -r1.41 192.168.124.199 > !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS = 0.0.0.0 > !Boot Variables: Reload Mode = normal-reload > ! > !Flash: flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . > - !Flash: flash: 2 drwx 2048 Aug 02 2013 01:53:36 +00:00 .. > + !Flash: flash: 2 drwx 2048 Aug 02 2013 02:53:36 +00:00 .. > > !Flash: flash: 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 > TRACE_LOG_DIR > !Flash: flash: 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 > CORE_DUMP_DIR > !Flash: flash: 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 > ADMIN_DIR > !Flash: flash: 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 > CONFIG_TEMPLATE > > -------------------- > > =================================================================== > retrieving revision 1.42 > diff -u -4 -r1.42 192.168.124.199 > @@ -27,9 +27,9 @@ > !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS = 0.0.0.0 > !Boot Variables: Reload Mode = normal-reload > ! > !Flash: flash: 1 drwx 4096 Jan 01 1980 00:00:00 +00:00 . > - !Flash: flash: 2 drwx 2048 Aug 02 2013 02:53:36 +00:00 .. > + !Flash: flash: 2 drwx 2048 Aug 02 2013 03:53:36 +00:00 .. > > !Flash: flash: 3 drwx 4096 Mar 30 2012 18:16:28 +00:00 > TRACE_LOG_DIR > !Flash: flash: 4 drwx 4096 Mar 30 2012 18:16:28 +00:00 > CORE_DUMP_DIR > !Flash: flash: 5 d--- 4096 Mar 30 2012 18:16:28 +00:00 > ADMIN_DIR > !Flash: flash: 6 drwx 4096 Jul 31 2013 11:55:02 +00:00 > CONFIG_TEMPLATE Try Index: bin/f10rancid.in =================================================================== --- bin/f10rancid.in (revision 2719) +++ bin/f10rancid.in (working copy) @@ -336,6 +336,8 @@ return(1) if /(Open device \S+ failed|Error opening \S+:)/; /Directory of/ && next; + # . & .. + / \.{1,2}$/ && next; # clean up totals line if (/.* (\d+) bytes total/) { Index: CHANGES =================================================================== --- CHANGES (revision 2719) +++ CHANGES (working copy) @@ -1,4 +1,6 @@ 3.0a3 + f10rancid: skip . & .. + *login: change -c handling of ;'s for escaping like \; rancid.conf: add MAILSPLIT to split large diff mail by kilobytes -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex.wilkinson at cba.com.au Mon Aug 5 02:33:11 2013 From: alex.wilkinson at cba.com.au (Wilkinson, Alex) Date: Mon, 5 Aug 2013 12:33:11 +1000 Subject: [rancid] Email Alerts - Including Username That Did Change ? Possible ? Message-ID: <20130805023311.GA88427@margz.perth.internal> Hi all, Is it possible to have included in the RANCID email alerts the user-name that did the actual change ? -Alex ************** IMPORTANT MESSAGE ***************************** This e-mail message is intended only for the addressee(s) and contains information which may be confidential. If you are not the intended recipient please advise the sender by return email, do not use or disclose the contents, and delete the message and any attachments from your system. Unless specifically indicated, this email does not constitute formal advice or commitment by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. We can be contacted through our web site: commbank.com.au. If you no longer wish to receive commercial electronic messages from us, please reply to this e-mail by typing Unsubscribe in the subject line. ************************************************************** From alan.mckinnon at gmail.com Mon Aug 5 05:58:06 2013 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Mon, 05 Aug 2013 07:58:06 +0200 Subject: [rancid] Email Alerts - Including Username That Did Change ? Possible ? In-Reply-To: <20130805023311.GA88427@margz.perth.internal> References: <20130805023311.GA88427@margz.perth.internal> Message-ID: <51FF3EEE.6010100@gmail.com> On 05/08/2013 04:33, Wilkinson, Alex wrote: > Hi all, > > Is it possible to have included in the RANCID email alerts the user-name that did the actual change ? > I doubt it. That information is not usually stored in the device's config. Rancid is limited to using information it can acquire from a telnet/ssh login session. The user who made a change can be gotten from tacacs accounting logs or possibly from syslog. -- Alan McKinnon alan.mckinnon at gmail.com From heas at shrubbery.net Mon Aug 5 06:51:08 2013 From: heas at shrubbery.net (heasley) Date: Mon, 5 Aug 2013 06:51:08 +0000 Subject: [rancid] Email Alerts - Including Username That Did Change ? Possible ? In-Reply-To: <51FF3EEE.6010100@gmail.com> References: <20130805023311.GA88427@margz.perth.internal> <51FF3EEE.6010100@gmail.com> Message-ID: <20130805065108.GA50391@shrubbery.net> Mon, Aug 05, 2013 at 07:58:06AM +0200, Alan McKinnon: > On 05/08/2013 04:33, Wilkinson, Alex wrote: > > Hi all, > > > > Is it possible to have included in the RANCID email alerts the user-name that did the actual change ? > > > > > I doubt it. That information is not usually stored in the device's > config. Rancid is limited to using information it can acquire from a > telnet/ssh login session. > > The user who made a change can be gotten from tacacs accounting logs or > possibly from syslog. this the best way. there is a way trigger rancid run from syslogs; see the FAQ. From prt at prt.org Tue Aug 6 08:14:18 2013 From: prt at prt.org (Paul Thornton) Date: Tue, 06 Aug 2013 09:14:18 +0100 Subject: [rancid] Extreme false changes caused by corruption in config Message-ID: <5200B05A.4090608@prt.org> Hi list I have an annoying problem with using rancid with Extreme kit. I have recently upgraded an ancient FreeBSD 6 and RANCID install to a fresh FreeBSD 9.1 and RANCID 2.3.8 setup (using expect 5.44.1.15) which now gives me a problem. The issue shows itself as the text 'quit' appearing throughout the freshly downloaded config - see example diff at end of mail - presumably caused by clogin sending the "quit" string to the switch during the "show conf" output which is then echoed back by the switch. Naturally this is a pain as it triggers lots of change E-mails which aren't changes at all. Running xrancid with NOPIPE set gives an interesting bit of .raw file which suggests that this is exactly what happens: ... ^Mtempswitch.7 #show configuration ^Mqu# # Module devmgr configuration. # configure snmp sysName "tempswitch" configure timezone name UTC 0 noautodst configure sys-recovery-level switch reset i # # Module vlan configuration. # ... Surely that 'qu' immediately after the 'show configuration' (and the 'i' six lines later) should not be sent until clogin sees the prompt? The prompt matching code (especially for Extreme) has always been a bit troublesome and I recall in the past having to hand-hack parts of clogin and xrancid to make this work properly. I can't remember what I did in the past though. Has anyone else suffered from this? Any suggestions for a fix? I thought it may just be a FreeBSD/RANCID strangeness, but I see the same thing using CentOS as well. Many thanks, Paul. - -- configs/tempswitch (revision 2334) @@ -10,13 +10,13 @@ # # # - qu# + q# # Module devmgr configuration. # configure snmp sysName "tempswitch" configure timezone name UTC 0 noautodst configure sys-recovery-level switch reset - i + u # # Module vlan configuration. # @@ -145,8 +145,6 @@ # # Module elrp configuration. # - t - # # Module ems configuration. # configure log filter DefaultFilter add exclude events exsshd.RejctConnAccessDeny @@ -274,6 +272,8 @@ # # Module thttpd configuration. # + it + # # Module vmt configuration. # # Module vrrp configuration. From willie.s.hinote at nasa.gov Tue Aug 6 15:48:50 2013 From: willie.s.hinote at nasa.gov (Hinote, Scotty (MSFC-IS40)[NICS]) Date: Tue, 6 Aug 2013 10:48:50 -0500 Subject: [rancid] netscreen login issue Message-ID: <8420D9D639CBE744B778A8916DFFC90FF82C1ED00E@NDMSSCC08.ndc.nasa.gov> Hi All, I am trying to login to a Netscreen device using nlogin. There is a security message enabled that asks the user if they wish to connect and the last line is "Accept this agreement y/[n]". I need a way to pass a y and carriage return to bypass this message and proceed with login. Ultimately the goal is to backup the device using rancid-run. Any suggestions are greatly appreciated. Thank you, Scotty -------------- next part -------------- An HTML attachment was scrubbed... URL: From skyeh at uidaho.edu Wed Aug 7 18:49:27 2013 From: skyeh at uidaho.edu (Hagen, Skye) Date: Wed, 7 Aug 2013 18:49:27 +0000 Subject: [rancid] Rancid not collecting VLAN info on Cisco ME-3600 In-Reply-To: <20130701162519.GJ323@shrubbery.net> Message-ID: Rancid 2.3.6 does not collect VLAN information on a Cisco ME-3600 switch. This is because the ME-3600 does not support VTP, and returns 'Invalid command'. Rancid will only collect VLAN info on switches if the VTP mode is transparent or server. The ShowVTP subroutine sets a flag ($DO_SHOW_VLAN) if the VTP mode is server or transparent. The ShowVLAN routine immediately returns if this flag is not set, bypassing the VLAN info. My quick and dirty change was to set the flag in ShowVTP, if the type is ME-3600. I do this before entering the while loop, so that the flag is set before the subroutine exits because of the invalid command test. I'm not sure that this is the best way to correct this, but it works in my environment. # This routine parses "show vtp status" sub ShowVTP { print STDERR " In ShowVTP: $_" if ($debug); $DO_SHOW_VLAN = 1 if ($type =~ /^ME-3600X/); # ME-3600 doesn't support VTP while () { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if /^\s*\^\s*$/; return(1) if (/Line has invalid autocommand /); return(1) if (/(Invalid (input|command) detected|Type help or )/i); #return(1) if ($type !~ /^(2900XL|3500XL|6000)$/); return(-1) if (/command authorization failed/i); next if (/^Configuration last modified by/); # the pager can not be disabled per-session on the PIX if (/^(<-+ More -+>)/) { my($len) = length($1); s/^$1\s{$len}//; } if (/^VTP Operating Mode\s+:\s+(Transparent|Server)/) { $DO_SHOW_VLAN = 1; } ProcessHistory("COMMENTS","keysort","I0","!VTP: $_"); } ProcessHistory("COMMENTS","keysort","I0","!\n"); return(0); } From Chris.Davis at prin.edu Wed Aug 7 20:09:04 2013 From: Chris.Davis at prin.edu (Chris Davis) Date: Wed, 7 Aug 2013 20:09:04 +0000 Subject: [rancid] Couple of Questions. upgrading and Fortinet issue. In-Reply-To: <20130723221930.GI90797@shrubbery.net> References: <20130723221614.DACF224D02A@sea.shrubbery.net> <20130723221930.GI90797@shrubbery.net> Message-ID: That is the way they are set up. It seemed strange to me but it all works. Chris -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Tuesday, July 23, 2013 5:20 PM To: Chris Davis Cc: 'Richard Savage'; 'rancid-discuss at shrubbery.net' Subject: Re: [rancid] Couple of Questions. upgrading and Fortinet issue. Mon, Jul 15, 2013 at 09:42:03PM +0000, Chris Davis: > Here is what I am seeing in my rancid reports. > > Index: configs/x.x.x.x > =================================================================== > retrieving revision 1.150 > diff -U 4 -r1.150 x.x.x.x > @@ -17,9 +17,9 @@ > !Distribution: International > !Branch point: 665 > !Release Version Information: MR3 Patch 14 > !FortiOS x86-64: Yes > - !System time: Mon Jul 15 15:06:58 2013 > + !System time: Mon Jul 15 16:07:02 2013 see patch below > config system global > set access-banner disable > set admin-concurrent enable > @@ -9112,22 +9112,22 @@ > edit "Fortinet_Factory" > !set password ENC > set private-key "-----BEGIN RSA PRIVATE KEY----- > Proc-Type: 4,ENCRYPTED > > And then my old key and then the new key. I'm not sure if it's getting confused on the master/slave issue because the fortinet's have the same IP address, even though there are two separate firewalls. Could be the time issue too. seems like a rather odd configuration for the primary and standy by answer on the same management address when they're both active?? Index: bin/fnrancid.in =================================================================== --- bin/fnrancid.in (revision 2279) +++ bin/fnrancid.in (revision 2280) @@ -175,7 +175,7 @@ next if /^\s*$/; last if (/$prompt/); - next if (/^System Time:/); + next if (/^system time:/i); next if (/^\s*Virus-DB: .*/); next if (/^\s*Extended DB: .*/); next if (/^\s*IPS-DB: .*/); @@ -207,7 +207,7 @@ # System time is fortigate extraction time next if (/^\s*!System time:/); # remove occurrances of conf_file_ver - next if (/^conf_file_ver=/); + next if (/^#?conf_file_ver=/); # filter variabilities between configurations. password encryption # upon each display of the configuration. if (/^\s*(set [^\s]*)\s(Enc\s[^\s]+)(.*)/i && $filter_pwds > 0 ) { From W.Fuertbauer at asamer.at Thu Aug 8 10:03:21 2013 From: W.Fuertbauer at asamer.at (=?iso-8859-1?Q?F=FCrtbauer_Wolfgang?=) Date: Thu, 8 Aug 2013 12:03:21 +0200 Subject: [rancid] SOLVED Patton Voip routers Message-ID: <0ED6B1B67292F947912E190954646EDF0123A6DB@aohexchange01.asamer.holding.ah> For those, who haven't solved that until now: Patton Voip Routers act more or less like Cisco; in my case, devices are reachable via telnet, not automatically enabled and enable password is blank so -- router.db -- yourpattondevice:cisco:up -- .clogin -- add user *patton* yoursuser add password *patton* {} add method *patton* telnet add autoenable *patton* 0 Works like a charme! BR Wolfgang F?rtbauer Prokurist Asamer Holding AG Unterthalhamstr. 2 4694 Ohlsdorf AUSTRIA tel +43 50 799 - 2500 fax +43 7612 799 - 92500 mobile +43 664 8332326 W.Fuertbauer at asamer.at www.asamer.at This message is confidential. It may not be disclosed to, or used by, anyone other than the addressee. If you receive this message by mistake, please advise the sender. Firmenbuch: Landesgericht Wels, FN: 115289v, ATU 58442812 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Logo_Asamer_Holding_4C.gif Type: image/gif Size: 2745 bytes Desc: not available URL: From heas at shrubbery.net Thu Aug 8 13:58:18 2013 From: heas at shrubbery.net (heasley) Date: Thu, 8 Aug 2013 13:58:18 +0000 Subject: [rancid] Couple of Questions. upgrading and Fortinet issue. In-Reply-To: References: <20130723221614.DACF224D02A@sea.shrubbery.net> <20130723221930.GI90797@shrubbery.net> Message-ID: <20130808135818.GF90495@shrubbery.net> Wed, Aug 07, 2013 at 08:09:04PM +0000, Chris Davis: > > And then my old key and then the new key. I'm not sure if it's getting confused on the master/slave issue because the fortinet's have the same IP address, even though there are two separate firewalls. Could be the time issue too. > > seems like a rather odd configuration for the primary and standy by answer on the same management address when they're both active?? > That is the way they are set up. It seemed strange to me but it all works. Well, you probably just need to add a filter for the key. From heas at shrubbery.net Thu Aug 8 15:17:59 2013 From: heas at shrubbery.net (heasley) Date: Thu, 8 Aug 2013 15:17:59 +0000 Subject: [rancid] Rancid not collecting VLAN info on Cisco ME-3600 In-Reply-To: References: <20130701162519.GJ323@shrubbery.net> Message-ID: <20130808151759.GB93877@shrubbery.net> Wed, Aug 07, 2013 at 06:49:27PM +0000, Hagen, Skye: > Rancid 2.3.6 does not collect VLAN information on a Cisco ME-3600 switch. > This is because the ME-3600 does not support VTP, and returns 'Invalid > command'. Rancid will only collect VLAN info on switches if the VTP mode > is transparent or server. The ShowVTP subroutine sets a flag > ($DO_SHOW_VLAN) if the VTP mode is server or transparent. The ShowVLAN > routine immediately returns if this flag is not set, bypassing the VLAN > info. > > My quick and dirty change was to set the flag in ShowVTP, if the type is > ME-3600. I do this before entering the while loop, so that the flag is set > before the subroutine exits because of the invalid command test. I'm not > sure that this is the best way to correct this, but it works in my > environment. should the check really be the reversed? if it _is_ a vtp client, skip show vlan. > # This routine parses "show vtp status" > sub ShowVTP { > print STDERR " In ShowVTP: $_" if ($debug); > > $DO_SHOW_VLAN = 1 if ($type =~ /^ME-3600X/); # ME-3600 doesn't support > VTP > while () { > tr/\015//d; > last if (/^$prompt/); > next if (/^(\s*|\s*$cmd\s*)$/); > return(1) if /^\s*\^\s*$/; > return(1) if (/Line has invalid autocommand /); > return(1) if (/(Invalid (input|command) detected|Type help or )/i); > #return(1) if ($type !~ /^(2900XL|3500XL|6000)$/); > return(-1) if (/command authorization failed/i); > next if (/^Configuration last modified by/); > # the pager can not be disabled per-session on the PIX > if (/^(<-+ More -+>)/) { > my($len) = length($1); > s/^$1\s{$len}//; > } > > if (/^VTP Operating Mode\s+:\s+(Transparent|Server)/) { > $DO_SHOW_VLAN = 1; > } > ProcessHistory("COMMENTS","keysort","I0","!VTP: $_"); > } > ProcessHistory("COMMENTS","keysort","I0","!\n"); > return(0); > } > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From skyeh at uidaho.edu Thu Aug 8 16:37:56 2013 From: skyeh at uidaho.edu (Hagen, Skye) Date: Thu, 8 Aug 2013 16:37:56 +0000 Subject: [rancid] Rancid not collecting VLAN info on Cisco ME-3600 In-Reply-To: <20130808151759.GB93877@shrubbery.net> References: <20130701162519.GJ323@shrubbery.net> , <20130808151759.GB93877@shrubbery.net> Message-ID: <1575093c03d343f6b94e6c516395f79c@BN1PR04MB060.namprd04.prod.outlook.com> I agree, reversing the logic makes more sense. I knew there was a better answer than mine. For right now, I'll leave that to you for a future release. Thanks, Skye. ________________________________________ From: heasley Sent: Thursday, August 08, 2013 8:17 AM To: Hagen, Skye Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Rancid not collecting VLAN info on Cisco ME-3600 Wed, Aug 07, 2013 at 06:49:27PM +0000, Hagen, Skye: > Rancid 2.3.6 does not collect VLAN information on a Cisco ME-3600 switch. > This is because the ME-3600 does not support VTP, and returns 'Invalid > command'. Rancid will only collect VLAN info on switches if the VTP mode > is transparent or server. The ShowVTP subroutine sets a flag > ($DO_SHOW_VLAN) if the VTP mode is server or transparent. The ShowVLAN > routine immediately returns if this flag is not set, bypassing the VLAN > info. > > My quick and dirty change was to set the flag in ShowVTP, if the type is > ME-3600. I do this before entering the while loop, so that the flag is set > before the subroutine exits because of the invalid command test. I'm not > sure that this is the best way to correct this, but it works in my > environment. should the check really be the reversed? if it _is_ a vtp client, skip show vlan. > # This routine parses "show vtp status" > sub ShowVTP { > print STDERR " In ShowVTP: $_" if ($debug); > > $DO_SHOW_VLAN = 1 if ($type =~ /^ME-3600X/); # ME-3600 doesn't support > VTP > while () { > tr/\015//d; > last if (/^$prompt/); > next if (/^(\s*|\s*$cmd\s*)$/); > return(1) if /^\s*\^\s*$/; > return(1) if (/Line has invalid autocommand /); > return(1) if (/(Invalid (input|command) detected|Type help or )/i); > #return(1) if ($type !~ /^(2900XL|3500XL|6000)$/); > return(-1) if (/command authorization failed/i); > next if (/^Configuration last modified by/); > # the pager can not be disabled per-session on the PIX > if (/^(<-+ More -+>)/) { > my($len) = length($1); > s/^$1\s{$len}//; > } > > if (/^VTP Operating Mode\s+:\s+(Transparent|Server)/) { > $DO_SHOW_VLAN = 1; > } > ProcessHistory("COMMENTS","keysort","I0","!VTP: $_"); > } > ProcessHistory("COMMENTS","keysort","I0","!\n"); > return(0); > } > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From andrew.brennan+rancid at drexel.edu Mon Aug 12 19:20:55 2013 From: andrew.brennan+rancid at drexel.edu (andrew.brennan+rancid at drexel.edu) Date: Mon, 12 Aug 2013 15:20:55 -0400 (EDT) Subject: [rancid] RANCID and Cisco's VSS output? Message-ID: While doing a quick inventory check of our modules, I noticed that there were 4 different serial numbers listed for WS-X6716-10GE modules ... but only two of those matched up with "Slot #" lines. I'm guessing the "show inventory" in a VSS system produces output that's for both chassis, but "show module" only has details for the modules in the active chassis? There's a "show module switch all" command, but I'm suspecting that the output might be troublesome to parse. If someone else has already addressed this in RANCID patches, I'd love to save some time and use their work. :) Unfortunately, I can't get to the RANCID web site right now to check out the version history and/or FAQ. Thanks! andrew. From willie.s.hinote at nasa.gov Tue Aug 13 18:07:19 2013 From: willie.s.hinote at nasa.gov (Hinote, Scotty (MSFC-IS40)[NICS]) Date: Tue, 13 Aug 2013 18:07:19 +0000 Subject: [rancid] netscreen login issue In-Reply-To: <8420D9D639CBE744B778A8916DFFC90FF82C1ED00E@NDMSSCC08.ndc.nasa.gov> References: <8420D9D639CBE744B778A8916DFFC90FF82C1ED00E@NDMSSCC08.ndc.nasa.gov> Message-ID: Hi All, Since I was not able to find a way to work around this with scripting I asked the firewall administrator to disable the acknowledgement for the secondary banner. If anyone else is experiencing this same issue and you or your firewall admin is willing to make the change you will need to use the following command in the CLI. unset admin auth banner ack-secondary Or to disable the secondary banner completely. unset admin auth banner secondary "agreement" Thank you, Scotty From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Hinote, Scotty (MSFC-IS40)[NICS] Sent: Tuesday, August 06, 2013 10:49 AM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] netscreen login issue Hi All, I am trying to login to a Netscreen device using nlogin. There is a security message enabled that asks the user if they wish to connect and the last line is "Accept this agreement y/[n]". I need a way to pass a y and carriage return to bypass this message and proceed with login. Ultimately the goal is to backup the device using rancid-run. Any suggestions are greatly appreciated. Thank you, Scotty -------------- next part -------------- An HTML attachment was scrubbed... URL: From bwiese at ElementPS.com Wed Aug 14 00:22:01 2013 From: bwiese at ElementPS.com (Brent Wiese) Date: Wed, 14 Aug 2013 00:22:01 +0000 Subject: [rancid] missed cmds, but only when run from cron Message-ID: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> This is boggling my mind. I slightly modified the f5rancid script to work with their version 11 TMOS. Basically, all it does is "show running-config" and then runs "quit" instead of "exit" when it finds the prompt. This has been working just fine for our existing load balancers. But we recently added a new set. The first run appears to work. Then I start getting this in the logs: starting: Tue Aug 13 17:02:11 MST 2013 cvs add: lb01.my.domain already exists, with version number 1.4 Added lb01.my.domain Trying to get all of the configs. lb01.my.domain: (v11) missed cmd(s): show running-config lb01.my.domain: (v11) End of run not found # I don't get it - if I run f5rancid_v11 (my modified copy), it runs just fine and the ".new" file is there with all the info I need. It's only when it's run from cron that it throws any kind of error. F5login runs fine too (or f5rancid_v11 would fail). I added the "(v11)" in the log line area to confirm it's running the correct script when it does rancid-run. Since it's logging errors, I don't think it's any kind of permissions error. But I am running as the same user as the cron job. All my other configs are coming in and diff'ing just fine, so I don't think it's a CVS issue (or the ability to write temp files for example). Any ideas? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at gear.dyndns.org Wed Aug 14 04:05:28 2013 From: paul at gear.dyndns.org (Paul Gear) Date: Wed, 14 Aug 2013 14:05:28 +1000 Subject: [rancid] missed cmds, but only when run from cron In-Reply-To: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> References: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> Message-ID: On 08/14/2013 10:22 AM, Brent Wiese wrote: > This is boggling my mind. > > I slightly modified the f5rancid script to work with their version 11 > TMOS. Basically, all it does is ?show running-config? and then runs > ?quit? instead of ?exit? when it finds the prompt. > > This has been working just fine for our existing load balancers. But we > recently added a new set. The first run appears to work. Then I start > getting this in the logs: > > starting: Tue Aug 13 17:02:11 MST 2013 > > cvs add: lb01.my.domain already exists, with version number 1.4 > > Added lb01.my.domain > > Trying to get all of the configs. > > lb01.my.domain: (v11) missed cmd(s): show running-config > > lb01.my.domain: (v11) End of run not found > > # > > I don?t get it ? if I run f5rancid_v11 (my modified copy), it runs just > fine and the ?.new? file is there with all the info I need. It?s only > when it?s run from cron that it throws any kind of error. F5login runs > fine too (or f5rancid_v11 would fail). I added the ?(v11)? in the log > line area to confirm it?s running the correct script when it does > rancid-run. > > Since it?s logging errors, I don?t think it?s any kind of permissions > error. But I am running as the same user as the cron job. > > All my other configs are coming in and diff?ing just fine, so I don?t > think it?s a CVS issue (or the ability to write temp files for example). I'm seeing something very similar with one Mikrotik device out of 17 on our network. If run from the command line, it works fine. If run from cron, one router in the group fails, giving the following error log: > starting: Tue Aug 13 00:01:32 EST 2013 > > > > Trying to get all of the configs. > failing-router-name: missed cmd(s): system package print detail without-paging > ===================================== > Getting missed routers: round 1. > failing-router-name: missed cmd(s): system package print detail without-paging > ===================================== > Getting missed routers: round 2. > failing-router-name: missed cmd(s): system package print detail without-paging > ===================================== > Getting missed routers: round 3. > failing-router-name: missed cmd(s): system package print detail without-paging > ===================================== > Getting missed routers: round 4. > failing-router-name: missed cmd(s): system package print detail without-paging > > > ending: Tue Aug 13 00:02:30 EST 2013 Here's the successful run's log: > > starting: Tue Aug 13 16:48:37 EST 2013 > > > > Trying to get all of the configs. > All routers sucessfully completed. > > > ending: Tue Aug 13 16:48:46 EST 2013 Looks like there might be some type of logic bug that is present in more than one place. Paul From jandrewartha at ccgs.wa.edu.au Wed Aug 14 04:20:11 2013 From: jandrewartha at ccgs.wa.edu.au (James Andrewartha) Date: Wed, 14 Aug 2013 12:20:11 +0800 Subject: [rancid] missed cmds, but only when run from cron In-Reply-To: References: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> Message-ID: <520B057B.9030403@ccgs.wa.edu.au> On 14/08/13 12:05, Paul Gear wrote: > I'm seeing something very similar with one Mikrotik device out of 17 on > our network. If run from the command line, it works fine. If run from > cron, one router in the group fails, giving the following error log: I had the same problem with a script I'd adapted, the solution was to increase the timeout, as the device was quite slow to generate its config. -- James Andrewartha Network & Projects Engineer Christ Church Grammar School Claremont, Western Australia Ph. (08) 9442 1757 Mob. 0424 160 877 From alan.mckinnon at gmail.com Wed Aug 14 05:53:49 2013 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Wed, 14 Aug 2013 07:53:49 +0200 Subject: [rancid] missed cmds, but only when run from cron In-Reply-To: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> References: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> Message-ID: <520B1B6D.3000708@gmail.com> If it truly is a case that the script always fails when run from the commandline and always fails when run from cron, then the problem is almost certainly one of two thing 1. Your cron is set to run when something else is happening on the network, and this increased activity is too much. This is rare. 2. Shell environment issues. This is very common as cron tends to run with an empty environment and rancid's login shell does not. Print out your environment as the rancid user and add likely things as envvars to the crontab one by one till you find one that fixes the problem. On 14/08/2013 02:22, Brent Wiese wrote: > This is boggling my mind. > > > > I slightly modified the f5rancid script to work with their version 11 > TMOS. Basically, all it does is ?show running-config? and then runs > ?quit? instead of ?exit? when it finds the prompt. > > > > This has been working just fine for our existing load balancers. But we > recently added a new set. The first run appears to work. Then I start > getting this in the logs: > > > > > > starting: Tue Aug 13 17:02:11 MST 2013 > > > > cvs add: lb01.my.domain already exists, with version number 1.4 > > Added lb01.my.domain > > > > Trying to get all of the configs. > > lb01.my.domain: (v11) missed cmd(s): show running-config > > lb01.my.domain: (v11) End of run not found > > # > > > > I don?t get it ? if I run f5rancid_v11 (my modified copy), it runs just > fine and the ?.new? file is there with all the info I need. It?s only > when it?s run from cron that it throws any kind of error. F5login runs > fine too (or f5rancid_v11 would fail). I added the ?(v11)? in the log > line area to confirm it?s running the correct script when it does > rancid-run. > > > > Since it?s logging errors, I don?t think it?s any kind of permissions > error. But I am running as the same user as the cron job. > > > > All my other configs are coming in and diff?ing just fine, so I don?t > think it?s a CVS issue (or the ability to write temp files for example). > > > > Any ideas? > > > > Thanks! > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com From paul at gear.dyndns.org Wed Aug 14 06:47:07 2013 From: paul at gear.dyndns.org (Paul Gear) Date: Wed, 14 Aug 2013 16:47:07 +1000 Subject: [rancid] missed cmds, but only when run from cron In-Reply-To: <520B057B.9030403@ccgs.wa.edu.au> References: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> <520B057B.9030403@ccgs.wa.edu.au> Message-ID: On 08/14/2013 02:20 PM, James Andrewartha wrote: > On 14/08/13 12:05, Paul Gear wrote: >> I'm seeing something very similar with one Mikrotik device out of 17 on >> our network. If run from the command line, it works fine. If run from >> cron, one router in the group fails, giving the following error log: > > I had the same problem with a script I'd adapted, the solution was to > increase the timeout, as the device was quite slow to generate its config. I'll try that and report back results. Paul From mwlucas at michaelwlucas.com Wed Aug 14 12:14:03 2013 From: mwlucas at michaelwlucas.com (Michael W. Lucas) Date: Wed, 14 Aug 2013 08:14:03 -0400 Subject: [rancid] missed cmds, but only when run from cron In-Reply-To: <520B057B.9030403@ccgs.wa.edu.au> References: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> <520B057B.9030403@ccgs.wa.edu.au> Message-ID: <20130814121403.GA12297@bewilderbeast.blackhelicopters.org> On Wed, Aug 14, 2013 at 12:20:11PM +0800, James Andrewartha wrote: > On 14/08/13 12:05, Paul Gear wrote: > > I'm seeing something very similar with one Mikrotik device out of 17 on > > our network. If run from the command line, it works fine. If run from > > cron, one router in the group fails, giving the following error log: > > I had the same problem with a script I'd adapted, the solution was to > increase the timeout, as the device was quite slow to generate its config. Oooh, I have a blog post on exactly this, with Mikrotiks. http://blather.michaelwlucas.com/archives/1336 I've also found that switching mtlogin to always do "export compact" can help. ==ml -- Michael W. Lucas - mwlucas at michaelwlucas.com, Twitter @mwlauthor http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/ Absolute OpenBSD 2/e - http://www.nostarch.com/openbsd2e coupon code "ILUVMICHAEL" gets you 30% off & helps me. From paul at gear.dyndns.org Wed Aug 14 20:40:41 2013 From: paul at gear.dyndns.org (Paul Gear) Date: Thu, 15 Aug 2013 06:40:41 +1000 Subject: [rancid] missed cmds, but only when run from cron In-Reply-To: <20130814121403.GA12297@bewilderbeast.blackhelicopters.org> References: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> <520B057B.9030403@ccgs.wa.edu.au> <20130814121403.GA12297@bewilderbeast.blackhelicopters.org> Message-ID: On 08/14/2013 10:14 PM, Michael W. Lucas wrote: > On Wed, Aug 14, 2013 at 12:20:11PM +0800, James Andrewartha wrote: >> On 14/08/13 12:05, Paul Gear wrote: >>> I'm seeing something very similar with one Mikrotik device out of 17 on >>> our network. If run from the command line, it works fine. If run from >>> cron, one router in the group fails, giving the following error log: >> >> I had the same problem with a script I'd adapted, the solution was to >> increase the timeout, as the device was quite slow to generate its config. > > Oooh, I have a blog post on exactly this, with Mikrotiks. > > http://blather.michaelwlucas.com/archives/1336 > > I've also found that switching mtlogin to always do "export compact" > can help. Hi Michael and James, Changing to "export compact" was the first thing I did when configuring RANCID for our Mikrotiks. I tried doubling the timeout (although it doesn't look like the patch that you mentioned in your blog post is included with 2.3.8) but that didn't solve the problem. It also doesn't explain why the system works from the command line but not from cron, nor does it explain why only this one out of 17 Mikrotiks is doing it. We have others that are the same model and further away behind slower links and they all work fine. (Apologies also to Brent for distracting from his original thread topic - hopefully they are very similar bugs and what we discuss here will be applicable to your F5 problem!) Regards, Paul From heas at shrubbery.net Wed Aug 14 21:08:25 2013 From: heas at shrubbery.net (heasley) Date: Wed, 14 Aug 2013 21:08:25 +0000 Subject: [rancid] RANCID and Cisco's VSS output? In-Reply-To: References: Message-ID: <20130814210825.GN88880@shrubbery.net> Mon, Aug 12, 2013 at 03:20:55PM -0400, andrew.brennan+rancid at drexel.edu: > While doing a quick inventory check of our modules, I noticed that there > were 4 different serial numbers listed for WS-X6716-10GE modules ... but > only two of those matched up with "Slot #" lines. > > I'm guessing the "show inventory" in a VSS system produces output that's > for both chassis, but "show module" only has details for the modules in > the active chassis? There's a "show module switch all" command, but I'm > suspecting that the output might be troublesome to parse. i'venot seen 'show module all' produce anything different on our 6500s. just try it; it might be just fine with the existing filtering. > If someone else has already addressed this in RANCID patches, I'd love to > save some time and use their work. :) Unfortunately, I can't get to the > RANCID web site right now to check out the version history and/or FAQ. had some major maint to do; its been restored. From bwiese at ElementPS.com Thu Aug 15 21:14:31 2013 From: bwiese at ElementPS.com (Brent Wiese) Date: Thu, 15 Aug 2013 21:14:31 +0000 Subject: [rancid] missed cmds, but only when run from cron Message-ID: <910CDE054EF7D24DBCA89A2EF88A404E3BC4CE68@phxmain-exmbx10> > > On Wed, Aug 14, 2013 at 12:20:11PM +0800, James Andrewartha wrote: > > On 14/08/13 12:05, Paul Gear wrote: > > > I'm seeing something very similar with one Mikrotik device out of > 17 > > > on our network. If run from the command line, it works fine. If > > > run from cron, one router in the group fails, giving the following > error log: > > > > I had the same problem with a script I'd adapted, the solution was to > > increase the timeout, as the device was quite slow to generate its > config. > > Oooh, I have a blog post on exactly this, with Mikrotiks. > > http://blather.michaelwlucas.com/archives/1336 > <> Read the article and ran it manually against time... 3 seconds. So definitely not a timeout issue. Also tried passing in the ENV variables through cron... no change. Well, let me rephrase. I was able to put in all ENV variables except: LESSOPEN=|/usr/bin/lesspipe.sh %s If that was in there, the job never ran. I'm guessing because of the |. Any other thoughts/suggestions? From alan.mckinnon at gmail.com Thu Aug 15 21:23:59 2013 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Thu, 15 Aug 2013 23:23:59 +0200 Subject: [rancid] missed cmds, but only when run from cron In-Reply-To: <910CDE054EF7D24DBCA89A2EF88A404E3BC4CE68@phxmain-exmbx10> References: <910CDE054EF7D24DBCA89A2EF88A404E3BC4CE68@phxmain-exmbx10> Message-ID: <520D46EF.7060000@gmail.com> On 15/08/2013 23:14, Brent Wiese wrote: >> >> On Wed, Aug 14, 2013 at 12:20:11PM +0800, James Andrewartha wrote: >>> On 14/08/13 12:05, Paul Gear wrote: >>>> I'm seeing something very similar with one Mikrotik device out of >> 17 >>>> on our network. If run from the command line, it works fine. If >>>> run from cron, one router in the group fails, giving the following >> error log: >>> >>> I had the same problem with a script I'd adapted, the solution was to >>> increase the timeout, as the device was quite slow to generate its >> config. >> >> Oooh, I have a blog post on exactly this, with Mikrotiks. >> >> http://blather.michaelwlucas.com/archives/1336 >> > <> > > Read the article and ran it manually against time... 3 seconds. So definitely not a timeout issue. > > Also tried passing in the ENV variables through cron... no change. Well, let me rephrase. I was able to put in all ENV variables except: > LESSOPEN=|/usr/bin/lesspipe.sh %s > > If that was in there, the job never ran. I'm guessing because of the |. > > Any other thoughts/suggestions? A wild guess - is the type set correctly in router.db for that device? This happened to me once but in reverse; I couldn't get a router to be polled correctly on the cmd line no matter what I did, then I realized I was running rancid -d against a Nexus.... -- Alan McKinnon alan.mckinnon at gmail.com From bwiese at ElementPS.com Thu Aug 15 21:30:21 2013 From: bwiese at ElementPS.com (Brent Wiese) Date: Thu, 15 Aug 2013 21:30:21 +0000 Subject: [rancid] FW: missed cmds, but only when run from cron Message-ID: <910CDE054EF7D24DBCA89A2EF88A404E3BC4D111@phxmain-exmbx10> > On 15/08/2013 23:14, Brent Wiese wrote: > >> > >> On Wed, Aug 14, 2013 at 12:20:11PM +0800, James Andrewartha wrote: > >>> On 14/08/13 12:05, Paul Gear wrote: > >>>> I'm seeing something very similar with one Mikrotik device out of > >> 17 > >>>> on our network. If run from the command line, it works fine. If > >>>> run from cron, one router in the group fails, giving the following > >> error log: > >>> > >>> I had the same problem with a script I'd adapted, the solution was > >>> to increase the timeout, as the device was quite slow to generate > >>> its > >> config. > >> > >> Oooh, I have a blog post on exactly this, with Mikrotiks. > >> > >> http://blather.michaelwlucas.com/archives/1336 > >> > > <> > > > > Read the article and ran it manually against time... 3 seconds. So > definitely not a timeout issue. > > > > Also tried passing in the ENV variables through cron... no change. > Well, let me rephrase. I was able to put in all ENV variables except: > > LESSOPEN=|/usr/bin/lesspipe.sh %s > > > > If that was in there, the job never ran. I'm guessing because of the > |. > > > > Any other thoughts/suggestions? > > > > A wild guess - is the type set correctly in router.db for that device? > Yes - I've edited the logging lines on the script that type runs to confirm it's running the correct one. From heas at shrubbery.net Thu Aug 15 22:18:29 2013 From: heas at shrubbery.net (heasley) Date: Thu, 15 Aug 2013 22:18:29 +0000 Subject: [rancid] Rancid not collecting VLAN info on Cisco ME-3600 In-Reply-To: <20130815221313.8F87429214@sea.shrubbery.net> <1575093c03d343f6b94e6c516395f79c@BN1PR04MB060.namprd04.prod.outlook.com> Message-ID: <20130815221829.GQ28796@shrubbery.net> Thu, Aug 08, 2013 at 04:37:56PM +0000, Hagen, Skye: > I agree, reversing the logic makes more sense. I knew there was a better answer than mine. For right now, I'll leave that to you for a future release. I think this works, but is based on rancid 3.0a2. Index: lib/ios.pm.in =================================================================== --- lib/ios.pm.in (revision 2722) +++ lib/ios.pm.in (working copy) @@ -1730,7 +1730,7 @@ s/^$1\s{$len}//; } - if (/^VTP Operating Mode\s+:\s+(Transparent|Server)/) { + if (/^VTP Operating Mode\s+:\s+(Client)/) { $DO_SHOW_VLAN = 1; } ProcessHistory("COMMENTS","keysort","I0","!VTP: $_"); @@ -1744,7 +1744,7 @@ my($INPUT, $OUTPUT, $cmd) = @_; print STDERR " In ShowVLAN: $_" if ($debug); - ($_ = <$INPUT>, return(1)) if (!$DO_SHOW_VLAN); + ($_ = <$INPUT>, return(1)) if ($DO_SHOW_VLAN); while (<$INPUT>) { tr/\015//d; @@ -1762,6 +1762,7 @@ my($len) = length($1); s/^$1\s{$len}//; } + return(0) if (/no virtual lans configured/i); ProcessHistory("COMMENTS","keysort","IO","!VLAN: $_"); } > > Thanks, Skye. > ________________________________________ > From: heasley > Sent: Thursday, August 08, 2013 8:17 AM > To: Hagen, Skye > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Rancid not collecting VLAN info on Cisco ME-3600 > > Wed, Aug 07, 2013 at 06:49:27PM +0000, Hagen, Skye: > > Rancid 2.3.6 does not collect VLAN information on a Cisco ME-3600 switch. > > This is because the ME-3600 does not support VTP, and returns 'Invalid > > command'. Rancid will only collect VLAN info on switches if the VTP mode > > is transparent or server. The ShowVTP subroutine sets a flag > > ($DO_SHOW_VLAN) if the VTP mode is server or transparent. The ShowVLAN > > routine immediately returns if this flag is not set, bypassing the VLAN > > info. > > > > My quick and dirty change was to set the flag in ShowVTP, if the type is > > ME-3600. I do this before entering the while loop, so that the flag is set > > before the subroutine exits because of the invalid command test. I'm not > > sure that this is the best way to correct this, but it works in my > > environment. > > should the check really be the reversed? if it _is_ a vtp client, skip > show vlan. > > > # This routine parses "show vtp status" > > sub ShowVTP { > > print STDERR " In ShowVTP: $_" if ($debug); > > > > $DO_SHOW_VLAN = 1 if ($type =~ /^ME-3600X/); # ME-3600 doesn't support > > VTP > > while () { > > tr/\015//d; > > last if (/^$prompt/); > > next if (/^(\s*|\s*$cmd\s*)$/); > > return(1) if /^\s*\^\s*$/; > > return(1) if (/Line has invalid autocommand /); > > return(1) if (/(Invalid (input|command) detected|Type help or )/i); > > #return(1) if ($type !~ /^(2900XL|3500XL|6000)$/); > > return(-1) if (/command authorization failed/i); > > next if (/^Configuration last modified by/); > > # the pager can not be disabled per-session on the PIX > > if (/^(<-+ More -+>)/) { > > my($len) = length($1); > > s/^$1\s{$len}//; > > } > > > > if (/^VTP Operating Mode\s+:\s+(Transparent|Server)/) { > > $DO_SHOW_VLAN = 1; > > } > > ProcessHistory("COMMENTS","keysort","I0","!VTP: $_"); > > } > > ProcessHistory("COMMENTS","keysort","I0","!\n"); > > return(0); > > } > > > > > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Thu Aug 15 23:07:13 2013 From: heas at shrubbery.net (heasley) Date: Thu, 15 Aug 2013 23:07:13 +0000 Subject: [rancid] missed cmds, but only when run from cron In-Reply-To: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> References: <910CDE054EF7D24DBCA89A2EF88A404E3BC47BBF@phxmain-exmbx10> Message-ID: <20130815230713.GB43604@shrubbery.net> Wed, Aug 14, 2013 at 12:22:01AM +0000, Brent Wiese: > This is boggling my mind. > > I slightly modified the f5rancid script to work with their version 11 TMOS. Basically, all it does is "show running-config" and then runs "quit" instead of "exit" when it finds the prompt. > > This has been working just fine for our existing load balancers. But we recently added a new set. The first run appears to work. Then I start getting this in the logs: > > > starting: Tue Aug 13 17:02:11 MST 2013 > > cvs add: lb01.my.domain already exists, with version number 1.4 that is odd; is the being added to the routers.all file properly? I do not expect it to try to add a file thats already been there. though, that is not related to the problem below. > Added lb01.my.domain > > Trying to get all of the configs. > lb01.my.domain: (v11) missed cmd(s): show running-config > lb01.my.domain: (v11) End of run not found > # > > I don't get it - if I run f5rancid_v11 (my modified copy), it runs just fine and the ".new" file is there with all the info I need. It's only when it's run from cron that it throws any kind of error. F5login runs fine too (or f5rancid_v11 would fail). I added the "(v11)" in the log line area to confirm it's running the correct script when it does rancid-run. > > Since it's logging errors, I don't think it's any kind of permissions error. But I am running as the same user as the cron job. > > All my other configs are coming in and diff'ing just fine, so I don't think it's a CVS issue (or the ability to write temp files for example). > > Any ideas? Often this is either timing or termcap/termios related. since the f5 appears to be a rather kinky animal, i'd first investigate the terminal setting. That's either coming from cron or rancid.conf; look there, set it on your tty and try running f5rancid_v11 - i suspect it'l be angry. find something that doesnt make it angry and force/set it in f5rancid_v11. From alex.wilkinson at cba.com.au Mon Aug 19 02:00:29 2013 From: alex.wilkinson at cba.com.au (Wilkinson, Alex) Date: Mon, 19 Aug 2013 12:00:29 +1000 Subject: [rancid] Cisco FWSM Upgrade - Broke rancid; Need your Advice ... Message-ID: <20130819020028.GB53355@margz.perth.internal> Hi all, After an FWSM OS upgrade (to 3.2(26)) rancid is now broke for our FWSM(s) e.g. Trying to get all of the configs. fwsmfw: missed cmd(s): write term fwsmfw: End of run not found Error: TIMEOUT reached Running rancid in debug mode gives me: $ /usr/local/libexec/rancid/rancid -d fwsmfw executing clogin -t 90 -c"show version;show redundancy secondary;show idprom backplane;show install active;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootdisk:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;show diag;show capture;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;show shun;more system:running-config;show running-config view full;show running-config;write term" fwsmfw clogin: not found fwsmfw: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,show running-config view full,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,show shun,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,show redundancy secondary,show running-config,show c7200,dir /all slot1: fwsmfw: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,show capture,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,show running-config view full,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,show shun,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,show redundancy secondary,show running-config,show c7200,dir /all slot1: fwsmfw: End of run not found fwsmfw: End of run not found ! $ How does one know exactly which of the aforementioned commands failed ? And once this is known, where does one change (remove) the offending commands ? Thanks! -Alex ************** IMPORTANT MESSAGE ***************************** This e-mail message is intended only for the addressee(s) and contains information which may be confidential. If you are not the intended recipient please advise the sender by return email, do not use or disclose the contents, and delete the message and any attachments from your system. Unless specifically indicated, this email does not constitute formal advice or commitment by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. We can be contacted through our web site: commbank.com.au. If you no longer wish to receive commercial electronic messages from us, please reply to this e-mail by typing Unsubscribe in the subject line. ************************************************************** From ler762 at gmail.com Mon Aug 19 03:20:47 2013 From: ler762 at gmail.com (Lee) Date: Sun, 18 Aug 2013 23:20:47 -0400 Subject: [rancid] Cisco FWSM Upgrade - Broke rancid; Need your Advice ... In-Reply-To: <20130819020028.GB53355@margz.perth.internal> References: <20130819020028.GB53355@margz.perth.internal> Message-ID: That clogin: not found looks like a problem, but to answer your question about knowing which command failed set NOPIPE=YES in your environment and run rancid -d hostname. look in hostname.raw for the commands and their output. Regards, Lee On 8/18/13, Wilkinson, Alex wrote: > Hi all, > > After an FWSM OS upgrade (to 3.2(26)) rancid is now broke for our FWSM(s) > e.g. > > Trying to get all of the configs. > fwsmfw: missed cmd(s): write term > fwsmfw: End of run not found > Error: TIMEOUT reached > > Running rancid in debug mode gives me: > > $ /usr/local/libexec/rancid/rancid -d fwsmfw > executing clogin -t 90 -c"show version;show redundancy secondary;show idprom > backplane;show install active;show env all;show rsp chassis-info;show gsr > chassis;show diag chassis-info;show boot;show bootvar;show variables > boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all > disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir > /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all > sup-bootdisk:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all > slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all > slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all > slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all > sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all > sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir > /all sec-disk2:;show controllers;show controllers cbus;show diagbus;show > diag;show capture;show module;show spe version;show c7200;show inventory > raw;s > how vtp status;show vlan;show vlan-switch;show debug;show shun;more > system:running-config;show running-config view full;show > running-config;write term" fwsmfw > clogin: not found > fwsmfw: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,show > capture,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir > /all sec-nvram:,show diag chassis-info,dir /all disk2:,show running-config > view full,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir > /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all > sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all > sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all > harddiskb:,show variables boot,show boot,show inventory raw,dir /all > slavedisk1:,show env all,show module,show shun,show controllers,show > diagbus,more system:running-config,dir /all slavedisk0:,show debug,show > idprom backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all > sec-slot0:,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 controlle > rs cbus,dir /all slaveslot1:,dir /all nvram:,show version,show > vlan-switch,show redundancy secondary,show running-config,show c7200,dir > /all slot1: > fwsmfw: missed cmd(s): dir /all slavedisk2:,show rsp chassis-info,show > capture,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir > /all sec-nvram:,show diag chassis-info,dir /all disk2:,show running-config > view full,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir > /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all > sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all > sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all > harddiskb:,show variables boot,show boot,show inventory raw,dir /all > slavedisk1:,show env all,show module,show shun,show controllers,show > diagbus,more system:running-config,dir /all slavedisk0:,show debug,show > idprom backplane,dir /all bootflash:,dir /all sup-bootdisk:,dir /all > sec-slot0:,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 controlle > rs cbus,dir /all slaveslot1:,dir /all nvram:,show version,show > vlan-switch,show redundancy secondary,show running-config,show c7200,dir > /all slot1: > fwsmfw: End of run not found > fwsmfw: End of run not found > ! > $ > > How does one know exactly which of the aforementioned commands failed ? And > once > this is known, where does one change (remove) the offending commands ? > > Thanks! > > -Alex > > > ************** IMPORTANT MESSAGE ***************************** > This e-mail message is intended only for the addressee(s) and contains > information which may be > confidential. > If you are not the intended recipient please advise the sender by return > email, do not use or > disclose the contents, and delete the message and any attachments from your > system. Unless > specifically indicated, this email does not constitute formal advice or > commitment by the sender > or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its > subsidiaries. > We can be contacted through our web site: commbank.com.au. > If you no longer wish to receive commercial electronic messages from us, > please reply to this > e-mail by typing Unsubscribe in the subject line. > ************************************************************** > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > From heas at shrubbery.net Mon Aug 19 13:28:54 2013 From: heas at shrubbery.net (heasley) Date: Mon, 19 Aug 2013 13:28:54 +0000 Subject: [rancid] Cisco FWSM Upgrade - Broke rancid; Need your Advice ... In-Reply-To: References: <20130819020028.GB53355@margz.perth.internal> Message-ID: <20130819132854.GB48503@shrubbery.net> Sun, Aug 18, 2013 at 11:20:47PM -0400, Lee: > That > clogin: not found clogin must be in your path; like PATH set in your rancid.conf From JHumes at acs.on.ca Tue Aug 20 19:08:00 2013 From: JHumes at acs.on.ca (Jason Humes) Date: Tue, 20 Aug 2013 19:08:00 +0000 Subject: [rancid] Limit number of concurrent downloads Message-ID: <6CD437FCF90A264B9725A4C74B6CD34201B75F5BE3@XENWIN1.acs.local> Hi We're using RANCID over a very slow DSL link and it's killing the ability to get full backups do to timeouts. Is there anyway to limit RANCID to just one backup at a time, no parallel processing? Thanks Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From JHumes at acs.on.ca Tue Aug 20 19:24:18 2013 From: JHumes at acs.on.ca (Jason Humes) Date: Tue, 20 Aug 2013 19:24:18 +0000 Subject: [rancid] Limit number of concurrent downloads In-Reply-To: <6474951d961b4fa4a84f2b3aac22e4e1@BN1PR04MB060.namprd04.prod.outlook.com> References: <6CD437FCF90A264B9725A4C74B6CD34201B75F5BE3@XENWIN1.acs.local> <6474951d961b4fa4a84f2b3aac22e4e1@BN1PR04MB060.namprd04.prod.outlook.com> Message-ID: <6CD437FCF90A264B9725A4C74B6CD34201B75F5C57@XENWIN1.acs.local> Great, worked perfectly! Thanks! :) Jason D. Humes Security Engineer From: Hagen, Skye [mailto:skyeh at uidaho.edu] Sent: Tuesday, August 20, 2013 3:18 PM To: Jason Humes; rancid-discuss at shrubbery.net Subject: RE: Limit number of concurrent downloads Yes, in the rancid.conf file, set PAR_COUNT to the number of parallel processes you want. PAR_COUNT=1; export PAR_COUNT Skye. ________________________________ From: rancid-discuss-bounces at shrubbery.net > on behalf of Jason Humes > Sent: Tuesday, August 20, 2013 12:08 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Limit number of concurrent downloads Hi We're using RANCID over a very slow DSL link and it's killing the ability to get full backups do to timeouts. Is there anyway to limit RANCID to just one backup at a time, no parallel processing? Thanks Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From skyeh at uidaho.edu Tue Aug 20 19:17:37 2013 From: skyeh at uidaho.edu (Hagen, Skye) Date: Tue, 20 Aug 2013 19:17:37 +0000 Subject: [rancid] Limit number of concurrent downloads In-Reply-To: <6CD437FCF90A264B9725A4C74B6CD34201B75F5BE3@XENWIN1.acs.local> References: <6CD437FCF90A264B9725A4C74B6CD34201B75F5BE3@XENWIN1.acs.local> Message-ID: <6474951d961b4fa4a84f2b3aac22e4e1@BN1PR04MB060.namprd04.prod.outlook.com> Yes, in the rancid.conf file, set PAR_COUNT to the number of parallel processes you want. PAR_COUNT=1; export PAR_COUNT Skye. ________________________________ From: rancid-discuss-bounces at shrubbery.net on behalf of Jason Humes Sent: Tuesday, August 20, 2013 12:08 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Limit number of concurrent downloads Hi We're using RANCID over a very slow DSL link and it's killing the ability to get full backups do to timeouts. Is there anyway to limit RANCID to just one backup at a time, no parallel processing? Thanks Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From boheme at gmail.com Tue Aug 20 19:17:38 2013 From: boheme at gmail.com (Chris Knight) Date: Tue, 20 Aug 2013 12:17:38 -0700 Subject: [rancid] Limit number of concurrent downloads In-Reply-To: <6CD437FCF90A264B9725A4C74B6CD34201B75F5BE3@XENWIN1.acs.local> References: <6CD437FCF90A264B9725A4C74B6CD34201B75F5BE3@XENWIN1.acs.local> Message-ID: <9C31C669-ACDD-4B4C-812B-4DDB90A27D08@gmail.com> http://stackoverflow.com/questions/185451/quick-and-dirty-way-to-ensure-only-one-instance-of-a-shell-script-is-running-at -Sent from my Pip-Boy 3000 On Aug 20, 2013, at 12:08 PM, Jason Humes wrote: > Hi > We?re using RANCID over a very slow DSL link and it?s killing the ability to get full backups do to timeouts. Is there anyway to limit RANCID to just one backup at a time, no parallel processing? > > Thanks > > Jason > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff.magneto417x at gmail.com Thu Aug 22 20:25:00 2013 From: jeff.magneto417x at gmail.com (Jeff) Date: Thu, 22 Aug 2013 20:25:00 +0000 (UTC) Subject: [rancid] dlogin / 6248 System Up Time.. References: <51F941F2.7010008@gmail.com> Message-ID: I am having the same issue and was wondering if you ever found the resolution to this issue. Thanks Jeff From matej.vadnjal at arnes.si Fri Aug 23 05:32:22 2013 From: matej.vadnjal at arnes.si (Matej Vadnjal) Date: Fri, 23 Aug 2013 07:32:22 +0200 Subject: [rancid] dlogin / 6248 System Up Time.. In-Reply-To: References: Message-ID: <5216F3E6.8000601@arnes.si> On 07/31/2013 03:02 PM, B. Cook wrote: > Hello all, > > Recently updated a set of 6248's from 3.3.6.4 to 3.3.7.2. > > Since then I've been getting (hourly b/c of the people in the > organization..) updates with the 'System Up Time' being changed.. > > retrieving revision 1.189 > diff -U 4 -r1.189 10.20.0.254 > @@ -1,9 +1,9 @@ > !RANCID-CONTENT-TYPE: Dell > ! > ! > System Description................ Dell Ethernet Switch > - System Up Time.................... 7 days, 12h:18m:46s > + System Up Time.................... 7 days, 13h:18m:46s > > Index: configs/10.20.0.254 > =================================================================== > retrieving revision 1.190 > diff -U 4 -r1.190 10.20.0.254 > @@ -1,9 +1,9 @@ > !RANCID-CONTENT-TYPE: Dell > ! > ! > System Description................ Dell Ethernet Switch > - System Up Time.................... 7 days, 13h:18m:46s > + System Up Time.................... 7 days, 14h:18m:46s > > > I'm running rancid 2.3.8 on a CentOS 6.x machine (fwiw).. and the > dlogin from Jeremy Singletary. > > Any suggestions on how I could 'filter' out that change? > > Thank you for taking the time to read this and for any help you may > have to offer. > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Take a look here: https://github.com/dotwaffle/rancid-git/blob/master/bin/drancid.in#L168 Dell scripts in this repository are updated versions of Jeremy's scripts. There are other changes I made to to better support newer Dell PowerConnect switches. Best regards Matej Vadnjal Arnes From bcook at poughkeepsieschools.org Fri Aug 23 12:30:42 2013 From: bcook at poughkeepsieschools.org (B. Cook) Date: Fri, 23 Aug 2013 08:30:42 -0400 Subject: [rancid] dlogin / 6248 System Up Time.. In-Reply-To: <5216F3E6.8000601@arnes.si> References: <5216F3E6.8000601@arnes.si> Message-ID: Thank you Sir. I will gladly check that out. On Fri, Aug 23, 2013 at 1:32 AM, Matej Vadnjal wrote: > > On 07/31/2013 03:02 PM, B. Cook wrote: > >> Hello all, >> >> Recently updated a set of 6248's from 3.3.6.4 to 3.3.7.2. >> >> Since then I've been getting (hourly b/c of the people in the >> organization..) updates with the 'System Up Time' being changed.. >> >> retrieving revision 1.189 >> diff -U 4 -r1.189 10.20.0.254 >> @@ -1,9 +1,9 @@ >> !RANCID-CONTENT-TYPE: Dell >> ! >> ! >> System Description................ Dell Ethernet Switch >> - System Up Time.................... 7 days, 12h:18m:46s >> + System Up Time.................... 7 days, 13h:18m:46s >> >> Index: configs/10.20.0.254 >> >> ==============================**==============================**======= >> retrieving revision 1.190 >> diff -U 4 -r1.190 10.20.0.254 >> @@ -1,9 +1,9 @@ >> !RANCID-CONTENT-TYPE: Dell >> ! >> ! >> System Description................ Dell Ethernet Switch >> - System Up Time.................... 7 days, 13h:18m:46s >> + System Up Time.................... 7 days, 14h:18m:46s >> >> >> I'm running rancid 2.3.8 on a CentOS 6.x machine (fwiw).. and the dlogin >> from Jeremy Singletary. >> >> Any suggestions on how I could 'filter' out that change? >> >> Thank you for taking the time to read this and for any help you may have >> to offer. >> >> >> >> >> ______________________________**_________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/**mailman/listinfo.cgi/rancid-**discuss >> > Take a look here: > https://github.com/dotwaffle/**rancid-git/blob/master/bin/** > drancid.in#L168 > > Dell scripts in this repository are updated versions of Jeremy's scripts. > There are other changes I made to to better support newer Dell PowerConnect > switches. > > Best regards > Matej Vadnjal > Arnes > > > ______________________________**_________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/**mailman/listinfo/rancid-**discuss > -- Tomorrow (noun); a mystical land where 99% of all human productivity, motivation and achievement is stored. -------------- next part -------------- An HTML attachment was scrubbed... URL: From JHumes at acs.on.ca Fri Aug 23 13:22:18 2013 From: JHumes at acs.on.ca (Jason Humes) Date: Fri, 23 Aug 2013 13:22:18 +0000 Subject: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? Message-ID: <6CD437FCF90A264B9725A4C74B6CD34201B75FB36F@XENWIN1.acs.local> Hi We've been running with RANCID for a while and have recently come upon a large group of devices we'd like to backup, but they are all numbered with '#' in the hostnames and thus RANCID fails to enter enable mode on these. Is there any way to have RANCID escape the '#' in the hostname? Thanks Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Aug 23 13:27:03 2013 From: heas at shrubbery.net (heasley) Date: Fri, 23 Aug 2013 13:27:03 +0000 Subject: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? In-Reply-To: <6CD437FCF90A264B9725A4C74B6CD34201B75FB36F@XENWIN1.acs.local> References: <6CD437FCF90A264B9725A4C74B6CD34201B75FB36F@XENWIN1.acs.local> Message-ID: <20130823132703.GE98023@shrubbery.net> Fri, Aug 23, 2013 at 01:22:18PM +0000, Jason Humes: > Hi > We've been running with RANCID for a while and have recently come upon a large group of devices we'd like to backup, but they are all numbered with '#' in the hostnames and thus RANCID fails to enter enable mode on these. Is there any way to have RANCID escape the '#' in the hostname? > put cnames/aliases in your dns/hosts file. From JHumes at acs.on.ca Fri Aug 23 13:28:10 2013 From: JHumes at acs.on.ca (Jason Humes) Date: Fri, 23 Aug 2013 13:28:10 +0000 Subject: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? In-Reply-To: <20130823132703.GE98023@shrubbery.net> References: <6CD437FCF90A264B9725A4C74B6CD34201B75FB36F@XENWIN1.acs.local> <20130823132703.GE98023@shrubbery.net> Message-ID: <6CD437FCF90A264B9725A4C74B6CD34201B75FB3CC@XENWIN1.acs.local> Hi No, I mean the actual device configured hostname...when clogin tries to login, it fails to enter enable mode due to the Switch#1_Site#2 hostname. Thanks Jason -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Friday, August 23, 2013 9:27 AM To: Jason Humes Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? Fri, Aug 23, 2013 at 01:22:18PM +0000, Jason Humes: > Hi > We've been running with RANCID for a while and have recently come upon a large group of devices we'd like to backup, but they are all numbered with '#' in the hostnames and thus RANCID fails to enter enable mode on these. Is there any way to have RANCID escape the '#' in the hostname? > put cnames/aliases in your dns/hosts file. From JHumes at acs.on.ca Fri Aug 23 13:44:12 2013 From: JHumes at acs.on.ca (Jason Humes) Date: Fri, 23 Aug 2013 13:44:12 +0000 Subject: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? In-Reply-To: References: <6CD437FCF90A264B9725A4C74B6CD34201B75FB36F@XENWIN1.acs.local> <20130823132703.GE98023@shrubbery.net> <6CD437FCF90A264B9725A4C74B6CD34201B75FB3CC@XENWIN1.acs.local> Message-ID: <6CD437FCF90A264B9725A4C74B6CD34201B75FB520@XENWIN1.acs.local> Hahaha, exactly my thoughts!!! I've written a little script to login to these batch of hosts and update their hostnames replacing the # with _. Thanks for clearing this up. Jason From: bob watson [mailto:bobthebaritone at gmail.com] Sent: Friday, August 23, 2013 9:43 AM To: Jason Humes Cc: heasley; rancid-discuss at shrubbery.net Subject: Re: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? Jason, Make life easy for yourself. RANCID (using PERL and EXPECT) is coded so that RFC 1123 compliant hostnames will be ok. Whoever set the hostname with a # should be sent to CCNA school, or some learning facility that says you can't just dream up esoteric names for devices. Cheers, Bob Watson BAppSci, MACS, CP View Robert Watson's profile on LinkedIn On 23 August 2013 23:28, Jason Humes > wrote: Hi No, I mean the actual device configured hostname...when clogin tries to login, it fails to enter enable mode due to the Switch#1_Site#2 hostname. Thanks Jason -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Friday, August 23, 2013 9:27 AM To: Jason Humes Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? Fri, Aug 23, 2013 at 01:22:18PM +0000, Jason Humes: > Hi > We've been running with RANCID for a while and have recently come upon a large group of devices we'd like to backup, but they are all numbered with '#' in the hostnames and thus RANCID fails to enter enable mode on these. Is there any way to have RANCID escape the '#' in the hostname? > put cnames/aliases in your dns/hosts file. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Aug 23 13:45:10 2013 From: heas at shrubbery.net (heasley) Date: Fri, 23 Aug 2013 13:45:10 +0000 Subject: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? In-Reply-To: <6CD437FCF90A264B9725A4C74B6CD34201B75FB3CC@XENWIN1.acs.local> References: <6CD437FCF90A264B9725A4C74B6CD34201B75FB36F@XENWIN1.acs.local> <20130823132703.GE98023@shrubbery.net> <6CD437FCF90A264B9725A4C74B6CD34201B75FB3CC@XENWIN1.acs.local> Message-ID: <20130823134510.GF98023@shrubbery.net> Fri, Aug 23, 2013 at 01:28:10PM +0000, Jason Humes: > Hi > No, I mean the actual device configured hostname...when clogin tries to login, it fails to enter enable mode due to the Switch#1_Site#2 hostname. you'd have to alter the regexes in the login script to match the initial prompt and build the full match regex. just fix the hostnames. > Thanks > > > Jason > > > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: Friday, August 23, 2013 9:27 AM > To: Jason Humes > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? > > Fri, Aug 23, 2013 at 01:22:18PM +0000, Jason Humes: > > Hi > > We've been running with RANCID for a while and have recently come upon a large group of devices we'd like to backup, but they are all numbered with '#' in the hostnames and thus RANCID fails to enter enable mode on these. Is there any way to have RANCID escape the '#' in the hostname? > > > > put cnames/aliases in your dns/hosts file. From JHumes at acs.on.ca Fri Aug 23 13:46:04 2013 From: JHumes at acs.on.ca (Jason Humes) Date: Fri, 23 Aug 2013 13:46:04 +0000 Subject: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? In-Reply-To: <20130823134510.GF98023@shrubbery.net> References: <6CD437FCF90A264B9725A4C74B6CD34201B75FB36F@XENWIN1.acs.local> <20130823132703.GE98023@shrubbery.net> <6CD437FCF90A264B9725A4C74B6CD34201B75FB3CC@XENWIN1.acs.local> <20130823134510.GF98023@shrubbery.net> Message-ID: <6CD437FCF90A264B9725A4C74B6CD34201B75FB574@XENWIN1.acs.local> Yes, that's what I mean by script...it just automated the process of me re-configing so many devices by hand. Cheers Jason -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Friday, August 23, 2013 9:45 AM To: Jason Humes Cc: heasley; rancid-discuss at shrubbery.net Subject: Re: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? Fri, Aug 23, 2013 at 01:28:10PM +0000, Jason Humes: > Hi > No, I mean the actual device configured hostname...when clogin tries to login, it fails to enter enable mode due to the Switch#1_Site#2 hostname. you'd have to alter the regexes in the login script to match the initial prompt and build the full match regex. just fix the hostnames. > Thanks > > > Jason > > > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: Friday, August 23, 2013 9:27 AM > To: Jason Humes > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? > > Fri, Aug 23, 2013 at 01:22:18PM +0000, Jason Humes: > > Hi > > We've been running with RANCID for a while and have recently come upon a large group of devices we'd like to backup, but they are all numbered with '#' in the hostnames and thus RANCID fails to enter enable mode on these. Is there any way to have RANCID escape the '#' in the hostname? > > > > put cnames/aliases in your dns/hosts file. From bobthebaritone at gmail.com Fri Aug 23 13:43:05 2013 From: bobthebaritone at gmail.com (bob watson) Date: Fri, 23 Aug 2013 23:43:05 +1000 Subject: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host? In-Reply-To: <6CD437FCF90A264B9725A4C74B6CD34201B75FB3CC@XENWIN1.acs.local> References: <6CD437FCF90A264B9725A4C74B6CD34201B75FB36F@XENWIN1.acs.local> <20130823132703.GE98023@shrubbery.net> <6CD437FCF90A264B9725A4C74B6CD34201B75FB3CC@XENWIN1.acs.local> Message-ID: Jason, Make life easy for yourself. RANCID (using PERL and EXPECT) is coded so that RFC 1123 compliant hostnames will be ok. Whoever set the hostname with a # should be sent to CCNA school, or some learning facility that says you can't just dream up esoteric names for devices. Cheers, Bob Watson BAppSci, MACS, CP View Robert Watson's profile on LinkedIn On 23 August 2013 23:28, Jason Humes wrote: > Hi > No, I mean the actual device configured hostname...when clogin tries to > login, it fails to enter enable mode due to the Switch#1_Site#2 hostname. > > Thanks > > > Jason > > > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: Friday, August 23, 2013 9:27 AM > To: Jason Humes > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Anyway to backup devices with '#' in > hostname...other than renaming host? > > Fri, Aug 23, 2013 at 01:22:18PM +0000, Jason Humes: > > Hi > > We've been running with RANCID for a while and have recently come upon a > large group of devices we'd like to backup, but they are all numbered with > '#' in the hostnames and thus RANCID fails to enter enable mode on these. > Is there any way to have RANCID escape the '#' in the hostname? > > > > put cnames/aliases in your dns/hosts file. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dproscino at yahoo.com Mon Aug 26 21:09:21 2013 From: dproscino at yahoo.com (Diane Proscino) Date: Mon, 26 Aug 2013 14:09:21 -0700 (PDT) Subject: [rancid] development / roadmap? Message-ID: <1377551361.98716.YahooMailNeo@web181405.mail.ne1.yahoo.com> Hello.. I am hoping someone can assist with this question.. Are there any roadmap or information on future development / enhancements to RANCID?? ?? I am trying to get an understanding on the future of RANCID.? Regards, --Diane ? ******************** Diane Proscino We would accomplish many more things ?? if we did not think of them as impossible.?? ?C. Malesherbes -------------- next part -------------- An HTML attachment was scrubbed... URL: From Wiethoff at tfh-bochum.de Tue Aug 27 16:02:17 2013 From: Wiethoff at tfh-bochum.de (Wiethoff, Helge) Date: Tue, 27 Aug 2013 16:02:17 +0000 Subject: [rancid] Cisco 2951 - empty file Message-ID: <194290040642FB4D952083D79F7F7D1D4035D8C6@BOHEMSX2010.rbbk.de> Hi, i am using rancid with different vendors (HP, Allied Telesyn, Microsens) and had no problem so far... But now i have a problem with a "standard" cisco 2951 device. I am always getting an empty configuration file... Anyone an idea? I edited the rancid-script (because it wasnt working with the orignal script neither) in the way, that only valid commands are executed. Thanks, Helge ------------------------------------------ rancid at server:~> rancid -d -l router.local executing clogin -t 90 -c"show version;show env all;show flash;dir /all nvram:;dir /all bootflash:;show controllers;show diag;show inventory raw;show vtp status;show vlan-switch;show running-config;write term" router.local executing clogin -t 90 -c"show version;show env all;show flash;dir /all nvram:;dir /all bootflash:;show controllers;show diag;show inventory raw;show vtp status;show vlan-switch;show running-config;write term" router.local PROMPT MATCH: router.local# HIT COMMAND: router.local#show version In ShowVersion: router.local#show version TYPE = CISCO2951/K9 HIT COMMAND: router.local#show env all In ShowEnv: router.local#show env all HIT COMMAND:router.local#show flash In ShowFlash: router.local#show flash HIT COMMAND:router.local#dir /all nvram: In DirSlotN: router.local#dir /all nvram: HIT COMMAND:router.local#dir /all bootflash: In DirSlotN: router.local#dir /all bootflash: HIT COMMAND:router.local#show controllers In ShowContAll: router.local#show controllers HIT COMMAND:router.local#show diag In ShowDiag: router.local#show diag HIT COMMAND:router.local#show inventory raw In ShowInventory: router.local#show inventory raw HIT COMMAND:router.local#show vtp status In ShowVTP: router.local#show vtp status HIT COMMAND:router.local#show vlan-switch In ShowVLAN: router.local#show vlan-switch HIT COMMAND:router.local#show running-config In WriteTerm: router.local#show running-config HIT COMMAND:router.local#write term In WriteTerm: router.local#write term Done : router.local#exit rancid at server:~> ll -rw-r--r-- 1 rancid rancid 0 27. Aug 17:51 router.local.new ________________________________ Helge Wiethoff Medienzentrum Telefon: +49 (234) 968 8717 Fax: +49 (234) 968 3453 E-Mail: Wiethoff at tfh-bochum.de Technische Fachhochschule Georg Agricola f?r Rohstoff, Energie und Umwelt zu Bochum Staatlich anerkannte Fachhochschule der DMT-Gesellschaft f?r Lehre und Bildung mbH Herner Stra?e 45 44787 Bochum http://www.tfh-bochum.de ________________________________ Tr?ger: DMT-Gesellschaft f?r Lehre und Bildung mbH Sitz der Gesellschaft: Bochum Registergericht: Amtsgericht Bochum Handelsregister: B 4052 Gesch?ftsf?hrung: Prof. Dr. J?rgen Kretschmann (Vorsitzender) Manfred Freitag From alan.mckinnon at gmail.com Tue Aug 27 16:11:34 2013 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Tue, 27 Aug 2013 18:11:34 +0200 Subject: [rancid] Cisco 2951 - empty file In-Reply-To: <194290040642FB4D952083D79F7F7D1D4035D8C6@BOHEMSX2010.rbbk.de> References: <194290040642FB4D952083D79F7F7D1D4035D8C6@BOHEMSX2010.rbbk.de> Message-ID: <521CCFB6.8030109@gmail.com> What's in the log files? $RANCID_DIR/var/log/ that usually shows the result of what rancid thought it should do. Failing that you can run rancid -d Assuming your rancid parser script is called "rancid" (the default) On 27/08/2013 18:02, Wiethoff, Helge wrote: > Hi, > > i am using rancid with different vendors (HP, Allied Telesyn, Microsens) and had no problem so far... But now i have a problem with a "standard" cisco 2951 device. I am always getting an empty configuration file... > > Anyone an idea? I edited the rancid-script (because it wasnt working with the orignal script neither) in the way, that only valid commands are executed. > > Thanks, > Helge > > > ------------------------------------------ > rancid at server:~> rancid -d -l router.local > executing clogin -t 90 -c"show version;show env all;show flash;dir /all nvram:;dir /all bootflash:;show controllers;show diag;show inventory raw;show vtp status;show vlan-switch;show running-config;write term" router.local > executing clogin -t 90 -c"show version;show env all;show flash;dir /all nvram:;dir /all bootflash:;show controllers;show diag;show inventory raw;show vtp status;show vlan-switch;show running-config;write term" router.local > PROMPT MATCH: router.local# > HIT COMMAND: router.local#show version > In ShowVersion: router.local#show version > TYPE = CISCO2951/K9 > HIT COMMAND: router.local#show env all > In ShowEnv: router.local#show env all > HIT COMMAND:router.local#show flash > In ShowFlash: router.local#show flash > HIT COMMAND:router.local#dir /all nvram: > In DirSlotN: router.local#dir /all nvram: > HIT COMMAND:router.local#dir /all bootflash: > In DirSlotN: router.local#dir /all bootflash: > HIT COMMAND:router.local#show controllers > In ShowContAll: router.local#show controllers > HIT COMMAND:router.local#show diag > In ShowDiag: router.local#show diag > HIT COMMAND:router.local#show inventory raw > In ShowInventory: router.local#show inventory raw > HIT COMMAND:router.local#show vtp status > In ShowVTP: router.local#show vtp status > HIT COMMAND:router.local#show vlan-switch > In ShowVLAN: router.local#show vlan-switch > HIT COMMAND:router.local#show running-config > In WriteTerm: router.local#show running-config > HIT COMMAND:router.local#write term > In WriteTerm: router.local#write term > Done : router.local#exit > > rancid at server:~> ll > -rw-r--r-- 1 rancid rancid 0 27. Aug 17:51 router.local.new > > ________________________________ > Helge Wiethoff > Medienzentrum > > Telefon: +49 (234) 968 8717 > Fax: +49 (234) 968 3453 > E-Mail: Wiethoff at tfh-bochum.de > > Technische Fachhochschule Georg Agricola > f?r Rohstoff, Energie und Umwelt zu Bochum > Staatlich anerkannte Fachhochschule der > DMT-Gesellschaft f?r Lehre und Bildung mbH > Herner Stra?e 45 > 44787 Bochum > http://www.tfh-bochum.de > ________________________________ > Tr?ger: DMT-Gesellschaft f?r Lehre und Bildung mbH > Sitz der Gesellschaft: Bochum > Registergericht: Amtsgericht Bochum > Handelsregister: B 4052 > > Gesch?ftsf?hrung: > Prof. Dr. J?rgen Kretschmann (Vorsitzender) > Manfred Freitag > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com From Wiethoff at tfh-bochum.de Tue Aug 27 16:54:14 2013 From: Wiethoff at tfh-bochum.de (Wiethoff, Helge) Date: Tue, 27 Aug 2013 16:54:14 +0000 Subject: [rancid] Cisco 2951 - empty file Message-ID: <194290040642FB4D952083D79F7F7D1D4035D90C@BOHEMSX2010.rbbk.de> Hi, just for completeness: > I am always getting an empty configuration file... I had to set NOPIPE=YES in my environment... :-) Thanks, Helge ________________________________ Helge Wiethoff Medienzentrum Telefon: +49 (234) 968 8717 Fax: +49 (234) 968 3453 E-Mail: Wiethoff at tfh-bochum.de Technische Fachhochschule Georg Agricola f?r Rohstoff, Energie und Umwelt zu Bochum Staatlich anerkannte Fachhochschule der DMT-Gesellschaft f?r Lehre und Bildung mbH Herner Stra?e 45 44787 Bochum http://www.tfh-bochum.de ________________________________ Tr?ger: DMT-Gesellschaft f?r Lehre und Bildung mbH Sitz der Gesellschaft: Bochum Registergericht: Amtsgericht Bochum Handelsregister: B 4052 Gesch?ftsf?hrung: Prof. Dr. J?rgen Kretschmann (Vorsitzender) Manfred Freitag From scott.brynen at visioncritical.com Fri Aug 30 18:36:53 2013 From: scott.brynen at visioncritical.com (Scott Brynen) Date: Fri, 30 Aug 2013 18:36:53 +0000 Subject: [rancid] Additional support: Ironport, HP Virtual Connect Message-ID: <48187E5711D3204C991CB60EC396B754BD687C6F@VCVANMAILMB2.vci.local> I've updated my Ironport module, and added a new HP Virtual Connect module. You can download them from http://www.snafu.ca/rancid-ironport-virtualconnect.tgz Scott Brynen Systems Operations Lead | Vision Critical direct +1.604.638.9804 web visioncritical.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Pfpc1230 at gmail.com Sat Aug 31 00:37:47 2013 From: Pfpc1230 at gmail.com (Pfpc) Date: Sat, 31 Aug 2013 00:37:47 +0000 (UTC) Subject: [rancid] Ironport anti-spam appliance support References: <432713015.9381.1349428958300.JavaMail.www@wwinf1j37> Message-ID: > But, when the cron system runs it, the ironport conf if incomplete and everytime at the same moment. I am also experiencing the same type of issue. I've tried importing all my environment variables. Was hoping that something was lost when iprancid/iplogin was run inside cron. Has anyone fixed this issue? Pfpc