From gmourani at gmail.com Tue May 3 02:30:45 2022 From: gmourani at gmail.com (Gerhard Mourani) Date: Mon, 2 May 2022 22:30:45 -0400 Subject: [rancid] Avaya ERS 8600 Message-ID: <17FEF8D7-7634-48F7-8CAD-C3128BD06CB7@gmail.com> Hello, I would like to know if Rancid is working with Avaya switches and if yes which make or model I should use in the list of available manufacturer ? I?m using latest Rancid version. Regards, From sobrien at nso.edu Tue May 3 02:38:31 2022 From: sobrien at nso.edu (Steve O'Brien) Date: Mon, 2 May 2022 16:38:31 -1000 Subject: [rancid] Getting notified on timestamp changes for IOS-XE devices Message-ID: I have looked at a bunch of similar questions but still have not figured out how to get rancid to ignore the timestamp diff in IOS-XE devices. - !Flash: bootflash: -rw- 5242880 May 1 2022 15:02:27 -10:00 ssd + !Flash: bootflash: -rw- 5242880 May 2 2022 15:03:10 -10:00 ssd It seems like it was a recent change, I just updated the IOS-XE devices to Cisco IOS XE Software, Version 17.03.04 I am, and have been, using the standard cisco template running rancid 3.13-3 TIA, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From cra at fea.st Tue May 3 03:19:00 2022 From: cra at fea.st (Chuck Anderson) Date: Mon, 2 May 2022 23:19:00 -0400 Subject: [rancid] Getting notified on timestamp changes for IOS-XE devices In-Reply-To: References: Message-ID: <20220503031900.46xyznm54olgkf23@gauge.lan> On Mon, May 02, 2022 at 04:38:31PM -1000, Steve O'Brien wrote: > I have looked at a bunch of similar questions but still have not figured > out how to get rancid to ignore the timestamp diff in IOS-XE devices. > > - !Flash: bootflash: -rw- 5242880 May 1 2022 15:02:27 -10:00 ssd > + !Flash: bootflash: -rw- 5242880 May 2 2022 15:03:10 -10:00 ssd > > It seems like it was a recent change, I just updated the IOS-XE devices to > Cisco IOS XE Software, Version 17.03.04 > > I am, and have been, using the standard cisco template > running rancid 3.13-3 It seems like a neverending losing battle filtering out newly oscillating command outputs. I wonder if rancid should be enhanced to make the filter patterns configurable rather than requiring code to be written and/or have standard filters for dates/times in various formats. From jandrewartha at ccgs.wa.edu.au Tue May 3 03:23:30 2022 From: jandrewartha at ccgs.wa.edu.au (James Andrewartha) Date: Tue, 3 May 2022 11:23:30 +0800 Subject: [rancid] Avaya ERS 8600 In-Reply-To: <17FEF8D7-7634-48F7-8CAD-C3128BD06CB7@gmail.com> References: <17FEF8D7-7634-48F7-8CAD-C3128BD06CB7@gmail.com> Message-ID: <3d0d0029-650e-2b3d-402e-4874b5228bf8@ccgs.wa.edu.au> On 3/5/22 10:30, Gerhard Mourani wrote: > I would like to know if Rancid is working with Avaya switches and if yes which make or model I should use in the list of available manufacturer ? I have a voss.pm that I got from somewhere in June 2021, can't work out where though. The top comment has this: # voss.pm - Extreme VOSS # # based on modified version of ciscoips by Josh Yost on 4/16/2008 # based on CiscoWLC version For ERS, there's been patches for BayStack posted in the past. -- James Andrewartha Network & Projects Engineer Christ Church Grammar School Claremont, Western Australia Ph. (08) 9442 1757 Mob. 0424 160 877 From sobrien at nso.edu Thu May 5 03:38:54 2022 From: sobrien at nso.edu (Steve O'Brien) Date: Wed, 4 May 2022 17:38:54 -1000 Subject: [rancid] Getting notified on timestamp changes for IOS-XE devices In-Reply-To: References: Message-ID: Anyone? Hints, clues, anything? On Mon, May 2, 2022 at 4:38 PM Steve O'Brien wrote: > I have looked at a bunch of similar questions but still have not figured > out how to get rancid to ignore the timestamp diff in IOS-XE devices. > > - !Flash: bootflash: -rw- 5242880 May 1 2022 15:02:27 -10:00 > ssd > + !Flash: bootflash: -rw- 5242880 May 2 2022 15:03:10 -10:00 > ssd > > It seems like it was a recent change, I just updated the IOS-XE devices to > Cisco IOS XE Software, Version 17.03.04 > > I am, and have been, using the standard cisco template > running rancid 3.13-3 > > TIA, > Steve > -- *Steve O'Brien* | Senior Network Administrator National Solar Observatory Daniel K. Inouye Solar Telescope Project 22 Ohi?a Ku Street, Pukalani, HI 96768 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ler762 at gmail.com Thu May 5 04:22:58 2022 From: ler762 at gmail.com (Lee) Date: Thu, 5 May 2022 04:22:58 +0000 Subject: [rancid] Getting notified on timestamp changes for IOS-XE devices In-Reply-To: References: Message-ID: On 5/5/22, Steve O'Brien wrote: > Anyone? Hints, clues, anything? I haven't looked at rancid in a long time, but ios.pm used to have code to blank out the date for certain files. Look for if (/(dhcp_[^. ]*\.txt|vlan\.dat|sflog|snooping)/ || /(smart-log\/agentlog|syslog)\s*$/) { # filter frequently changing files (dhcp & vlan database) from flash # change from: # 9 660 Jan 15 2011 20:43:54 vlan.dat # 9 660 Jan 15 2011 20:43:54 +00:00 vlan.dat # to: # vlan.dat # vlan.dat and copy/adjust for your own use. Regards Lee > > On Mon, May 2, 2022 at 4:38 PM Steve O'Brien wrote: > >> I have looked at a bunch of similar questions but still have not figured >> out how to get rancid to ignore the timestamp diff in IOS-XE devices. >> >> - !Flash: bootflash: -rw- 5242880 May 1 2022 15:02:27 -10:00 >> ssd >> + !Flash: bootflash: -rw- 5242880 May 2 2022 15:03:10 -10:00 >> ssd >> >> It seems like it was a recent change, I just updated the IOS-XE devices >> to >> Cisco IOS XE Software, Version 17.03.04 >> >> I am, and have been, using the standard cisco template >> running rancid 3.13-3 >> >> TIA, >> Steve >> > -- > > > *Steve O'Brien* | Senior Network Administrator > > National Solar Observatory > > Daniel K. Inouye Solar Telescope Project > > 22 Ohi?a Ku Street, Pukalani, HI 96768 > From daniel.kerse at gmail.com Thu May 5 04:37:20 2022 From: daniel.kerse at gmail.com (Daniel Kerse) Date: Thu, 5 May 2022 16:37:20 +1200 Subject: [rancid] Getting notified on timestamp changes for IOS-XE devices In-Reply-To: References: Message-ID: I wonder if this should be the default behaviour rather than the exception. Does anyone really use rancid to track changes to files on their routers? On Thu, 5 May 2022 at 4:23 PM, Lee wrote: > On 5/5/22, Steve O'Brien wrote: > > Anyone? Hints, clues, anything? > > I haven't looked at rancid in a long time, but ios.pm used to have > code to blank out the date for certain files. Look for > > if (/(dhcp_[^. ]*\.txt|vlan\.dat|sflog|snooping)/ || > /(smart-log\/agentlog|syslog)\s*$/) { > # filter frequently changing files (dhcp & vlan database) from > flash > # change from: > # 9 660 Jan 15 2011 20:43:54 vlan.dat > # 9 660 Jan 15 2011 20:43:54 +00:00 vlan.dat > # to: > # vlan.dat > # vlan.dat > > and copy/adjust for your own use. > > Regards > Lee > > > > > On Mon, May 2, 2022 at 4:38 PM Steve O'Brien wrote: > > > >> I have looked at a bunch of similar questions but still have not figured > >> out how to get rancid to ignore the timestamp diff in IOS-XE devices. > >> > >> - !Flash: bootflash: -rw- 5242880 May 1 2022 15:02:27 -10:00 > >> ssd > >> + !Flash: bootflash: -rw- 5242880 May 2 2022 15:03:10 -10:00 > >> ssd > >> > >> It seems like it was a recent change, I just updated the IOS-XE devices > >> to > >> Cisco IOS XE Software, Version 17.03.04 > >> > >> I am, and have been, using the standard cisco template > >> running rancid 3.13-3 > >> > >> TIA, > >> Steve > >> > > -- > > > > > > *Steve O'Brien* | Senior Network Administrator > > > > National Solar Observatory > > > > Daniel K. Inouye Solar Telescope Project > > > > 22 Ohi?a Ku Street, Pukalani, HI 96768 > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at www.shrubbery.net > https://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu May 5 17:57:18 2022 From: heas at shrubbery.net (heasley) Date: Thu, 5 May 2022 17:57:18 +0000 Subject: [rancid] Getting notified on timestamp changes for IOS-XE devices In-Reply-To: <20220503031900.46xyznm54olgkf23@gauge.lan> References: <20220503031900.46xyznm54olgkf23@gauge.lan> Message-ID: Mon, May 02, 2022 at 11:19:00PM -0400, Chuck Anderson: > On Mon, May 02, 2022 at 04:38:31PM -1000, Steve O'Brien wrote: > > I have looked at a bunch of similar questions but still have not figured > > out how to get rancid to ignore the timestamp diff in IOS-XE devices. > > > > - !Flash: bootflash: -rw- 5242880 May 1 2022 15:02:27 -10:00 ssd > > + !Flash: bootflash: -rw- 5242880 May 2 2022 15:03:10 -10:00 ssd > > > > It seems like it was a recent change, I just updated the IOS-XE devices to > > Cisco IOS XE Software, Version 17.03.04 > > > > I am, and have been, using the standard cisco template > > running rancid 3.13-3 > > It seems like a neverending losing battle filtering out newly > oscillating command outputs. I wonder if rancid should be enhanced to > make the filter patterns configurable rather than requiring code to be > written and/or have standard filters for dates/times in various formats. What I've been thinking, and has been on my to do list, is that a general filter mechanism would be useful. Perform this user-defined filtering before diffing & committing the rancidified config. Rancid would expect the filter to read from stdin and write to stdout. in the case of this file timestamp oscillation, a user-definied filter could remove or reformat the line. That filter could be as simple as "grep -v 'ssd$'", for example. welcome comments on this. From heas at shrubbery.net Thu May 5 18:00:53 2022 From: heas at shrubbery.net (heasley) Date: Thu, 5 May 2022 18:00:53 +0000 Subject: [rancid] Getting notified on timestamp changes for IOS-XE devices In-Reply-To: <20220505175932.F12FA439023@sea.shrubbery.net> Message-ID: Wed, May 04, 2022 at 05:38:54PM -1000, Steve O'Brien: > Anyone? Hints, clues, anything? > > On Mon, May 2, 2022 at 4:38 PM Steve O'Brien wrote: > > > I have looked at a bunch of similar questions but still have not figured > > out how to get rancid to ignore the timestamp diff in IOS-XE devices. > > > > - !Flash: bootflash: -rw- 5242880 May 1 2022 15:02:27 -10:00 > > ssd > > + !Flash: bootflash: -rw- 5242880 May 2 2022 15:03:10 -10:00 > > ssd > > > > It seems like it was a recent change, I just updated the IOS-XE devices to > > Cisco IOS XE Software, Version 17.03.04 > > > > I am, and have been, using the standard cisco template > > running rancid 3.13-3 > > > > TIA, > > Steve This ought to filter that timestamp. diff --git a/lib/ios.pm b/lib/ios.pm index ecb483e3..525c0175 100644 --- a/lib/ios.pm.in +++ b/lib/ios.pm.in @@ -1230,7 +1230,7 @@ sub DirSlotN { # to: # -rw- vlan.dat # -rw- vlan.dat - if (/(dhcp_[^. ]*\.txt|vlan\.dat|\slog|sflog|snooping|syslog)\s*$/ || + if (/(dhcp_[^. ]*\.txt|vlan\.dat|\slog|sflog|snooping|syslog|ssd)\s*$/ || /(tracelogs|throughput_monitor_params|underlying-config)\s*$/) { if (/(\s*\d+\s+)(\S+\s+)(\d+)(\s+)(\w+ \d+\s+\d+ \d+:\d+:\d+ .\d+:\d+)/) { my($fn, $a, $sz, $c, $dt, $rem) = ($1, $2, $3, $4, $5, $'); From heas at shrubbery.net Thu May 5 19:01:03 2022 From: heas at shrubbery.net (heasley) Date: Thu, 5 May 2022 19:01:03 +0000 Subject: [rancid] Getting notified on timestamp changes for IOS-XE devices In-Reply-To: References: Message-ID: Thu, May 05, 2022 at 04:37:20PM +1200, Daniel Kerse: > I wonder if this should be the default behaviour rather than the exception. > Does anyone really use rancid to track changes to files on their routers? If what should be the default? I'm not sure that I understand; please explain. From sobrien at nso.edu Thu May 5 19:59:33 2022 From: sobrien at nso.edu (Steve O'Brien) Date: Thu, 5 May 2022 09:59:33 -1000 Subject: [rancid] Getting notified on timestamp changes for IOS-XE devices In-Reply-To: References: <20220505175932.F12FA439023@sea.shrubbery.net> Message-ID: Thank you, it's been a while since I have used patch but I can't seem to get it to run without error. patch < ios.pm.patch patching file ios.pm Hunk #1 FAILED at 1230. 1 out of 1 hunk FAILED -- saving rejects to file ios.pm.rej patching file ios.pm Hunk #1 FAILED at 1230. 1 out of 1 hunk FAILED -- saving rejects to file ios.pm.rej more ios.pm.rej --- ios.pm +++ ios.pm.new @@ -1230,7 +1230,7 @@ # to: # -rw- vlan.dat # -rw- vlan.dat - if (/(dhcp_[^. ]*\.txt|vlan\.dat|\slog|sflog|snooping|syslog)\s*$/ || + if (/(dhcp_[^. ]*\.txt|vlan\.dat|\slog|sflog|snooping|syslog|ssd)\s*$/ || /(tracelogs|throughput_monitor_params|underlying-config)\s*$/) { if (/(\s*\d+\s+)(\S+\s+)(\d+)(\s+)(\w+ \d+\s+\d+ \d+:\d+:\d+ .\d+:\d+)/) { my($fn, $a, $sz, $c, $dt, $rem) = ($1, $2, $3, $4, $5, $'); *Steve O'Brien* | Senior Network Administrator National Solar Observatory Daniel K. Inouye Solar Telescope Project 22 Ohi?a Ku Street, Pukalani, HI 96768 On Thu, May 5, 2022 at 8:00 AM heasley wrote: > Wed, May 04, 2022 at 05:38:54PM -1000, Steve O'Brien: > > Anyone? Hints, clues, anything? > > > > On Mon, May 2, 2022 at 4:38 PM Steve O'Brien wrote: > > > > > I have looked at a bunch of similar questions but still have not > figured > > > out how to get rancid to ignore the timestamp diff in IOS-XE devices. > > > > > > - !Flash: bootflash: -rw- 5242880 May 1 2022 15:02:27 -10:00 > > > ssd > > > + !Flash: bootflash: -rw- 5242880 May 2 2022 15:03:10 -10:00 > > > ssd > > > > > > It seems like it was a recent change, I just updated the IOS-XE > devices to > > > Cisco IOS XE Software, Version 17.03.04 > > > > > > I am, and have been, using the standard cisco template > > > running rancid 3.13-3 > > > > > > TIA, > > > Steve > > > This ought to filter that timestamp. > > diff --git a/lib/ios.pm b/lib/ios.pm > index ecb483e3..525c0175 100644 > --- a/lib/ios.pm.in > +++ b/lib/ios.pm.in > @@ -1230,7 +1230,7 @@ sub DirSlotN { > # to: > # -rw- vlan.dat > # -rw- vlan.dat > - if (/(dhcp_[^. ]*\.txt|vlan\.dat|\slog|sflog|snooping|syslog)\s*$/ > || > + if (/(dhcp_[^. > ]*\.txt|vlan\.dat|\slog|sflog|snooping|syslog|ssd)\s*$/ || > /(tracelogs|throughput_monitor_params|underlying-config)\s*$/) > { > if (/(\s*\d+\s+)(\S+\s+)(\d+)(\s+)(\w+ \d+\s+\d+ \d+:\d+:\d+ > .\d+:\d+)/) { > my($fn, $a, $sz, $c, $dt, $rem) = ($1, $2, $3, $4, $5, $'); > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arla at rn.dk Wed May 11 13:25:21 2022 From: arla at rn.dk (Arne Larsen) Date: Wed, 11 May 2022 13:25:21 +0000 Subject: [rancid] backing up Cisco Firepower 9300 Message-ID: Hi Folks. Has anyone used rancid for config backup on a Cisco Firepower 9300 running FDT software I would appreciate any help og guidance here. Regards Arne Larsen Region North Healtcare Her kan du laese om dine rettigheder, n?r regionen behandler oplysninger om dig -------------- next part -------------- An HTML attachment was scrubbed... URL: From randy at psg.com Fri May 27 20:32:20 2022 From: randy at psg.com (Randy Bush) Date: Fri, 27 May 2022 13:32:20 -0700 Subject: [rancid] arcos End of run not found Message-ID: ``` $ freebsd-version 13.0-RELEASE-p10 $ rancid --version /usr/local/libexec/rancid/rancid version 3.13 calling Getopt::Std::getopts (version 1.12 [paranoid]), running under Perl version 5.32.1. ``` ``` $ grep r2.sea $HOME/var/psgnet/router.db r2.sea.rg.net;arcos;up ``` logging in seems to work ``` $ clogin r2.sea.rg.net r2.sea.rg.net spawn ssh -x -l rancid r2.sea.rg.net ARCOS (c) Arrcus, Inc. rancid at r2.sea.rg.net's password: Welcome to the ArcOS CLI rancid connected from 147.28.0.35 using ssh on r2.sea rancid at r2.sea# rancid at r2.sea# q Connection to r2.sea.rg.net closed. ``` but getting config does not ``` $ rancid -d -t arcos r2.sea.rg.net loadtype: device type arcos loadtype: found device type arcos at /usr/local/etc/rancid/rancid.types.base:57 executing xilogin -t 90 -c"show version;show hardware | notab;show running-config" r2.sea.rg.net PROMPT MATCH: rancid at r2.sea# HIT COMMAND:rancid at r2.sea# show version In ShowVersion: rancid at r2.sea# show version HIT COMMAND:rancid at r2.sea# show hardware | notab In ShowVersion: rancid at r2.sea# show hardware | notab r2.sea.rg.net: End of run not found r2.sea.rg.net: clean_run is false r2.sea.rg.net: found_end is false ! ``` `show run | tail` yields ``` acl-entry 104 ipv6 source-address ::/0 ipv6 destination-address ::/0 actions forwarding-action ACCEPT ! ! ``` maybe it does not like the final bang? maybe it meant to pipe a command to `| nomore`? randy From heas at shrubbery.net Sat May 28 05:00:57 2022 From: heas at shrubbery.net (heasley) Date: Sat, 28 May 2022 05:00:57 +0000 Subject: [rancid] arcos End of run not found In-Reply-To: References: Message-ID: Fri, May 27, 2022 at 01:32:20PM -0700, Randy Bush: > PROMPT MATCH: rancid at r2.sea# > HIT COMMAND:rancid at r2.sea# show version > In ShowVersion: rancid at r2.sea# show version > HIT COMMAND:rancid at r2.sea# show hardware | notab > In ShowVersion: rancid at r2.sea# show hardware | notab looks like it never found the config. either it ate too much of show hardware or the config wasn't collected from the device. This is the only arcos change since 3.13: diff --git a/lib/arcos.pm.in b/lib/arcos.pm.in index 207713f9..8bcb6417 100644 --- a/lib/arcos.pm.in +++ b/lib/arcos.pm.in @@ -93,6 +93,7 @@ sub ShowVersion { return(1) if (/Line has invalid autocommand /); return(1) if (/(invalid (input|command) detected|type help or )/i); return(-1) if (/command authorization failed/i); + return(-1) if (/error: application communication failure/i); # drop trailing spaces s/ *$//; Also, I'm polling your device myself and not having problems. rancid -dt arcos r2.sea.rg.net Check file r2.sea.rg.net.raw for the config output. See the end of r2.sea.rg.net.new for how far it went before bailing; if it has the config, ShowHardware() ate too much. From randy at psg.com Mon May 30 18:49:09 2022 From: randy at psg.com (Randy Bush) Date: Mon, 30 May 2022 11:49:09 -0700 Subject: [rancid] arcos End of run not found In-Reply-To: References: Message-ID: for the archive: deinstall and reinstall of rancid from git solved the problem. i think there were conflicting versions installed. randy From stanislav.barzakov at egt-interactive.com Tue May 17 08:03:04 2022 From: stanislav.barzakov at egt-interactive.com (Stanislav Barzakov) Date: Tue, 17 May 2022 08:03:04 -0000 Subject: [rancid] Looking glass rancid - "Error: Check your passwd for" Message-ID: Hello, I have successfully installed and configured RANCID. Everything works fine, but when I tried to use looking glass, I got an error message: "Error: Check your passwd for xxxx". Hire is my router.db: xxxxx;cisco;up; And .cloginrc: add cyphertype xxxxx aes256-cbc add method xxxxx {ssh:22} add user xxxxx {rancid} add password xxxxx {----.~- at _$----[-} {} add noenable xxxx {1} I have tested with Cisco C9500-40X router. Please help! Stanislav Barzakov -------------- next part -------------- An HTML attachment was scrubbed... URL: