From azheramin at gmail.com Tue Jan 2 02:41:56 2018 From: azheramin at gmail.com (Azher) Date: Mon, 1 Jan 2018 18:41:56 -0800 Subject: [rancid] ASA-5585 Enable mode In-Reply-To: <20171231211927.GB74060@shrubbery.net> References: <20171231211927.GB74060@shrubbery.net> Message-ID: In the ASA version 9.8.X , there are sending out the "Last login: " and the "Last failed Login: " as default. There is no way to disable this. I tried adding following lines in .cloginrc but no luck: add prompt sslvpna {"sslvpna>"} add enableprompt sslvpna {"sslvpna>"} Is there a way to skip login: for this specific device ? Thanks -Azher On Sun, Dec 31, 2017 at 1:19 PM, heasley wrote: > Thu, Dec 28, 2017 at 06:42:46PM -0800, Azher: > > Hi All, > > > > Our current Cisco ASA devices "ASA5550" , 8.4(7)30, work fine with > RANCID. > > > > Same config does not work for ASA-5585, 9.8(1). I am not sure why it is > > sending "admin" twice and later it sends "enable" at the prompt .... Any > > suggestions ? > > > > add user sslvpnb admin > > add password sslvpnb pass1 pass2 > > add autoenable sslvpnb 0 > > add method sslvpnb ssh > > > > [rancid at rancid ~]$ more var/asa/router.db > > sslvpn1;cisco;up > > sslvpn2;cisco;up > > sslvpna;cisco;up > > sslvpnb;cisco;up > > > > [rancid at rancid ~]$ clogin sslvpnb > > sslvpnb > > spawn ssh -c aes128-ctr,aes128-cbc,3des-cbc -x -l admin sslvpnb > > admin at sslvpnb's password: > > User admin logged in to sslvpnb > > Logins over the last 44 days: 29. Last login: 18:09:41 PST Dec 28 2017 > > from 68.181.191.19 > > Failed logins since the last login: 0. Last failed login: 06:47:32 PST > Dec > > 28 2017 from 68.181.191.19 > > its sending admin again because it sees "login:" before a prompt. why > is it displaying this? > > > Type help or '?' for a list of available commands. > > sslvpnb> admin > > ^ > > ERROR: % Invalid input detected at '^' marker. > > > > Error: Unrecognized command, check your enable command > > sslvpnb> admin > > ^ > > ERROR: % Invalid input detected at '^' marker. > > sslvpnb> enable > > Password: > > Invalid password > > Password: > > Invalid password > > Password: > > Invalid password > > Access denied. > > sslvpnb> > > > > > > Thanks > > -Azher > > > _______________________________________________ > > 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 Jan 2 03:18:49 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Tue, 2 Jan 2018 03:18:49 +0000 Subject: [rancid] ASA-5585 Enable mode In-Reply-To: <20171231211927.GB74060@shrubbery.net> References: <20171231211927.GB74060@shrubbery.net> Message-ID: <13836E03-B7FC-4E68-A509-94D8F6508633@bu.edu> This is a behavior change to the ASA made in version 9.8. I believe it?s a response to a US DOD mandate, to aid in detecting unauthorized logins. At least, that was a requirement implemented sometime around 2005 (for systems that supported the capability), though I can?t find a .mil URL more recent than 2008 discussing the requirement (though I can find it referenced in some current commercial locations like Red Hat?s site). I noticed it recently in lab trials; I had assumed Cisco decided it made sense to make this the normal behavior for all deployments, given ASA stands for Adaptive Security Appliance. I hadn?t noticed it in rancid, since I?m still in lab trials. Luckily, it?s configurable, see ?Enable and View the Login History? at this URL: https://www.cisco.com/c/en/us/td/docs/security/asa/asa98/configuration/general/asa-98-general-config/admin-management.pdf weylin -----Original Message----- From: heasley Date: Sunday, December 31, 2017 at 16:19 To: Azher Cc: Subject: Re: [rancid] ASA-5585 Enable mode Thu, Dec 28, 2017 at 06:42:46PM -0800, Azher: > Hi All, > > Our current Cisco ASA devices "ASA5550" , 8.4(7)30, work fine with RANCID. > > Same config does not work for ASA-5585, 9.8(1). I am not sure why it is > sending "admin" twice and later it sends "enable" at the prompt .... Any > suggestions ? > > add user sslvpnb admin > add password sslvpnb pass1 pass2 > add autoenable sslvpnb 0 > add method sslvpnb ssh > > [rancid at rancid ~]$ more var/asa/router.db > sslvpn1;cisco;up > sslvpn2;cisco;up > sslvpna;cisco;up > sslvpnb;cisco;up > > [rancid at rancid ~]$ clogin sslvpnb > sslvpnb > spawn ssh -c aes128-ctr,aes128-cbc,3des-cbc -x -l admin sslvpnb > admin at sslvpnb's password: > User admin logged in to sslvpnb > Logins over the last 44 days: 29. Last login: 18:09:41 PST Dec 28 2017 > from 68.181.191.19 > Failed logins since the last login: 0. Last failed login: 06:47:32 PST Dec > 28 2017 from 68.181.191.19 its sending admin again because it sees "login:" before a prompt. why is it displaying this? > Type help or '?' for a list of available commands. > sslvpnb> admin > ^ > ERROR: % Invalid input detected at '^' marker. > > Error: Unrecognized command, check your enable command > sslvpnb> admin > ^ > ERROR: % Invalid input detected at '^' marker. > sslvpnb> enable > Password: > Invalid password > Password: > Invalid password > Password: > Invalid password > Access denied. > sslvpnb> > > > Thanks > -Azher > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From weylin at bu.edu Tue Jan 2 04:36:28 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Tue, 2 Jan 2018 04:36:28 +0000 Subject: [rancid] ASA-5585 Enable mode In-Reply-To: References: <20171231211927.GB74060@shrubbery.net> <13836E03-B7FC-4E68-A509-94D8F6508633@bu.edu> Message-ID: <9785997F-B03C-4E11-BB30-1F5433B598D7@bu.edu> Awesome. Though, since it?s the default parameter, would it make sense to account for it in clogin? weylin From: Azher Date: Monday, January 1, 2018 at 23:09 To: Weylin Piegorsch Subject: Re: [rancid] ASA-5585 Enable mode Thanks, that fixed it. no aaa authentication login-history -Azher On Mon, Jan 1, 2018 at 7:18 PM, Piegorsch, Weylin William > wrote: This is a behavior change to the ASA made in version 9.8. I believe it?s a response to a US DOD mandate, to aid in detecting unauthorized logins. At least, that was a requirement implemented sometime around 2005 (for systems that supported the capability), though I can?t find a .mil URL more recent than 2008 discussing the requirement (though I can find it referenced in some current commercial locations like Red Hat?s site). I noticed it recently in lab trials; I had assumed Cisco decided it made sense to make this the normal behavior for all deployments, given ASA stands for Adaptive Security Appliance. I hadn?t noticed it in rancid, since I?m still in lab trials. Luckily, it?s configurable, see ?Enable and View the Login History? at this URL: https://www.cisco.com/c/en/us/td/docs/security/asa/asa98/configuration/general/asa-98-general-config/admin-management.pdf weylin -----Original Message----- From: heasley > Date: Sunday, December 31, 2017 at 16:19 To: Azher > Cc: > Subject: Re: [rancid] ASA-5585 Enable mode Thu, Dec 28, 2017 at 06:42:46PM -0800, Azher: > Hi All, > > Our current Cisco ASA devices "ASA5550" , 8.4(7)30, work fine with RANCID. > > Same config does not work for ASA-5585, 9.8(1). I am not sure why it is > sending "admin" twice and later it sends "enable" at the prompt .... Any > suggestions ? > > add user sslvpnb admin > add password sslvpnb pass1 pass2 > add autoenable sslvpnb 0 > add method sslvpnb ssh > > [rancid at rancid ~]$ more var/asa/router.db > sslvpn1;cisco;up > sslvpn2;cisco;up > sslvpna;cisco;up > sslvpnb;cisco;up > > [rancid at rancid ~]$ clogin sslvpnb > sslvpnb > spawn ssh -c aes128-ctr,aes128-cbc,3des-cbc -x -l admin sslvpnb > admin at sslvpnb's password: > User admin logged in to sslvpnb > Logins over the last 44 days: 29. Last login: 18:09:41 PST Dec 28 2017 > from 68.181.191.19 > Failed logins since the last login: 0. Last failed login: 06:47:32 PST Dec > 28 2017 from 68.181.191.19 its sending admin again because it sees "login:" before a prompt. why is it displaying this? > Type help or '?' for a list of available commands. > sslvpnb> admin > ^ > ERROR: % Invalid input detected at '^' marker. > > Error: Unrecognized command, check your enable command > sslvpnb> admin > ^ > ERROR: % Invalid input detected at '^' marker. > sslvpnb> enable > Password: > Invalid password > Password: > Invalid password > Password: > Invalid password > Access denied. > sslvpnb> > > > Thanks > -Azher > _______________________________________________ > 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 azheramin at gmail.com Tue Jan 2 04:41:19 2018 From: azheramin at gmail.com (Azher) Date: Mon, 1 Jan 2018 20:41:19 -0800 Subject: [rancid] ASA-5585 Enable mode In-Reply-To: <9785997F-B03C-4E11-BB30-1F5433B598D7@bu.edu> References: <20171231211927.GB74060@shrubbery.net> <13836E03-B7FC-4E68-A509-94D8F6508633@bu.edu> <9785997F-B03C-4E11-BB30-1F5433B598D7@bu.edu> Message-ID: I think so. Having this detected by clogin would definitely help many others. -Azher On Mon, Jan 1, 2018 at 8:36 PM, Piegorsch, Weylin William wrote: > Awesome. Though, since it?s the default parameter, would it make sense to > account for it in clogin? > > weylin > > > > *From: *Azher > *Date: *Monday, January 1, 2018 at 23:09 > *To: *Weylin Piegorsch > > *Subject: *Re: [rancid] ASA-5585 Enable mode > > > > Thanks, that fixed it. > > no aaa authentication login-history > > -Azher > > > > On Mon, Jan 1, 2018 at 7:18 PM, Piegorsch, Weylin William > wrote: > > This is a behavior change to the ASA made in version 9.8. I believe it?s > a response to a US DOD mandate, to aid in detecting unauthorized logins. > At least, that was a requirement implemented sometime around 2005 (for > systems that supported the capability), though I can?t find a .mil URL more > recent than 2008 discussing the requirement (though I can find it > referenced in some current commercial locations like Red Hat?s site). > > I noticed it recently in lab trials; I had assumed Cisco decided it made > sense to make this the normal behavior for all deployments, given ASA > stands for Adaptive Security Appliance. I hadn?t noticed it in rancid, > since I?m still in lab trials. > > Luckily, it?s configurable, see ?Enable and View the Login History? at > this URL: > https://www.cisco.com/c/en/us/td/docs/security/asa/asa98/ > configuration/general/asa-98-general-config/admin-management.pdf > > weylin > > > -----Original Message----- > From: heasley > Date: Sunday, December 31, 2017 at 16:19 > To: Azher > Cc: > Subject: Re: [rancid] ASA-5585 Enable mode > > Thu, Dec 28, 2017 at 06:42:46PM -0800, Azher: > > Hi All, > > > > Our current Cisco ASA devices "ASA5550" , 8.4(7)30, work fine with > RANCID. > > > > Same config does not work for ASA-5585, 9.8(1). I am not sure why it > is > > sending "admin" twice and later it sends "enable" at the prompt .... > Any > > suggestions ? > > > > add user sslvpnb admin > > add password sslvpnb pass1 pass2 > > add autoenable sslvpnb 0 > > add method sslvpnb ssh > > > > [rancid at rancid ~]$ more var/asa/router.db > > sslvpn1;cisco;up > > sslvpn2;cisco;up > > sslvpna;cisco;up > > sslvpnb;cisco;up > > > > [rancid at rancid ~]$ clogin sslvpnb > > sslvpnb > > spawn ssh -c aes128-ctr,aes128-cbc,3des-cbc -x -l admin sslvpnb > > admin at sslvpnb's password: > > User admin logged in to sslvpnb > > Logins over the last 44 days: 29. Last login: 18:09:41 PST Dec 28 > 2017 > > from 68.181.191.19 > > Failed logins since the last login: 0. Last failed login: 06:47:32 > PST Dec > > 28 2017 from 68.181.191.19 > > its sending admin again because it sees "login:" before a prompt. why > is it displaying this? > > > Type help or '?' for a list of available commands. > > sslvpnb> admin > > ^ > > ERROR: % Invalid input detected at '^' marker. > > > > Error: Unrecognized command, check your enable command > > sslvpnb> admin > > ^ > > ERROR: % Invalid input detected at '^' marker. > > sslvpnb> enable > > Password: > > Invalid password > > Password: > > Invalid password > > Password: > > Invalid password > > Access denied. > > sslvpnb> > > > > > > Thanks > > -Azher > > > _______________________________________________ > > 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 jhalim10 at gmail.com Tue Jan 2 09:09:18 2018 From: jhalim10 at gmail.com (Jimmy Lim) Date: Tue, 2 Jan 2018 17:09:18 +0800 Subject: [rancid] Coriant Groove platform support In-Reply-To: <5A4644C6.1030907@foobar.org> References: <5A4644C6.1030907@foobar.org> Message-ID: Hi Nick, Happy new year! Thanks for your update. I have just built the custom rancid script for that and it works fine. Let me know whether Coriant support is going to be incorporated in future release or not. Thanks again. Cheers, Jimmy On Fri, Dec 29, 2017 at 9:36 PM, Nick Hilliard wrote: > Jimmy Lim wrote: > > Does rancid support Coriant Groove platform like G30? I don't see it in > > bin directory. > > no but it should be pretty easy to add. It's a straightforward > ssh/no-enable login, with the following commands issued: > > set -f cli-config cli-columns 65535 > show inventory > show softwareload > show config | display commands > quit -f > > just make sure you're not using fp2.0.0 because that eats the CRS config > lines when you use the "display commands" pipe (fixed in fp2.0.1) > > Nick > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Charles.Brooks at hbcs.org Tue Jan 2 15:36:25 2018 From: Charles.Brooks at hbcs.org (Charles T. Brooks) Date: Tue, 2 Jan 2018 15:36:25 +0000 Subject: [rancid] ASA-5585 Enable mode In-Reply-To: References: <20171231211927.GB74060@shrubbery.net> <13836E03-B7FC-4E68-A509-94D8F6508633@bu.edu> <9785997F-B03C-4E11-BB30-1F5433B598D7@bu.edu>, Message-ID: Last login notification (and last failed login) has been a computing best practice for 30 years. It provides simple, easy detection of some forms of man-in-the-middle password trapping. It's not foolproof but it's an important protection that is valued by the informed users that it serves. If you're federally regulated in the USA (HIPPAA/HiTECH, SOX, GLB, FDA, DOD, NIST FIPS, &etc.) you are probably legally required to enable last login and failed login notifications, simply because it's an industry best practice and blowing off industry best practices is (arguably) negligence. --Charlie On Mon, Jan 1, 2018 at 11:41 PM Azher Amin wrote: ________________________________ I think so. Having this detected by clogin would definitely help many others. -Azher On Mon, Jan 1, 2018 at 8:36 PM, Piegorsch, Weylin William > wrote: Awesome. Though, since it?s the default parameter, would it make sense to account for it in clogin? weylin From: Azher > Date: Monday, January 1, 2018 at 23:09 To: Weylin Piegorsch > Subject: Re: [rancid] ASA-5585 Enable mode Thanks, that fixed it. no aaa authentication login-history -Azher On Mon, Jan 1, 2018 at 7:18 PM, Piegorsch, Weylin William > wrote: This is a behavior change to the ASA made in version 9.8. I believe it?s a response to a US DOD mandate, to aid in detecting unauthorized logins. At least, that was a requirement implemented sometime around 2005 (for systems that supported the capability), though I can?t find a .mil URL more recent than 2008 discussing the requirement (though I can find it referenced in some current commercial locations like Red Hat?s site). I noticed it recently in lab trials; I had assumed Cisco decided it made sense to make this the normal behavior for all deployments, given ASA stands for Adaptive Security Appliance. I hadn?t noticed it in rancid, since I?m still in lab trials. Luckily, it?s configurable, see ?Enable and View the Login History? at this URL: https://www.cisco.com/c/en/us/td/docs/security/asa/asa98/configuration/general/asa-98-general-config/admin-management.pdf weylin -----Original Message----- From: heasley > Date: Sunday, December 31, 2017 at 16:19 To: Azher > Cc: > Subject: Re: [rancid] ASA-5585 Enable mode Thu, Dec 28, 2017 at 06:42:46PM -0800, Azher: > Hi All, > > Our current Cisco ASA devices "ASA5550" , 8.4(7)30, work fine with RANCID. > > Same config does not work for ASA-5585, 9.8(1). I am not sure why it is > sending "admin" twice and later it sends "enable" at the prompt .... Any > suggestions ? > > add user sslvpnb admin > add password sslvpnb pass1 pass2 > add autoenable sslvpnb 0 > add method sslvpnb ssh > > [rancid at rancid ~]$ more var/asa/router.db > sslvpn1;cisco;up > sslvpn2;cisco;up > sslvpna;cisco;up > sslvpnb;cisco;up > > [rancid at rancid ~]$ clogin sslvpnb > sslvpnb > spawn ssh -c aes128-ctr,aes128-cbc,3des-cbc -x -l admin sslvpnb > admin at sslvpnb's password: > User admin logged in to sslvpnb > Logins over the last 44 days: 29. Last login: 18:09:41 PST Dec 28 2017 > from 68.181.191.19 > Failed logins since the last login: 0. Last failed login: 06:47:32 PST Dec > 28 2017 from 68.181.191.19 its sending admin again because it sees "login:" before a prompt. why is it displaying this? > Type help or '?' for a list of available commands. > sslvpnb> admin > ^ > ERROR: % Invalid input detected at '^' marker. > > Error: Unrecognized command, check your enable command > sslvpnb> admin > ^ > ERROR: % Invalid input detected at '^' marker. > sslvpnb> enable > Password: > Invalid password > Password: > Invalid password > Password: > Invalid password > Access denied. > sslvpnb> > > > Thanks > -Azher ------------------ 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 --------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Tue Jan 2 22:08:49 2018 From: heas at shrubbery.net (heasley) Date: Tue, 2 Jan 2018 22:08:49 +0000 Subject: [rancid] Coriant Groove platform support In-Reply-To: References: <5A4644C6.1030907@foobar.org> Message-ID: <20180102220849.GF84720@shrubbery.net> Tue, Jan 02, 2018 at 05:09:18PM +0800, Jimmy Lim: > Hi Nick, > > Happy new year! Thanks for your update. I have just built the custom rancid > script for that and it works fine. Let me know whether Coriant support is > going to be incorporated in future release or not. Thanks again. Happy to stick a copy in the contrib area. > Cheers, > Jimmy > > On Fri, Dec 29, 2017 at 9:36 PM, Nick Hilliard wrote: > > > Jimmy Lim wrote: > > > Does rancid support Coriant Groove platform like G30? I don't see it in > > > bin directory. > > > > no but it should be pretty easy to add. It's a straightforward > > ssh/no-enable login, with the following commands issued: > > > > set -f cli-config cli-columns 65535 > > show inventory > > show softwareload > > show config | display commands > > quit -f > > > > just make sure you're not using fp2.0.0 because that eats the CRS config > > lines when you use the "display commands" pipe (fixed in fp2.0.1) > > > > Nick > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From heas at shrubbery.net Tue Jan 2 22:32:00 2018 From: heas at shrubbery.net (heasley) Date: Tue, 2 Jan 2018 22:32:00 +0000 Subject: [rancid] ASA-5585 Enable mode In-Reply-To: <20180102222538.60DD5280FA0@sea.shrubbery.net> Message-ID: <20180102223200.GG84720@shrubbery.net> Mon, Jan 01, 2018 at 06:41:56PM -0800, Azher: > In the ASA version 9.8.X , there are sending out the "Last login: " and the > "Last failed Login: " as default. There is no way to disable this. > > I tried adding following lines in .cloginrc but no luck: > > add prompt sslvpna {"sslvpna>"} > add enableprompt sslvpna {"sslvpna>"} > > Is there a way to skip login: for this specific device ? > > Thanks > -Azher Does this work? Index: bin/clogin.in =================================================================== --- bin/clogin.in (revision 3754) +++ bin/clogin.in (working copy) @@ -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 } > > > On Sun, Dec 31, 2017 at 1:19 PM, heasley wrote: > > > Thu, Dec 28, 2017 at 06:42:46PM -0800, Azher: > > > Hi All, > > > > > > Our current Cisco ASA devices "ASA5550" , 8.4(7)30, work fine with > > RANCID. > > > > > > Same config does not work for ASA-5585, 9.8(1). I am not sure why it is > > > sending "admin" twice and later it sends "enable" at the prompt .... Any > > > suggestions ? > > > > > > add user sslvpnb admin > > > add password sslvpnb pass1 pass2 > > > add autoenable sslvpnb 0 > > > add method sslvpnb ssh > > > > > > [rancid at rancid ~]$ more var/asa/router.db > > > sslvpn1;cisco;up > > > sslvpn2;cisco;up > > > sslvpna;cisco;up > > > sslvpnb;cisco;up > > > > > > [rancid at rancid ~]$ clogin sslvpnb > > > sslvpnb > > > spawn ssh -c aes128-ctr,aes128-cbc,3des-cbc -x -l admin sslvpnb > > > admin at sslvpnb's password: > > > User admin logged in to sslvpnb > > > Logins over the last 44 days: 29. Last login: 18:09:41 PST Dec 28 2017 > > > from 68.181.191.19 > > > Failed logins since the last login: 0. Last failed login: 06:47:32 PST > > Dec > > > 28 2017 from 68.181.191.19 > > > > its sending admin again because it sees "login:" before a prompt. why > > is it displaying this? > > > > > Type help or '?' for a list of available commands. > > > sslvpnb> admin > > > ^ > > > ERROR: % Invalid input detected at '^' marker. > > > > > > Error: Unrecognized command, check your enable command > > > sslvpnb> admin > > > ^ > > > ERROR: % Invalid input detected at '^' marker. > > > sslvpnb> enable > > > Password: > > > Invalid password > > > Password: > > > Invalid password > > > Password: > > > Invalid password > > > Access denied. > > > sslvpnb> > > > > > > > > > Thanks > > > -Azher > > > > > _______________________________________________ > > > Rancid-discuss mailing list > > > Rancid-discuss at shrubbery.net > > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > From heas at shrubbery.net Tue Jan 2 23:27:07 2018 From: heas at shrubbery.net (heasley) Date: Tue, 2 Jan 2018 23:27:07 +0000 Subject: [rancid] Enterasys Switches help In-Reply-To: References: <8C552B28-B543-441B-8FF7-F47E3B8A51B0@comscore.com> Message-ID: <20180102232707.GL84720@shrubbery.net> Thu, Dec 28, 2017 at 06:08:57PM -0800, Azher: > Hi Chris, > > I added following lines in the "rancid.types.base " otherwise there is just > a reference of enterasys to rivrancid. > > enterasys;script;xrancid > enterasys;login;xlogin > enterasys;command;enterasys::ShowVersion;show version > enterasys;command;enterasys::WriteTerm;show config you should not need that; there is already an entry in rancid.types.base for this device type - use that. > Running in debug mode: > > [rancid at rancid ~/etc]$ rancid -d -t enterasys cal3-n7 > loadtype: device type enterasys > loadtype: found device type enterasys in /opt/rancid/etc/rancid.types.base > loadtype: undefined function in enterasys: enterasys::ShowVersion > Couldn't load device type spec for enterasys > > I am not sure why it is complaining because xrancid does have this function > defined: > > # This routine parses "show version" > sub ShowVersion { > print STDERR " In ShowVersion: $_" if ($debug); > > And in the main routine: > > # Main > @commandtable = ( > {'show version' => 'ShowVersion'}, > ### {'show memory' => 'ShowMemory'}, > ### {'show diag' => 'ShowDiag'}, > ### {'show switch' => 'ShowSwitch'}, > ### {'show slot' => 'ShowSlot'}, > # way too confusing {'show configuration detail' => 'WriteTerm'}, > {'show config' => 'WriteTerm'}, > ); > > Trying rivrancid also complains about no commands: > > [rancid at rancid ~]$ rivrancid -d cal3-n7 > executing rivlogin -t 90 -c"system show uptime;system show version;system > show hardware;system show active-config" cal3-n7 manually run the rivlogin command that is there to see if there is a failure in that login script. > cal3-n7: missed cmd(s): all commands > cal3-n7: End of run not found > cal3-n7: clean_run is false > ! > > Thanks > -Azher > > > > > On Thu, Dec 28, 2017 at 2:39 PM, Gauthier, Chris > wrote: > > > I would take a look at the rancid types file to make sure it?s running the > > commands you need. It seems like it?s throwing up in the very beginning of > > its run. > > > > > > > > There are several emails in the list on how to get into a ?debugging? mode > > if you?re not already familiar. That will help completely isolate the > > issue. > > > > > > > > --Chris > > > > > > > > > > Chris Gauthier Senior Network Engineer | comScore, Inc. > > t +1 *(503) 331-2704* <(503)%20331-2704> | > > *cgauthier at comscore.com* > > 317 > > > > SW > > > > Alder > > > > Street, > > > > Suite > > > > 700 > > > > | > > > > Portland, > > > > OR > > > > 97204 > > > > United > > > > States > > > > *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 Azher > > *Date: *Thursday, December 28, 2017 at 2:26 PM > > *To: *"rancid-discuss at shrubbery.net" > > *Subject: *[rancid] Enterasys Switches help > > > > > > > > Hi All, > > > > I have a large deployment of different Enterasys switches > > (S,K,B,C,D,7100). It seems rancid is not happy with these switches somehow. > > > > > > > > clogin to the same device successfully logs into the switch and gives > > prompt and I can type the commands. > > > > > > > > When trying "rancid-run -r cal3-n7", the log file throws this error: > > > > > > > > [rancid at rancid ~/var/logs]$ tail -f extreme.20171228.113653 > > > > starting: Thu Dec 28 11:36:53 PST 2017 > > > > Trying to get all of the configs. > > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > cal3-n7: missed cmd(s): show version,show config > > cal3-n7: End of run not found > > # > > ===================================== > > Getting missed routers: round 1. > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > cal3-n7: missed cmd(s): show version,show config > > cal3-n7: End of run not found > > # > > All routers successfully completed. > > > > cvs diff: Diffing . > > cvs diff: Diffing configs > > cvs commit: Examining . > > cvs commit: Examining configs > > --------------- > > > > Here is the config section: > > [rancid at rancid ~/var/extreme]$ more router.db | grep cal3-n7 > > cal3-n7;enterasys;up > > > > # Extreme Switches > > add user cal3-n7 admin > > add autoenable cal3-n7 1 > > add password cal3-n7 xxxxxxxxxxxx > > add method cal3-n7 ssh > > > > I have gone through some of the scripts which are in the mailing list, > > tried them, but no luck. > > > > > > > > Any one has experience with Enterasys devices ? Any working scripts would > > greatly help. > > > > > > > > > > > > Thanks > > > > -Azher > > > > > > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From m_zouhairy at skno.by Wed Jan 3 13:23:25 2018 From: m_zouhairy at skno.by (Vacheslav) Date: Wed, 3 Jan 2018 16:23:25 +0300 Subject: [rancid] Nexus 9K support in RANCiD 3.7 In-Reply-To: <20171230003319.GA30708@shrubbery.net> References: <20171229203512.DAFA7280F34@sea.shrubbery.net> <20171229203621.GJ73992@shrubbery.net> <20171230003319.GA30708@shrubbery.net> Message-ID: <00c101d38496$08ec48a0$1ac4d9e0$@skno.by> I have been suffering this for a long time, and since it came up, I decided to use it. To expand it, I have 2960 cisco switches which produce similar unneeded output: diff -u -4 -r1.61 cisco2960x-24 @@ -48,9 +48,9 @@ ! License Priority: Medium ! License Count: Non-Counted ! !Flash: Directory of flash:/ - !Flash: 2 -rwx 208 Jan 21 2016 14:22:15 +03:00 express_setup.debug + !Flash: 3 -rwx 208 Jan 21 2016 14:22:15 +03:00 express_setup.debug May you fix that? -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of heasley Sent: Saturday, December 30, 2017 3:33 AM To: Charles T. Brooks Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Nexus 9K support in RANCiD 3.7 Fri, Dec 29, 2017 at 11:00:36PM +0000, Charles T. Brooks: > I like your patch better! You might want to normalize the style in the previous line while you're in there - "&& next" instead of "next if". I'm not a perl guru, though. It is not the same as the other lines. this code block filters the size and timestamp, but leaves the name. I suppose all of those filters could be changed to this type of filter. open to opinion. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss From azheramin at gmail.com Thu Jan 4 21:38:15 2018 From: azheramin at gmail.com (Azher) Date: Thu, 4 Jan 2018 13:38:15 -0800 Subject: [rancid] Enterasys Switches help In-Reply-To: <20180102232707.GL84720@shrubbery.net> References: <8C552B28-B543-441B-8FF7-F47E3B8A51B0@comscore.com> <20180102232707.GL84720@shrubbery.net> Message-ID: Hi Heasley, [rancid at rancid ~]$ rivrancid -d -t enterasys cal-7100-1 executing rivlogin -t 90 -c"system show uptime;system show version;system show hardware;system show active-config" cal-7100-1 cal-7100-1: missed cmd(s): all commands cal-7100-1: End of run not found cal-7100-1: clean_run is false These commands starting with "system" does not work on the Enterasys switches. Thanks -Azher On Tue, Jan 2, 2018 at 3:27 PM, heasley wrote: > Thu, Dec 28, 2017 at 06:08:57PM -0800, Azher: > > Hi Chris, > > > > I added following lines in the "rancid.types.base " otherwise there is > just > > a reference of enterasys to rivrancid. > > > > enterasys;script;xrancid > > enterasys;login;xlogin > > enterasys;command;enterasys::ShowVersion;show version > > enterasys;command;enterasys::WriteTerm;show config > > you should not need that; there is already an entry in rancid.types.base > for this device type - use that. > > > Running in debug mode: > > > > [rancid at rancid ~/etc]$ rancid -d -t enterasys cal3-n7 > > loadtype: device type enterasys > > loadtype: found device type enterasys in /opt/rancid/etc/rancid.types. > base > > loadtype: undefined function in enterasys: enterasys::ShowVersion > > Couldn't load device type spec for enterasys > > > > I am not sure why it is complaining because xrancid does have this > function > > defined: > > > > # This routine parses "show version" > > sub ShowVersion { > > print STDERR " In ShowVersion: $_" if ($debug); > > > > And in the main routine: > > > > # Main > > @commandtable = ( > > {'show version' => 'ShowVersion'}, > > ### {'show memory' => 'ShowMemory'}, > > ### {'show diag' => 'ShowDiag'}, > > ### {'show switch' => 'ShowSwitch'}, > > ### {'show slot' => 'ShowSlot'}, > > # way too confusing {'show configuration detail' => 'WriteTerm'}, > > {'show config' => 'WriteTerm'}, > > ); > > > > Trying rivrancid also complains about no commands: > > > > [rancid at rancid ~]$ rivrancid -d cal3-n7 > > executing rivlogin -t 90 -c"system show uptime;system show version;system > > show hardware;system show active-config" cal3-n7 > > manually run the rivlogin command that is there to see if there is a > failure in that login script. > > > cal3-n7: missed cmd(s): all commands > > cal3-n7: End of run not found > > cal3-n7: clean_run is false > > ! > > > > Thanks > > -Azher > > > > > > > > > > On Thu, Dec 28, 2017 at 2:39 PM, Gauthier, Chris > > > wrote: > > > > > I would take a look at the rancid types file to make sure it?s running > the > > > commands you need. It seems like it?s throwing up in the very > beginning of > > > its run. > > > > > > > > > > > > There are several emails in the list on how to get into a ?debugging? > mode > > > if you?re not already familiar. That will help completely isolate the > > > issue. > > > > > > > > > > > > --Chris > > > > > > > > > > > > > > > Chris Gauthier Senior Network Engineer | comScore, Inc. > > > t +1 *(503) 331-2704* <(503)%20331-2704> | > > > *cgauthier at comscore.com* > > > 317 > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > SW > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > Alder > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > Street, > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > Suite > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > 700 > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > | > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > Portland, > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > OR > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > 97204 > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > United > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > States > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > *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 Azher > > > *Date: *Thursday, December 28, 2017 at 2:26 PM > > > *To: *"rancid-discuss at shrubbery.net" > > > *Subject: *[rancid] Enterasys Switches help > > > > > > > > > > > > Hi All, > > > > > > I have a large deployment of different Enterasys switches > > > (S,K,B,C,D,7100). It seems rancid is not happy with these switches > somehow. > > > > > > > > > > > > clogin to the same device successfully logs into the switch and gives > > > prompt and I can type the commands. > > > > > > > > > > > > When trying "rancid-run -r cal3-n7", the log file throws this error: > > > > > > > > > > > > [rancid at rancid ~/var/logs]$ tail -f extreme.20171228.113653 > > > > > > starting: Thu Dec 28 11:36:53 PST 2017 > > > > > > Trying to get all of the configs. > > > > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > > cal3-n7: missed cmd(s): show version,show config > > > cal3-n7: End of run not found > > > # > > > ===================================== > > > Getting missed routers: round 1. > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > > cal3-n7: missed cmd(s): show version,show config > > > cal3-n7: End of run not found > > > # > > > All routers successfully completed. > > > > > > cvs diff: Diffing . > > > cvs diff: Diffing configs > > > cvs commit: Examining . > > > cvs commit: Examining configs > > > --------------- > > > > > > Here is the config section: > > > [rancid at rancid ~/var/extreme]$ more router.db | grep cal3-n7 > > > cal3-n7;enterasys;up > > > > > > # Extreme Switches > > > add user cal3-n7 admin > > > add autoenable cal3-n7 1 > > > add password cal3-n7 xxxxxxxxxxxx > > > add method cal3-n7 ssh > > > > > > I have gone through some of the scripts which are in the mailing list, > > > tried them, but no luck. > > > > > > > > > > > > Any one has experience with Enterasys devices ? Any working scripts > would > > > greatly help. > > > > > > > > > > > > > > > > > > Thanks > > > > > > -Azher > > > > > > > > > > > > > > > > > > _______________________________________________ > > 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 Thu Jan 4 23:19:36 2018 From: heas at shrubbery.net (heasley) Date: Thu, 4 Jan 2018 23:19:36 +0000 Subject: [rancid] Enterasys Switches help In-Reply-To: References: <8C552B28-B543-441B-8FF7-F47E3B8A51B0@comscore.com> <20180102232707.GL84720@shrubbery.net> Message-ID: <20180104231936.GE32712@shrubbery.net> Thu, Jan 04, 2018 at 01:38:15PM -0800, Azher: > Hi Heasley, > > [rancid at rancid ~]$ rivrancid -d -t enterasys cal-7100-1 > executing rivlogin -t 90 -c"system show uptime;system show version;system > show hardware;system show active-config" cal-7100-1 > cal-7100-1: missed cmd(s): all commands > cal-7100-1: End of run not found > cal-7100-1: clean_run is false > > These commands starting with "system" does not work on the Enterasys > switches. is it an oem of someone else's box? or a completely new enterasys o/s? > Thanks > -Azher > > > > On Tue, Jan 2, 2018 at 3:27 PM, heasley wrote: > > > Thu, Dec 28, 2017 at 06:08:57PM -0800, Azher: > > > Hi Chris, > > > > > > I added following lines in the "rancid.types.base " otherwise there is > > just > > > a reference of enterasys to rivrancid. > > > > > > enterasys;script;xrancid > > > enterasys;login;xlogin > > > enterasys;command;enterasys::ShowVersion;show version > > > enterasys;command;enterasys::WriteTerm;show config > > > > you should not need that; there is already an entry in rancid.types.base > > for this device type - use that. > > > > > Running in debug mode: > > > > > > [rancid at rancid ~/etc]$ rancid -d -t enterasys cal3-n7 > > > loadtype: device type enterasys > > > loadtype: found device type enterasys in /opt/rancid/etc/rancid.types. > > base > > > loadtype: undefined function in enterasys: enterasys::ShowVersion > > > Couldn't load device type spec for enterasys > > > > > > I am not sure why it is complaining because xrancid does have this > > function > > > defined: > > > > > > # This routine parses "show version" > > > sub ShowVersion { > > > print STDERR " In ShowVersion: $_" if ($debug); > > > > > > And in the main routine: > > > > > > # Main > > > @commandtable = ( > > > {'show version' => 'ShowVersion'}, > > > ### {'show memory' => 'ShowMemory'}, > > > ### {'show diag' => 'ShowDiag'}, > > > ### {'show switch' => 'ShowSwitch'}, > > > ### {'show slot' => 'ShowSlot'}, > > > # way too confusing {'show configuration detail' => 'WriteTerm'}, > > > {'show config' => 'WriteTerm'}, > > > ); > > > > > > Trying rivrancid also complains about no commands: > > > > > > [rancid at rancid ~]$ rivrancid -d cal3-n7 > > > executing rivlogin -t 90 -c"system show uptime;system show version;system > > > show hardware;system show active-config" cal3-n7 > > > > manually run the rivlogin command that is there to see if there is a > > failure in that login script. > > > > > cal3-n7: missed cmd(s): all commands > > > cal3-n7: End of run not found > > > cal3-n7: clean_run is false > > > ! > > > > > > Thanks > > > -Azher > > > > > > > > > > > > > > > On Thu, Dec 28, 2017 at 2:39 PM, Gauthier, Chris > > > > > wrote: > > > > > > > I would take a look at the rancid types file to make sure it?s running > > the > > > > commands you need. It seems like it?s throwing up in the very > > beginning of > > > > its run. > > > > > > > > > > > > > > > > There are several emails in the list on how to get into a ?debugging? > > mode > > > > if you?re not already familiar. That will help completely isolate the > > > > issue. > > > > > > > > > > > > > > > > --Chris > > > > > > > > > > > > > > > > > > > > Chris Gauthier Senior Network Engineer | comScore, Inc. > > > > t +1 *(503) 331-2704* <(503)%20331-2704> | > > > > *cgauthier at comscore.com* > > > > 317 > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > SW > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > Alder > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > Street, > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > Suite > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > 700 > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > | > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > Portland, > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > OR > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > 97204 > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > United > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > States > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > *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 Azher > > > > *Date: *Thursday, December 28, 2017 at 2:26 PM > > > > *To: *"rancid-discuss at shrubbery.net" > > > > *Subject: *[rancid] Enterasys Switches help > > > > > > > > > > > > > > > > Hi All, > > > > > > > > I have a large deployment of different Enterasys switches > > > > (S,K,B,C,D,7100). It seems rancid is not happy with these switches > > somehow. > > > > > > > > > > > > > > > > clogin to the same device successfully logs into the switch and gives > > > > prompt and I can type the commands. > > > > > > > > > > > > > > > > When trying "rancid-run -r cal3-n7", the log file throws this error: > > > > > > > > > > > > > > > > [rancid at rancid ~/var/logs]$ tail -f extreme.20171228.113653 > > > > > > > > starting: Thu Dec 28 11:36:53 PST 2017 > > > > > > > > Trying to get all of the configs. > > > > > > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > > > cal3-n7: missed cmd(s): show version,show config > > > > cal3-n7: End of run not found > > > > # > > > > ===================================== > > > > Getting missed routers: round 1. > > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > > > cal3-n7: missed cmd(s): show version,show config > > > > cal3-n7: End of run not found > > > > # > > > > All routers successfully completed. > > > > > > > > cvs diff: Diffing . > > > > cvs diff: Diffing configs > > > > cvs commit: Examining . > > > > cvs commit: Examining configs > > > > --------------- > > > > > > > > Here is the config section: > > > > [rancid at rancid ~/var/extreme]$ more router.db | grep cal3-n7 > > > > cal3-n7;enterasys;up > > > > > > > > # Extreme Switches > > > > add user cal3-n7 admin > > > > add autoenable cal3-n7 1 > > > > add password cal3-n7 xxxxxxxxxxxx > > > > add method cal3-n7 ssh > > > > > > > > I have gone through some of the scripts which are in the mailing list, > > > > tried them, but no luck. > > > > > > > > > > > > > > > > Any one has experience with Enterasys devices ? Any working scripts > > would > > > > greatly help. > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > -Azher > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Rancid-discuss mailing list > > > Rancid-discuss at shrubbery.net > > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > From azheramin at gmail.com Thu Jan 4 23:43:50 2018 From: azheramin at gmail.com (Azher) Date: Thu, 4 Jan 2018 15:43:50 -0800 Subject: [rancid] Enterasys Switches help In-Reply-To: <20180104231936.GE32712@shrubbery.net> References: <8C552B28-B543-441B-8FF7-F47E3B8A51B0@comscore.com> <20180102232707.GL84720@shrubbery.net> <20180104231936.GE32712@shrubbery.net> Message-ID: This is Enterasys "71K11L4-48" switch. It has the same CLI and commands like the other S/N/K series switches. Some commands are: show version show config show system hardware -Azher On Thu, Jan 4, 2018 at 3:19 PM, heasley wrote: > Thu, Jan 04, 2018 at 01:38:15PM -0800, Azher: > > Hi Heasley, > > > > [rancid at rancid ~]$ rivrancid -d -t enterasys cal-7100-1 > > executing rivlogin -t 90 -c"system show uptime;system show version;system > > show hardware;system show active-config" cal-7100-1 > > cal-7100-1: missed cmd(s): all commands > > cal-7100-1: End of run not found > > cal-7100-1: clean_run is false > > > > These commands starting with "system" does not work on the Enterasys > > switches. > > is it an oem of someone else's box? or a completely new enterasys > o/s? > > > Thanks > > -Azher > > > > > > > > On Tue, Jan 2, 2018 at 3:27 PM, heasley wrote: > > > > > Thu, Dec 28, 2017 at 06:08:57PM -0800, Azher: > > > > Hi Chris, > > > > > > > > I added following lines in the "rancid.types.base " otherwise there > is > > > just > > > > a reference of enterasys to rivrancid. > > > > > > > > enterasys;script;xrancid > > > > enterasys;login;xlogin > > > > enterasys;command;enterasys::ShowVersion;show version > > > > enterasys;command;enterasys::WriteTerm;show config > > > > > > you should not need that; there is already an entry in > rancid.types.base > > > for this device type - use that. > > > > > > > Running in debug mode: > > > > > > > > [rancid at rancid ~/etc]$ rancid -d -t enterasys cal3-n7 > > > > loadtype: device type enterasys > > > > loadtype: found device type enterasys in > /opt/rancid/etc/rancid.types. > > > base > > > > loadtype: undefined function in enterasys: enterasys::ShowVersion > > > > Couldn't load device type spec for enterasys > > > > > > > > I am not sure why it is complaining because xrancid does have this > > > function > > > > defined: > > > > > > > > # This routine parses "show version" > > > > sub ShowVersion { > > > > print STDERR " In ShowVersion: $_" if ($debug); > > > > > > > > And in the main routine: > > > > > > > > # Main > > > > @commandtable = ( > > > > {'show version' => 'ShowVersion'}, > > > > ### {'show memory' => 'ShowMemory'}, > > > > ### {'show diag' => 'ShowDiag'}, > > > > ### {'show switch' => 'ShowSwitch'}, > > > > ### {'show slot' => 'ShowSlot'}, > > > > # way too confusing {'show configuration detail' => > 'WriteTerm'}, > > > > {'show config' => 'WriteTerm'}, > > > > ); > > > > > > > > Trying rivrancid also complains about no commands: > > > > > > > > [rancid at rancid ~]$ rivrancid -d cal3-n7 > > > > executing rivlogin -t 90 -c"system show uptime;system show > version;system > > > > show hardware;system show active-config" cal3-n7 > > > > > > manually run the rivlogin command that is there to see if there is a > > > failure in that login script. > > > > > > > cal3-n7: missed cmd(s): all commands > > > > cal3-n7: End of run not found > > > > cal3-n7: clean_run is false > > > > ! > > > > > > > > Thanks > > > > -Azher > > > > > > > > > > > > > > > > > > > > On Thu, Dec 28, 2017 at 2:39 PM, Gauthier, Chris < > cgauthier at comscore.com > > > > > > > > wrote: > > > > > > > > > I would take a look at the rancid types file to make sure it?s > running > > > the > > > > > commands you need. It seems like it?s throwing up in the very > > > beginning of > > > > > its run. > > > > > > > > > > > > > > > > > > > > There are several emails in the list on how to get into a > ?debugging? > > > mode > > > > > if you?re not already familiar. That will help completely isolate > the > > > > > issue. > > > > > > > > > > > > > > > > > > > > --Chris > > > > > > > > > > > > > > > > > > > > > > > > > Chris Gauthier Senior Network Engineer | comScore, Inc. > > > > > t +1 *(503) 331-2704* <(503)%20331-2704> | > > > > > *cgauthier at comscore.com* > > > > > 317 > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > SW > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > Alder > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > Street, > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > Suite > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > 700 > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > | > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > Portland, > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > OR > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > 97204 > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > United > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > States > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > *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 Azher > > > > > *Date: *Thursday, December 28, 2017 at 2:26 PM > > > > > *To: *"rancid-discuss at shrubbery.net" > > > > > > *Subject: *[rancid] Enterasys Switches help > > > > > > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > I have a large deployment of different Enterasys switches > > > > > (S,K,B,C,D,7100). It seems rancid is not happy with these switches > > > somehow. > > > > > > > > > > > > > > > > > > > > clogin to the same device successfully logs into the switch and > gives > > > > > prompt and I can type the commands. > > > > > > > > > > > > > > > > > > > > When trying "rancid-run -r cal3-n7", the log file throws this > error: > > > > > > > > > > > > > > > > > > > > [rancid at rancid ~/var/logs]$ tail -f extreme.20171228.113653 > > > > > > > > > > starting: Thu Dec 28 11:36:53 PST 2017 > > > > > > > > > > Trying to get all of the configs. > > > > > > > > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > > > > cal3-n7: missed cmd(s): show version,show config > > > > > cal3-n7: End of run not found > > > > > # > > > > > ===================================== > > > > > Getting missed routers: round 1. > > > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > > > > cal3-n7: missed cmd(s): show version,show config > > > > > cal3-n7: End of run not found > > > > > # > > > > > All routers successfully completed. > > > > > > > > > > cvs diff: Diffing . > > > > > cvs diff: Diffing configs > > > > > cvs commit: Examining . > > > > > cvs commit: Examining configs > > > > > --------------- > > > > > > > > > > Here is the config section: > > > > > [rancid at rancid ~/var/extreme]$ more router.db | grep cal3-n7 > > > > > cal3-n7;enterasys;up > > > > > > > > > > # Extreme Switches > > > > > add user cal3-n7 admin > > > > > add autoenable cal3-n7 1 > > > > > add password cal3-n7 xxxxxxxxxxxx > > > > > add method cal3-n7 ssh > > > > > > > > > > I have gone through some of the scripts which are in the mailing > list, > > > > > tried them, but no luck. > > > > > > > > > > > > > > > > > > > > Any one has experience with Enterasys devices ? Any working scripts > > > would > > > > > greatly help. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > -Azher > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > 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 nicotine at warningg.com Fri Jan 5 15:40:28 2018 From: nicotine at warningg.com (Brandon Ewing) Date: Fri, 5 Jan 2018 09:40:28 -0600 Subject: [rancid] Prompt detection eats exit, clean run not found Message-ID: <20180105154028.GC17120@radiological.warningg.com> It appears that several modules for rancid rely on non-prompt exits from specific commands (IE, "end" at the end of WriteTerm) to ensure that the "exit" string is available for inloop to detect to mark a clean run. Devices that do not have an end marker, or custom types that do not have WriteTerm last, have to fall back on prompt detection, which in most modules, also swallows the "exit" string. It appears this is fixed in aeos.pm with a GOTO CMD statement, but that doesn't appear standard in other modules. You can reproduce this error by defining a custom type: test;script;rancid -t test test;login;clogin test;module;ios test;inloop;ios::inloop test;command;ios::WriteTerm;show running-config test;command;ios::ShowVersion;show version rancid -dt test ios loadtype: device type test loadtype: found device type test in /home/bewing/etc/rancid.types.conf executing clogin -t 90 -c"show running-config;show version" ios PROMPT MATCH: ios# HIT COMMAND:ios#show running-config In WriteTerm: ios#show running-config HIT COMMAND:ios#show version In ShowVersion: ios#show version TYPE = WS-C3850-48U ios: End of run not found ios: clean_run is false !BOOTLDR: Version 3.58, RELEASE SOFTWARE (P) -- Brandon Ewing (nicotine at warningg.com) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From heas at shrubbery.net Fri Jan 5 18:08:43 2018 From: heas at shrubbery.net (heasley) Date: Fri, 5 Jan 2018 18:08:43 +0000 Subject: [rancid] Prompt detection eats exit, clean run not found In-Reply-To: <20180105154028.GC17120@radiological.warningg.com> References: <20180105154028.GC17120@radiological.warningg.com> Message-ID: <20180105180842.GA49235@shrubbery.net> Fri, Jan 05, 2018 at 09:40:28AM -0600, Brandon Ewing: > It appears that several modules for rancid rely on non-prompt exits from > specific commands (IE, "end" at the end of WriteTerm) to ensure that the > "exit" string is available for inloop to detect to mark a clean run. > > Devices that do not have an end marker, or custom types that do not have > WriteTerm last, have to fall back on prompt detection, which in most > modules, also swallows the "exit" string. > > It appears this is fixed in aeos.pm with a GOTO CMD statement, but that > doesn't appear standard in other modules. right, if $_ has a prompt, evaluate it, dont read another line. if (defined($prompt)) { if (/$prompt/) { goto CMD; } } > You can reproduce this error by defining a custom type: > > test;script;rancid -t test > test;login;clogin > test;module;ios > test;inloop;ios::inloop > test;command;ios::WriteTerm;show running-config > test;command;ios::ShowVersion;show version > > rancid -dt test ios > loadtype: device type test > loadtype: found device type test in /home/bewing/etc/rancid.types.conf > executing clogin -t 90 -c"show running-config;show version" ios > PROMPT MATCH: ios# > HIT COMMAND:ios#show running-config > In WriteTerm: ios#show running-config > HIT COMMAND:ios#show version > In ShowVersion: ios#show version > TYPE = WS-C3850-48U thats ios, it should have and eng marker; if it does not, then its broken. and, ios devices and others do this from time to time; they leak memory until they have so little free that they can not produce a full human- display config, then they just truncate it. others produce no output, but indicate success or lack an error. hence, the checks. > ios: End of run not found > ios: clean_run is false > !BOOTLDR: Version 3.58, RELEASE SOFTWARE (P) > > > -- > Brandon Ewing (nicotine at warningg.com) > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From heas at shrubbery.net Fri Jan 5 21:24:05 2018 From: heas at shrubbery.net (heasley) Date: Fri, 5 Jan 2018 21:24:05 +0000 Subject: [rancid] Enterasys Switches help In-Reply-To: References: <8C552B28-B543-441B-8FF7-F47E3B8A51B0@comscore.com> <20180102232707.GL84720@shrubbery.net> <20180104231936.GE32712@shrubbery.net> Message-ID: <20180105212405.GC37568@shrubbery.net> Thu, Jan 04, 2018 at 03:43:50PM -0800, Azher: > This is Enterasys "71K11L4-48" switch. It has the same CLI and commands > like the other S/N/K series switches. S/N/K are other Enterasys boxes? > Some commands are: > > show version > show config > show system hardware > > -Azher > > > > On Thu, Jan 4, 2018 at 3:19 PM, heasley wrote: > > > Thu, Jan 04, 2018 at 01:38:15PM -0800, Azher: > > > Hi Heasley, > > > > > > [rancid at rancid ~]$ rivrancid -d -t enterasys cal-7100-1 > > > executing rivlogin -t 90 -c"system show uptime;system show version;system > > > show hardware;system show active-config" cal-7100-1 > > > cal-7100-1: missed cmd(s): all commands > > > cal-7100-1: End of run not found > > > cal-7100-1: clean_run is false > > > > > > These commands starting with "system" does not work on the Enterasys > > > switches. > > > > is it an oem of someone else's box? or a completely new enterasys > > o/s? > > > > > Thanks > > > -Azher > > > > > > > > > > > > On Tue, Jan 2, 2018 at 3:27 PM, heasley wrote: > > > > > > > Thu, Dec 28, 2017 at 06:08:57PM -0800, Azher: > > > > > Hi Chris, > > > > > > > > > > I added following lines in the "rancid.types.base " otherwise there > > is > > > > just > > > > > a reference of enterasys to rivrancid. > > > > > > > > > > enterasys;script;xrancid > > > > > enterasys;login;xlogin > > > > > enterasys;command;enterasys::ShowVersion;show version > > > > > enterasys;command;enterasys::WriteTerm;show config > > > > > > > > you should not need that; there is already an entry in > > rancid.types.base > > > > for this device type - use that. > > > > > > > > > Running in debug mode: > > > > > > > > > > [rancid at rancid ~/etc]$ rancid -d -t enterasys cal3-n7 > > > > > loadtype: device type enterasys > > > > > loadtype: found device type enterasys in > > /opt/rancid/etc/rancid.types. > > > > base > > > > > loadtype: undefined function in enterasys: enterasys::ShowVersion > > > > > Couldn't load device type spec for enterasys > > > > > > > > > > I am not sure why it is complaining because xrancid does have this > > > > function > > > > > defined: > > > > > > > > > > # This routine parses "show version" > > > > > sub ShowVersion { > > > > > print STDERR " In ShowVersion: $_" if ($debug); > > > > > > > > > > And in the main routine: > > > > > > > > > > # Main > > > > > @commandtable = ( > > > > > {'show version' => 'ShowVersion'}, > > > > > ### {'show memory' => 'ShowMemory'}, > > > > > ### {'show diag' => 'ShowDiag'}, > > > > > ### {'show switch' => 'ShowSwitch'}, > > > > > ### {'show slot' => 'ShowSlot'}, > > > > > # way too confusing {'show configuration detail' => > > 'WriteTerm'}, > > > > > {'show config' => 'WriteTerm'}, > > > > > ); > > > > > > > > > > Trying rivrancid also complains about no commands: > > > > > > > > > > [rancid at rancid ~]$ rivrancid -d cal3-n7 > > > > > executing rivlogin -t 90 -c"system show uptime;system show > > version;system > > > > > show hardware;system show active-config" cal3-n7 > > > > > > > > manually run the rivlogin command that is there to see if there is a > > > > failure in that login script. > > > > > > > > > cal3-n7: missed cmd(s): all commands > > > > > cal3-n7: End of run not found > > > > > cal3-n7: clean_run is false > > > > > ! > > > > > > > > > > Thanks > > > > > -Azher > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Dec 28, 2017 at 2:39 PM, Gauthier, Chris < > > cgauthier at comscore.com > > > > > > > > > > wrote: > > > > > > > > > > > I would take a look at the rancid types file to make sure it?s > > running > > > > the > > > > > > commands you need. It seems like it?s throwing up in the very > > > > beginning of > > > > > > its run. > > > > > > > > > > > > > > > > > > > > > > > > There are several emails in the list on how to get into a > > ?debugging? > > > > mode > > > > > > if you?re not already familiar. That will help completely isolate > > the > > > > > > issue. > > > > > > > > > > > > > > > > > > > > > > > > --Chris > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Chris Gauthier Senior Network Engineer | comScore, Inc. > > > > > > t +1 *(503) 331-2704* <(503)%20331-2704> | > > > > > > *cgauthier at comscore.com* > > > > > > 317 > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > SW > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > Alder > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > Street, > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > Suite > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > 700 > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > | > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > Portland, > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > OR > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > 97204 > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > United > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > States > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > *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 Azher > > > > > > *Date: *Thursday, December 28, 2017 at 2:26 PM > > > > > > *To: *"rancid-discuss at shrubbery.net" > > > > > > > > *Subject: *[rancid] Enterasys Switches help > > > > > > > > > > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have a large deployment of different Enterasys switches > > > > > > (S,K,B,C,D,7100). It seems rancid is not happy with these switches > > > > somehow. > > > > > > > > > > > > > > > > > > > > > > > > clogin to the same device successfully logs into the switch and > > gives > > > > > > prompt and I can type the commands. > > > > > > > > > > > > > > > > > > > > > > > > When trying "rancid-run -r cal3-n7", the log file throws this > > error: > > > > > > > > > > > > > > > > > > > > > > > > [rancid at rancid ~/var/logs]$ tail -f extreme.20171228.113653 > > > > > > > > > > > > starting: Thu Dec 28 11:36:53 PST 2017 > > > > > > > > > > > > Trying to get all of the configs. > > > > > > > > > > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > > > > > cal3-n7: missed cmd(s): show version,show config > > > > > > cal3-n7: End of run not found > > > > > > # > > > > > > ===================================== > > > > > > Getting missed routers: round 1. > > > > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > > > > > cal3-n7: missed cmd(s): show version,show config > > > > > > cal3-n7: End of run not found > > > > > > # > > > > > > All routers successfully completed. > > > > > > > > > > > > cvs diff: Diffing . > > > > > > cvs diff: Diffing configs > > > > > > cvs commit: Examining . > > > > > > cvs commit: Examining configs > > > > > > --------------- > > > > > > > > > > > > Here is the config section: > > > > > > [rancid at rancid ~/var/extreme]$ more router.db | grep cal3-n7 > > > > > > cal3-n7;enterasys;up > > > > > > > > > > > > # Extreme Switches > > > > > > add user cal3-n7 admin > > > > > > add autoenable cal3-n7 1 > > > > > > add password cal3-n7 xxxxxxxxxxxx > > > > > > add method cal3-n7 ssh > > > > > > > > > > > > I have gone through some of the scripts which are in the mailing > > list, > > > > > > tried them, but no luck. > > > > > > > > > > > > > > > > > > > > > > > > Any one has experience with Enterasys devices ? Any working scripts > > > > would > > > > > > greatly help. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > -Azher > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Rancid-discuss mailing list > > > > > Rancid-discuss at shrubbery.net > > > > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > > > > > > From azheramin at gmail.com Fri Jan 5 21:25:46 2018 From: azheramin at gmail.com (Azher) Date: Fri, 05 Jan 2018 21:25:46 +0000 Subject: [rancid] Enterasys Switches help In-Reply-To: <20180105212405.GC37568@shrubbery.net> References: <8C552B28-B543-441B-8FF7-F47E3B8A51B0@comscore.com> <20180102232707.GL84720@shrubbery.net> <20180104231936.GE32712@shrubbery.net> <20180105212405.GC37568@shrubbery.net> Message-ID: Yes, they are. All have the same command set (mostly). Azher On Fri, Jan 5, 2018, 1:24 PM heasley wrote: > Thu, Jan 04, 2018 at 03:43:50PM -0800, Azher: > > This is Enterasys "71K11L4-48" switch. It has the same CLI and commands > > like the other S/N/K series switches. > > S/N/K are other Enterasys boxes? > > > Some commands are: > > > > show version > > show config > > show system hardware > > > > -Azher > > > > > > > > On Thu, Jan 4, 2018 at 3:19 PM, heasley wrote: > > > > > Thu, Jan 04, 2018 at 01:38:15PM -0800, Azher: > > > > Hi Heasley, > > > > > > > > [rancid at rancid ~]$ rivrancid -d -t enterasys cal-7100-1 > > > > executing rivlogin -t 90 -c"system show uptime;system show > version;system > > > > show hardware;system show active-config" cal-7100-1 > > > > cal-7100-1: missed cmd(s): all commands > > > > cal-7100-1: End of run not found > > > > cal-7100-1: clean_run is false > > > > > > > > These commands starting with "system" does not work on the Enterasys > > > > switches. > > > > > > is it an oem of someone else's box? or a completely new enterasys > > > o/s? > > > > > > > Thanks > > > > -Azher > > > > > > > > > > > > > > > > On Tue, Jan 2, 2018 at 3:27 PM, heasley wrote: > > > > > > > > > Thu, Dec 28, 2017 at 06:08:57PM -0800, Azher: > > > > > > Hi Chris, > > > > > > > > > > > > I added following lines in the "rancid.types.base " otherwise > there > > > is > > > > > just > > > > > > a reference of enterasys to rivrancid. > > > > > > > > > > > > enterasys;script;xrancid > > > > > > enterasys;login;xlogin > > > > > > enterasys;command;enterasys::ShowVersion;show version > > > > > > enterasys;command;enterasys::WriteTerm;show config > > > > > > > > > > you should not need that; there is already an entry in > > > rancid.types.base > > > > > for this device type - use that. > > > > > > > > > > > Running in debug mode: > > > > > > > > > > > > [rancid at rancid ~/etc]$ rancid -d -t enterasys cal3-n7 > > > > > > loadtype: device type enterasys > > > > > > loadtype: found device type enterasys in > > > /opt/rancid/etc/rancid.types. > > > > > base > > > > > > loadtype: undefined function in enterasys: enterasys::ShowVersion > > > > > > Couldn't load device type spec for enterasys > > > > > > > > > > > > I am not sure why it is complaining because xrancid does have > this > > > > > function > > > > > > defined: > > > > > > > > > > > > # This routine parses "show version" > > > > > > sub ShowVersion { > > > > > > print STDERR " In ShowVersion: $_" if ($debug); > > > > > > > > > > > > And in the main routine: > > > > > > > > > > > > # Main > > > > > > @commandtable = ( > > > > > > {'show version' => 'ShowVersion'}, > > > > > > ### {'show memory' => 'ShowMemory'}, > > > > > > ### {'show diag' => 'ShowDiag'}, > > > > > > ### {'show switch' => 'ShowSwitch'}, > > > > > > ### {'show slot' => 'ShowSlot'}, > > > > > > # way too confusing {'show configuration detail' => > > > 'WriteTerm'}, > > > > > > {'show config' => 'WriteTerm'}, > > > > > > ); > > > > > > > > > > > > Trying rivrancid also complains about no commands: > > > > > > > > > > > > [rancid at rancid ~]$ rivrancid -d cal3-n7 > > > > > > executing rivlogin -t 90 -c"system show uptime;system show > > > version;system > > > > > > show hardware;system show active-config" cal3-n7 > > > > > > > > > > manually run the rivlogin command that is there to see if there is > a > > > > > failure in that login script. > > > > > > > > > > > cal3-n7: missed cmd(s): all commands > > > > > > cal3-n7: End of run not found > > > > > > cal3-n7: clean_run is false > > > > > > ! > > > > > > > > > > > > Thanks > > > > > > -Azher > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Dec 28, 2017 at 2:39 PM, Gauthier, Chris < > > > cgauthier at comscore.com > > > > > > > > > > > > wrote: > > > > > > > > > > > > > I would take a look at the rancid types file to make sure it?s > > > running > > > > > the > > > > > > > commands you need. It seems like it?s throwing up in the very > > > > > beginning of > > > > > > > its run. > > > > > > > > > > > > > > > > > > > > > > > > > > > > There are several emails in the list on how to get into a > > > ?debugging? > > > > > mode > > > > > > > if you?re not already familiar. That will help completely > isolate > > > the > > > > > > > issue. > > > > > > > > > > > > > > > > > > > > > > > > > > > > --Chris > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Chris Gauthier Senior Network Engineer | comScore, Inc. > > > > > > > t +1 *(503) 331-2704* <(503)%20331-2704> | > > > > > > > *cgauthier at comscore.com* > > > > > > > 317 > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > SW > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > Alder > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > Street, > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > Suite > > > > > > > > > > > A0Street,%C2%A > > 0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > 700 > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > | > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > Portland, > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > OR > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > 97204 > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > United > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > States > > > > > > > > > > > A0Street,%C2%A0Suite%C2%A0700%C2%A0%7C%C2%A0Portland,%C2% > > > > > A0OR%C2%A097204%C2%A0%C2%A0United%C2%A0States&entry=gmail&source=g> > > > > > > > *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 Azher > > > > > > > *Date: *Thursday, December 28, 2017 at 2:26 PM > > > > > > > *To: *"rancid-discuss at shrubbery.net" < > rancid-discuss at shrubbery.net > > > > > > > > > > > *Subject: *[rancid] Enterasys Switches help > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have a large deployment of different Enterasys switches > > > > > > > (S,K,B,C,D,7100). It seems rancid is not happy with these > switches > > > > > somehow. > > > > > > > > > > > > > > > > > > > > > > > > > > > > clogin to the same device successfully logs into the switch and > > > gives > > > > > > > prompt and I can type the commands. > > > > > > > > > > > > > > > > > > > > > > > > > > > > When trying "rancid-run -r cal3-n7", the log file throws this > > > error: > > > > > > > > > > > > > > > > > > > > > > > > > > > > [rancid at rancid ~/var/logs]$ tail -f extreme.20171228.113653 > > > > > > > > > > > > > > starting: Thu Dec 28 11:36:53 PST 2017 > > > > > > > > > > > > > > Trying to get all of the configs. > > > > > > > > > > > > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > > > > > > cal3-n7: missed cmd(s): show version,show config > > > > > > > cal3-n7: End of run not found > > > > > > > # > > > > > > > ===================================== > > > > > > > Getting missed routers: round 1. > > > > > > > cal3-n7 xlogin error: Error: Unknown: "terminal" > > > > > > > cal3-n7: missed cmd(s): show version,show config > > > > > > > cal3-n7: End of run not found > > > > > > > # > > > > > > > All routers successfully completed. > > > > > > > > > > > > > > cvs diff: Diffing . > > > > > > > cvs diff: Diffing configs > > > > > > > cvs commit: Examining . > > > > > > > cvs commit: Examining configs > > > > > > > --------------- > > > > > > > > > > > > > > Here is the config section: > > > > > > > [rancid at rancid ~/var/extreme]$ more router.db | grep cal3-n7 > > > > > > > cal3-n7;enterasys;up > > > > > > > > > > > > > > # Extreme Switches > > > > > > > add user cal3-n7 admin > > > > > > > add autoenable cal3-n7 1 > > > > > > > add password cal3-n7 xxxxxxxxxxxx > > > > > > > add method cal3-n7 ssh > > > > > > > > > > > > > > I have gone through some of the scripts which are in the > mailing > > > list, > > > > > > > tried them, but no luck. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Any one has experience with Enterasys devices ? Any working > scripts > > > > > would > > > > > > > greatly help. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > -Azher > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > 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 adrian.dimitrov at efellows.bg Mon Jan 8 13:09:43 2018 From: adrian.dimitrov at efellows.bg (Adrian Dimitrov) Date: Mon, 8 Jan 2018 13:09:43 +0000 Subject: [rancid] Rancid for Cisco Catalyst Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F76DB327@exchanger.efellows.bg> Hello Team , I have several of these: Cisco Systems, Inc. WS-C2948G-GE-TX Cisco Catalyst Operating System Software, Version 8.3(2)GLX Copyright (c) 1995-2004 by Cisco Systems, Inc. Unfortunately cat5rancid script, doesn't work for these. Do anyone have a script for successfully backup these ? here is the Error I get: Trying to get all of the configs. 10.102.0.13: missed cmd(s): show boot, show flash, dir bootflash:, dir slot0:, dir slot1:, dir sup-bootflash:, dir sup-microcode:, show module, show inventory raw, show port ifindex, write term all, write term 10.102.0.13: End of run not found !Bootstrap: Version: 6.1(6) Best Regards, Adrian Dimitrov System Administrator [eFellows-Mark-RGB_Sign] Direct line: ; Mobile: +359 876 7744 41; SIP URI (Telepresence): adrian.dimitrov at efellows.bg ; Website: http://www.efellows.bg; -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 8632 bytes Desc: image001.png URL: From heas at shrubbery.net Mon Jan 8 17:30:04 2018 From: heas at shrubbery.net (heasley) Date: Mon, 8 Jan 2018 17:30:04 +0000 Subject: [rancid] Rancid for Cisco Catalyst In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F76DB327@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F76DB327@exchanger.efellows.bg> Message-ID: <20180108173003.GB33707@shrubbery.net> Mon, Jan 08, 2018 at 01:09:43PM +0000, Adrian Dimitrov: > Hello Team , > > I have several of these: > > Cisco Systems, Inc. WS-C2948G-GE-TX Cisco Catalyst Operating System Software, Version 8.3(2)GLX Copyright (c) 1995-2004 by Cisco Systems, Inc. > > Unfortunately cat5rancid script, doesn't work for these. Do anyone have a script for successfully backup these ? here is the Error I get: it should! granted catos is not something that I've touch in a decade, but it also probably hasnt changed in that time. Please see the debugging procedure in the rancid FAQ. > Trying to get all of the configs. > 10.102.0.13: missed cmd(s): show boot, show flash, dir bootflash:, dir slot0:, dir slot1:, dir sup-bootflash:, dir sup-microcode:, show module, show inventory raw, show port ifindex, write term all, write term > 10.102.0.13: End of run not found > !Bootstrap: Version: 6.1(6) > > Best Regards, > Adrian Dimitrov > System Administrator > [eFellows-Mark-RGB_Sign] > Direct line: ; Mobile: +359 876 7744 41; SIP URI (Telepresence): adrian.dimitrov at efellows.bg ; Website: http://www.efellows.bg; > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From daniel.schmidt at wyo.gov Tue Jan 9 16:11:28 2018 From: daniel.schmidt at wyo.gov (Daniel Schmidt) Date: Tue, 9 Jan 2018 09:11:28 -0700 Subject: [rancid] Rancid for Cisco Catalyst In-Reply-To: <20180108173003.GB33707@shrubbery.net> References: <490FA8C6CC4CDA44A7D3E449D75BF1F76DB327@exchanger.efellows.bg> <20180108173003.GB33707@shrubbery.net> Message-ID: I used to to use 2948's with rancid and they worked fine. Granted, that was a very long time ago, I'm surprised your switches have not failed. On Mon, Jan 8, 2018 at 10:30 AM, heasley wrote: > Mon, Jan 08, 2018 at 01:09:43PM +0000, Adrian Dimitrov: > > Hello Team , > > > > I have several of these: > > > > Cisco Systems, Inc. WS-C2948G-GE-TX Cisco Catalyst Operating System > Software, Version 8.3(2)GLX Copyright (c) 1995-2004 by Cisco Systems, Inc. > > > > Unfortunately cat5rancid script, doesn't work for these. Do anyone have > a script for successfully backup these ? here is the Error I get: > > it should! granted catos is not something that I've touch in a decade, but > it also probably hasnt changed in that time. Please see the debugging > procedure in the rancid FAQ. > > > Trying to get all of the configs. > > 10.102.0.13: missed cmd(s): show boot, show flash, dir bootflash:, dir > slot0:, dir slot1:, dir sup-bootflash:, dir sup-microcode:, show module, > show inventory raw, show port ifindex, write term all, write term > > 10.102.0.13: End of run not found > > !Bootstrap: Version: 6.1(6) > > > > Best Regards, > > Adrian Dimitrov > > System Administrator > > [eFellows-Mark-RGB_Sign] > > Direct line: ; Mobile: +359 876 7744 41; SIP URI (Telepresence): > adrian.dimitrov at efellows.bg ; > Website: http://www.efellows.bg; > > > > > > > _______________________________________________ > > 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 > -- E-Mail to and from me, in connection with the transaction of public business, is subject to the Wyoming Public Records Act and may be disclosed to third parties. -------------- next part -------------- An HTML attachment was scrubbed... URL: From network at acs-europe.de Thu Jan 11 11:02:35 2018 From: network at acs-europe.de (ACS Solutions Network) Date: Thu, 11 Jan 2018 11:02:35 +0000 Subject: [rancid] Howto setup Rancid with Git on Debian? Message-ID: <02b0bf24a8664951947a52548a01b965@acs-europe.de> Hello folks, i've searched the web, this list, contents in the package etc. but didn't find any up to date information on how to setup Rancid with Git on Debian. I've installed rancid via apt-get (rancid ver. 3.6.2-2) on Debian 9. Git is ver. 2.11. Any information on this would be appreciated! Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shouldbeq931 at gmail.com Thu Jan 11 12:37:54 2018 From: shouldbeq931 at gmail.com (shouldbe q931) Date: Thu, 11 Jan 2018 12:37:54 +0000 Subject: [rancid] Howto setup Rancid with Git on Debian? In-Reply-To: <02b0bf24a8664951947a52548a01b965@acs-europe.de> References: <02b0bf24a8664951947a52548a01b965@acs-europe.de> Message-ID: On Thu, Jan 11, 2018 at 11:02 AM, ACS Solutions Network wrote: > Hello folks, > > > > i?ve searched the web, this list, contents in the package etc. but didn?t > find any up to date information on how to setup Rancid with Git on Debian. > > > > I?ve installed rancid via apt-get (rancid ver. 3.6.2-2) on Debian 9. Git is > ver. 2.11. > <10 seconds with google found https://www.cryptomonkeys.com/2016/11/rancid-git/ http://opennodecloud.com/howto/2014/05/08/howto-about-rancid.html I do not know if the Debian packaged 3.6.2 includes git support. Cheers From heas at shrubbery.net Thu Jan 11 16:00:26 2018 From: heas at shrubbery.net (heasley) Date: Thu, 11 Jan 2018 16:00:26 +0000 Subject: [rancid] Howto setup Rancid with Git on Debian? In-Reply-To: References: <02b0bf24a8664951947a52548a01b965@acs-europe.de> Message-ID: <20180111160025.GA44027@shrubbery.net> Thu, Jan 11, 2018 at 12:37:54PM +0000, shouldbe q931: > On Thu, Jan 11, 2018 at 11:02 AM, ACS Solutions Network > wrote: > > Hello folks, > > > > > > > > i?ve searched the web, this list, contents in the package etc. but didn?t > > find any up to date information on how to setup Rancid with Git on Debian. > > > > > > > > I?ve installed rancid via apt-get (rancid ver. 3.6.2-2) on Debian 9. Git is > > ver. 2.11. > > > > <10 seconds with google found > > https://www.cryptomonkeys.com/2016/11/rancid-git/ > http://opennodecloud.com/howto/2014/05/08/howto-about-rancid.html > > I do not know if the Debian packaged 3.6.2 includes git support. I'd recommend using 3.7 for git. A minor fix for git, but will make it easier, IMO. From cgauthier at comscore.com Thu Jan 11 15:20:20 2018 From: cgauthier at comscore.com (Gauthier, Chris) Date: Thu, 11 Jan 2018 15:20:20 +0000 Subject: [rancid] Howto setup Rancid with Git on Debian? In-Reply-To: References: <02b0bf24a8664951947a52548a01b965@acs-europe.de> Message-ID: <56D575CA-AA15-4D6D-A03F-69DE6CA772D5@comscore.com> Whether its Debian or another distro, the basic setup is still the same. I did the same thing on CentOS. V3.6.2 has a bug when running the configure script. Check out: http://www.shrubbery.net/pipermail/rancid-discuss/2017-July/009735.html As for the Git part, rancid uses a local git server that it creates the folder structure for. Each rancid group is its gets own Git repo. The key is really the rancid config file. Set RCSSYS=?git? and it will do the heavy lifting. If you need the stuff to go to a remote repo, then you will need to make the local Git do blind commits to the remote repo. That?s something one of my server admins took care of, so I?m not sure exactly how he did it. Chris Chris Gauthier Senior Network Engineer | comScore, Inc. t +1 (503) 331-2704 | cgauthier at comscore.com 317 SW Alder Street, Suite 700 | Portland, OR 97204 United States 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: Rancid-discuss on behalf of shouldbe q931 Date: Thursday, January 11, 2018 at 4:46 AM To: ACS Solutions Network Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Howto setup Rancid with Git on Debian? On Thu, Jan 11, 2018 at 11:02 AM, ACS Solutions Network wrote: > Hello folks, > > > > i?ve searched the web, this list, contents in the package etc. but didn?t > find any up to date information on how to setup Rancid with Git on Debian. > > > > I?ve installed rancid via apt-get (rancid ver. 3.6.2-2) on Debian 9. Git is > ver. 2.11. > <10 seconds with google found https://www.cryptomonkeys.com/2016/11/rancid-git/ http://opennodecloud.com/howto/2014/05/08/howto-about-rancid.html I do not know if the Debian packaged 3.6.2 includes git support. Cheers _______________________________________________ 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 Thu Jan 11 17:53:00 2018 From: heas at shrubbery.net (heasley) Date: Thu, 11 Jan 2018 17:53:00 +0000 Subject: [rancid] Howto setup Rancid with Git on Debian? In-Reply-To: <56D575CA-AA15-4D6D-A03F-69DE6CA772D5@comscore.com> References: <02b0bf24a8664951947a52548a01b965@acs-europe.de> <56D575CA-AA15-4D6D-A03F-69DE6CA772D5@comscore.com> Message-ID: <20180111175259.GC44027@shrubbery.net> Thu, Jan 11, 2018 at 03:20:20PM +0000, Gauthier, Chris: > As for the Git part, rancid uses a local git server that it creates the folder structure for. Each rancid group is its gets own Git repo. The key is really the rancid config file. Set RCSSYS=?git? and it will do the heavy lifting. If you need the stuff to go to a remote repo, then you will need to make the local Git do blind commits to the remote repo. That?s something one of my server admins took care of, so I?m not sure exactly how he did it. Add a remote to a given rancid group: https://help.github.com/articles/adding-a-remote/ add to the rancid-run cronjob, a 'git push newremote' cd ~rancid/group git remote add foo giturl ... rancid-run; cd ~rancid/group; git push foo add a second push destination (remote should not require auth) to origin and rancid will push to it each run. cd ~rancid/group git remote add foo giturl git remote set-url --add --push origin `git remote get-url --push origin` git remote set-url --add --push origin `git remote get-url --push foo` From cgauthier at comscore.com Thu Jan 11 19:14:53 2018 From: cgauthier at comscore.com (Gauthier, Chris) Date: Thu, 11 Jan 2018 19:14:53 +0000 Subject: [rancid] Howto setup Rancid with Git on Debian? In-Reply-To: <20180111175259.GC44027@shrubbery.net> References: <02b0bf24a8664951947a52548a01b965@acs-europe.de> <56D575CA-AA15-4D6D-A03F-69DE6CA772D5@comscore.com> <20180111175259.GC44027@shrubbery.net> Message-ID: <0341CABB-C680-4541-8DBE-67B345A272AA@comscore.com> In my environment, we did it slightly differently. My environment was this: /var/rancid/rancid is a working local git checkout /var/rancid/git/rancid is the local git 'master' /var/rancid/git/rancid/hooks/post-receive has what you're looking for: user at host# cat post-receive #!/bin/bash # --------------------------------------------- # keep remote git copy up to date # --------------------------------------------- /usr/bin/git push -u To make that work, you must run this command to add the remote: git remote add Docs for the remote add are at https://help.github.com/articles/adding-a-remote/. --Chris Chris Gauthier Senior Network Engineer | comScore, Inc. t +1 (503) 331-2704 | cgauthier at comscore.com 317 SW Alder Street, Suite 700 | Portland, OR 97204 United States 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: heasley Date: Thursday, January 11, 2018 at 9:53 AM To: "Gauthier, Chris" Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Howto setup Rancid with Git on Debian? Thu, Jan 11, 2018 at 03:20:20PM +0000, Gauthier, Chris: > As for the Git part, rancid uses a local git server that it creates the folder structure for. Each rancid group is its gets own Git repo. The key is really the rancid config file. Set RCSSYS=?git? and it will do the heavy lifting. If you need the stuff to go to a remote repo, then you will need to make the local Git do blind commits to the remote repo. That?s something one of my server admins took care of, so I?m not sure exactly how he did it. Add a remote to a given rancid group: https://help.github.com/articles/adding-a-remote/ add to the rancid-run cronjob, a 'git push newremote' cd ~rancid/group git remote add foo giturl ... rancid-run; cd ~rancid/group; git push foo add a second push destination (remote should not require auth) to origin and rancid will push to it each run. cd ~rancid/group git remote add foo giturl git remote set-url --add --push origin `git remote get-url --push origin` git remote set-url --add --push origin `git remote get-url --push foo` -------------- next part -------------- An HTML attachment was scrubbed... URL: From ko at sv01.de Sun Jan 14 22:34:04 2018 From: ko at sv01.de (Kevin Olbrich) Date: Sun, 14 Jan 2018 23:34:04 +0100 Subject: [rancid] Commit loop for HP2920 "show time" WB_16_05_0004 Message-ID: Hi! With WB_16_05_0004 from december, HP switches will enter backup config loop because output of "show tech transceivers" now shows the current time: ;Cmd Info : show tech transceivers > ;transceivers > ;Transceiver: > ; Port # | Type | Prod # | Serial # | Part # > ; -------+-----------+------------+------------------+---------- > ; A1 | SFP+DA1 | J9281B | CN5AFRM134 | 8121-1300 > ; A2 | SFP+DA1 | J9281B | CN5AFRM0WP | 8121-1300 > ;show time > ;Sun Jan 14 23:20:16 2018 > ;=== The command has completed successfully. === How can I fix this in rancid? It would be possible to disable this output in "hrancid.in" but this is no solution (HP might add timestamp to all outputs). Kind regards, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Mon Jan 15 17:22:39 2018 From: heas at shrubbery.net (heasley) Date: Mon, 15 Jan 2018 17:22:39 +0000 Subject: [rancid] Commit loop for HP2920 "show time" WB_16_05_0004 In-Reply-To: References: Message-ID: <20180115172239.GG52167@shrubbery.net> Sun, Jan 14, 2018 at 11:34:04PM +0100, Kevin Olbrich: > Hi! > > With WB_16_05_0004 from december, HP switches will enter backup config loop > because output of "show tech transceivers" now shows the current time: > > ;Cmd Info : show tech transceivers > > ;transceivers > > ;Transceiver: > > ; Port # | Type | Prod # | Serial # | Part # > > ; -------+-----------+------------+------------------+---------- > > ; A1 | SFP+DA1 | J9281B | CN5AFRM134 | 8121-1300 > > ; A2 | SFP+DA1 | J9281B | CN5AFRM0WP | 8121-1300 > > ;show time > > ;Sun Jan 14 23:20:16 2018 > > ;=== The command has completed successfully. === > > > How can I fix this in rancid? It would be possible to disable this output > in "hrancid.in" but this is no solution (HP might add timestamp to all > outputs). Would you show me the output of this command, from the prompt with the command to the following prompt and including the prompts? or the output of hrancid -c 'show tech transceivers' hostname From mnewton at pofp.com Mon Jan 15 17:54:25 2018 From: mnewton at pofp.com (Michael Newton) Date: Mon, 15 Jan 2018 09:54:25 -0800 Subject: [rancid] Commit loop for HP2920 "show time" WB_16_05_0004 In-Reply-To: <20180115172239.GG52167@shrubbery.net> References: <20180115172239.GG52167@shrubbery.net> Message-ID: *New software:* Victoria-Switch1# show tech transceivers Cmd Info : show tech transceivers transceivers Transceiver Technical Information: Port # | Type | Prod # | Serial # | Part # -------+-----------+------------+------------------+---------- show time Mon Jan 15 09:52:26 2018 === The command has completed successfully. === Victoria-Switch1# *Old software:* Victoria-Switch1# show tech transceivers transceivers Transceiver Technical Information: Port # | Type | Prod # | Serial # | Part # -------+-----------+------------+------------------+---------- === The command has completed successfully. === Victoria-Switch1# On 15 January 2018 at 09:22, heasley wrote: > Sun, Jan 14, 2018 at 11:34:04PM +0100, Kevin Olbrich: > > Hi! > > > > With WB_16_05_0004 from december, HP switches will enter backup config > loop > > because output of "show tech transceivers" now shows the current time: > > > > ;Cmd Info : show tech transceivers > > > ;transceivers > > > ;Transceiver: > > > ; Port # | Type | Prod # | Serial # | Part # > > > ; -------+-----------+------------+------------------+---------- > > > ; A1 | SFP+DA1 | J9281B | CN5AFRM134 | 8121-1300 > > > ; A2 | SFP+DA1 | J9281B | CN5AFRM0WP | 8121-1300 > > > ;show time > > > ;Sun Jan 14 23:20:16 2018 > > > ;=== The command has completed successfully. === > > > > > > How can I fix this in rancid? It would be possible to disable this output > > in "hrancid.in" but this is no solution (HP might add timestamp to all > > outputs). > > Would you show me the output of this command, from the prompt with the > command to the following prompt and including the prompts? or the > output of > hrancid -c 'show tech transceivers' hostname > > _______________________________________________ > 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 Thomas.Eichhorn at klinikum-nuernberg.de Fri Jan 19 08:19:40 2018 From: Thomas.Eichhorn at klinikum-nuernberg.de (Eichhorn, Thomas) Date: Fri, 19 Jan 2018 08:19:40 +0000 Subject: [rancid] rancid 3.7 and HP 1910-8G - can't get rancid to work with that router In-Reply-To: References: <20171211151235.GD98309@shrubbery.net> Message-ID: Not quite sure what's wrong with my configuration / scripts / login: My rancid.types.conf contains > #h3c products > h3c;script;h3crancid > h3c;login;h3clogin But I'm not sure if I'm even using the right login script because I get some errors using this script. I've tried to login with 'h3clogin DEVICE' and got following errors: > undo terminal monitor > ^ > % Unrecognized command found at '^' position. > screen-length disable > ^ > % Unrecognized command found at '^' position. With 'clogin DEVICE' there are no error messages. Debugging with > env NOPIPE=YES PATH=${PATH}:/usr/local/rancid/bin rancid -t h3c -d DEVICE raises the same errors. I could not test the newer version of 'h3crancid' (which Jethro provided me) because I get an error > exec(h3crancid) failed router manufacturer h3c: No such file or directory File access rights are the same as the original 'h3crancid' file. Any advice? Best regards, Thomas ________________________________ Klinikum N?rnberg, Sitz: N?rnberg, Amtsgericht N?rnberg -Registergericht- HRA 14190, Vorstand: Prof. Dr. Achim Jockwig (Vorsitzender), Dr. Andreas Becke, Univ.-Prof. Dr. Dr. Gu?nter Niklewski, Peter Schuh From ilan at bond.co Thu Jan 18 21:43:41 2018 From: ilan at bond.co (ilan at bond.co) Date: Thu, 18 Jan 2018 13:43:41 -0800 (PST) Subject: [rancid] Cisco wireless controller backup with rancid Message-ID: Hi All, I have rancid 3.3 up and running with ubuntu 16.04.3. I am able to backup switches and even login to the cisco wireless controller via ssh using the command: /usr/lib/rancid/bin/clogin -f /var/lib/rancid/.cloginrc x.x.x.x However, whenever that i am running rancid to backup the configuration, nothing happens and i cvsweb is not presetting the config. Switches are backing up ok. I have cisclwlc5 script in /usr/lib/rancid/bin folder. I am able to get some details about the error from the latest config that rancid is trying to download and it's telling me: Trying to get all of the configs. Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at /usr/lib/rancid/bin/ciscowlc5 line 48. ===================================== Getting missed routers: round 1. Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at /usr/lib/rancid/bin/ciscowlc5 line 48. ===================================== Getting missed routers: round 2. Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at /usr/lib/rancid/bin/ciscowlc5 line 48. ===================================== Getting missed routers: round 3. Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at /usr/lib/rancid/bin/ciscowlc5 line 48. ===================================== Getting missed routers: round 4. Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at /usr/lib/rancid/bin/ciscowlc5 line 48 But if i comment that line more errors are showing up. Anything else i need to check? -- *Confidentiality Notice: The information contained in this communication and any attached documentation may be privileged, confidential or otherwise protected from disclosure, and is intended only for the use of the designated recipient(s). It is not intended for transmission to, or receipt by, any unauthorized person. The use, distribution, transmittal or re-transmittal by an unintended recipient of this communication is strictly prohibited. If you are not the intended recipient of this email, please destroy it without copying it and notify the above sender.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From weylin at bu.edu Sat Jan 20 03:33:06 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Sat, 20 Jan 2018 03:33:06 +0000 Subject: [rancid] Unable to Conduct Cisco Wireless Controller Backup In-Reply-To: References: Message-ID: Hello, I?m running rancid v3.4.1. I have a number of Cisco WISM2 controller running 8.2.166.0. rancid is not able to acquire any of their configs. I?ve tried various types in router.db: cisco-wlc4, cisco-wlc5, and cisco, none of them work. The logs, copied below, show the results of cisco-wlc5 (all controllers were identical, I?ve trimmed down to just one). What could be causing this? Why would the results vary across the five rounds? And, which type should I be using? weylin [rancid at nsgv-prod-59 logs]$ cat wireless.20180119.142501 starting: Fri Jan 19 14:25:01 EST 2018 Trying to get all of the configs. controller: missed cmd(s): show run-config commands controller: End of run not found !WLC Show Sysinfo End ===================================== Getting missed routers: round 1. controller: missed cmd(s): all commands controller wlogin error: Error: Connection closed (ssh): controller controller: End of run not found ===================================== Getting missed routers: round 2. controller: missed cmd(s): show run-config commands controller: End of run not found ===================================== Getting missed routers: round 3. controller: missed cmd(s): all commands controller wlogin error: Error: TIMEOUT reached controller: End of run not found ! ===================================== Getting missed routers: round 4. controller: missed cmd(s): show run-config commands controller: End of run not found !WLC Show Sysinfo End cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Fri Jan 19 14:39:59 EST 2018 [rancid at nsgv-prod-59 logs]$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.schmidt at wyo.gov Sun Jan 21 05:17:04 2018 From: daniel.schmidt at wyo.gov (Daniel Schmidt) Date: Sat, 20 Jan 2018 22:17:04 -0700 Subject: [rancid] Unable to Conduct Cisco Wireless Controller Backup In-Reply-To: References: Message-ID: Can you login with wlogin? On Fri, Jan 19, 2018 at 8:33 PM, Piegorsch, Weylin William wrote: > Hello, > > > > I?m running rancid v3.4.1. I have a number of Cisco WISM2 controller > running 8.2.166.0. rancid is not able to acquire any of their configs. > I?ve tried various types in router.db: cisco-wlc4, cisco-wlc5, and cisco, > none of them work. The logs, copied below, show the results of cisco-wlc5 > (all controllers were identical, I?ve trimmed down to just one). What > could be causing this? Why would the results vary across the five rounds? > And, which type should I be using? > > > > weylin > > > > > > [rancid at nsgv-prod-59 logs]$ cat wireless.20180119.142501 > > starting: Fri Jan 19 14:25:01 EST 2018 > > > > > > > > Trying to get all of the configs. > > controller: missed cmd(s): show run-config commands > > controller: End of run not found > > !WLC Show Sysinfo End > > ===================================== > > Getting missed routers: round 1. > > controller: missed cmd(s): all commands > > controller wlogin error: Error: Connection closed (ssh): controller > > controller: End of run not found > > ===================================== > > Getting missed routers: round 2. > > controller: missed cmd(s): show run-config commands > > controller: End of run not found > > ===================================== > > Getting missed routers: round 3. > > controller: missed cmd(s): all commands > > controller wlogin error: Error: TIMEOUT reached > > controller: End of run not found > > ! > > ===================================== > > Getting missed routers: round 4. > > controller: missed cmd(s): show run-config commands > > controller: End of run not found > > !WLC Show Sysinfo End > > > > cvs diff: Diffing . > > cvs diff: Diffing configs > > cvs commit: Examining . > > cvs commit: Examining configs > > > > ending: Fri Jan 19 14:39:59 EST 2018 > > [rancid at nsgv-prod-59 logs]$ > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- E-Mail to and from me, in connection with the transaction of public business, is subject to the Wyoming Public Records Act and may be disclosed to third parties. -------------- next part -------------- An HTML attachment was scrubbed... URL: From weylin at bu.edu Sun Jan 21 05:43:23 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Sun, 21 Jan 2018 05:43:23 +0000 Subject: [rancid] Unable to Conduct Cisco Wireless Controller Backup In-Reply-To: References: Message-ID: <8EA84DFC-11E4-4CB5-8C86-AC064F6BD0BF@bu.edu> I just tried five times on three different controllers; I got 100% success. weylin From: Daniel Schmidt Date: Sunday, January 21, 2018 at 00:17 To: Weylin Piegorsch Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Unable to Conduct Cisco Wireless Controller Backup Can you login with wlogin? On Fri, Jan 19, 2018 at 8:33 PM, Piegorsch, Weylin William > wrote: Hello, I?m running rancid v3.4.1. I have a number of Cisco WISM2 controller running 8.2.166.0. rancid is not able to acquire any of their configs. I?ve tried various types in router.db: cisco-wlc4, cisco-wlc5, and cisco, none of them work. The logs, copied below, show the results of cisco-wlc5 (all controllers were identical, I?ve trimmed down to just one). What could be causing this? Why would the results vary across the five rounds? And, which type should I be using? weylin [rancid at nsgv-prod-59 logs]$ cat wireless.20180119.142501 starting: Fri Jan 19 14:25:01 EST 2018 Trying to get all of the configs. controller: missed cmd(s): show run-config commands controller: End of run not found !WLC Show Sysinfo End ===================================== Getting missed routers: round 1. controller: missed cmd(s): all commands controller wlogin error: Error: Connection closed (ssh): controller controller: End of run not found ===================================== Getting missed routers: round 2. controller: missed cmd(s): show run-config commands controller: End of run not found ===================================== Getting missed routers: round 3. controller: missed cmd(s): all commands controller wlogin error: Error: TIMEOUT reached controller: End of run not found ! ===================================== Getting missed routers: round 4. controller: missed cmd(s): show run-config commands controller: End of run not found !WLC Show Sysinfo End cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Fri Jan 19 14:39:59 EST 2018 [rancid at nsgv-prod-59 logs]$ _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss E-Mail to and from me, in connection with the transaction of public business, is subject to the Wyoming Public Records Act and may be disclosed to third parties. -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Mon Jan 22 15:16:50 2018 From: heas at shrubbery.net (heasley) Date: Mon, 22 Jan 2018 15:16:50 +0000 Subject: [rancid] Unable to Conduct Cisco Wireless Controller Backup In-Reply-To: <20180122151528.F162D8FD22@sea.shrubbery.net> <8EA84DFC-11E4-4CB5-8C86-AC064F6BD0BF@bu.edu> Message-ID: <20180122151650.GE5283@shrubbery.net> Sun, Jan 21, 2018 at 05:43:23AM +0000, Piegorsch, Weylin William: > I?m running rancid v3.4.1. I have a number of Cisco WISM2 controller running 8.2.166.0. rancid is not able to acquire any of their configs. I?ve tried various types in router.db: cisco-wlc4, cisco-wlc5, and cisco, none of them work. The logs, copied below, show the results of cisco-wlc5 (all controllers were identical, I?ve trimmed down to just one). What could be causing this? Why would the results vary across the five rounds? And, which type should I be using? > > weylin does the patch below fix it? the patch is against HEAD, so there may be some fuzz. > [rancid at nsgv-prod-59 logs]$ cat wireless.20180119.142501 > starting: Fri Jan 19 14:25:01 EST 2018 > > > > Trying to get all of the configs. > controller: missed cmd(s): show run-config commands > controller: End of run not found > !WLC Show Sysinfo End > ===================================== > Getting missed routers: round 1. > controller: missed cmd(s): all commands > controller wlogin error: Error: Connection closed (ssh): controller > controller: End of run not found > ===================================== > Getting missed routers: round 2. > controller: missed cmd(s): show run-config commands > controller: End of run not found > ===================================== > Getting missed routers: round 3. > controller: missed cmd(s): all commands > controller wlogin error: Error: TIMEOUT reached > controller: End of run not found > ! > ===================================== > Getting missed routers: round 4. > controller: missed cmd(s): show run-config commands > controller: End of run not found > !WLC Show Sysinfo End > > cvs diff: Diffing . > cvs diff: Diffing configs > cvs commit: Examining . > cvs commit: Examining configs > > ending: Fri Jan 19 14:39:59 EST 2018 > [rancid at nsgv-prod-59 logs]$ Index: lib/ciscowlc.pm.in =================================================================== --- lib/ciscowlc.pm.in (revision 3739) +++ lib/ciscowlc.pm.in (revision 3740) @@ -42,7 +42,7 @@ TOP: while(<$INPUT>) { tr/\015//d; - if (/^.*logout(Connection.*closed.)?$/) { + if (/^.*logout(\s*Connection.*closed.)?$/) { $clean_run = 1; last; } Index: CHANGES =================================================================== --- CHANGES (revision 3739) +++ CHANGES (revision 3740) @@ -1,4 +1,6 @@ 3.99.99 + ciscowlc.pm: handle variant of logout bug + fnrancid: update md5-keys filter for Fortigate 5.4.6 sros.pm: move show chassis power-supply o/p - Greg Hankins From weylin at bu.edu Mon Jan 22 18:01:04 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Mon, 22 Jan 2018 18:01:04 +0000 Subject: [rancid] Unable to Conduct Cisco Wireless Controller Backup In-Reply-To: <20180122151650.GE5283@shrubbery.net> References: <20180122151528.F162D8FD22@sea.shrubbery.net> <8EA84DFC-11E4-4CB5-8C86-AC064F6BD0BF@bu.edu> <20180122151650.GE5283@shrubbery.net> Message-ID: <80F727C1-7252-49B0-9ED2-C192CC18B935@bu.edu> Thanks for the patch. I can?t test today, but I'll try it out tomorrow or Wednesday. If it doesn?t work, I'll also try with -d and NOPIPE=yes... forgot about that until now. weylin ?-----Original Message----- From: heasley Date: Monday, January 22, 2018 at 10:17 To: Weylin Piegorsch Cc: Daniel Schmidt , "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Unable to Conduct Cisco Wireless Controller Backup Sun, Jan 21, 2018 at 05:43:23AM +0000, Piegorsch, Weylin William: > I?m running rancid v3.4.1. I have a number of Cisco WISM2 controller running 8.2.166.0. rancid is not able to acquire any of their configs. I?ve tried various types in router.db: cisco-wlc4, cisco-wlc5, and cisco, none of them work. The logs, copied below, show the results of cisco-wlc5 (all controllers were identical, I?ve trimmed down to just one). What could be causing this? Why would the results vary across the five rounds? And, which type should I be using? > > weylin does the patch below fix it? the patch is against HEAD, so there may be some fuzz. > [rancid at nsgv-prod-59 logs]$ cat wireless.20180119.142501 > starting: Fri Jan 19 14:25:01 EST 2018 > > > > Trying to get all of the configs. > controller: missed cmd(s): show run-config commands > controller: End of run not found > !WLC Show Sysinfo End > ===================================== > Getting missed routers: round 1. > controller: missed cmd(s): all commands > controller wlogin error: Error: Connection closed (ssh): controller > controller: End of run not found > ===================================== > Getting missed routers: round 2. > controller: missed cmd(s): show run-config commands > controller: End of run not found > ===================================== > Getting missed routers: round 3. > controller: missed cmd(s): all commands > controller wlogin error: Error: TIMEOUT reached > controller: End of run not found > ! > ===================================== > Getting missed routers: round 4. > controller: missed cmd(s): show run-config commands > controller: End of run not found > !WLC Show Sysinfo End > > cvs diff: Diffing . > cvs diff: Diffing configs > cvs commit: Examining . > cvs commit: Examining configs > > ending: Fri Jan 19 14:39:59 EST 2018 > [rancid at nsgv-prod-59 logs]$ Index: lib/ciscowlc.pm.in =================================================================== --- lib/ciscowlc.pm.in (revision 3739) +++ lib/ciscowlc.pm.in (revision 3740) @@ -42,7 +42,7 @@ TOP: while(<$INPUT>) { tr/\015//d; - if (/^.*logout(Connection.*closed.)?$/) { + if (/^.*logout(\s*Connection.*closed.)?$/) { $clean_run = 1; last; } Index: CHANGES =================================================================== --- CHANGES (revision 3739) +++ CHANGES (revision 3740) @@ -1,4 +1,6 @@ 3.99.99 + ciscowlc.pm: handle variant of logout bug + fnrancid: update md5-keys filter for Fortigate 5.4.6 sros.pm: move show chassis power-supply o/p - Greg Hankins From dan at intentionet.com Thu Jan 25 18:29:58 2018 From: dan at intentionet.com (Dan Halperin) Date: Thu, 25 Jan 2018 10:29:58 -0800 Subject: [rancid] RANCID licensing Message-ID: Hey folks, I noticed that the RANCID license [0] appears to be a modified BSD 4-clause [1]. We'd like to use some code derived from RANCID in an open source, Apache 2.0 licensed project. However, it appears that BSD 4-clause and Apache 2.0 licenses are incompatible. The Apache Software Foundation legal team has previously found that BSD 4-clause is incompatible with Apache 2.0 licensing [2], because of the advertising clause. IMO, though I am nothing like a lawyer, the Apache 2.0 NOTICES requirement is a good replacement for advertising clause that serves a similar purpose. I wonder if this issue has come up here before, and whether the RANCID copyright holders would consider relicensing under the BSD 2-Clause in order to enable broader use. Of course our project would be happy to call out RANCID in its README/etc. as well -- my main concern is putting an accurate license on our project and not placing undue burden on our transitive users. Thanks! Dan [0] http://rancid.shrubbery.net/rancid/svn/rancid/trunk/rancid/COPYING [1] https://spdx.org/licenses/BSD-4-Clause.html [2] https://www.apache.org/legal/resolved.html#category-x -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_zouhairy at skno.by Fri Jan 26 08:03:05 2018 From: m_zouhairy at skno.by (Vacheslav) Date: Fri, 26 Jan 2018 11:03:05 +0300 Subject: [rancid] does dancid support chinese switches? Message-ID: <001b01d3967c$18b0afe0$4a120fa0$@skno.by> Health be upon you, model name: DCS-3650-8C -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Jan 26 12:04:48 2018 From: heas at shrubbery.net (heasley) Date: Fri, 26 Jan 2018 12:04:48 +0000 Subject: [rancid] does dancid support chinese switches? In-Reply-To: <001b01d3967c$18b0afe0$4a120fa0$@skno.by> References: <001b01d3967c$18b0afe0$4a120fa0$@skno.by> Message-ID: <20180126120448.GA76974@shrubbery.net> Fri, Jan 26, 2018 at 11:03:05AM +0300, Vacheslav: > Health be upon you, > model name: DCS-3650-8C I've never seen one and it is not clear who the manufacturer is. But, it might; try it. Based on the behavior of the CLI, try the device type that most closely resembles the device. From m_zouhairy at skno.by Fri Jan 26 12:53:04 2018 From: m_zouhairy at skno.by (Vacheslav) Date: Fri, 26 Jan 2018 15:53:04 +0300 Subject: [rancid] does dancid support chinese switches? In-Reply-To: <20180126120448.GA76974@shrubbery.net> References: <001b01d3967c$18b0afe0$4a120fa0$@skno.by> <20180126120448.GA76974@shrubbery.net> Message-ID: <000801d396a4$9b4aa640$d1dff2c0$@skno.by> Wow it works, much thanks ! -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Friday, January 26, 2018 3:05 PM To: Vacheslav Cc: Rancid-discuss at shrubbery.net Subject: Re: [rancid] does dancid support chinese switches? Fri, Jan 26, 2018 at 11:03:05AM +0300, Vacheslav: > Health be upon you, > model name: DCS-3650-8C I've never seen one and it is not clear who the manufacturer is. But, it might; try it. Based on the behavior of the CLI, try the device type that most closely resembles the device. From doug.hughes at keystonenap.com Sat Jan 27 15:57:56 2018 From: doug.hughes at keystonenap.com (Doug Hughes) Date: Sat, 27 Jan 2018 10:57:56 -0500 Subject: [rancid] problem with new Aruba/HP 2920 Message-ID: <3af3aee3-e866-6bcc-0e71-c840bde92729@keystonenap.com> got a new HP/Aruba 2920 to replace an old failed 2910al (POE power supply failure - very common).. Weird thing is, hlogin doesn't work on it. I get an EOF right after trying to send enable and it tries to match the many stupid formatting characters that the Aruba folks have tried to put into the output. I have manually set the switch to vt100 terminal type and reloaded, but still it persists and it's loaded with those characters. I can't say definitively that they are the issue, but something sure is strange. I started looking into it and debugging and noticed all that. Also, clogin seems to work (aside from command incompatibility), but hlogin does not and gets an EOF prematurely. Anybody seen this? I did just upgraed to rancid3.7 from 3.4.1 to see if that would help, and it did not. Same behavior. From heas at shrubbery.net Sat Jan 27 16:23:34 2018 From: heas at shrubbery.net (heasley) Date: Sat, 27 Jan 2018 16:23:34 +0000 Subject: [rancid] problem with new Aruba/HP 2920 In-Reply-To: <3af3aee3-e866-6bcc-0e71-c840bde92729@keystonenap.com> References: <3af3aee3-e866-6bcc-0e71-c840bde92729@keystonenap.com> Message-ID: <20180127162333.GC16976@shrubbery.net> Sat, Jan 27, 2018 at 10:57:56AM -0500, Doug Hughes: > got a new HP/Aruba 2920 to replace an old failed 2910al (POE power > supply failure - very common).. Weird thing is, hlogin doesn't work on > it. I get an EOF right after trying to send enable and it tries to match > the many stupid formatting characters that the Aruba folks have tried to > put into the output. > > I have manually set the switch to vt100 terminal type and reloaded, but > still it persists and it's loaded with those characters. I can't say > definitively that they are the issue, but something sure is strange. I > started looking into it and debugging and noticed all that. Also, clogin > seems to work (aside from command incompatibility), but hlogin does not > and gets an EOF prematurely. > > Anybody seen this? I havent any of these. Have one that I can poke remotely? else, collect debug info from hlogin -d -c ... devicename > I did just upgraed to rancid3.7 from 3.4.1 to see if that would help, > and it did not. Same behavior. > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From doug.hughes at keystonenap.com Sat Jan 27 16:37:17 2018 From: doug.hughes at keystonenap.com (Doug Hughes) Date: Sat, 27 Jan 2018 11:37:17 -0500 Subject: [rancid] problem with new Aruba/HP 2920 In-Reply-To: <20180127162333.GC16976@shrubbery.net> References: <3af3aee3-e866-6bcc-0e71-c840bde92729@keystonenap.com> <20180127162333.GC16976@shrubbery.net> Message-ID: On 1/27/2018 11:23 AM, heasley wrote: > Sat, Jan 27, 2018 at 10:57:56AM -0500, Doug Hughes: >> got a new HP/Aruba 2920 to replace an old failed 2910al (POE power >> supply failure - very common).. Weird thing is, hlogin doesn't work on >> it. I get an EOF right after trying to send enable and it tries to match >> the many stupid formatting characters that the Aruba folks have tried to >> put into the output. >> >> I have manually set the switch to vt100 terminal type and reloaded, but >> still it persists and it's loaded with those characters. I can't say >> definitively that they are the issue, but something sure is strange. I >> started looking into it and debugging and noticed all that. Also, clogin >> seems to work (aside from command incompatibility), but hlogin does not >> and gets an EOF prematurely. >> >> Anybody seen this? > I havent any of these. Have one that I can poke remotely? else, collect > debug info from hlogin -d -c ... devicename since my post I have tracked it down to a segfault in hpuifilter. as soon as I type (or rancid sends) enable, it crashes in an memmove here: 420???????????????????? tlen = 0; 421???????????????????? tbuf[0] = '\0'; 422???????????????????? break; 423???????????????? } else if (bytes > 0) { 424???????????????????? tlen -= bytes; 425???????????????????? memmove(tbuf, tbuf + bytes, tlen + 1); 426???????????????????? if (tlen < 1) 427???????????????????????? pfds[1].events &= ~POLLOUT; 428???????????????? } 429???????????? } (gdb) (gdb) display tbuf 4: tbuf = "h\000[24;1H\000[24;1H\000[24;1H\000[24;1H\000[24;1H\000\033[24;1H\000[24;1H\000\062\064;1H\000[24;1H\000[24;1H\000;1H\000;17H\000\062\064;17H\000\062\064;17H\000\062\064;17H\000\062\064;17H\000\062\064;17H\000\062\064;17H\000[24;17H\000\062\064;17H\000\064;17H\000\062\064;17H\000\062\064;17H\000\061\067H\000\061\067H\000tandard commercial license.\r\n\r\n\000ns"... (gdb) display bytes 5: bytes = -556149 (gdb) display len No symbol "len" in current context. (gdb) display tlen 6: tlen = 936748722493063168 (gdb) somehow tlen get really, really big and that causes a wraparound which results in a negative size of bytes which causes memmove to segfault in hpuifilter. I'm trying to debug to see what I can see . From doug.hughes at keystonenap.com Sat Jan 27 17:15:11 2018 From: doug.hughes at keystonenap.com (Doug Hughes) Date: Sat, 27 Jan 2018 12:15:11 -0500 Subject: [rancid] problem with new Aruba/HP 2920 In-Reply-To: References: <3af3aee3-e866-6bcc-0e71-c840bde92729@keystonenap.com> <20180127162333.GC16976@shrubbery.net> Message-ID: <1eccf63a-342f-8f44-e426-7452ac19bd4f@keystonenap.com> On 1/27/2018 11:37 AM, Doug Hughes wrote: > > On 1/27/2018 11:23 AM, heasley wrote: >> Sat, Jan 27, 2018 at 10:57:56AM -0500, Doug Hughes: >>> got a new HP/Aruba 2920 to replace an old failed 2910al (POE power >>> supply failure - very common).. Weird thing is, hlogin doesn't work on >>> it. I get an EOF right after trying to send enable and it tries to match >>> the many stupid formatting characters that the Aruba folks have tried to >>> put into the output. >>> >>> I have manually set the switch to vt100 terminal type and reloaded, but >>> still it persists and it's loaded with those characters. I can't say >>> definitively that they are the issue, but something sure is strange. I >>> started looking into it and debugging and noticed all that. Also, clogin >>> seems to work (aside from command incompatibility), but hlogin does not >>> and gets an EOF prematurely. >>> >>> Anybody seen this? >> I havent any of these. Have one that I can poke remotely? else, collect >> debug info from hlogin -d -c ... devicename > since my post I have tracked it down to a segfault in hpuifilter. > > as soon as I type (or rancid sends) enable, it crashes in an memmove > here: > 420???????????????????? tlen = 0; > 421???????????????????? tbuf[0] = '\0'; > 422???????????????????? break; > 423???????????????? } else if (bytes > 0) { > 424???????????????????? tlen -= bytes; > 425???????????????????? memmove(tbuf, tbuf + bytes, tlen + 1); > 426???????????????????? if (tlen < 1) > 427???????????????????????? pfds[1].events &= ~POLLOUT; > 428???????????????? } > 429???????????? } > (gdb) > (gdb) display tbuf > 4: tbuf = > "h\000[24;1H\000[24;1H\000[24;1H\000[24;1H\000[24;1H\000\033[24;1H\000[24;1H\000\062\064;1H\000[24;1H\000[24;1H\000;1H\000;17H\000\062\064;17H\000\062\064;17H\000\062\064;17H\000\062\064;17H\000\062\064;17H\000\062\064;17H\000[24;17H\000\062\064;17H\000\064;17H\000\062\064;17H\000\062\064;17H\000\061\067H\000\061\067H\000tandard > commercial license.\r\n\r\n\000ns"... > (gdb) display bytes > 5: bytes = -556149 > (gdb) display len > No symbol "len" in current context. > (gdb) display tlen > 6: tlen = 936748722493063168 > (gdb) > > somehow tlen get really, really big and that causes a wraparound which > results in a negative size of bytes which causes memmove to segfault in > hpuifilter. > > I'm trying to debug to see what I can see . Further oddness: [rancid at services bin]$ ls -l hpuifilter -rwxr-xr-x 1 rancid rancid 26908 Jan 27 10:53 hpuifilter [rancid at services bin]$ ls -l ../download/rancid-3.7/bin/hpuifilter -rwxrwxr-x 1 rancid rancid 27068 Jan 27 10:51 ../download/rancid-3.7/bin/hpuifilter so, the one in the bin directory after make install has a more recent timestamp.. Makes sense.. but if I run gdb on the one in the download directory, it doesn't core dump and seems to work fine. Does make install do something funky to the one in the bin directory? I copied the build version from the build directory into my bin directory and no more problems with hlogin or hpuifilter. I wasn't getting very far with gdb.. clearly there's an overwrite in there somewhere, but I wasn't able to easily setup breakpoints sufficient to catch it. "Debugging with stdin and terminal response is hard."