From mnewton at pofp.com Sat Jun 8 00:16:07 2019 From: mnewton at pofp.com (Michael Newton) Date: Fri, 7 Jun 2019 18:16:07 -0600 Subject: [rancid] Unable to figure out "end of run not found" Message-ID: Hi all, we manage about 200-300 Brocade ICX switches across a number of locations. All but two are being successfully polled. The two in question (same firmware and a similar config to the others) consistently show "end of run not found" when run as part of the cron job. But, when run manually for troubleshooting, everything seems to work. `sudo -u rancid flogin switchname` works fine and logs me into the switch. `sudo -u rancid flogin -c 'show version;show clock' switchname` likewise works fine. Logs in, runs the commands, and logs out. `sudo -u rancid rancid -t foundry -d switchname` runs through everything perfectly. The switchname.new file has the expected output. Yet the log for the automated process consistently shows this: switchname: End of run not found end Is there anything else I can do to troubleshoot this? Thanks in advance! Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_zouhairy at skno.by Mon Jun 10 06:22:15 2019 From: m_zouhairy at skno.by (Vacheslav Zouhairy) Date: Mon, 10 Jun 2019 09:22:15 +0300 Subject: [rancid] Unable to figure out "end of run not found" In-Reply-To: References: Message-ID: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> Is there any bandwidth hog on those switches by any chance? On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote: > Hi all, we manage about 200-300 Brocade ICX switches across a number > of locations. All but two are being successfully polled. The two in > question (same firmware and a similar config to the others) > consistently show "end of run not found" when run as part of the cron > job. But, when run manually for troubleshooting, everything seems to > work. > > `sudo -u rancid flogin switchname` works fine and logs me into the > switch. > > `sudo -u rancid flogin -c 'show version;show clock' switchname` > likewise works fine. Logs in, runs the commands, and logs out. > > `sudo -u rancid rancid -t foundry -d switchname` runs through > everything perfectly. The switchname.new file has the expected > output. > > Yet the log for the automated process consistently shows this: > > switchname: End of run not found > end > > Is there anything else I can do to troubleshoot this? Thanks in > advance! > > Mike > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From mnewton at pofp.com Mon Jun 10 15:25:36 2019 From: mnewton at pofp.com (Michael Newton) Date: Mon, 10 Jun 2019 09:25:36 -0600 Subject: [rancid] Unable to figure out "end of run not found" In-Reply-To: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> References: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> Message-ID: No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic. So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html And that made me notice that my router.db entry was corrupt (wrong device type.) So, typical user error. Thanks for (indirectly) getting me in the right direction though! Mike On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy wrote: > Is there any bandwidth hog on those switches by any chance? > > On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote: > > Hi all, we manage about 200-300 Brocade ICX switches across a number > > of locations. All but two are being successfully polled. The two in > > question (same firmware and a similar config to the others) > > consistently show "end of run not found" when run as part of the cron > > job. But, when run manually for troubleshooting, everything seems to > > work. > > > > `sudo -u rancid flogin switchname` works fine and logs me into the > > switch. > > > > `sudo -u rancid flogin -c 'show version;show clock' switchname` > > likewise works fine. Logs in, runs the commands, and logs out. > > > > `sudo -u rancid rancid -t foundry -d switchname` runs through > > everything perfectly. The switchname.new file has the expected > > output. > > > > Yet the log for the automated process consistently shows this: > > > > switchname: End of run not found > > end > > > > Is there anything else I can do to troubleshoot this? Thanks in > > advance! > > > > Mike > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > _______________________________________________ > 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 kevin.moralez at gmail.com Mon Jun 10 16:47:45 2019 From: kevin.moralez at gmail.com (Kevin Morales) Date: Mon, 10 Jun 2019 10:47:45 -0600 Subject: [rancid] Fwd: Problema with Rancid and ZTE Routers In-Reply-To: References: Message-ID: Hi, I am trying to configure RANCID for backup ZTE Router Device, but I get this error message: [root at localhost logs]# more ZTE.20190610.103748 starting: Mon Jun 10 10:37:48 CST 2019 property 'svn:ignore' set on '.' property 'svn:ignore' set on 'configs' Updating '.': At revision 6. Trying to get all of the configs. 172.27.0.101:* End of run not found* ! ===================================== When I try clogin -c "show running-config" 172.27.0.101 I get this: packet_write_wait: Connection to 172.27.0.101 port 22: Broken pipe and I can see that the command work fine! -- *Kevin Morales* -------------- next part -------------- An HTML attachment was scrubbed... URL: From weylin at bu.edu Sat Jun 15 14:51:46 2019 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Sat, 15 Jun 2019 14:51:46 +0000 Subject: [rancid] Unable to figure out "end of run not found" In-Reply-To: References: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> Message-ID: > So this got me looking for how to do debug output per-host If you?re using Linux, the command is: NOPIPE=yes rancid -d -t This will generate two files: .new .raw .new is the parsed output .raw is pure log of the session (ie, it even captures non-printing characters). I believe it?s only dumped if you set both NOPIPE and -d. I?ve used the .raw output on many occasions. At the moment I?m even troubleshooting a device CPU issue that rancid tripped on that I wouldn?t have found but for this; ?clogin -c ? was even working fine. weylin From: Michael Newton Date: Monday, June 10, 2019 at 11:25 AM To: Vacheslav Zouhairy Cc: Subject: Re: [rancid] Unable to figure out "end of run not found" No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic. So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html And that made me notice that my router.db entry was corrupt (wrong device type.) So, typical user error. Thanks for (indirectly) getting me in the right direction though! Mike On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy > wrote: Is there any bandwidth hog on those switches by any chance? On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote: > Hi all, we manage about 200-300 Brocade ICX switches across a number > of locations. All but two are being successfully polled. The two in > question (same firmware and a similar config to the others) > consistently show "end of run not found" when run as part of the cron > job. But, when run manually for troubleshooting, everything seems to > work. > > `sudo -u rancid flogin switchname` works fine and logs me into the > switch. > > `sudo -u rancid flogin -c 'show version;show clock' switchname` > likewise works fine. Logs in, runs the commands, and logs out. > > `sudo -u rancid rancid -t foundry -d switchname` runs through > everything perfectly. The switchname.new file has the expected > output. > > Yet the log for the automated process consistently shows this: > > switchname: End of run not found > end > > Is there anything else I can do to troubleshoot this? Thanks in > advance! > > Mike > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss _______________________________________________ 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 cgauthier at comscore.com Mon Jun 17 20:22:02 2019 From: cgauthier at comscore.com (Gauthier, Chris) Date: Mon, 17 Jun 2019 20:22:02 +0000 Subject: [rancid] Unable to figure out "end of run not found" In-Reply-To: References: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> Message-ID: <43D42FB0-DD40-4447-8E0D-D1E61B277756@comscore.com> Don?t forget the ; between the NOPIPE=yes and the rest of the command! :-) Some flavors of linux also want you to use the export command.. Chris Gauthier Senior Network Engineer | Comscore t +1 (503) 331-2704 | cgauthier at comscore.com comscore.com ???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender. From: Rancid-discuss on behalf of "Piegorsch, Weylin William" Date: Saturday, June 15, 2019 at 7:52 AM To: Michael Newton , Vacheslav Zouhairy Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Unable to figure out "end of run not found" > So this got me looking for how to do debug output per-host If you?re using Linux, the command is: NOPIPE=yes rancid -d -t This will generate two files: .new .raw .new is the parsed output .raw is pure log of the session (ie, it even captures non-printing characters). I believe it?s only dumped if you set both NOPIPE and -d. I?ve used the .raw output on many occasions. At the moment I?m even troubleshooting a device CPU issue that rancid tripped on that I wouldn?t have found but for this; ?clogin -c ? was even working fine. weylin From: Michael Newton Date: Monday, June 10, 2019 at 11:25 AM To: Vacheslav Zouhairy Cc: Subject: Re: [rancid] Unable to figure out "end of run not found" No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic. So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html And that made me notice that my router.db entry was corrupt (wrong device type.) So, typical user error. Thanks for (indirectly) getting me in the right direction though! Mike On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy > wrote: Is there any bandwidth hog on those switches by any chance? On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote: > Hi all, we manage about 200-300 Brocade ICX switches across a number > of locations. All but two are being successfully polled. The two in > question (same firmware and a similar config to the others) > consistently show "end of run not found" when run as part of the cron > job. But, when run manually for troubleshooting, everything seems to > work. > > `sudo -u rancid flogin switchname` works fine and logs me into the > switch. > > `sudo -u rancid flogin -c 'show version;show clock' switchname` > likewise works fine. Logs in, runs the commands, and logs out. > > `sudo -u rancid rancid -t foundry -d switchname` runs through > everything perfectly. The switchname.new file has the expected > output. > > Yet the log for the automated process consistently shows this: > > switchname: End of run not found > end > > Is there anything else I can do to troubleshoot this? Thanks in > advance! > > Mike > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss _______________________________________________ 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 weylin at bu.edu Mon Jun 17 21:05:13 2019 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Mon, 17 Jun 2019 21:05:13 +0000 Subject: [rancid] Unable to figure out "end of run not found" In-Reply-To: <43D42FB0-DD40-4447-8E0D-D1E61B277756@comscore.com> References: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> , <43D42FB0-DD40-4447-8E0D-D1E61B277756@comscore.com> Message-ID: I actually don't use the semicolon. Not sure if this is bash specific, sh specific, or posix general, but without the semicolon it sets the global environment variable only for the duration of that command following the variable definition, and unset it upon returning control to the cli. See also your "export" comment, which has correlating implications regarding environment vs namespace vs scope. But I'm not an experienced programmer, and don't pretend to grok the various nuances, benefits, and pitfalls known by those who actually know what they're doing, so if using the semicolon is better I all ears. weylin Sent from Outlook on my 'Droid ________________________________ From: Gauthier, Chris Sent: Monday, June 17, 2019 4:22:02 PM To: Piegorsch, Weylin William; Michael Newton; Vacheslav Zouhairy Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Unable to figure out "end of run not found" Don?t forget the ; between the NOPIPE=yes and the rest of the command! :-) Some flavors of linux also want you to use the export command.. Chris? Gauthier Senior Network Engineer | Comscore t +1 (503) 331-2704 | cgauthier at comscore.com comscore.com ???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender. From: Rancid-discuss on behalf of "Piegorsch, Weylin William" Date: Saturday, June 15, 2019 at 7:52 AM To: Michael Newton , Vacheslav Zouhairy Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Unable to figure out "end of run not found" > So this got me looking for how to do debug output per-host If you?re using Linux, the command is: NOPIPE=yes rancid -d -t This will generate two files: .new .raw .new is the parsed output .raw is pure log of the session (ie, it even captures non-printing characters). I believe it?s only dumped if you set both NOPIPE and -d. I?ve used the .raw output on many occasions. At the moment I?m even troubleshooting a device CPU issue that rancid tripped on that I wouldn?t have found but for this; ?clogin -c ? was even working fine. weylin From: Michael Newton Date: Monday, June 10, 2019 at 11:25 AM To: Vacheslav Zouhairy Cc: Subject: Re: [rancid] Unable to figure out "end of run not found" No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic. So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html And that made me notice that my router.db entry was corrupt (wrong device type.) So, typical user error. Thanks for (indirectly) getting me in the right direction though! Mike On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy > wrote: Is there any bandwidth hog on those switches by any chance? On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote: > Hi all, we manage about 200-300 Brocade ICX switches across a number > of locations. All but two are being successfully polled. The two in > question (same firmware and a similar config to the others) > consistently show "end of run not found" when run as part of the cron > job. But, when run manually for troubleshooting, everything seems to > work. > > `sudo -u rancid flogin switchname` works fine and logs me into the > switch. > > `sudo -u rancid flogin -c 'show version;show clock' switchname` > likewise works fine. Logs in, runs the commands, and logs out. > > `sudo -u rancid rancid -t foundry -d switchname` runs through > everything perfectly. The switchname.new file has the expected > output. > > Yet the log for the automated process consistently shows this: > > switchname: End of run not found > end > > Is there anything else I can do to troubleshoot this? Thanks in > advance! > > Mike > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss _______________________________________________ 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 jean at unistra.fr Mon Jun 17 21:27:03 2019 From: jean at unistra.fr (Jean Benoit) Date: Mon, 17 Jun 2019 23:27:03 +0200 Subject: [rancid] Unable to figure out "end of run not found" In-Reply-To: References: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> <43D42FB0-DD40-4447-8E0D-D1E61B277756@comscore.com> Message-ID: <20190617212703.GA21091@seti.u-strasbg.fr> On Mon, Jun 17, 2019 at 09:05:13PM +0000, Piegorsch, Weylin William wrote: > I actually don't use the semicolon. > Not sure if this is bash specific, sh specific, or posix general, but > without the semicolon it sets the global environment variable only for the > duration of that command following the variable definition, and unset it > upon returning control to the cli. See also your "export" comment, which > has correlating implications regarding environment vs namespace vs scope. > But I'm not an experienced programmer, and don't pretend to grok the > various nuances, benefits, and pitfalls known by those who actually know > what they're doing, so if using the semicolon is better I all ears. You are right: ; is not necessary. NOPIPE=yes rancid -d -t type devicename is is a perfectly valid syntax according to POSIX Shell Grammar Rules. It works with bash, dash, ksh, zsh and other shells. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02 see "simple_command" syntax and rule 7, which defines "ASSIGNMENT_WORD". simple_command : cmd_prefix cmd_word cmd_suffix | cmd_prefix cmd_word | cmd_prefix | cmd_name cmd_suffix | cmd_name cmd_prefix : io_redirect | cmd_prefix io_redirect | ASSIGNMENT_WORD | cmd_prefix ASSIGNMENT_WORD You don't need the ; and you dont need export, and you can even put redirects, as long as assignments are before the command. Example : XYZ=foo /tmp/y A=1 B=bar mycommand myarg -- Jean From cgauthier at comscore.com Mon Jun 17 22:10:27 2019 From: cgauthier at comscore.com (Gauthier, Chris) Date: Mon, 17 Jun 2019 22:10:27 +0000 Subject: [rancid] Unable to figure out "end of run not found" In-Reply-To: References: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> <43D42FB0-DD40-4447-8E0D-D1E61B277756@comscore.com> Message-ID: Interesting. I thought it would get mixed up into the value of the variable?. I?m not an expert programmer at all, but thought I needed to use the ; to separate the commands appropriately. But, my expertise on shell variables is a tad (understatement, really) limited. So, I shall defer! :) Cheers, Chris Chris Gauthier Senior Network Engineer | Comscore t +1 (503) 331-2704 | cgauthier at comscore.com comscore.com ???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender. From: "Piegorsch, Weylin William" Date: Monday, June 17, 2019 at 2:05 PM To: "Gauthier, Chris" , Michael Newton , Vacheslav Zouhairy Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Unable to figure out "end of run not found" I actually don't use the semicolon. Not sure if this is bash specific, sh specific, or posix general, but without the semicolon it sets the global environment variable only for the duration of that command following the variable definition, and unset it upon returning control to the cli. See also your "export" comment, which has correlating implications regarding environment vs namespace vs scope. But I'm not an experienced programmer, and don't pretend to grok the various nuances, benefits, and pitfalls known by those who actually know what they're doing, so if using the semicolon is better I all ears. weylin Sent from Outlook on my 'Droid ________________________________ From: Gauthier, Chris Sent: Monday, June 17, 2019 4:22:02 PM To: Piegorsch, Weylin William; Michael Newton; Vacheslav Zouhairy Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Unable to figure out "end of run not found" Don?t forget the ; between the NOPIPE=yes and the rest of the command! :-) Some flavors of linux also want you to use the export command.. Chris? Gauthier Senior Network Engineer | Comscore t +1 (503) 331-2704 | cgauthier at comscore.com comscore.com ???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender. From: Rancid-discuss on behalf of "Piegorsch, Weylin William" Date: Saturday, June 15, 2019 at 7:52 AM To: Michael Newton , Vacheslav Zouhairy Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Unable to figure out "end of run not found" > So this got me looking for how to do debug output per-host If you?re using Linux, the command is: NOPIPE=yes rancid -d -t This will generate two files: .new .raw .new is the parsed output .raw is pure log of the session (ie, it even captures non-printing characters). I believe it?s only dumped if you set both NOPIPE and -d. I?ve used the .raw output on many occasions. At the moment I?m even troubleshooting a device CPU issue that rancid tripped on that I wouldn?t have found but for this; ?clogin -c ? was even working fine. weylin From: Michael Newton Date: Monday, June 10, 2019 at 11:25 AM To: Vacheslav Zouhairy Cc: Subject: Re: [rancid] Unable to figure out "end of run not found" No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic. So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html And that made me notice that my router.db entry was corrupt (wrong device type.) So, typical user error. Thanks for (indirectly) getting me in the right direction though! Mike On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy > wrote: Is there any bandwidth hog on those switches by any chance? On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote: > Hi all, we manage about 200-300 Brocade ICX switches across a number > of locations. All but two are being successfully polled. The two in > question (same firmware and a similar config to the others) > consistently show "end of run not found" when run as part of the cron > job. But, when run manually for troubleshooting, everything seems to > work. > > `sudo -u rancid flogin switchname` works fine and logs me into the > switch. > > `sudo -u rancid flogin -c 'show version;show clock' switchname` > likewise works fine. Logs in, runs the commands, and logs out. > > `sudo -u rancid rancid -t foundry -d switchname` runs through > everything perfectly. The switchname.new file has the expected > output. > > Yet the log for the automated process consistently shows this: > > switchname: End of run not found > end > > Is there anything else I can do to troubleshoot this? Thanks in > advance! > > Mike > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss _______________________________________________ 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 weylin at bu.edu Tue Jun 18 09:03:06 2019 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Tue, 18 Jun 2019 09:03:06 +0000 Subject: [rancid] Unable to figure out "end of run not found" In-Reply-To: <20190617212703.GA21091@seti.u-strasbg.fr> References: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> <43D42FB0-DD40-4447-8E0D-D1E61B277756@comscore.com> <20190617212703.GA21091@seti.u-strasbg.fr> Message-ID: > you can even put redirects That's a neat trick!!! I'll have to remember that one; thanks! __ weylin ?On 6/17/19, 5:27 PM, "Jean Benoit" wrote: On Mon, Jun 17, 2019 at 09:05:13PM +0000, Piegorsch, Weylin William wrote: > I actually don't use the semicolon. > Not sure if this is bash specific, sh specific, or posix general, but > without the semicolon it sets the global environment variable only for the > duration of that command following the variable definition, and unset it > upon returning control to the cli. See also your "export" comment, which > has correlating implications regarding environment vs namespace vs scope. > But I'm not an experienced programmer, and don't pretend to grok the > various nuances, benefits, and pitfalls known by those who actually know > what they're doing, so if using the semicolon is better I all ears. You are right: ; is not necessary. NOPIPE=yes rancid -d -t type devicename is is a perfectly valid syntax according to POSIX Shell Grammar Rules. It works with bash, dash, ksh, zsh and other shells. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02 see "simple_command" syntax and rule 7, which defines "ASSIGNMENT_WORD". simple_command : cmd_prefix cmd_word cmd_suffix | cmd_prefix cmd_word | cmd_prefix | cmd_name cmd_suffix | cmd_name cmd_prefix : io_redirect | cmd_prefix io_redirect | ASSIGNMENT_WORD | cmd_prefix ASSIGNMENT_WORD You don't need the ; and you dont need export, and you can even put redirects, as long as assignments are before the command. Example : XYZ=foo /tmp/y A=1 B=bar mycommand myarg -- Jean From cgauthier at comscore.com Tue Jun 18 18:19:23 2019 From: cgauthier at comscore.com (Gauthier, Chris) Date: Tue, 18 Jun 2019 18:19:23 +0000 Subject: [rancid] Unable to figure out "end of run not found" In-Reply-To: References: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> <43D42FB0-DD40-4447-8E0D-D1E61B277756@comscore.com> <20190617212703.GA21091@seti.u-strasbg.fr> Message-ID: <6EDD41C8-9D46-4920-9F51-02626B37B3D4@comscore.com> Thanks for sharing this! TIL! ? Chris Gauthier Senior Network Engineer | Comscore t +1 (503) 331-2704 | cgauthier at comscore.com comscore.com ???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender. -----Original Message----- From: "Piegorsch, Weylin William" Date: Tuesday, June 18, 2019 at 2:03 AM To: Jean Benoit Cc: "Gauthier, Chris" , Michael Newton , Vacheslav Zouhairy , "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Unable to figure out "end of run not found" > you can even put redirects That's a neat trick!!! I'll have to remember that one; thanks! __ weylin On 6/17/19, 5:27 PM, "Jean Benoit" wrote: On Mon, Jun 17, 2019 at 09:05:13PM +0000, Piegorsch, Weylin William wrote: > I actually don't use the semicolon. > Not sure if this is bash specific, sh specific, or posix general, but > without the semicolon it sets the global environment variable only for the > duration of that command following the variable definition, and unset it > upon returning control to the cli. See also your "export" comment, which > has correlating implications regarding environment vs namespace vs scope. > But I'm not an experienced programmer, and don't pretend to grok the > various nuances, benefits, and pitfalls known by those who actually know > what they're doing, so if using the semicolon is better I all ears. You are right: ; is not necessary. NOPIPE=yes rancid -d -t type devicename is is a perfectly valid syntax according to POSIX Shell Grammar Rules. It works with bash, dash, ksh, zsh and other shells. https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpubs.opengroup.org%2fonlinepubs%2f9699919799%2futilities%2fV3_chap02.html%23tag_18_10_02&c=E,1,pVeiRZ33eh0bANTtrPcyWLXgDYYcEhv1fVgAMKs-rqhpxiQGGKwtaHnc1ENunuBCFwIl6XJo0fGwJdkcHgduuUt2gpDkO7h_-c4J99skKxG0vy0,&typo=1 see "simple_command" syntax and rule 7, which defines "ASSIGNMENT_WORD". simple_command : cmd_prefix cmd_word cmd_suffix | cmd_prefix cmd_word | cmd_prefix | cmd_name cmd_suffix | cmd_name cmd_prefix : io_redirect | cmd_prefix io_redirect | ASSIGNMENT_WORD | cmd_prefix ASSIGNMENT_WORD You don't need the ; and you dont need export, and you can even put redirects, as long as assignments are before the command. Example : XYZ=foo /tmp/y A=1 B=bar mycommand myarg -- Jean -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.g at atwgpc.net Wed Jun 19 09:59:54 2019 From: ryan.g at atwgpc.net (Ryan Gelobter) Date: Wed, 19 Jun 2019 04:59:54 -0500 Subject: [rancid] Notifications on Errors Message-ID: Is there anything anyone has more recent than the post below to get notified when RANCID runs but has errors? Such as can't login, no available cipher type, etc? Someone mentioned in 2012 they wrote a wrapper to syslog and send that to splunk to and write reports based off the logs but never posted the script. http://www.shrubbery.net/pipermail/rancid-discuss/2012-January/006152.html Thanks, Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.o.hopkins at gmail.com Wed Jun 19 10:35:34 2019 From: c.o.hopkins at gmail.com (Craig Hopkins) Date: Wed, 19 Jun 2019 11:35:34 +0100 Subject: [rancid] Notifications on Errors In-Reply-To: References: Message-ID: On mine, I have group@ which emails out the updates for my devices in "group" and rancid-group@ which rancid uses to email out alerts. I thought this was the standard approach? On Wed, 19 Jun 2019 at 11:00, Ryan Gelobter wrote: > Is there anything anyone has more recent than the post below to get > notified when RANCID runs but has errors? Such as can't login, no available > cipher type, etc? Someone mentioned in 2012 they wrote a wrapper to syslog > and send that to splunk to and write reports based off the logs but never > posted the script. > > http://www.shrubbery.net/pipermail/rancid-discuss/2012-January/006152.html > > Thanks, > Ryan > _______________________________________________ > 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 c.o.hopkins at gmail.com Wed Jun 19 10:38:21 2019 From: c.o.hopkins at gmail.com (Craig Hopkins) Date: Wed, 19 Jun 2019 11:38:21 +0100 Subject: [rancid] Notifications on Errors In-Reply-To: References: Message-ID: Sorry, rancid-group@ for diffs rancid-admin-group@ for errors Step 6 of https://github.com/renard/rancid/blob/master/README Cheers, Craig On Wed, 19 Jun 2019 at 11:35, Craig Hopkins wrote: > On mine, I have group@ which emails out the updates for my devices in > "group" and rancid-group@ which rancid uses to email out alerts. I > thought this was the standard approach? > > On Wed, 19 Jun 2019 at 11:00, Ryan Gelobter wrote: > >> Is there anything anyone has more recent than the post below to get >> notified when RANCID runs but has errors? Such as can't login, no available >> cipher type, etc? Someone mentioned in 2012 they wrote a wrapper to syslog >> and send that to splunk to and write reports based off the logs but never >> posted the script. >> >> http://www.shrubbery.net/pipermail/rancid-discuss/2012-January/006152.html >> >> Thanks, >> Ryan >> _______________________________________________ >> 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 ryan.g at atwgpc.net Wed Jun 19 10:44:30 2019 From: ryan.g at atwgpc.net (Ryan Gelobter) Date: Wed, 19 Jun 2019 05:44:30 -0500 Subject: [rancid] Notifications on Errors In-Reply-To: References: Message-ID: Will that notify me on just errors and not diffs too if I setup rancid to email? On Wed, Jun 19, 2019, 5:38 AM Craig Hopkins wrote: > Sorry, > > rancid-group@ for diffs > rancid-admin-group@ for errors > > Step 6 of https://github.com/renard/rancid/blob/master/README > > Cheers, > > Craig > > On Wed, 19 Jun 2019 at 11:35, Craig Hopkins wrote: > >> On mine, I have group@ which emails out the updates for my devices in >> "group" and rancid-group@ which rancid uses to email out alerts. I >> thought this was the standard approach? >> >> On Wed, 19 Jun 2019 at 11:00, Ryan Gelobter wrote: >> >>> Is there anything anyone has more recent than the post below to get >>> notified when RANCID runs but has errors? Such as can't login, no available >>> cipher type, etc? Someone mentioned in 2012 they wrote a wrapper to syslog >>> and send that to splunk to and write reports based off the logs but never >>> posted the script. >>> >>> >>> http://www.shrubbery.net/pipermail/rancid-discuss/2012-January/006152.html >>> >>> Thanks, >>> Ryan >>> _______________________________________________ >>> 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 c.o.hopkins at gmail.com Wed Jun 19 11:03:42 2019 From: c.o.hopkins at gmail.com (Craig Hopkins) Date: Wed, 19 Jun 2019 12:03:42 +0100 Subject: [rancid] Notifications on Errors In-Reply-To: References: Message-ID: Each one has a specific role. They don't duplicate. Cheers, Craig On Wed, 19 Jun 2019 at 11:44, Ryan Gelobter wrote: > Will that notify me on just errors and not diffs too if I setup rancid to > email? > > On Wed, Jun 19, 2019, 5:38 AM Craig Hopkins wrote: > >> Sorry, >> >> rancid-group@ for diffs >> rancid-admin-group@ for errors >> >> Step 6 of https://github.com/renard/rancid/blob/master/README >> >> Cheers, >> >> Craig >> >> On Wed, 19 Jun 2019 at 11:35, Craig Hopkins >> wrote: >> >>> On mine, I have group@ which emails out the updates for my devices in >>> "group" and rancid-group@ which rancid uses to email out alerts. I >>> thought this was the standard approach? >>> >>> On Wed, 19 Jun 2019 at 11:00, Ryan Gelobter wrote: >>> >>>> Is there anything anyone has more recent than the post below to get >>>> notified when RANCID runs but has errors? Such as can't login, no available >>>> cipher type, etc? Someone mentioned in 2012 they wrote a wrapper to syslog >>>> and send that to splunk to and write reports based off the logs but never >>>> posted the script. >>>> >>>> >>>> http://www.shrubbery.net/pipermail/rancid-discuss/2012-January/006152.html >>>> >>>> Thanks, >>>> Ryan >>>> _______________________________________________ >>>> 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 Wed Jun 19 18:00:09 2019 From: heas at shrubbery.net (john heasley) Date: Wed, 19 Jun 2019 18:00:09 +0000 Subject: [rancid] Notifications on Errors In-Reply-To: References: Message-ID: <20190619180009.GD32364@shrubbery.net> Wed, Jun 19, 2019 at 12:03:42PM +0100, Craig Hopkins: > Each one has a specific role. They don't duplicate. It is not the errors themselves that are sent to the admin list. it sends notification about devices added/removed (which is duplicated to the diff list in diff form of router.db) and when the age of a device's collection exceed rancid.conf(5):OLDTIME time. Off the top, that is all that goes to admin. From nick.nauwelaerts at aquafin.be Wed Jun 19 20:35:06 2019 From: nick.nauwelaerts at aquafin.be (Nick Nauwelaerts) Date: Wed, 19 Jun 2019 20:35:06 +0000 Subject: [rancid] platform parameter in clogin Message-ID: heya, so i noticed the rancid source recently migrated to github (https://github.com/haussli/rancid), so i was rebasing aerohive support on it. during this process i noticed that the seperate aerohive login script could just as well be integrated in clogin. it needs 2 changes: it has it's own "config changed" prompt. that was easy to add and works as expected. it needs it's own cli command to disable paging -> "console page 0" since extreme alrdy had an exception i thought it would be as easy as adding an elseif to get aerohive support going, but it seems extreme gets special handling for the platform variable in clogin. so i was wondering what the advise is in this case? it seems silly to have keep a copy of clogin just because i need some other pager setup. * keep a seperate login script: alrdy have one that works, so that's an option. however, as with other login scripts it will diverge over time from the main clogin if not synced manually each time * add a cludge to clogin to recognize aerohive devices and somehow set platform * be able to pass platform via -E (doesn't seem to work atm, most likely since it gets reset -> # attempt at platform switching. set platform "") * deduce platform from router.db, but clogin doesn't really need that * add platform as an optional parameter to cloginrc * ... things i didn't think of any hints on how to best tackle this? rancid version is git master/head. thx // nick ________________________________ Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN | Instagram In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy. P Denk aan het milieu. Druk deze mail niet onnodig af. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.nauwelaerts at aquafin.be Wed Jun 19 21:01:40 2019 From: nick.nauwelaerts at aquafin.be (Nick Nauwelaerts) Date: Wed, 19 Jun 2019 21:01:40 +0000 Subject: [rancid] Unable to figure out "end of run not found" In-Reply-To: References: <45f85a90802ea6391caee3dc8f7dcd734655e43c.camel@skno.by> <43D42FB0-DD40-4447-8E0D-D1E61B277756@comscore.com> Message-ID: <1d2fd209f746444a8175c9d70ff35fa7@aquafin.be> iirc: ; is to seperate commands and wil execute the whole command string without checking the return value of the previous command && will do the same, but if previous command returns not null (you can check the return code of the previous command with "echo $?") it will end the command list. the syntax is question "NOPIPE=yes" will set the environment variable NOPIPE but only for the context of the command that's executed. appending ; between NOPIPE=yes & the command will _NOT_ do what you expect; it will execute and empty cmd with nopipe env set to yes, then execute your command with default envvars. you can compare: AHHA=aha env | grep -i aha output -> AHHA=aha AHHA=aha; env | grep -i aha output -> nothing export with set the envvar for your current session: env | grep -i nop -> output nothing export NOPIPE=yes env | grep -i nop output ->NOPIPE=yes all examples done in bash instead of my preferred zsh. if you use csh/tcsh or fish i would guess you know what you're doing and can adapt the config to work. bottom line, this is correct for most bourne shell derivatives: NOPIPE=yes rancid -d -t here's the catch, if you run rancid from cron you will either need to uncomment the NOPIPE line in yr rancid.conf or add them to your crontab entry. side note: the next rancid version will most likely change this behaviour: https://github.com/haussli/rancid/commit/94318333c8f0d746abdd22cf4430636a394def8f // nick From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Gauthier, Chris Sent: Tuesday, June 18, 2019 00:10 To: Piegorsch, Weylin William ; Michael Newton ; Vacheslav Zouhairy Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Unable to figure out "end of run not found" Interesting. I thought it would get mixed up into the value of the variable?. I?m not an expert programmer at all, but thought I needed to use the ; to separate the commands appropriately. But, my expertise on shell variables is a tad (understatement, really) limited. So, I shall defer! :) Cheers, Chris Chris? Gauthier Senior Network Engineer | Comscore t +1 (503) 331-2704 | cgauthier at comscore.com comscore.com ???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender. From: "Piegorsch, Weylin William" Date: Monday, June 17, 2019 at 2:05 PM To: "Gauthier, Chris" , Michael Newton , Vacheslav Zouhairy Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Unable to figure out "end of run not found" I actually don't use the semicolon. Not sure if this is bash specific, sh specific, or posix general, but without the semicolon it sets the global environment variable only for the duration of that command following the variable definition, and unset it upon returning control to the cli. See also your "export" comment, which has correlating implications regarding environment vs namespace vs scope. But I'm not an experienced programmer, and don't pretend to grok the various nuances, benefits, and pitfalls known by those who actually know what they're doing, so if using the semicolon is better I all ears. weylin Sent from Outlook on my 'Droid ________________________________ From: Gauthier, Chris Sent: Monday, June 17, 2019 4:22:02 PM To: Piegorsch, Weylin William; Michael Newton; Vacheslav Zouhairy Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Unable to figure out "end of run not found" Don?t forget the ; between the NOPIPE=yes and the rest of the command! :-) Some flavors of linux also want you to use the export command.. Chris? Gauthier Senior Network Engineer | Comscore t +1 (503) 331-2704 | cgauthier at comscore.com comscore.com ???This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender. From: Rancid-discuss on behalf of "Piegorsch, Weylin William" Date: Saturday, June 15, 2019 at 7:52 AM To: Michael Newton , Vacheslav Zouhairy Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Unable to figure out "end of run not found" > So this got me looking for how to do debug output per-host If you?re using Linux, the command is: NOPIPE=yes rancid -d -t This will generate two files: .new .raw .new is the parsed output .raw is pure log of the session (ie, it even captures non-printing characters). I believe it?s only dumped if you set both NOPIPE and -d. I?ve used the .raw output on many occasions. At the moment I?m even troubleshooting a device CPU issue that rancid tripped on that I wouldn?t have found but for this; ?clogin -c ? was even working fine. weylin From: Michael Newton Date: Monday, June 10, 2019 at 11:25 AM To: Vacheslav Zouhairy Cc: Subject: Re: [rancid] Unable to figure out "end of run not found" No, there is not. But I guess you're thinking maybe the login doesn't work because of heavy traffic. So this got me looking for how to do debug output per-host. There doesn't seem to be, but that got me to this posting: https://www.shrubbery.net/pipermail/rancid-discuss/2015-October/008742.html And that made me notice that my router.db entry was corrupt (wrong device type.) So, typical user error. Thanks for (indirectly) getting me in the right direction though! Mike On Mon, 10 Jun 2019 at 00:22, Vacheslav Zouhairy > wrote: Is there any bandwidth hog on those switches by any chance? On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote: > Hi all, we manage about 200-300 Brocade ICX switches across a number > of locations. All but two are being successfully polled. The two in > question (same firmware and a similar config to the others) > consistently show "end of run not found" when run as part of the cron > job. But, when run manually for troubleshooting, everything seems to > work. > > `sudo -u rancid flogin switchname` works fine and logs me into the > switch. > > `sudo -u rancid flogin -c 'show version;show clock' switchname` > likewise works fine. Logs in, runs the commands, and logs out. > > `sudo -u rancid rancid -t foundry -d switchname` runs through > everything perfectly. The switchname.new file has the expected > output. > > Yet the log for the automated process consistently shows this: > > switchname: End of run not found > end > > Is there anything else I can do to troubleshoot this? Thanks in > advance! > > Mike > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss ________________________________ Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN | Instagram In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy. P Denk aan het milieu. Druk deze mail niet onnodig af. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.g at atwgpc.net Wed Jun 19 21:48:45 2019 From: ryan.g at atwgpc.net (Ryan Gelobter) Date: Wed, 19 Jun 2019 16:48:45 -0500 Subject: [rancid] Notifications on Errors In-Reply-To: References: <20190619180009.GD32364@shrubbery.net> Message-ID: Thanks Craig. rancid-admin-group@ was exactly what i needed. On Wed, Jun 19, 2019 at 4:48 PM Ryan Gelobter < ryan.g at andthenwegotpaycuts.com> wrote: > Thanks Craig. rancid-admin-group@ was exactly what i needed. > > On Wed, Jun 19, 2019 at 1:00 PM john heasley wrote: > >> Wed, Jun 19, 2019 at 12:03:42PM +0100, Craig Hopkins: >> > Each one has a specific role. They don't duplicate. >> >> It is not the errors themselves that are sent to the admin list. it >> sends notification about devices added/removed (which is duplicated >> to the diff list in diff form of router.db) and when the age of a >> device's collection exceed rancid.conf(5):OLDTIME time. Off the top, >> that is all that goes to admin. >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fusionfoto at gmail.com Thu Jun 27 04:07:13 2019 From: fusionfoto at gmail.com (FF) Date: Thu, 27 Jun 2019 00:07:13 -0400 Subject: [rancid] [SPAM?] Cisco NX "chatty" with Power info In-Reply-To: References: <50cc4a0483d54568a4d3e2547471fece@aquafin.be> <20190311204733.GI30597@shrubbery.net> Message-ID: ok, So upgraded to 3.9 with the same behavior. Built a cisco-nxp personality that had an | exclude OK line on it to remove the wattage line... but suddenly rancid couldn't log in to those units. Even though clogin would work fine. Went and modified the cisco-nx definition... but the exclude is ignored. So now 2.3 and 3.9 behave identically in this situation... This is the whole output for the section in question: Index: configs/10.10.10.114 =================================================================== retrieving revision 1.1157 diff -u -4 -r1.1157 10.10.10.114 @@ -80,10 +80,10 @@ !Env: Power Actual Total !Env: Supply Model Input Capacity Status !Env: (Watts ) (Watts ) !Env: ------- ---------- --------------- ------ ---------- -------------------- - !Env: 1 N9K-PAC-1200W-B 192 W 1200 W Ok - !Env: 2 N9K-PAC-1200W-B 174 W 1200 W Ok + !Env: 1 N9K-PAC-1200W-B 190 W 1200 W Ok + !Env: 2 N9K-PAC-1200W-B 176 W 1200 W Ok !Env: Power Usage Summary: !Env: -------------------- !Env: Power Supply redundancy mode (configured) PS-Redundant !Env: Power Supply redundancy mode (operational) PS-Redundant Any suggestions? Thanks in advance! On Mon, Mar 11, 2019 at 5:02 PM FF wrote: > Apparently I'm running a massively old version (2.3.8). I'll try upgrading > to 3.9 first. > > thanks in advance > > On Mon, Mar 11, 2019 at 4:47 PM heasley wrote: > >> Fri, Mar 08, 2019 at 07:06:45PM +0000, Nick Nauwelaerts: >> > what version of rancid & nx-os are you running? >> >> good question. >> >> if the answer is 3.9, please show us the complete output of show >> environment power >> >> > i notice you only have 1 column less as me, you seem to miss "actual >> output". >> > >> > >> > // nick >> > >> > >> > >> > >> > From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On >> Behalf Of FF >> > Sent: Friday, March 8, 2019 18:05 >> > To: rancid-discuss at shrubbery.net >> > Subject: [SPAM?] [rancid] Cisco NX "chatty" with Power info >> > >> > >> > !Env: Power Actual Total >> > >> > !Env: Supply Model Input Capacity >> Status >> > >> > !Env: (Watts ) (Watts ) >> > >> > !Env: ------- ---------- --------------- ------ ---------- >> -------------------- >> > >> > - !Env: 1 N9K-PAC-1200W-B 180 W 1200 W >> Ok >> > >> > + !Env: 1 N9K-PAC-1200W-B 182 W 1200 W >> Ok >> > >> > !Env: 2 N9K-PAC-1200W-B 162 W 1200 W >> Ok >> > >> > !Env: Power Usage Summary: >> > >> > Every time Rancid runs, we get erroneous reports because the power >> usage fluctuates by 1-2 watts per run. Any suggestions on how to keep the >> good information (availability, etc) without getting this level of detail? >> > >> > thanks in advance! >> > >> > >> > -- >> > FF >> > >> > ________________________________ >> > >> > Volg Aquafin op Facebook | Twitter< >> https://twitter.com/aquafinnv> | YouTube< >> http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> | >> LinkedIN | Instagram< >> https://www.instagram.com/aquafin_nv/> >> > >> > In het kader van de uitoefening van onze taken verzamelen we bij >> Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten >> van de betrokkenen zijn, kan je nalezen in onze privacy policy< >> https://www.aquafin.be/nl-be/privacy-policy>. >> > >> > P Denk aan het milieu. Druk deze mail niet onnodig af. >> >> > _______________________________________________ >> > Rancid-discuss mailing list >> > Rancid-discuss at shrubbery.net >> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> >> > > -- > FF > -- FF -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_zouhairy at skno.by Thu Jun 27 09:01:29 2019 From: m_zouhairy at skno.by (Vacheslav Zouhairy) Date: Thu, 27 Jun 2019 12:01:29 +0300 Subject: [rancid] [SPAM?] Cisco NX "chatty" with Power info In-Reply-To: References: <50cc4a0483d54568a4d3e2547471fece@aquafin.be> <20190311204733.GI30597@shrubbery.net> Message-ID: what model of nexus is this? On Thu, 2019-06-27 at 00:07 -0400, FF wrote: > ok, > > So upgraded to 3.9 with the same behavior. > > Built a cisco-nxp personality that had an | exclude OK line on it to > remove the wattage line... but suddenly rancid couldn't log in to > those units. > Even though clogin would work fine. Went and modified the cisco-nx > definition... but the exclude is ignored. > > So now 2.3 and 3.9 behave identically in this situation... > > This is the whole output for the section in question: > > > > > > > > > > > > > > > > > > > > > > Index: configs/10.10.10.114 > > =================================================================== > > retrieving revision 1.1157 > > diff -u -4 -r1.1157 10.10.10.114 > > @@ -80,10 +80,10 @@ > > !Env: Power Actual Total > > !Env: Supply Model Input > Capacity Status > > !Env: (Watts > ) (Watts ) > > !Env: > ------- ---------- --------------- ------ > ---------- -------------------- > > - !Env: 1 > N9K-PAC-1200W-B > 192 W 1200 W Ok > > - !Env: 2 > N9K-PAC-1200W-B > 174 W 1200 W Ok > > + !Env: 1 > N9K-PAC-1200W-B > 190 W 1200 W Ok > > + !Env: 2 > N9K-PAC-1200W-B > 176 W 1200 W Ok > > !Env: Power Usage > Summary: > > !Env: > -------------------- > > !Env: Power > Supply redundancy mode (configured) PS-Redundant > > !Env: Power > Supply redundancy mode (operational) PS-Redundant > > > > > > > > Any suggestions? > > Thanks in advance! > > > > > On Mon, Mar 11, 2019 at 5:02 PM FF wrote: > > Apparently I'm running a massively old version (2.3.8). I'll try > > upgrading to 3.9 first. > > > > thanks in advance > > > > On Mon, Mar 11, 2019 at 4:47 PM heasley wrote: > > > Fri, Mar 08, 2019 at 07:06:45PM +0000, Nick Nauwelaerts: > > > > > > > what version of rancid & nx-os are you running? > > > > > > > > > > > > good question. > > > > > > > > > > > > if the answer is 3.9, please show us the complete output of show > > > environment power > > > > > > > > > > > > > i notice you only have 1 column less as me, you seem to miss > > > "actual output". > > > > > > > > > > > > > > > > > > > > > // nick > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: Rancid-discuss [mailto: > > > rancid-discuss-bounces at shrubbery.net] On Behalf Of FF > > > > > > > Sent: Friday, March 8, 2019 18:05 > > > > > > > To: rancid-discuss at shrubbery.net > > > > > > > Subject: [SPAM?] [rancid] Cisco NX "chatty" with Power info > > > > > > > > > > > > > > > > > > > > > !Env: Power Actual Total > > > > > > > > > > > > > > !Env: Supply Model Input Capacity > > > Status > > > > > > > > > > > > > > !Env: (Watts ) (Watts > > > ) > > > > > > > > > > > > > > !Env: ------- ---------- --------------- ------ ------- > > > --- -------------------- > > > > > > > > > > > > > > - !Env: 1 N9K-PAC-1200W-B 180 W > > > 1200 W Ok > > > > > > > > > > > > > > + !Env: 1 N9K-PAC-1200W-B 182 W > > > 1200 W Ok > > > > > > > > > > > > > > !Env: 2 N9K-PAC-1200W-B 162 W > > > 1200 W Ok > > > > > > > > > > > > > > !Env: Power Usage Summary: > > > > > > > > > > > > > > Every time Rancid runs, we get erroneous reports because the > > > power usage fluctuates by 1-2 watts per run. Any suggestions on > > > how to keep the good information (availability, etc) without > > > getting this level of detail? > > > > > > > > > > > > > > thanks in advance! > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > FF > > > > > > > > > > > > > > ________________________________ > > > > > > > > > > > > > > Volg Aquafin op Facebook | > > > Twitter | YouTube< > > > http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee > > > > | LinkedIN | > > > Instagram > > > > > > > > > > > > > > In het kader van de uitoefening van onze taken verzamelen we > > > bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en > > > wat de rechten van de betrokkenen zijn, kan je nalezen in onze > > > privacy policy;. > > > > > > > > > > > > > > P Denk aan het milieu. Druk deze mail niet onnodig af. > > > > > > > > > > > > > _______________________________________________ > > > > > > > Rancid-discuss mailing list > > > > > > > Rancid-discuss at shrubbery.net > > > > > > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > > > > > > > > > -- > > FF > > > _______________________________________________Rancid-discuss mailing > listRancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From vv.corto at gmail.com Thu Jun 27 09:17:06 2019 From: vv.corto at gmail.com (Florin Vlad Olariu) Date: Thu, 27 Jun 2019 05:17:06 -0400 Subject: [rancid] How to remove all comments made by rancid Message-ID: Hello, I'm using the latest version of Rancid. I would like to remove all comments that Rancid makes (e.g beginning with ! ) from the config file it collects. I already disabled all commands from the rancid.types.base and only allows "show run" but it doesn't seem to be enough because I still see (for example): !RANCID-CONTENT-TYPE: arista ! ! Command: show running-config ! device: LAB-arista1a (DCS-7150S-64-CL, EOS-4.20.12M-2GB) ! ! boot system flash:/EOS-2GB-4.20.12M.swi ! . Any help you could provide would be appreciated! Thanks, V -------------- next part -------------- An HTML attachment was scrubbed... URL: From fusionfoto at gmail.com Thu Jun 27 15:14:18 2019 From: fusionfoto at gmail.com (FF) Date: Thu, 27 Jun 2019 11:14:18 -0400 Subject: [rancid] [SPAM?] Cisco NX "chatty" with Power info In-Reply-To: References: <50cc4a0483d54568a4d3e2547471fece@aquafin.be> <20190311204733.GI30597@shrubbery.net> Message-ID: Hi, Thanks for responding.. This is: Software BIOS: version 07.59 NXOS: version 7.0(3)I7(3) BIOS compile time: 08/26/2016 NXOS image file is: bootflash:///nxos.7.0.3.I7.3.bin NXOS compile time: 2/12/2018 13:00:00 [02/12/2018 19:13:48] Hardware cisco Nexus9000 C93120TX Chassis Intel(R) Core(TM) i3- CPU @ 2.50GHz with 16400992 kB of memory. Thanks for your help! On Thu, Jun 27, 2019 at 5:01 AM Vacheslav Zouhairy wrote: > what model of nexus is this? > > On Thu, 2019-06-27 at 00:07 -0400, FF wrote: > > > ok, > > So upgraded to 3.9 with the same behavior. > > Built a cisco-nxp personality that had an | exclude OK line on it to > remove the wattage line... but suddenly rancid couldn't log in to those > units. > Even though clogin would work fine. Went and modified the cisco-nx > definition... but the exclude is ignored. > > So now 2.3 and 3.9 behave identically in this situation... > > This is the whole output for the section in question: > > Index: configs/10.10.10.114 > > =================================================================== > > retrieving revision 1.1157 > > diff -u -4 -r1.1157 10.10.10.114 > > @@ -80,10 +80,10 @@ > > !Env: Power Actual Total > > !Env: Supply Model Input Capacity > Status > > !Env: (Watts ) (Watts ) > > !Env: ------- ---------- --------------- ------ ---------- > -------------------- > > - !Env: 1 N9K-PAC-1200W-B 192 W 1200 W > Ok > > - !Env: 2 N9K-PAC-1200W-B 174 W 1200 W > Ok > > + !Env: 1 N9K-PAC-1200W-B 190 W 1200 W > Ok > > + !Env: 2 N9K-PAC-1200W-B 176 W 1200 W > Ok > > !Env: Power Usage Summary: > > !Env: -------------------- > > !Env: Power Supply redundancy mode (configured) > PS-Redundant > > !Env: Power Supply redundancy mode (operational) > PS-Redundant > > Any suggestions? > > Thanks in advance! > > > > On Mon, Mar 11, 2019 at 5:02 PM FF wrote: > > Apparently I'm running a massively old version (2.3.8). I'll try upgrading > to 3.9 first. > > thanks in advance > > On Mon, Mar 11, 2019 at 4:47 PM heasley wrote: > > Fri, Mar 08, 2019 at 07:06:45PM +0000, Nick Nauwelaerts: > > what version of rancid & nx-os are you running? > > good question. > > if the answer is 3.9, please show us the complete output of show > environment power > > > i notice you only have 1 column less as me, you seem to miss "actual > output". > > > > > > // nick > > > > > > > > > > From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On > Behalf Of FF > > Sent: Friday, March 8, 2019 18:05 > > To: rancid-discuss at shrubbery.net > > Subject: [SPAM?] [rancid] Cisco NX "chatty" with Power info > > > > > > !Env: Power Actual Total > > > > !Env: Supply Model Input Capacity > Status > > > > !Env: (Watts ) (Watts ) > > > > !Env: ------- ---------- --------------- ------ ---------- > -------------------- > > > > - !Env: 1 N9K-PAC-1200W-B 180 W 1200 W > Ok > > > > + !Env: 1 N9K-PAC-1200W-B 182 W 1200 W > Ok > > > > !Env: 2 N9K-PAC-1200W-B 162 W 1200 W > Ok > > > > !Env: Power Usage Summary: > > > > Every time Rancid runs, we get erroneous reports because the power usage > fluctuates by 1-2 watts per run. Any suggestions on how to keep the good > information (availability, etc) without getting this level of detail? > > > > thanks in advance! > > > > > > -- > > FF > > > > ________________________________ > > > > Volg Aquafin op Facebook | Twitter< > https://twitter.com/aquafinnv> | YouTube< > http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> | > LinkedIN | Instagram< > https://www.instagram.com/aquafin_nv/> > > > > In het kader van de uitoefening van onze taken verzamelen we bij Aquafin > persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de > betrokkenen zijn, kan je nalezen in onze privacy policy< > https://www.aquafin.be/nl-be/privacy-policy>. > > > > P Denk aan het milieu. Druk deze mail niet onnodig af. > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > -- > FF > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > -- FF -------------- next part -------------- An HTML attachment was scrubbed... URL: From athompson at merlin.mb.ca Thu Jun 27 15:31:22 2019 From: athompson at merlin.mb.ca (Adam Thompson) Date: Thu, 27 Jun 2019 15:31:22 +0000 Subject: [rancid] How to remove all comments made by rancid In-Reply-To: References: Message-ID: <0e38675f5144488e970a68d6430e310c@merlin.mb.ca> You?re still seeing that because that?s part of the Arista output, not something inserted by Rancid. Log in manually and execute the ?show run? command and you?ll see the same output. (Except for the ?RANCID-CONTENT-TYPE? header, of course, and I don?t know how to suppress that without editing source code.) After a slightly deeper look, I believe my assumption is correct ? you can?t remove or suppress the RANCID-CONTENT-TYPE header without editing the Rancid code directly. My only Arista (a 7280R-something) is sitting on a desk next to me, and I?m *definitely* not going to power it on in the office just to pull a running-config to verify my recollection of its ?show run? format, sorry. -Adam Adam Thompson Consultant, Infrastructure Services [[MERLIN LOGO]] 100 - 135 Innovation Drive Winnipeg, MB, R3T 6A8 (204) 977-6824 or 1-800-430-6404 (MB only) athompson at merlin.mb.ca www.merlin.mb.ca From: Rancid-discuss On Behalf Of Florin Vlad Olariu Sent: Thursday, June 27, 2019 4:17 AM To: rancid-discuss at shrubbery.net Subject: [rancid] How to remove all comments made by rancid Hello, I'm using the latest version of Rancid. I would like to remove all comments that Rancid makes (e.g beginning with ! ) from the config file it collects. I already disabled all commands from the rancid.types.base and only allows "show run" but it doesn't seem to be enough because I still see (for example): !RANCID-CONTENT-TYPE: arista ! ! Command: show running-config ! device: LAB-arista1a (DCS-7150S-64-CL, EOS-4.20.12M-2GB) ! ! boot system flash:/EOS-2GB-4.20.12M.swi ! . Any help you could provide would be appreciated! Thanks, V -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 2381 bytes Desc: image001.png URL: From heas at shrubbery.net Thu Jun 27 19:56:45 2019 From: heas at shrubbery.net (heasley) Date: Thu, 27 Jun 2019 19:56:45 +0000 Subject: [rancid] [SPAM?] Cisco NX "chatty" with Power info In-Reply-To: References: <50cc4a0483d54568a4d3e2547471fece@aquafin.be> <20190311204733.GI30597@shrubbery.net> Message-ID: <20190627195645.GF67753@shrubbery.net> Thu, Jun 27, 2019 at 12:07:13AM -0400, FF: > ok, > > So upgraded to 3.9 with the same behavior. > > Built a cisco-nxp personality that had an | exclude OK line on it to remove > the wattage line... but suddenly rancid couldn't log in to those units. > Even though clogin would work fine. Went and modified the cisco-nx > definition... but the exclude is ignored. > > So now 2.3 and 3.9 behave identically in this situation... > > This is the whole output for the section in question: > > Index: configs/10.10.10.114 > > =================================================================== > > retrieving revision 1.1157 > > diff -u -4 -r1.1157 10.10.10.114 > > @@ -80,10 +80,10 @@ > > !Env: Power Actual Total > > !Env: Supply Model Input Capacity Status > > !Env: (Watts ) (Watts ) > > !Env: ------- ---------- --------------- ------ ---------- > -------------------- > > - !Env: 1 N9K-PAC-1200W-B 192 W 1200 W > Ok > > - !Env: 2 N9K-PAC-1200W-B 174 W 1200 W > Ok > > + !Env: 1 N9K-PAC-1200W-B 190 W 1200 W > Ok > > + !Env: 2 N9K-PAC-1200W-B 176 W 1200 W > Ok > > !Env: Power Usage Summary: > > !Env: -------------------- > > !Env: Power Supply redundancy mode (configured) > PS-Redundant > > !Env: Power Supply redundancy mode (operational) > PS-Redundant > > Any suggestions? > > Thanks in advance! > i dont see the problem. please send the raw output as an attachment to me. clogin -c 'show environ power' hostname > output From m_zouhairy at skno.by Fri Jun 28 05:12:44 2019 From: m_zouhairy at skno.by (Vacheslav Zouhairy) Date: Fri, 28 Jun 2019 08:12:44 +0300 Subject: [rancid] [SPAM?] Cisco NX "chatty" with Power info In-Reply-To: References: <50cc4a0483d54568a4d3e2547471fece@aquafin.be> <20190311204733.GI30597@shrubbery.net> Message-ID: <2cdcf9197356879b1dfa1d0486010ad5d3f363fa.camel@skno.by> hmm i have almost the same hardware but your software is a bit newer, but i do not get that in the output. it seems you will have to see what command produces the offending output and tweak the nxos template not to run that command On Thu, 2019-06-27 at 11:14 -0400, FF wrote: > Hi, > > Thanks for responding.. > > This is: > > Software > BIOS: version 07.59 > NXOS: version 7.0(3)I7(3) > BIOS compile time: 08/26/2016 > NXOS image file is: bootflash:///nxos.7.0.3.I7.3.bin > NXOS compile time: 2/12/2018 13:00:00 [02/12/2018 19:13:48] > > > Hardware > cisco Nexus9000 C93120TX Chassis > Intel(R) Core(TM) i3- CPU @ 2.50GHz with 16400992 kB of memory. > > Thanks for your help! > > > > On Thu, Jun 27, 2019 at 5:01 AM Vacheslav Zouhairy < > m_zouhairy at skno.by> wrote: > > what model of nexus is this? > > On Thu, 2019-06-27 at 00:07 -0400, FF wrote: > > > ok, > > > > > > So upgraded to 3.9 with the same behavior. > > > > > > Built a cisco-nxp personality that had an | exclude OK line on it > > > to remove the wattage line... but suddenly rancid couldn't log in > > > to those units. > > > Even though clogin would work fine. Went and modified the cisco- > > > nx definition... but the exclude is ignored. > > > > > > So now 2.3 and 3.9 behave identically in this situation... > > > > > > This is the whole output for the section in question: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Index: configs/10.10.10.114 > > > > > > ================================================================= > > > == > > > > > > retrieving revision 1.1157 > > > > > > diff -u -4 -r1.1157 10.10.10.114 > > > > > > @@ -80,10 +80,10 @@ > > > > > > !Env: Power Actual Total > > > > > > !Env: Supply Model Input > > > Capacity Status > > > > > > !Env: (Watts > > > ) (Watts ) > > > > > > !Env: > > > ------- ---------- --------------- ------ > > > ---------- -------------------- > > > > > > - !Env: 1 > > > N9K-PAC-1200W-B > > > 192 W 1200 W Ok > > > > > > - !Env: 2 > > > N9K-PAC-1200W-B > > > 174 W 1200 W Ok > > > > > > + !Env: 1 > > > N9K-PAC-1200W-B > > > 190 W 1200 W Ok > > > > > > + !Env: 2 > > > N9K-PAC-1200W-B > > > 176 W 1200 W Ok > > > > > > !Env: Power Usage > > > Summary: > > > > > > !Env: > > > -------------------- > > > > > > !Env: Power > > > Supply redundancy mode (configured) PS-Redundant > > > > > > !Env: Power > > > Supply redundancy mode (operational) PS-Redundant > > > > > > > > > > > > > > > > > > > > > > > > Any suggestions? > > > > > > Thanks in advance! > > > > > > > > > > > > On Mon, Mar 11, 2019 at 5:02 PM FF wrote: > > > > Apparently I'm running a massively old version (2.3.8). I'll > > > > try upgrading to 3.9 first. > > > > > > > > thanks in advance > > > > > > > > On Mon, Mar 11, 2019 at 4:47 PM heasley > > > > wrote: > > > > > Fri, Mar 08, 2019 at 07:06:45PM +0000, Nick Nauwelaerts: > > > > > > > > > > > what version of rancid & nx-os are you running? > > > > > > > > > > > > > > > > > > > > good question. > > > > > > > > > > > > > > > > > > > > if the answer is 3.9, please show us the complete output of > > > > > show environment power > > > > > > > > > > > > > > > > > > > > > i notice you only have 1 column less as me, you seem to > > > > > miss "actual output". > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > // nick > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: Rancid-discuss [mailto: > > > > > rancid-discuss-bounces at shrubbery.net] On Behalf Of FF > > > > > > > > > > > Sent: Friday, March 8, 2019 18:05 > > > > > > > > > > > To: rancid-discuss at shrubbery.net > > > > > > > > > > > Subject: [SPAM?] [rancid] Cisco NX "chatty" with Power info > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > !Env: Power Actual > > > > > Total > > > > > > > > > > > > > > > > > > > > > > !Env: Supply Model Input > > > > > Capacity Status > > > > > > > > > > > > > > > > > > > > > > !Env: (Watts ) > > > > > (Watts ) > > > > > > > > > > > > > > > > > > > > > > !Env: ------- ---------- --------------- ------ --- > > > > > ------- -------------------- > > > > > > > > > > > > > > > > > > > > > > - !Env: 1 N9K-PAC-1200W-B 180 W > > > > > 1200 W Ok > > > > > > > > > > > > > > > > > > > > > > + !Env: 1 N9K-PAC-1200W-B 182 W > > > > > 1200 W Ok > > > > > > > > > > > > > > > > > > > > > > !Env: 2 N9K-PAC-1200W-B 162 W > > > > > 1200 W Ok > > > > > > > > > > > > > > > > > > > > > > !Env: Power Usage Summary: > > > > > > > > > > > > > > > > > > > > > > Every time Rancid runs, we get erroneous reports because > > > > > the power usage fluctuates by 1-2 watts per run. Any > > > > > suggestions on how to keep the good information > > > > > (availability, etc) without getting this level of detail? > > > > > > > > > > > > > > > > > > > > > > thanks in advance! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > FF > > > > > > > > > > > > > > > > > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > > > > > Volg Aquafin op Facebook > > > > > | Twitter | YouTube< > > > > > http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee > > > > > > | LinkedIN > > > > > | Instagram > > > > > > > > > > > > > > > > > > > > > > In het kader van de uitoefening van onze taken verzamelen > > > > > we bij Aquafin persoonsgegevens. Hoe we omgaan met deze > > > > > gegevens en wat de rechten van de betrokkenen zijn, kan je > > > > > nalezen in onze privacy policy< > > > > > https://www.aquafin.be/nl-be/privacy-policy>;. > > > > > > > > > > > > > > > > > > > > > > P Denk aan het milieu. Druk deze mail niet onnodig af. > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > Rancid-discuss mailing list > > > > > > > > > > > Rancid-discuss at shrubbery.net > > > > > > > > > > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > > > > > > > > > > > > > > > > > > > -- > > > > FF > > > > > > _______________________________________________Rancid-discuss > > > mailing listRancid-discuss at shrubbery.net > > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From Wayne.Eisenberg at CarolinasIT.com Fri Jun 28 16:07:26 2019 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Fri, 28 Jun 2019 16:07:26 +0000 Subject: [rancid] Watchguard firewalls Message-ID: Hi all, I am trying to get rancid to grab the config from a Watchguard firewall. I found a script from an Ian Reynolds on github and I'm having a little problem with the login section. Does anyone know how to get ahold of this gentleman so I can ask him for help in troubleshooting it? (Basically, the script doesn't recognize that it successfully logged in and sits in an expect statement waiting for more input.) Thanks, Wayne -------------- next part -------------- An HTML attachment was scrubbed... URL: From weylin at bu.edu Fri Jun 28 20:56:51 2019 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Fri, 28 Jun 2019 20:56:51 +0000 Subject: [rancid] [SPAM?] Cisco NX "chatty" with Power info In-Reply-To: <2cdcf9197356879b1dfa1d0486010ad5d3f363fa.camel@skno.by> References: <50cc4a0483d54568a4d3e2547471fece@aquafin.be> <20190311204733.GI30597@shrubbery.net> <2cdcf9197356879b1dfa1d0486010ad5d3f363fa.camel@skno.by> Message-ID: Have you tied playing with FILTER_OSC? I haven't, I've just lived with this output, but I remember similar conversations on this topic in the past. And you?re right ? NX-OS a while ago (2012-ish) didn?t have this issue; it was a software update somewhere around 18months ago (30 months ago?) that I started noticing it. weylin From: Vacheslav Zouhairy Sent: Friday, June 28, 2019 1:13 AM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] [SPAM?] Cisco NX "chatty" with Power info hmm i have almost the same hardware but your software is a bit newer, but i do not get that in the output. it seems you will have to see what command produces the offending output and tweak the nxos template not to run that command On Thu, 2019-06-27 at 11:14 -0400, FF wrote: Hi, Thanks for responding.. This is: Software BIOS: version 07.59 NXOS: version 7.0(3)I7(3) BIOS compile time: 08/26/2016 NXOS image file is: bootflash:///nxos.7.0.3.I7.3.bin NXOS compile time: 2/12/2018 13:00:00 [02/12/2018 19:13:48] Hardware cisco Nexus9000 C93120TX Chassis Intel(R) Core(TM) i3- CPU @ 2.50GHz with 16400992 kB of memory. Thanks for your help! On Thu, Jun 27, 2019 at 5:01 AM Vacheslav Zouhairy > wrote: what model of nexus is this? On Thu, 2019-06-27 at 00:07 -0400, FF wrote: ok, So upgraded to 3.9 with the same behavior. Built a cisco-nxp personality that had an | exclude OK line on it to remove the wattage line... but suddenly rancid couldn't log in to those units. Even though clogin would work fine. Went and modified the cisco-nx definition... but the exclude is ignored. So now 2.3 and 3.9 behave identically in this situation... This is the whole output for the section in question: Index: configs/10.10.10.114 =================================================================== retrieving revision 1.1157 diff -u -4 -r1.1157 10.10.10.114 @@ -80,10 +80,10 @@ !Env: Power Actual Total !Env: Supply Model Input Capacity Status !Env: (Watts ) (Watts ) !Env: ------- ---------- --------------- ------ ---------- -------------------- - !Env: 1 N9K-PAC-1200W-B 192 W 1200 W Ok - !Env: 2 N9K-PAC-1200W-B 174 W 1200 W Ok + !Env: 1 N9K-PAC-1200W-B 190 W 1200 W Ok + !Env: 2 N9K-PAC-1200W-B 176 W 1200 W Ok !Env: Power Usage Summary: !Env: -------------------- !Env: Power Supply redundancy mode (configured) PS-Redundant !Env: Power Supply redundancy mode (operational) PS-Redundant Any suggestions? Thanks in advance! On Mon, Mar 11, 2019 at 5:02 PM FF > wrote: Apparently I'm running a massively old version (2.3.8). I'll try upgrading to 3.9 first. thanks in advance On Mon, Mar 11, 2019 at 4:47 PM heasley > wrote: Fri, Mar 08, 2019 at 07:06:45PM +0000, Nick Nauwelaerts: > what version of rancid & nx-os are you running? good question. if the answer is 3.9, please show us the complete output of show environment power > i notice you only have 1 column less as me, you seem to miss "actual output". > > > // nick > > > > > From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of FF > Sent: Friday, March 8, 2019 18:05 > To: rancid-discuss at shrubbery.net > Subject: [SPAM?] [rancid] Cisco NX "chatty" with Power info > > > !Env: Power Actual Total > > !Env: Supply Model Input Capacity Status > > !Env: (Watts ) (Watts ) > > !Env: ------- ---------- --------------- ------ ---------- -------------------- > > - !Env: 1 N9K-PAC-1200W-B 180 W 1200 W Ok > > + !Env: 1 N9K-PAC-1200W-B 182 W 1200 W Ok > > !Env: 2 N9K-PAC-1200W-B 162 W 1200 W Ok > > !Env: Power Usage Summary: > > Every time Rancid runs, we get erroneous reports because the power usage fluctuates by 1-2 watts per run. Any suggestions on how to keep the good information (availability, etc) without getting this level of detail? > > thanks in advance! > > > -- > FF > > ________________________________ > > Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN | Instagram > > In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy. > > P Denk aan het milieu. Druk deze mail niet onnodig af. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -- FF _______________________________________________ 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 Wayne.Eisenberg at CarolinasIT.com Fri Jun 28 21:06:41 2019 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Fri, 28 Jun 2019 21:06:41 +0000 Subject: [rancid] Watchguard firewalls Message-ID: Just to close the loop, I did some digging in the git repository looking at version differences and saw that in the beginning of the main loop just after the 'foreach router' statement, it sets the prompt to '>>'. I changed that to include the character I see '#' (set prompt ">>|#") and that allowed it to finish properly. So that took some digging but it works. Thanks, Wayne From Wayne.Eisenberg at CarolinasIT.com Sat Jun 29 11:46:23 2019 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Sat, 29 Jun 2019 11:46:23 +0000 Subject: [rancid] Watchguard xml file Message-ID: Hi, OK, so I can get into the firewall and pull the config with "export config to console". However, the config file is a very large xml file, this one is about 2MB in size. However, it seems like it only recorded the first 388KB of data. Is there a size limit on what rancid can process, or maybe there was a character in the xml that rancid didn't like and it just aborted processing it? How would I go about troubleshooting this? Thanks, Wayne