From karim.adel at gmail.com Mon Jun 4 05:51:34 2018 From: karim.adel at gmail.com (Kasper Adel) Date: Sun, 3 Jun 2018 22:51:34 -0700 Subject: [rancid] Rancid for Cumulus Message-ID: Hi Has anyone used rancid on Cumulus? Thanks Kim -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick at foobar.org Mon Jun 4 19:50:17 2018 From: nick at foobar.org (Nick Hilliard) Date: Mon, 4 Jun 2018 20:50:17 +0100 Subject: [rancid] Rancid for Cumulus In-Reply-To: References: Message-ID: <3d6503f3-57e1-8656-652d-4d321a49d273@foobar.org> Kasper Adel wrote on 04/06/2018 06:51: > Has anyone used rancid on Cumulus? rancid assumes one-config-file-per-device. Cumulus Linux is linux. If you have the capacity, you are probably better off building automation into CL on day 1 so that you don't need to back up your device configs. I.e. if there's a failure, the canonical config isn't on the network device. Nick From karim.adel at gmail.com Wed Jun 6 01:29:53 2018 From: karim.adel at gmail.com (Kasper Adel) Date: Tue, 5 Jun 2018 18:29:53 -0700 Subject: [rancid] Rancid for Cumulus In-Reply-To: <3d6503f3-57e1-8656-652d-4d321a49d273@foobar.org> References: <3d6503f3-57e1-8656-652d-4d321a49d273@foobar.org> Message-ID: When yoy say its Linux, do you mean that rancid is mot needed? I?d like to think that rancid can capture configs of multiple files, is that not possible today? Is there any other tool that comes to mind? Thanks Kim On Monday, June 4, 2018, Nick Hilliard wrote: > Kasper Adel wrote on 04/06/2018 06:51: > >> Has anyone used rancid on Cumulus? >> > > rancid assumes one-config-file-per-device. Cumulus Linux is linux. > > If you have the capacity, you are probably better off building automation > into CL on day 1 so that you don't need to back up your device configs. > I.e. if there's a failure, the canonical config isn't on the network device. > > Nick > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tore at fud.no Wed Jun 6 05:52:46 2018 From: tore at fud.no (Tore Anderson) Date: Wed, 6 Jun 2018 07:52:46 +0200 Subject: [rancid] Rancid for Cumulus In-Reply-To: References: <3d6503f3-57e1-8656-652d-4d321a49d273@foobar.org> Message-ID: * Kasper Adel > When yoy say its Linux, do you mean that rancid is mot needed? > > I?d like to think that rancid can capture configs of multiple files, is > that not possible today? Is there any other tool that comes to mind? RANCID captures the output of an arbitrary number CLI commands, which can be very well be something like ?grep -r . /etc? and/or ?net show configuration? to get the active config on the box. Nick's point is that if you've automated your Cumulus environment so that the entire config on the box is exported from some other authoritative system, then you don't need RANCID for backing up your config. Instead, if your switch breaks, you can always just redeploy a replacement device using a fresh config pushed from the authoritative automation system. Tore From nick at foobar.org Wed Jun 6 09:35:41 2018 From: nick at foobar.org (Nick Hilliard) Date: Wed, 6 Jun 2018 10:35:41 +0100 Subject: [rancid] Rancid for Cumulus In-Reply-To: References: <3d6503f3-57e1-8656-652d-4d321a49d273@foobar.org> Message-ID: <1579ee77-b6c9-5424-823c-d49240d26976@foobar.org> Kasper Adel wrote on 06/06/2018 02:29: > When yoy say its Linux, do you mean that rancid is mot needed? rancid is the wrong tool for the job. Rancid assumes one config file per device, and that single config file will provide a canonical backup of the entire system. On Cumulus, you might have lots of different files and they might differ from site to site. > Is there any other tool that comes to mind? e.g. any backup system that works on linux (bacula, amanda. All you really need is to back up /etc. Nick From heas at shrubbery.net Wed Jun 6 14:53:45 2018 From: heas at shrubbery.net (heasley) Date: Wed, 6 Jun 2018 14:53:45 +0000 Subject: [rancid] Rancid for Cumulus In-Reply-To: References: <3d6503f3-57e1-8656-652d-4d321a49d273@foobar.org> Message-ID: <20180606145344.GB60876@shrubbery.net> Wed, Jun 06, 2018 at 07:52:46AM +0200, Tore Anderson: > * Kasper Adel > > > When yoy say its Linux, do you mean that rancid is mot needed? > > > > I?d like to think that rancid can capture configs of multiple files, is > > that not possible today? Is there any other tool that comes to mind? > RANCID captures the output of an arbitrary number CLI commands, which > can be very well be something like ?grep -r . /etc? and/or ?net show > configuration? to get the active config on the box. so, it works with any number of files/commands. > Nick's point is that if you've automated your Cumulus environment so > that the entire config on the box is exported from some other > authoritative system, then you don't need RANCID for backing up your > config. Instead, if your switch breaks, you can always just redeploy a > replacement device using a fresh config pushed from the authoritative > automation system. while I wholly support managing a network this way, in fact suggest that it is the only acceptable way, rancid (or some backup system) still plays a role - for any device whose config can be changed locally (during test, debug, ???). it is useful to catch those events. also configuration is not the only thing that rancid collects. From mvoity at uvm.edu Wed Jun 6 19:15:15 2018 From: mvoity at uvm.edu (Michael T. Voity) Date: Wed, 6 Jun 2018 19:15:15 +0000 Subject: [rancid] Upgrade 3.1 ->3.7 Message-ID: <3c6698d8e7974386bcf165218b073828@uvm.edu> Hello, After reading the UPGRADE, this seem pretty straight forward and I should not have any issues. I also have ViewVc 1.1.23. Anyone see any issues? Thanks in advance. -Mike -- Michael T. Voity Network Engineer University of Vermont -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Jun 6 19:34:49 2018 From: heas at shrubbery.net (heasley) Date: Wed, 6 Jun 2018 19:34:49 +0000 Subject: [rancid] Upgrade 3.1 ->3.7 In-Reply-To: <3c6698d8e7974386bcf165218b073828@uvm.edu> References: <3c6698d8e7974386bcf165218b073828@uvm.edu> Message-ID: <20180606193448.GF60876@shrubbery.net> Wed, Jun 06, 2018 at 07:15:15PM +0000, Michael T. Voity: > Hello, > > After reading the UPGRADE, this seem pretty straight forward and I should not have any issues. > > I also have ViewVc 1.1.23. Anyone see any issues? correct; if you use the same config args just install over top. From Andy.D'ArcyJewell at csiltd.co.uk Thu Jun 7 11:25:14 2018 From: Andy.D'ArcyJewell at csiltd.co.uk (Andy D'Arcy Jewell) Date: Thu, 7 Jun 2018 11:25:14 +0000 Subject: [rancid] Support for newer cisco ASA - iOS Version 9.8(2) Message-ID: Hi all, First time poster here. Apologies if I breach any protocols unintentionally. We have a number of ASAs running "Cisco Adaptive Security Appliance Software Version 9.8(2)" which were failing to back up with rancid version 3.5. I upgraded to 3.7, but had the same problem. I have worked out, and tested, a solution, and obviously would like to pass it upstream, so that others may benefit. It seems that v9.8(2) changes the login banner to include information about recent failed login attempts, and this confounds the expect script, because the login regex matches the new banner line, causing expect to attempt to send the login credentials again, when the device is expecting a valid command (such as "enable"). The new banner looks like this: """ Logins over the last 63 days: 407. Last login: 01:43:21 UTC Jun 7 2018 from 10.0.34.25 Failed logins since the last login: 0. Last failed login: 23:53:58 UTC May 30 2018 from 194.73.85.254 Type help or '?' for a list of available commands. """ The middle line, starting "Failed logins..." is new. Debug output (sanitised) from "clogin -d" shows this: """ expect: does " 00:44:39 UTC Jun 7 2018 from ##########\r\nFailed logins since the last login: 0. Last failed login: 23:53:58 UTC May 30 2018 from ################\r\n" (spawn_id exp6) match regular expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no "Login failed"? no "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes re=no "Press any key to continue"? no "Enter Selection: "? Gate "Enter Selection: "? gate=no "Last login:"? Gate "Last login:"? gate=no "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? gate=no "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, RE only) gate=yes re=no "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) gate=yes re=yes send: sending "BACKUPUSER\r" to { exp6 } expect: continuing expect """ You can see that this is recognising the "Failed logins..." line as a match for the login prompt, and thus, sending BACKUPUSER, the name of the ssh user being used to back up the device, in response. But the device is expecting a command, so the script bails out. My proposed change is to add some lines to clogin to ignore the "Failed logins" line, in the "login" proc: -re "Last failed login:" { exp_continue } -re "Failed logins since the last login::" { exp_continue } Just above the "Last login:" prompt handler: -re "Last login:" { exp_continue } If this seems sensible, can you please direct me to the contribution procedure and I will send a diff and/or whatever you require. Apologies for the comapany boiler-plate disclaimer that will get appended to this mail - I have no control over this, sorry. Regards, Andy D'Arcy Jewell Linux/FOSS Operations CSI LTD Email: andydj at csiltd.co.uk Tel: 07711 734555 [cid:image001.png at 01D1B726.545CC060] -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.hughes at keystonenap.com Fri Jun 8 15:21:45 2018 From: doug.hughes at keystonenap.com (Doug Hughes) Date: Fri, 8 Jun 2018 11:21:45 -0400 Subject: [rancid] Support for newer cisco ASA - iOS Version 9.8(2) In-Reply-To: References: Message-ID: I use this config line on the asa to get around that. no aaa authentication login-history Of course, I'm using tacacs to log and record all logins anyway, so the banner information is just superfluous and annoying. YMMV. On 6/7/2018 7:25 AM, Andy D'Arcy Jewell wrote: > > Hi all, > > > First time poster here. Apologies if I breach any protocols > unintentionally. > > > We have a number of ASAs running "Cisco Adaptive Security Appliance > Software Version 9.8(2)" which were?failing to back up with rancid > version 3.5. I upgraded to 3.7, but had the same problem. > > > I have worked out, and tested, a solution, and obviously would like to > pass it upstream, so that others may benefit. > > > It seems that v9.8(2) changes the login banner to include information > about recent failed login attempts, and this confounds the expect > script, because the login regex matches the new banner line, causing > expect to attempt to send the login credentials again, when the device > is expecting a valid command (such as "enable"). > > > The new banner looks like this: > > > """ > > Logins over the last 63 days: 407.? Last login: 01:43:21 UTC Jun 7 > 2018 from 10.0.34.25 > Failed logins since the last login: 0.? Last failed login: 23:53:58 > UTC May 30 2018 from 194.73.85.254 > Type help or '?' for a list of available commands. > """ > > The middle line, starting "Failed logins..." is new. Debug output > (sanitised) from "clogin -d" shows this: > > """ > expect: does " 00:44:39 UTC Jun 7 2018 from ##########\r\nFailed > logins since the last login: 0.? Last failed login: 23:53:58 UTC May > 30 2018 from ################\r\n" (spawn_id exp6) match regular > expression "(denied|Sorry)"? (No Gate, RE only) gate=yes re=no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? (No Gate, RE only) gate=yes > re=no > "Press any key to continue"? no > "Enter Selection: "? Gate "Enter Selection: "? gate=no > "Last login:"? Gate "Last login:"? gate=no > "Press the key [^\r\n]+[\r\n]+"? Gate "Press the key *"? > gate=no > "@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? (No Gate, > RE only) gate=yes re=no > "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "([Uu]sername|Login|login|user name|User):"? (No Gate, RE only) > gate=yes re=yes > send: sending "BACKUPUSER\r" to { exp6 } > expect: continuing expect > > """ > > > You can see that this is recognising the "Failed logins..." line as a > match for the login prompt, and thus, sending BACKUPUSER, the name of > the ssh user being used to back up the device, in response. But the > device is expecting a command, so the script bails out. > > > My proposed change is to add some lines to clogin to ignore the > "Failed logins" line, in the "login" proc: > > > > ??????? -re "Last failed login:"?????? { > ????????????????????????????????? exp_continue > ??????????????????????????????? } > ??????? -re "Failed logins since the last login::"????? { > ????????????????????????????????? exp_continue > ??????????????????????????????? } > > Just above the "Last login:" prompt handler: > > ??????? -re "Last login:"?????? { > ????????????????????????????????? exp_continue > ??????????????????????????????? } > > > If this seems sensible, can you please direct me to the contribution > procedure and I will send a diff and/or whatever you require. > > > Apologies for the comapany boiler-plate disclaimer that will get > appended to this mail - I have no control over this, sorry. > > > Regards, > > Andy D'Arcy Jewell > Linux/FOSS Operations > CSI LTD > Email: andydj at csiltd.co.uk > Tel: 07711 734555 > cid:image001.png at 01D1B726.545CC060 > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -- Doug Hughes Keystone NAP Fairless Hills, PA 1.844.KEYBLOCK (539.2562) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: keystone-nap.png Type: image/png Size: 3476 bytes Desc: not available URL: From heas at shrubbery.net Fri Jun 8 15:27:54 2018 From: heas at shrubbery.net (heasley) Date: Fri, 8 Jun 2018 15:27:54 +0000 Subject: [rancid] Support for newer cisco ASA - iOS Version 9.8(2) In-Reply-To: <20180608152628.44D212B47CA@sea.shrubbery.net> Message-ID: <20180608152754.GC34411@shrubbery.net> Thu, Jun 07, 2018 at 11:25:14AM +0000, Andy D'Arcy Jewell: > Hi all, > > > First time poster here. Apologies if I breach any protocols unintentionally. > > > We have a number of ASAs running "Cisco Adaptive Security Appliance Software Version 9.8(2)" which were failing to back up with rancid version 3.5. I upgraded to 3.7, but had the same problem. > > > I have worked out, and tested, a solution, and obviously would like to pass it upstream, so that others may benefit. > > > It seems that v9.8(2) changes the login banner to include information about recent failed login attempts, and this confounds the expect script, because the login regex matches the new banner line, causing expect to attempt to send the login credentials again, when the device is expecting a valid command (such as "enable"). > > Index: bin/clogin.in =================================================================== --- bin/clogin.in (revision 3772) +++ bin/clogin.in (revision 3773) @@ -248,6 +248,12 @@ send_user "\nError: Check your passwd for $router\n" catch {close}; catch {wait}; return 1 } + -nocase -re "last login:" { + exp_continue + } + -nocase -re "failed login:" { + exp_continue + } "Login failed" { send_user "\nError: Check your passwd for $router\n" catch {close}; catch {wait}; return 1 @@ -267,9 +273,6 @@ send "K\r" exp_continue } - -re "Last login:" { - exp_continue - } -re "Press the key \[^\r\n]+\[\r\n]+" { exp_continue } full source: http://rancid.shrubbery.net/rancid/svn/rancid/trunk/rancid/bin/clogin.in alpha dist: ftp://ftp.shrubbery.net/pub/rancid/alpha/rancid-3.99.99.tar.gz From ko at sv01.de Mon Jun 11 11:02:48 2018 From: ko at sv01.de (Kevin Olbrich) Date: Mon, 11 Jun 2018 13:02:48 +0200 Subject: [rancid] Cisco SB: Disable AAA-I-CONNECT: User CLI session for user cisco over ssh Message-ID: Hi! *How can I disable "AAA-I-CONNECT: User CLI session for user cisco over ssh..."?* This periodically is printed when rancid receives the configuration, resulting in a new (useless) commit. This happens 4 -5 times a day. Kind regards, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From rancid at ale.cx Mon Jun 11 12:15:32 2018 From: rancid at ale.cx (Alex DEKKER) Date: Mon, 11 Jun 2018 13:15:32 +0100 Subject: [rancid] Cisco SB: Disable AAA-I-CONNECT: User CLI session for user cisco over ssh In-Reply-To: References: Message-ID: On 11/06/18 12:02, Kevin Olbrich wrote: > > *How can I disable "AAA-I-CONNECT: User CLI session for user cisco > over ssh..."?* > This periodically is printed when rancid receives the configuration, > resulting in a new (useless) commit. > This happens 4 -5 times a day. This is a limitation/bug of the platform, I reckon. You will also get interface up/down events appearing in commits too. I haven't found anything in 'line' section or in 'terminal' settings to disable logs to terminal [ie specifically off for remote terminals]. 'logging console emergencies' might do it but then it's off for the local terminal too. 'copy run tftp://...' would presumably not have this problem. alexd -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Mon Jun 11 14:01:18 2018 From: heas at shrubbery.net (heasley) Date: Mon, 11 Jun 2018 14:01:18 +0000 Subject: [rancid] Cisco SB: Disable AAA-I-CONNECT: User CLI session for user cisco over ssh In-Reply-To: References: Message-ID: <20180611140118.GA49626@shrubbery.net> Mon, Jun 11, 2018 at 01:15:32PM +0100, Alex DEKKER: > On 11/06/18 12:02, Kevin Olbrich wrote: > > > > *How can I disable "AAA-I-CONNECT: User CLI session for user cisco > > over ssh..."?* > > This periodically is printed when rancid receives the configuration, > > resulting in a new (useless) commit. > > This happens 4 -5 times a day. > > This is a limitation/bug of the platform, I reckon. You will also get > interface up/down events appearing in commits too. I haven't found > anything in 'line' section or in 'terminal' settings to disable logs to > terminal [ie specifically off for remote terminals]. 'logging console > emergencies' might do it but then it's off for the local terminal too. > > 'copy run tftp://...' would presumably not have this problem. > > alexd in ios 'term monitor' copies logging to the terminal. the only sb device i have does not have this command, nor the problem. the only logging config i have is no log console logg host nnnn sev deb make sure you have the first of those. From it-info at bugtusselwireless.com Mon Jun 11 18:35:15 2018 From: it-info at bugtusselwireless.com (IT-Info) Date: Mon, 11 Jun 2018 18:35:15 +0000 Subject: [rancid] RANCID with ALU/Nokia 7750 SAR TiMOS Message-ID: <0B6F55F38178C84A8A5F0A49826C28440101EF2C55@BUG-EXCA.bugtusselwireless.com> Hi Folks, Does RANCID support the backing up of ALU/Nokia 7750 devices, or any ALU/Nokia devices at that? This one in particular is running TiMOS-C-13.0.R4. Regards, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Mon Jun 11 18:41:58 2018 From: heas at shrubbery.net (heasley) Date: Mon, 11 Jun 2018 18:41:58 +0000 Subject: [rancid] RANCID with ALU/Nokia 7750 SAR TiMOS In-Reply-To: <0B6F55F38178C84A8A5F0A49826C28440101EF2C55@BUG-EXCA.bugtusselwireless.com> References: <0B6F55F38178C84A8A5F0A49826C28440101EF2C55@BUG-EXCA.bugtusselwireless.com> Message-ID: <20180611184157.GC79497@shrubbery.net> Mon, Jun 11, 2018 at 06:35:15PM +0000, IT-Info: > Hi Folks, > > Does RANCID support the backing up of ALU/Nokia 7750 devices, or any ALU/Nokia devices at that? This one in particular is running TiMOS-C-13.0.R4. yes; take the current alpha tarball. From it-info at bugtusselwireless.com Mon Jun 11 20:16:00 2018 From: it-info at bugtusselwireless.com (IT-Info) Date: Mon, 11 Jun 2018 20:16:00 +0000 Subject: [rancid] RANCID with ALU/Nokia 7750 SAR TiMOS In-Reply-To: <20180611184157.GC79497@shrubbery.net> References: <0B6F55F38178C84A8A5F0A49826C28440101EF2C55@BUG-EXCA.bugtusselwireless.com> <20180611184157.GC79497@shrubbery.net> Message-ID: <0B6F55F38178C84A8A5F0A49826C28440101EF2EBA@BUG-EXCA.bugtusselwireless.com> Hi Heasley, Is Alpha considered stable? When is its official released planned? Thanks, Brian -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Monday, June 11, 2018 1:42 PM To: IT-Info Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] RANCID with ALU/Nokia 7750 SAR TiMOS Mon, Jun 11, 2018 at 06:35:15PM +0000, IT-Info: > Hi Folks, > > Does RANCID support the backing up of ALU/Nokia 7750 devices, or any ALU/Nokia devices at that? This one in particular is running TiMOS-C-13.0.R4. yes; take the current alpha tarball. From weylin at bu.edu Mon Jun 11 21:04:57 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Mon, 11 Jun 2018 21:04:57 +0000 Subject: [rancid] Cisco SB: Disable AAA-I-CONNECT: User CLI session for user cisco over ssh In-Reply-To: <20180611140118.GA49626@shrubbery.net> References: <20180611140118.GA49626@shrubbery.net> Message-ID: To clarify, in Cisco IOS and IOS XE: "no logging console" disables onboard logging messages appearing on the output when you connect to the serial port. This is a global configuration setting, so it persists across sessions. "terminal monitor" (and terminal no monitor... note the no is second not first) enables (disables) onboard logging messages appearing on the output when you're on a vty (telnet/ssh). This is a "exec" mode setting, and only lasts for that vty session. I can't remember how NX-OX behaves on this point. And there are some cases where "copy run tftp" might actually cause a logging message. I believe the "conf t ; archive ; logging" section refers. Not sure (off the top of my head) if that's just ASA OS though, or if that?s also the behavior in IOS/IOSXE. weylin ?On 6/11/18, 10:01 AM, "heasley" wrote: Mon, Jun 11, 2018 at 01:15:32PM +0100, Alex DEKKER: > On 11/06/18 12:02, Kevin Olbrich wrote: > > > > *How can I disable "AAA-I-CONNECT: User CLI session for user cisco > > over ssh..."?* > > This periodically is printed when rancid receives the configuration, > > resulting in a new (useless) commit. > > This happens 4 -5 times a day. > > This is a limitation/bug of the platform, I reckon. You will also get > interface up/down events appearing in commits too. I haven't found > anything in 'line' section or in 'terminal' settings to disable logs to > terminal [ie specifically off for remote terminals]. 'logging console > emergencies' might do it but then it's off for the local terminal too. > > 'copy run tftp://...' would presumably not have this problem. > > alexd in ios 'term monitor' copies logging to the terminal. the only sb device i have does not have this command, nor the problem. the only logging config i have is no log console logg host nnnn sev deb make sure you have the first of those. From weylin at bu.edu Mon Jun 11 21:04:57 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Mon, 11 Jun 2018 21:04:57 +0000 Subject: [rancid] Cisco SB: Disable AAA-I-CONNECT: User CLI session for user cisco over ssh In-Reply-To: <20180611140118.GA49626@shrubbery.net> References: <20180611140118.GA49626@shrubbery.net> Message-ID: To clarify, in Cisco IOS and IOS XE: "no logging console" disables onboard logging messages appearing on the output when you connect to the serial port. This is a global configuration setting, so it persists across sessions. "terminal monitor" (and terminal no monitor... note the no is second not first) enables (disables) onboard logging messages appearing on the output when you're on a vty (telnet/ssh). This is a "exec" mode setting, and only lasts for that vty session. I can't remember how NX-OX behaves on this point. And there are some cases where "copy run tftp" might actually cause a logging message. I believe the "conf t ; archive ; logging" section refers. Not sure (off the top of my head) if that's just ASA OS though, or if that?s also the behavior in IOS/IOSXE. weylin ?On 6/11/18, 10:01 AM, "heasley" wrote: Mon, Jun 11, 2018 at 01:15:32PM +0100, Alex DEKKER: > On 11/06/18 12:02, Kevin Olbrich wrote: > > > > *How can I disable "AAA-I-CONNECT: User CLI session for user cisco > > over ssh..."?* > > This periodically is printed when rancid receives the configuration, > > resulting in a new (useless) commit. > > This happens 4 -5 times a day. > > This is a limitation/bug of the platform, I reckon. You will also get > interface up/down events appearing in commits too. I haven't found > anything in 'line' section or in 'terminal' settings to disable logs to > terminal [ie specifically off for remote terminals]. 'logging console > emergencies' might do it but then it's off for the local terminal too. > > 'copy run tftp://...' would presumably not have this problem. > > alexd in ios 'term monitor' copies logging to the terminal. the only sb device i have does not have this command, nor the problem. the only logging config i have is no log console logg host nnnn sev deb make sure you have the first of those. From heas at shrubbery.net Thu Jun 14 13:52:30 2018 From: heas at shrubbery.net (heasley) Date: Thu, 14 Jun 2018 13:52:30 +0000 Subject: [rancid] RANCID with ALU/Nokia 7750 SAR TiMOS In-Reply-To: <0B6F55F38178C84A8A5F0A49826C28440101EF2EBA@BUG-EXCA.bugtusselwireless.com> References: <0B6F55F38178C84A8A5F0A49826C28440101EF2C55@BUG-EXCA.bugtusselwireless.com> <20180611184157.GC79497@shrubbery.net> <0B6F55F38178C84A8A5F0A49826C28440101EF2EBA@BUG-EXCA.bugtusselwireless.com> Message-ID: <20180614135229.GG87883@shrubbery.net> Mon, Jun 11, 2018 at 08:16:00PM +0000, IT-Info: > Hi Heasley, > > Is Alpha considered stable? When is its official released planned? Yes, I consider it stable, except for sros-md and vrp device types, which are new and need more testing. Hadn't planned a release, but it is time. I'll try to make a new release ~ Monday 6/18. > Thanks, > Brian > > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: Monday, June 11, 2018 1:42 PM > To: IT-Info > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] RANCID with ALU/Nokia 7750 SAR TiMOS > > Mon, Jun 11, 2018 at 06:35:15PM +0000, IT-Info: > > Hi Folks, > > > > Does RANCID support the backing up of ALU/Nokia 7750 devices, or any ALU/Nokia devices at that? This one in particular is running TiMOS-C-13.0.R4. > > yes; take the current alpha tarball. From serv.informatique.chd at gmail.com Thu Jun 21 10:27:37 2018 From: serv.informatique.chd at gmail.com (Service Informatique CH DECIZE) Date: Thu, 21 Jun 2018 12:27:37 +0200 Subject: [rancid] Problem rancid 3.7 config with cmw routers Message-ID: Hello, I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS machine. I have followed the jrbinks indications -> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid My tests are ok with a cisco router (config is ok in cvsweb), but ko with cmw / hp routers (model 5120/5130). In the log file, I have the following error : "Added swd01 Trying to get all of the configs. sh: 1: cmwlogin: not found swd01: missed cmd(s): all commands swd01: End of run not found !" Please help, I don't know how to resolve the problem. Thanks. PS : sorry for my bad english (I'm French ;o) ) Yann PAGE -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Jun 21 12:23:48 2018 From: heas at shrubbery.net (heasley) Date: Thu, 21 Jun 2018 12:23:48 +0000 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: References: Message-ID: <20180621122348.GA97134@shrubbery.net> Thu, Jun 21, 2018 at 12:27:37PM +0200, Service Informatique CH DECIZE: > Hello, > > I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS machine. > I have followed the jrbinks indications -> > https://sites.google.com/site/jrbinks/code/rancid/cmwrancid > My tests are ok with a cisco router (config is ok in cvsweb), but ko with > cmw / hp routers (model 5120/5130). > > In the log file, I have the following error : > "Added swd01 > Trying to get all of the configs. > sh: 1: cmwlogin: not found I am not familiar with cmwlogin, but that error means that the script can not be found. make sure that it is in the same directroy as clogin, has permissions 0555 and that the interpreter in the first line of that file matches the first line of clogin. > swd01: missed cmd(s): all commands > swd01: End of run not found > !" > > Please help, I don't know how to resolve the problem. > Thanks. > > PS : sorry for my bad english (I'm French ;o) ) > > Yann PAGE > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From serv.informatique.chd at gmail.com Fri Jun 22 13:48:33 2018 From: serv.informatique.chd at gmail.com (Service Informatique CH DECIZE) Date: Fri, 22 Jun 2018 15:48:33 +0200 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: <20180621122348.GA97134@shrubbery.net> References: <20180621122348.GA97134@shrubbery.net> Message-ID: Hello, clogin and cmwlogin are both in /usr/lib/rancid/bin directory, and permissions seems good (see attached files). I don't know what you mean : " the interpreter in the first line of that file matches the first line of clogin". Please take a look at files and tell me... Thank you for your help. Yann. 2018-06-21 14:23 GMT+02:00 heasley : > Thu, Jun 21, 2018 at 12:27:37PM +0200, Service Informatique CH DECIZE: > > Hello, > > > > I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS machine. > > I have followed the jrbinks indications -> > > https://sites.google.com/site/jrbinks/code/rancid/cmwrancid > > My tests are ok with a cisco router (config is ok in cvsweb), but ko with > > cmw / hp routers (model 5120/5130). > > > > In the log file, I have the following error : > > "Added swd01 > > Trying to get all of the configs. > > sh: 1: cmwlogin: not found > > I am not familiar with cmwlogin, but that error means that the script > can not be found. make sure that it is in the same directroy as > clogin, has permissions 0555 and that the interpreter in the first > line of that file matches the first line of clogin. > > > swd01: missed cmd(s): all commands > > swd01: End of run not found > > !" > > > > Please help, I don't know how to resolve the problem. > > Thanks. > > > > PS : sorry for my bad english (I'm French ;o) ) > > > > Yann PAGE > > > _______________________________________________ > > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: clogin Type: application/octet-stream Size: 32640 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cmwlogin Type: application/octet-stream Size: 30304 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cmwlogin_clogin_directory.jpg Type: image/jpeg Size: 44234 bytes Desc: not available URL: From heas at shrubbery.net Fri Jun 22 15:12:23 2018 From: heas at shrubbery.net (heasley) Date: Fri, 22 Jun 2018 15:12:23 +0000 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: References: <20180621122348.GA97134@shrubbery.net> Message-ID: <20180622151223.GB22437@shrubbery.net> Fri, Jun 22, 2018 at 03:48:33PM +0200, Service Informatique CH DECIZE: > Hello, > > clogin and cmwlogin are both in /usr/lib/rancid/bin directory, and > permissions seems good (see attached files). > I don't know what you mean : " the interpreter in the first line of that > file matches the first line of clogin". Please take a look at files and > tell me... https://en.wikipedia.org/wiki/Shebang_(Unix) From dan.w.anderson at gmail.com Fri Jun 22 15:26:17 2018 From: dan.w.anderson at gmail.com (Dan Anderson) Date: Fri, 22 Jun 2018 08:26:17 -0700 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: References: Message-ID: What?s your $PATH variable set to for the rancid user? On Thu, Jun 21, 2018 at 5:10 AM Service Informatique CH DECIZE < serv.informatique.chd at gmail.com> wrote: > Hello, > > I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS machine. > I have followed the jrbinks indications -> > https://sites.google.com/site/jrbinks/code/rancid/cmwrancid > My tests are ok with a cisco router (config is ok in cvsweb), but ko with > cmw / hp routers (model 5120/5130). > > In the log file, I have the following error : > "Added swd01 > Trying to get all of the configs. > sh: 1: cmwlogin: not found > swd01: missed cmd(s): all commands > swd01: End of run not found > !" > > Please help, I don't know how to resolve the problem. > Thanks. > > PS : sorry for my bad english (I'm French ;o) ) > > Yann PAGE > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From mvoity at uvm.edu Fri Jun 22 16:05:08 2018 From: mvoity at uvm.edu (Michael T. Voity) Date: Fri, 22 Jun 2018 16:05:08 +0000 Subject: [rancid] stopping command from being run Message-ID: Hello, We are running 3.7 I seem to be having difficulty in getting the command ?show dir /all? to stop be executed with my nexus switches. I have edited the ?nxrancid? and the ?nxos.pm? without success. Ideas? -Mike -- Michael T. Voity Network Engineer University of Vermont -------------- next part -------------- An HTML attachment was scrubbed... URL: From serv.informatique.chd at gmail.com Mon Jun 25 09:32:15 2018 From: serv.informatique.chd at gmail.com (Service Informatique CH DECIZE) Date: Mon, 25 Jun 2018 11:32:15 +0200 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: References: Message-ID: Still "sh: 1: cmwlogin: not found" in log files, even after having added /usr/lib/rancid/bin to $PATH ... Other idea? Yann. 2018-06-25 11:21 GMT+02:00 Dan Anderson : > You need to add /usr/lib/rancid/bin to the rancid user?s $PATH > > On Mon, Jun 25, 2018 at 4:43 AM Service Informatique CH DECIZE < > serv.informatique.chd at gmail.com> wrote: > >> Hello, >> The $PATH variable for rancid user as the following value : >> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin >> Thanks for your help. >> >> Yann. >> >> >> 2018-06-22 17:26 GMT+02:00 Dan Anderson : >> >>> What?s your $PATH variable set to for the rancid user? >>> >>> >>> >>> On Thu, Jun 21, 2018 at 5:10 AM Service Informatique CH DECIZE < >>> serv.informatique.chd at gmail.com> wrote: >>> >>>> Hello, >>>> >>>> I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS machine. >>>> I have followed the jrbinks indications -> >>>> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid >>>> My tests are ok with a cisco router (config is ok in cvsweb), but ko >>>> with cmw / hp routers (model 5120/5130). >>>> >>>> In the log file, I have the following error : >>>> "Added swd01 >>>> Trying to get all of the configs. >>>> sh: 1: cmwlogin: not found >>>> swd01: missed cmd(s): all commands >>>> swd01: End of run not found >>>> !" >>>> >>>> Please help, I don't know how to resolve the problem. >>>> Thanks. >>>> >>>> PS : sorry for my bad english (I'm French ;o) ) >>>> >>>> Yann PAGE >>>> >>>> _______________________________________________ >>>> Rancid-discuss mailing list >>>> Rancid-discuss at shrubbery.net >>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>> >>> -- >>> Dan >>> >> >> -- > Dan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.w.anderson at gmail.com Mon Jun 25 09:21:30 2018 From: dan.w.anderson at gmail.com (Dan Anderson) Date: Mon, 25 Jun 2018 05:21:30 -0400 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: References: Message-ID: You need to add /usr/lib/rancid/bin to the rancid user?s $PATH On Mon, Jun 25, 2018 at 4:43 AM Service Informatique CH DECIZE < serv.informatique.chd at gmail.com> wrote: > Hello, > The $PATH variable for rancid user as the following value : > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > Thanks for your help. > > Yann. > > > 2018-06-22 17:26 GMT+02:00 Dan Anderson : > >> What?s your $PATH variable set to for the rancid user? >> >> >> >> On Thu, Jun 21, 2018 at 5:10 AM Service Informatique CH DECIZE < >> serv.informatique.chd at gmail.com> wrote: >> >>> Hello, >>> >>> I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS machine. >>> I have followed the jrbinks indications -> >>> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid >>> My tests are ok with a cisco router (config is ok in cvsweb), but ko >>> with cmw / hp routers (model 5120/5130). >>> >>> In the log file, I have the following error : >>> "Added swd01 >>> Trying to get all of the configs. >>> sh: 1: cmwlogin: not found >>> swd01: missed cmd(s): all commands >>> swd01: End of run not found >>> !" >>> >>> Please help, I don't know how to resolve the problem. >>> Thanks. >>> >>> PS : sorry for my bad english (I'm French ;o) ) >>> >>> Yann PAGE >>> >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at shrubbery.net >>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>> >> -- >> Dan >> > > -- Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From serv.informatique.chd at gmail.com Mon Jun 25 08:43:18 2018 From: serv.informatique.chd at gmail.com (Service Informatique CH DECIZE) Date: Mon, 25 Jun 2018 10:43:18 +0200 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: References: Message-ID: Hello, The $PATH variable for rancid user as the following value : /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin Thanks for your help. Yann. 2018-06-22 17:26 GMT+02:00 Dan Anderson : > What?s your $PATH variable set to for the rancid user? > > > > On Thu, Jun 21, 2018 at 5:10 AM Service Informatique CH DECIZE < > serv.informatique.chd at gmail.com> wrote: > >> Hello, >> >> I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS machine. >> I have followed the jrbinks indications -> https://sites.google.com/site/ >> jrbinks/code/rancid/cmwrancid >> My tests are ok with a cisco router (config is ok in cvsweb), but ko with >> cmw / hp routers (model 5120/5130). >> >> In the log file, I have the following error : >> "Added swd01 >> Trying to get all of the configs. >> sh: 1: cmwlogin: not found >> swd01: missed cmd(s): all commands >> swd01: End of run not found >> !" >> >> Please help, I don't know how to resolve the problem. >> Thanks. >> >> PS : sorry for my bad english (I'm French ;o) ) >> >> Yann PAGE >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > -- > Dan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mvoity at uvm.edu Mon Jun 25 14:10:56 2018 From: mvoity at uvm.edu (Michael T. Voity) Date: Mon, 25 Jun 2018 14:10:56 +0000 Subject: [rancid] stopping command from being run In-Reply-To: References: Message-ID: <47e1fec1761645e8af21a110274ab68a@uvm.edu> Hello, Anyone have an idea that they can point me in a direction? Thanks, -Mike -- Michael T. Voity Network Engineer University of Vermont From: Rancid-discuss On Behalf Of Michael T. Voity Sent: Friday, June 22, 2018 12:05 PM To: rancid-discuss at shrubbery.net Subject: [rancid] stopping command from being run Hello,? ? We are running 3.7 ? I seem to be having difficulty in getting the command ?show dir /all? to stop be executed with my nexus switches. ? I have edited the ??nxrancid?? and the ?nxos.pm?? without success. ? Ideas? -Mike -- Michael T. Voity Network Engineer University of Vermont From Charles.Brooks at hbcs.org Mon Jun 25 14:45:48 2018 From: Charles.Brooks at hbcs.org (Charles T. Brooks) Date: Mon, 25 Jun 2018 14:45:48 +0000 Subject: [rancid] stopping command from being run In-Reply-To: <47e1fec1761645e8af21a110274ab68a@uvm.edu> References: , <47e1fec1761645e8af21a110274ab68a@uvm.edu> Message-ID: Hi Mike. I am running 3.7 also, in my case on RHEL7 with git. I am very happy with it. As I understand it, editing the perl modules to try to change commands issued to devices is a very wrong approach; it means you can't easily upgrade and your installation will be weird and difficult to get advice for online. so I strongly recommend you carefully revert any such changes you made. The files rancid.types.base (base types, do not edit) and rancid.types.conf (site custom device types) determine what commands are run for specific devices. So for example: on my Cisco Nexus 9Ks, I did not want to run the "show logflash" command, so I copied the "cisco-nx" device type from /etc/rancid/rancid.types.base to /etc/rancid/rancid.types.conf under the new device type name "cisco-nx9k" and removed the command I did not want. This is how I did it, if you are OK with old-school unixisms... cd /etc/rancid gawk 'BEGIN{FS=";";OFS=FS;printf "\n# Same as cisco-nx from /etc/rancid/rancid.types.base but\n# removing troublesome dir logflash command\n\n"};/dir logflash:$/{next};/^cisco-nx/{gsub(/cisco-nx/,"cisco-nx9k");print}' rancid.types.base >>rancid.types.conf If you're not gawky :) I recommend you do it by hand instead of the way I did it. (Mad props to the maintainer of the FSF's GNU awk, Aharon Robbins!) Once you've defined the new device type, in your router.db file you use the newly defined name instead of cisco-nx and you're all set. --Charlie ________________________________________ From: Rancid-discuss [rancid-discuss-bounces at shrubbery.net] on behalf of Michael T. Voity [mvoity at uvm.edu] Sent: Monday, June 25, 2018 10:10 AM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] stopping command from being run Hello, Anyone have an idea that they can point me in a direction? Thanks, -Mike -- Michael T. Voity Network Engineer University of Vermont From: Rancid-discuss On Behalf Of Michael T. Voity Sent: Friday, June 22, 2018 12:05 PM To: rancid-discuss at shrubbery.net Subject: [rancid] stopping command from being run Hello, We are running 3.7 I seem to be having difficulty in getting the command ?show dir /all? to stop be executed with my nexus switches. I have edited the ?nxrancid? and the ?nxos.pm? without success. Ideas? -Mike -- ------------------ CONFIDENTIALITY NOTICE --------------- This message, including any attachments, is for the sole use of the intended recipient(s) and may contain privileged confidential information protected by law. Any unauthorized review, use, disclosure or distribution of this message is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of this message. ------------------ CONFIDENTIALITY NOTICE --------------- From heas at shrubbery.net Mon Jun 25 14:47:14 2018 From: heas at shrubbery.net (heasley) Date: Mon, 25 Jun 2018 14:47:14 +0000 Subject: [rancid] stopping command from being run In-Reply-To: <47e1fec1761645e8af21a110274ab68a@uvm.edu> References: <47e1fec1761645e8af21a110274ab68a@uvm.edu> Message-ID: <20180625144714.GA64088@shrubbery.net> Mon, Jun 25, 2018 at 02:10:56PM +0000, Michael T. Voity: > Hello, > > Anyone have an idea that they can point me in a direction? > > Thanks, > > -Mike > > > -- > Michael T. Voity > Network Engineer > University of Vermont > > > From: Rancid-discuss On Behalf Of Michael T. Voity > Sent: Friday, June 22, 2018 12:05 PM > To: rancid-discuss at shrubbery.net > Subject: [rancid] stopping command from being run > > Hello,? > ? > We are running 3.7 > ? > I seem to be having difficulty in getting the command ?show dir /all? to stop be executed with my nexus switches. > ? > I have edited the ??nxrancid?? and the ?nxos.pm?? without success. > ? > Ideas? > rancid.types.conf(5) From mvoity at uvm.edu Mon Jun 25 18:28:45 2018 From: mvoity at uvm.edu (Michael T. Voity) Date: Mon, 25 Jun 2018 18:28:45 +0000 Subject: [rancid] stopping command from being run In-Reply-To: References: , <47e1fec1761645e8af21a110274ab68a@uvm.edu> Message-ID: Charles and Heasley, Thanks for pointing me in the right direction. I am all set now! Thanks! -Mike -- Michael T. Voity Network Engineer The University of Vermont -----Original Message----- From: Charles T. Brooks Sent: Monday, June 25, 2018 10:46 AM To: Michael T. Voity ; rancid-discuss at shrubbery.net Subject: RE: stopping command from being run Hi Mike. I am running 3.7 also, in my case on RHEL7 with git. I am very happy with it. As I understand it, editing the perl modules to try to change commands issued to devices is a very wrong approach; it means you can't easily upgrade and your installation will be weird and difficult to get advice for online. so I strongly recommend you carefully revert any such changes you made. The files rancid.types.base (base types, do not edit) and rancid.types.conf (site custom device types) determine what commands are run for specific devices. So for example: on my Cisco Nexus 9Ks, I did not want to run the "show logflash" command, so I copied the "cisco-nx" device type from /etc/rancid/rancid.types.base to /etc/rancid/rancid.types.conf under the new device type name "cisco-nx9k" and removed the command I did not want. This is how I did it, if you are OK with old-school unixisms... cd /etc/rancid gawk 'BEGIN{FS=";";OFS=FS;printf "\n# Same as cisco-nx from /etc/rancid/rancid.types.base but\n# removing troublesome dir logflash command\n\n"};/dir logflash:$/{next};/^cisco-nx/{gsub(/cisco-nx/,"cisco-nx9k");print}' rancid.types.base >>rancid.types.conf If you're not gawky :) I recommend you do it by hand instead of the way I did it. (Mad props to the maintainer of the FSF's GNU awk, Aharon Robbins!) Once you've defined the new device type, in your router.db file you use the newly defined name instead of cisco-nx and you're all set. --Charlie ________________________________________ From: Rancid-discuss [rancid-discuss-bounces at shrubbery.net] on behalf of Michael T. Voity [mvoity at uvm.edu] Sent: Monday, June 25, 2018 10:10 AM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] stopping command from being run Hello, Anyone have an idea that they can point me in a direction? Thanks, -Mike -- Michael T. Voity Network Engineer University of Vermont From: Rancid-discuss On Behalf Of Michael T. Voity Sent: Friday, June 22, 2018 12:05 PM To: rancid-discuss at shrubbery.net Subject: [rancid] stopping command from being run Hello, We are running 3.7 I seem to be having difficulty in getting the command "show dir /all" to stop be executed with my nexus switches. I have edited the 'nxrancid' and the 'nxos.pm' without success. Ideas? -Mike -- ------------------ CONFIDENTIALITY NOTICE --------------- This message, including any attachments, is for the sole use of the intended recipient(s) and may contain privileged confidential information protected by law. Any unauthorized review, use, disclosure or distribution of this message is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of this message. ------------------ CONFIDENTIALITY NOTICE --------------- From serv.informatique.chd at gmail.com Wed Jun 27 11:37:20 2018 From: serv.informatique.chd at gmail.com (Service Informatique CH DECIZE) Date: Wed, 27 Jun 2018 13:37:20 +0200 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: References: Message-ID: Hello, Could someone help us to identify the cause of our rancid problem, and help us to resolve it ? Thank you in advance. Yann. 2018-06-25 11:32 GMT+02:00 Service Informatique CH DECIZE < serv.informatique.chd at gmail.com>: > Still "sh: 1: cmwlogin: not found" in log files, even after having added > /usr/lib/rancid/bin to $PATH ... > Other idea? > > Yann. > > 2018-06-25 11:21 GMT+02:00 Dan Anderson : > >> You need to add /usr/lib/rancid/bin to the rancid user?s $PATH >> >> On Mon, Jun 25, 2018 at 4:43 AM Service Informatique CH DECIZE < >> serv.informatique.chd at gmail.com> wrote: >> >>> Hello, >>> The $PATH variable for rancid user as the following value : >>> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin >>> Thanks for your help. >>> >>> Yann. >>> >>> >>> 2018-06-22 17:26 GMT+02:00 Dan Anderson : >>> >>>> What?s your $PATH variable set to for the rancid user? >>>> >>>> >>>> >>>> On Thu, Jun 21, 2018 at 5:10 AM Service Informatique CH DECIZE < >>>> serv.informatique.chd at gmail.com> wrote: >>>> >>>>> Hello, >>>>> >>>>> I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS machine. >>>>> I have followed the jrbinks indications -> >>>>> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid >>>>> My tests are ok with a cisco router (config is ok in cvsweb), but ko >>>>> with cmw / hp routers (model 5120/5130). >>>>> >>>>> In the log file, I have the following error : >>>>> "Added swd01 >>>>> Trying to get all of the configs. >>>>> sh: 1: cmwlogin: not found >>>>> swd01: missed cmd(s): all commands >>>>> swd01: End of run not found >>>>> !" >>>>> >>>>> Please help, I don't know how to resolve the problem. >>>>> Thanks. >>>>> >>>>> PS : sorry for my bad english (I'm French ;o) ) >>>>> >>>>> Yann PAGE >>>>> >>>>> _______________________________________________ >>>>> Rancid-discuss mailing list >>>>> Rancid-discuss at shrubbery.net >>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >>>>> >>>> -- >>>> Dan >>>> >>> >>> -- >> Dan >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_zouhairy at skno.by Wed Jun 27 12:35:59 2018 From: m_zouhairy at skno.by (Vacheslav) Date: Wed, 27 Jun 2018 15:35:59 +0300 Subject: [rancid] stopping command from being run In-Reply-To: References: , <47e1fec1761645e8af21a110274ab68a@uvm.edu> Message-ID: <4d1a01d40e13$670b0550$35210ff0$@skno.by> Thank you very much for your insight. The 9ks have been bugging me for a long time with the little of use flash log and now it's gone thanks to you. But I added the cisco-nx9k to rancid.types.base and did not modify rancid.types.conf and just changed the type in the db file and the miracle happened! -----Original Message----- From: Rancid-discuss On Behalf Of Charles T. Brooks Sent: Monday, June 25, 2018 5:46 PM To: Michael T. Voity ; rancid-discuss at shrubbery.net Subject: Re: [rancid] stopping command from being run Hi Mike. I am running 3.7 also, in my case on RHEL7 with git. I am very happy with it. As I understand it, editing the perl modules to try to change commands issued to devices is a very wrong approach; it means you can't easily upgrade and your installation will be weird and difficult to get advice for online. so I strongly recommend you carefully revert any such changes you made. The files rancid.types.base (base types, do not edit) and rancid.types.conf (site custom device types) determine what commands are run for specific devices. So for example: on my Cisco Nexus 9Ks, I did not want to run the "show logflash" command, so I copied the "cisco-nx" device type from /etc/rancid/rancid.types.base to /etc/rancid/rancid.types.conf under the new device type name "cisco-nx9k" and removed the command I did not want. This is how I did it, if you are OK with old-school unixisms... cd /etc/rancid gawk 'BEGIN{FS=";";OFS=FS;printf "\n# Same as cisco-nx from /etc/rancid/rancid.types.base but\n# removing troublesome dir logflash command\n\n"};/dir logflash:$/{next};/^cisco-nx/{gsub(/cisco-nx/,"cisco-nx9k");print}' rancid.types.base >>rancid.types.conf If you're not gawky :) I recommend you do it by hand instead of the way I did it. (Mad props to the maintainer of the FSF's GNU awk, Aharon Robbins!) Once you've defined the new device type, in your router.db file you use the newly defined name instead of cisco-nx and you're all set. --Charlie ________________________________________ From: Rancid-discuss [rancid-discuss-bounces at shrubbery.net] on behalf of Michael T. Voity [mvoity at uvm.edu] Sent: Monday, June 25, 2018 10:10 AM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] stopping command from being run Hello, Anyone have an idea that they can point me in a direction? Thanks, -Mike -- Michael T. Voity Network Engineer University of Vermont From: Rancid-discuss On Behalf Of Michael T. Voity Sent: Friday, June 22, 2018 12:05 PM To: rancid-discuss at shrubbery.net Subject: [rancid] stopping command from being run Hello, We are running 3.7 I seem to be having difficulty in getting the command "show dir /all" to stop be executed with my nexus switches. I have edited the 'nxrancid' and the 'nxos.pm' without success. Ideas? -Mike -- ------------------ CONFIDENTIALITY NOTICE --------------- This message, including any attachments, is for the sole use of the intended recipient(s) and may contain privileged confidential information protected by law. Any unauthorized review, use, disclosure or distribution of this message is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of this message. ------------------ CONFIDENTIALITY NOTICE --------------- _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss From heas at shrubbery.net Wed Jun 27 14:32:49 2018 From: heas at shrubbery.net (heasley) Date: Wed, 27 Jun 2018 14:32:49 +0000 Subject: [rancid] stopping command from being run In-Reply-To: <4d1a01d40e13$670b0550$35210ff0$@skno.by> References: <47e1fec1761645e8af21a110274ab68a@uvm.edu> <4d1a01d40e13$670b0550$35210ff0$@skno.by> Message-ID: <20180627143248.GA98714@shrubbery.net> Wed, Jun 27, 2018 at 03:35:59PM +0300, Vacheslav: > Thank you very much for your insight. The 9ks have been bugging me for a > long time with the little of use flash log and now it's gone thanks to you. > But I added the cisco-nx9k to rancid.types.base and did not modify > rancid.types.conf and just changed the type in the db file and the miracle > happened! Charles suggested that you edit the .conf, because the next upgrade/install will overwrite the .base but not the .conf. From heas at shrubbery.net Wed Jun 27 14:35:54 2018 From: heas at shrubbery.net (heasley) Date: Wed, 27 Jun 2018 14:35:54 +0000 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: References: Message-ID: <20180627143554.GB98714@shrubbery.net> Wed, Jun 27, 2018 at 01:37:20PM +0200, Service Informatique CH DECIZE: > Hello, > Could someone help us to identify the cause of our rancid problem, and help > us to resolve it ? > Thank you in advance. > Yann. I have told you how to fix it; please re-read the past email. > 2018-06-25 11:32 GMT+02:00 Service Informatique CH DECIZE < > serv.informatique.chd at gmail.com>: > > > Still "sh: 1: cmwlogin: not found" in log files, even after having added > > /usr/lib/rancid/bin to $PATH ... > > Other idea? > > > > Yann. > > > > 2018-06-25 11:21 GMT+02:00 Dan Anderson : > > > >> You need to add /usr/lib/rancid/bin to the rancid user?s $PATH > >> > >> On Mon, Jun 25, 2018 at 4:43 AM Service Informatique CH DECIZE < > >> serv.informatique.chd at gmail.com> wrote: > >> > >>> Hello, > >>> The $PATH variable for rancid user as the following value : > >>> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > >>> Thanks for your help. > >>> > >>> Yann. > >>> > >>> > >>> 2018-06-22 17:26 GMT+02:00 Dan Anderson : > >>> > >>>> What?s your $PATH variable set to for the rancid user? > >>>> > >>>> > >>>> > >>>> On Thu, Jun 21, 2018 at 5:10 AM Service Informatique CH DECIZE < > >>>> serv.informatique.chd at gmail.com> wrote: > >>>> > >>>>> Hello, > >>>>> > >>>>> I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS machine. > >>>>> I have followed the jrbinks indications -> > >>>>> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid > >>>>> My tests are ok with a cisco router (config is ok in cvsweb), but ko > >>>>> with cmw / hp routers (model 5120/5130). > >>>>> > >>>>> In the log file, I have the following error : > >>>>> "Added swd01 > >>>>> Trying to get all of the configs. > >>>>> sh: 1: cmwlogin: not found > >>>>> swd01: missed cmd(s): all commands > >>>>> swd01: End of run not found > >>>>> !" > >>>>> > >>>>> Please help, I don't know how to resolve the problem. > >>>>> Thanks. > >>>>> > >>>>> PS : sorry for my bad english (I'm French ;o) ) > >>>>> > >>>>> Yann PAGE > >>>>> > >>>>> _______________________________________________ > >>>>> Rancid-discuss mailing list > >>>>> Rancid-discuss at shrubbery.net > >>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss > >>>>> > >>>> -- > >>>> Dan > >>>> > >>> > >>> -- > >> Dan > >> > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From Andy.D'ArcyJewell at csiltd.co.uk Wed Jun 27 14:48:21 2018 From: Andy.D'ArcyJewell at csiltd.co.uk (Andy D'Arcy Jewell) Date: Wed, 27 Jun 2018 14:48:21 +0000 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: References: , Message-ID: Depends on your OS. For linux/unix, you can add something like this to the bottom of your rancid user's .cshrc or .bashrc file (in the root of their homedirectory): export PATH=$PATH:/usr/lib/rancid/bin If you're not sure how to do this, google something like "centos add to path", amended as appropriate for your operating system. Regards, Andy D'Arcy Jewell Linux/FOSS Operations CSI LTD Email: andydj at csiltd.co.uk Tel: 07711 734555 [cid:image001.png at 01D1B726.545CC060] ________________________________ From: Rancid-discuss on behalf of Service Informatique CH DECIZE Sent: 27 June 2018 12:37:20 To: rancid-discuss at shrubbery.net Subject: Re: [rancid] Problem rancid 3.7 config with cmw routers Hello, Could someone help us to identify the cause of our rancid problem, and help us to resolve it ? Thank you in advance. Yann. 2018-06-25 11:32 GMT+02:00 Service Informatique CH DECIZE >: Still "sh: 1: cmwlogin: not found" in log files, even after having added /usr/lib/rancid/bin to $PATH ... Other idea? Yann. 2018-06-25 11:21 GMT+02:00 Dan Anderson >: You need to add /usr/lib/rancid/bin to the rancid user?s $PATH On Mon, Jun 25, 2018 at 4:43 AM Service Informatique CH DECIZE > wrote: Hello, The $PATH variable for rancid user as the following value : /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin Thanks for your help. Yann. 2018-06-22 17:26 GMT+02:00 Dan Anderson >: What?s your $PATH variable set to for the rancid user? On Thu, Jun 21, 2018 at 5:10 AM Service Informatique CH DECIZE > wrote: Hello, I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS machine. I have followed the jrbinks indications -> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid My tests are ok with a cisco router (config is ok in cvsweb), but ko with cmw / hp routers (model 5120/5130). In the log file, I have the following error : "Added swd01 Trying to get all of the configs. sh: 1: cmwlogin: not found swd01: missed cmd(s): all commands swd01: End of run not found !" Please help, I don't know how to resolve the problem. Thanks. PS : sorry for my bad english (I'm French ;o) ) Yann PAGE _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss -- Dan -- Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_zouhairy at skno.by Thu Jun 28 05:48:07 2018 From: m_zouhairy at skno.by (Vacheslav) Date: Thu, 28 Jun 2018 08:48:07 +0300 Subject: [rancid] stopping command from being run In-Reply-To: <20180627143248.GA98714@shrubbery.net> References: <47e1fec1761645e8af21a110274ab68a@uvm.edu> <4d1a01d40e13$670b0550$35210ff0$@skno.by> <20180627143248.GA98714@shrubbery.net> Message-ID: <6f9701d40ea3$972f13d0$c58d3b70$@skno.by> Well I didn't figure out how to edit the .conf, so I'll just reedit IT on upgrade :) -----Original Message----- From: heasley Sent: Wednesday, June 27, 2018 5:33 PM To: Vacheslav Cc: 'Charles T. Brooks' ; 'Michael T. Voity' ; rancid-discuss at shrubbery.net Subject: Re: [rancid] stopping command from being run Wed, Jun 27, 2018 at 03:35:59PM +0300, Vacheslav: > Thank you very much for your insight. The 9ks have been bugging me for > a long time with the little of use flash log and now it's gone thanks to you. > But I added the cisco-nx9k to rancid.types.base and did not modify > rancid.types.conf and just changed the type in the db file and the > miracle happened! Charles suggested that you edit the .conf, because the next upgrade/install will overwrite the .base but not the .conf. From heas at shrubbery.net Thu Jun 28 13:31:39 2018 From: heas at shrubbery.net ('heasley') Date: Thu, 28 Jun 2018 13:31:39 +0000 Subject: [rancid] stopping command from being run In-Reply-To: <6f9701d40ea3$972f13d0$c58d3b70$@skno.by> References: <47e1fec1761645e8af21a110274ab68a@uvm.edu> <4d1a01d40e13$670b0550$35210ff0$@skno.by> <20180627143248.GA98714@shrubbery.net> <6f9701d40ea3$972f13d0$c58d3b70$@skno.by> Message-ID: <20180628133139.GB71778@shrubbery.net> Thu, Jun 28, 2018 at 08:48:07AM +0300, Vacheslav: > Well I didn't figure out how to edit the .conf, so I'll just reedit IT on > upgrade :) vi? emacs? ed? sed? its the same format as .base and in the same directory. From serv.informatique.chd at gmail.com Fri Jun 29 10:17:19 2018 From: serv.informatique.chd at gmail.com (Service Informatique CH DECIZE) Date: Fri, 29 Jun 2018 12:17:19 +0200 Subject: [rancid] Problem rancid 3.7 config with cmw routers In-Reply-To: <20180627143554.GB98714@shrubbery.net> References: <20180627143554.GB98714@shrubbery.net> Message-ID: Hello, Great thanks to heasley, my problem is fixed ! I put the same interpreter in the first line of cmwlogin file than in the first line of clogin file. And after a rancid-run, no error in log files. I need to do some other tests, but it's ok now. Thanks again! Yann. 2018-06-27 16:35 GMT+02:00 heasley : > Wed, Jun 27, 2018 at 01:37:20PM +0200, Service Informatique CH DECIZE: > > Hello, > > Could someone help us to identify the cause of our rancid problem, and > help > > us to resolve it ? > > Thank you in advance. > > Yann. > > I have told you how to fix it; please re-read the past email. > > > 2018-06-25 11:32 GMT+02:00 Service Informatique CH DECIZE < > > serv.informatique.chd at gmail.com>: > > > > > Still "sh: 1: cmwlogin: not found" in log files, even after having > added > > > /usr/lib/rancid/bin to $PATH ... > > > Other idea? > > > > > > Yann. > > > > > > 2018-06-25 11:21 GMT+02:00 Dan Anderson : > > > > > >> You need to add /usr/lib/rancid/bin to the rancid user?s $PATH > > >> > > >> On Mon, Jun 25, 2018 at 4:43 AM Service Informatique CH DECIZE < > > >> serv.informatique.chd at gmail.com> wrote: > > >> > > >>> Hello, > > >>> The $PATH variable for rancid user as the following value : > > >>> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/ > bin:/snap/bin > > >>> Thanks for your help. > > >>> > > >>> Yann. > > >>> > > >>> > > >>> 2018-06-22 17:26 GMT+02:00 Dan Anderson : > > >>> > > >>>> What?s your $PATH variable set to for the rancid user? > > >>>> > > >>>> > > >>>> > > >>>> On Thu, Jun 21, 2018 at 5:10 AM Service Informatique CH DECIZE < > > >>>> serv.informatique.chd at gmail.com> wrote: > > >>>> > > >>>>> Hello, > > >>>>> > > >>>>> I have made a rancid 3.7 installation on a Ubuntu 18.04 LTS > machine. > > >>>>> I have followed the jrbinks indications -> > > >>>>> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid > > >>>>> My tests are ok with a cisco router (config is ok in cvsweb), but > ko > > >>>>> with cmw / hp routers (model 5120/5130). > > >>>>> > > >>>>> In the log file, I have the following error : > > >>>>> "Added swd01 > > >>>>> Trying to get all of the configs. > > >>>>> sh: 1: cmwlogin: not found > > >>>>> swd01: missed cmd(s): all commands > > >>>>> swd01: End of run not found > > >>>>> !" > > >>>>> > > >>>>> Please help, I don't know how to resolve the problem. > > >>>>> Thanks. > > >>>>> > > >>>>> PS : sorry for my bad english (I'm French ;o) ) > > >>>>> > > >>>>> Yann PAGE > > >>>>> > > >>>>> _______________________________________________ > > >>>>> Rancid-discuss mailing list > > >>>>> Rancid-discuss at shrubbery.net > > >>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > >>>>> > > >>>> -- > > >>>> Dan > > >>>> > > >>> > > >>> -- > > >> Dan > > >> > > > > > > > > > _______________________________________________ > > 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: