From Wayne.Eisenberg at CarolinasIT.com Fri Dec 7 10:08:50 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Fri, 7 Dec 2018 10:08:50 +0000 Subject: [rancid] cisco login prompt changes Message-ID: Hi, BTW, I've been seeing on a few cisco devices where the username prompt is now 'User Name:' or 'User name:' instead of 'user name:'. Should the next rancid version update the 'set u_prompt' line to something like set u_prompt "(\[Uu]sername|Login|login|\[Uu]ser \[Nn]ame|User):" to account for the possible case change? Wayne From Wayne.Eisenberg at CarolinasIT.com Fri Dec 7 10:18:54 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Fri, 7 Dec 2018 10:18:54 +0000 Subject: [rancid] problems with PowerConnect switches Message-ID: Hi, I have a PowerConnect 5448 that I am having trouble with. If I run the steps manually it's fine, but using rancid-run always fails. The router.db file is: pc5448;powerconnect;up The etc/rancid.types.conf section is: powerconnect;script;rancid -t powerconnect powerconnect;login;clogin powerconnect;module;dell powerconnect;inloop;dell::inloop powerconnect;command;dell::GetSystem;show system powerconnect;command;dell::GetConf;show running-config and all the info in .clogin is fine. If I manually run clogin for that switch, it has no problems. Then running 'show system' and 'show running-config' gives no problems. If I run 'bin/rancid-run -r pc5448', the error messages are: Trying to get all of the configs. pc5448: missed cmd(s): all commands pc5448: End of run not found pc5448 dllogin error: Error: TIMEOUT reached I cannot figure out why rancid-run is trying to use dllogin when I have nothing that says to use it. Can someone help me sort this out? Thanks, Wayne From Wayne.Eisenberg at CarolinasIT.com Fri Dec 7 10:24:43 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Fri, 7 Dec 2018 10:24:43 +0000 Subject: [rancid] login problem on cisco switch Message-ID: Another similar issue - a cisco switch (SG350XG) that has no problem with clogin, but rancid-run always gets a timeout error ("san-switch01 clogin error: Error: TIMEOUT reached"). What's the difference between the two programs? What is rancid-run doing/looking for that clogin is not providing? Thanks, Wayne From nkkrishnan at gmail.com Fri Dec 7 13:48:57 2018 From: nkkrishnan at gmail.com (N K Krishnan) Date: Fri, 7 Dec 2018 05:48:57 -0800 Subject: [rancid] login problem on cisco switch In-Reply-To: References: Message-ID: We ran into a similar problem recently with one (of over 200) 3850 stack. Suggest you run each of the command that rancid runs after the clogin. In our case, the "show version" command was taking too long and reported that it could not figure out how long one of the switches in the stack was up. There were other log entries that pointed to a messed up control plane. A simple maintenance window switch reboot got "show version" to work - rancid as well. On Fri, Dec 7, 2018 at 2:25 AM Wayne Eisenberg < Wayne.Eisenberg at carolinasit.com> wrote: > Another similar issue - a cisco switch (SG350XG) that has no problem with > clogin, but rancid-run always gets a timeout error ("san-switch01 clogin > error: Error: TIMEOUT reached"). > > What's the difference between the two programs? What is rancid-run > doing/looking for that clogin is not providing? > > Thanks, > Wayne > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Wayne.Eisenberg at CarolinasIT.com Fri Dec 7 16:27:20 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Fri, 7 Dec 2018 16:27:20 +0000 Subject: [rancid] HP Aruba support? Message-ID: Does rancid support the HP Aruba J9726A 2920-24G switch ? Thanks, Wayne From david.chapman at pegasus.io Fri Dec 7 16:31:15 2018 From: david.chapman at pegasus.io (David Chapman) Date: Fri, 7 Dec 2018 16:31:15 +0000 Subject: [rancid] HP Aruba support? Message-ID: I don't have direct knowledge but I believe these are just rebranded/renamed Procurve which should fall under the "hp" module. # # HP Procurve switch such as the 2524, 4108 or J9086A (aka. 2610) procurve # switches, J9091A, and J8698A. hp;script;hrancid -t hp hp;login;hlogin This email, including any attached files, may contain confidential and privileged information. If you received this communication in error, please contact the sender by reply e-mail and delete all copies of this message. From doug.hughes at keystonenap.com Fri Dec 7 16:32:18 2018 From: doug.hughes at keystonenap.com (Doug Hughes) Date: Fri, 7 Dec 2018 11:32:18 -0500 Subject: [rancid] HP Aruba support? In-Reply-To: References: Message-ID: Yes. No problems with HP/Aruba switches. I don't have J9726A, specifically, but I have J9727A, and several other models. On 12/7/2018 11:27 AM, Wayne Eisenberg wrote: > Does rancid support the HP Aruba J9726A 2920-24G switch ? > > Thanks, > Wayne > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From nkkrishnan at gmail.com Fri Dec 7 17:12:15 2018 From: nkkrishnan at gmail.com (N K Krishnan) Date: Fri, 7 Dec 2018 09:12:15 -0800 Subject: [rancid] HP Aruba support? In-Reply-To: References: Message-ID: Yes, we have several here. On Fri, Dec 7, 2018 at 8:27 AM Wayne Eisenberg < Wayne.Eisenberg at carolinasit.com> wrote: > Does rancid support the HP Aruba J9726A 2920-24G switch ? > > Thanks, > Wayne > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Dec 7 19:49:47 2018 From: heas at shrubbery.net (heasley) Date: Fri, 7 Dec 2018 19:49:47 +0000 Subject: [rancid] cisco login prompt changes In-Reply-To: References: Message-ID: <20181207194946.GC12825@shrubbery.net> Fri, Dec 07, 2018 at 10:08:50AM +0000, Wayne Eisenberg: > Hi, > > BTW, I've been seeing on a few cisco devices where the username prompt is now 'User Name:' or 'User name:' instead of 'user name:'. Should the next rancid version update the 'set u_prompt' line to something like > set u_prompt "(\[Uu]sername|Login|login|\[Uu]ser \[Nn]ame|User):" > to account for the possible case change? > > Wayne yes. Dear Cisco, Please stop making changes for the sake of change. From skyeh at uidaho.edu Fri Dec 7 19:59:20 2018 From: skyeh at uidaho.edu (Hagen, Skye (skyeh@uidaho.edu)) Date: Fri, 7 Dec 2018 19:59:20 +0000 Subject: [rancid] cisco login prompt changes In-Reply-To: <20181207194946.GC12825@shrubbery.net> References: <20181207194946.GC12825@shrubbery.net> Message-ID: The prompts for user name and password can also come from your TACACS server. Also, you can change the prompts. aaa new-model aaa authentication login REMOTE group tacacs+ local ! aaa authentication fail-message # Local authentication failed. # aaa authentication password-prompt "Enter local password:" aaa authentication username-prompt "Enter local username:" ! user a secret b ! line vty 0 4 login authentication REMOTE -----Original Message----- From: Rancid-discuss On Behalf Of heasley Sent: Friday, December 7, 2018 11:50 AM To: Wayne Eisenberg Cc: 'rancid-discuss at shrubbery.net' Subject: Re: [rancid] cisco login prompt changes Fri, Dec 07, 2018 at 10:08:50AM +0000, Wayne Eisenberg: > Hi, > > BTW, I've been seeing on a few cisco devices where the username prompt is now 'User Name:' or 'User name:' instead of 'user name:'. Should the next rancid version update the 'set u_prompt' line to something like > set u_prompt "(\[Uu]sername|Login|login|\[Uu]ser \[Nn]ame|User):" > to account for the possible case change? > > Wayne yes. Dear Cisco, Please stop making changes for the sake of change. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss From heas at shrubbery.net Fri Dec 7 20:05:48 2018 From: heas at shrubbery.net (heasley) Date: Fri, 7 Dec 2018 20:05:48 +0000 Subject: [rancid] problems with PowerConnect switches In-Reply-To: References: Message-ID: <20181207200548.GD12825@shrubbery.net> Fri, Dec 07, 2018 at 10:18:54AM +0000, Wayne Eisenberg: > Hi, > > I have a PowerConnect 5448 that I am having trouble with. If I run the steps manually it's fine, but using rancid-run always fails. > > The router.db file is: > pc5448;powerconnect;up > > The etc/rancid.types.conf section is: > > powerconnect;script;rancid -t powerconnect > powerconnect;login;clogin > powerconnect;module;dell > powerconnect;inloop;dell::inloop > powerconnect;command;dell::GetSystem;show system > powerconnect;command;dell::GetConf;show running-config > > and all the info in .clogin is fine. > > If I manually run clogin for that switch, it has no problems. Then running 'show system' and 'show running-config' gives no problems. meaning that clogin -c 'show system;show running-config' hostname completes w/o a timeout? if so, that implies to me that either a pager is involving itself in an unrecognized manner or there is other unrecognized input preventing it from finding the prompt reliably, possibly due to TERM settings (and poor defaults). that could be tested, or it might debugging to, run that clogin from cron to see how it acts w/o a terminal. > If I run 'bin/rancid-run -r pc5448', the error messages are: > > Trying to get all of the configs. > > pc5448: missed cmd(s): all commands > pc5448: End of run not found > pc5448 dllogin error: Error: TIMEOUT reached > > > I cannot figure out why rancid-run is trying to use dllogin when I have nothing that says to use it. Can someone help me sort this out? its not, its just the hard-coded error msg of dell.pm. From heas at shrubbery.net Fri Dec 7 20:07:39 2018 From: heas at shrubbery.net (heasley) Date: Fri, 7 Dec 2018 20:07:39 +0000 Subject: [rancid] cisco login prompt changes In-Reply-To: References: <20181207194946.GC12825@shrubbery.net> Message-ID: <20181207200739.GE12825@shrubbery.net> Fri, Dec 07, 2018 at 07:59:20PM +0000, Hagen, Skye (skyeh at uidaho.edu): > The prompts for user name and password can also come from your TACACS server. Also, you can change the prompts. I made an assumption that Wayne knows if he is doing that or not. :) but, users who choose to do that, can use userprompt in their .cloginrc to adjust the match. see cloginrc(5) > > aaa new-model > aaa authentication login REMOTE group tacacs+ local > ! > aaa authentication fail-message # > Local authentication failed. > # > aaa authentication password-prompt "Enter local password:" > aaa authentication username-prompt "Enter local username:" > ! > user a secret b > ! > line vty 0 4 > login authentication REMOTE > > > > > -----Original Message----- > From: Rancid-discuss On Behalf Of heasley > Sent: Friday, December 7, 2018 11:50 AM > To: Wayne Eisenberg > Cc: 'rancid-discuss at shrubbery.net' > Subject: Re: [rancid] cisco login prompt changes > > Fri, Dec 07, 2018 at 10:08:50AM +0000, Wayne Eisenberg: > > Hi, > > > > BTW, I've been seeing on a few cisco devices where the username prompt is now 'User Name:' or 'User name:' instead of 'user name:'. Should the next rancid version update the 'set u_prompt' line to something like > > set u_prompt "(\[Uu]sername|Login|login|\[Uu]ser \[Nn]ame|User):" > > to account for the possible case change? > > > > Wayne > > yes. > > Dear Cisco, Please stop making changes for the sake of change. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From heas at shrubbery.net Fri Dec 7 20:11:54 2018 From: heas at shrubbery.net (heasley) Date: Fri, 7 Dec 2018 20:11:54 +0000 Subject: [rancid] login problem on cisco switch In-Reply-To: References: Message-ID: <20181207201154.GF12825@shrubbery.net> Fri, Dec 07, 2018 at 05:48:57AM -0800, N K Krishnan: > We ran into a similar problem recently with one (of over 200) 3850 stack. > Suggest you run each of the command that rancid runs after the clogin. just a pointer to help with this; rancid -t -C hostname From weylin at bu.edu Fri Dec 7 20:59:35 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Fri, 7 Dec 2018 20:59:35 +0000 Subject: [rancid] cisco login prompt changes In-Reply-To: <20181207194946.GC12825@shrubbery.net> References: <20181207194946.GC12825@shrubbery.net> Message-ID: <34361554-5FDA-4A21-87B5-DCA0D88E6C5E@bu.edu> > Dear Cisco, Please stop making changes for the sake of change. I have a suspicion It's a case of different business units having different standards. CatOS... ok not this one anymore IOS (classic, router) IOS (classic, switch) IOS (current, router) IOS (current, switch) IOS XE pre-16 IOS XE 16+ IOS XR NX-OS N3k NX-OS N5k (different than above) NX-OS N7k (different than above)z NX-OS N9k (different than above) NX-OS MDS (different than above) NX-OS UCS (different than above) ASA Wireless etc..... ?On 12/7/18, 2:49 PM, "heasley" wrote: Fri, Dec 07, 2018 at 10:08:50AM +0000, Wayne Eisenberg: > Hi, > > BTW, I've been seeing on a few cisco devices where the username prompt is now 'User Name:' or 'User name:' instead of 'user name:'. Should the next rancid version update the 'set u_prompt' line to something like > set u_prompt "(\[Uu]sername|Login|login|\[Uu]ser \[Nn]ame|User):" > to account for the possible case change? > > Wayne yes. Dear Cisco, Please stop making changes for the sake of change. From Wayne.Eisenberg at CarolinasIT.com Tue Dec 11 06:51:01 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Tue, 11 Dec 2018 06:51:01 +0000 Subject: [rancid] problems with PowerConnect switches In-Reply-To: <20181207200548.GD12825@shrubbery.net> References: <20181207200548.GD12825@shrubbery.net> Message-ID: > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: Friday, December 07, 2018 3:06 PM > To: Wayne Eisenberg > Cc: 'rancid-discuss at shrubbery.net' > Subject: Re: [rancid] problems with PowerConnect switches > > Fri, Dec 07, 2018 at 10:18:54AM +0000, Wayne Eisenberg: > > Hi, > > > > I have a PowerConnect 5448 that I am having trouble with. If I run the steps > manually it's fine, but using rancid-run always fails. > > > > The router.db file is: > > pc5448;powerconnect;up > > > > The etc/rancid.types.conf section is: > > > > powerconnect;script;rancid -t powerconnect powerconnect;login;clogin > > powerconnect;module;dell powerconnect;inloop;dell::inloop > > powerconnect;command;dell::GetSystem;show system > > powerconnect;command;dell::GetConf;show running-config > > > > and all the info in .clogin is fine. > > > > If I manually run clogin for that switch, it has no problems. Then running > 'show system' and 'show running-config' gives no problems. > > meaning that > clogin -c 'show system;show running-config' hostname completes w/o a > timeout? if so, that implies to me that either a pager is involving itself in an > unrecognized manner or there is other unrecognized input preventing it > from finding the prompt reliably, possibly due to TERM settings (and poor > defaults). that could be tested, or it might debugging to, run that clogin from > cron to see how it acts w/o a terminal. > That results in: User Name:admin Password:************ console# console# terminal length 0 % Unrecognized command What is issuing the 'terminal length 0' command? Wayne From Wayne.Eisenberg at CarolinasIT.com Tue Dec 11 07:07:37 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Tue, 11 Dec 2018 07:07:37 +0000 Subject: [rancid] login problem on cisco switch In-Reply-To: References: Message-ID: > We ran into a similar problem recently with one (of over 200) 3850 stack.? Suggest you run each of the command that rancid runs after the clogin. > > In our case, the "show version" command was taking too long and reported that it could not figure out how long one of the switches in the stack was up.? There were other log entries that pointed to a messed up control plane.? A > simple maintenance window switch reboot got "show version" to work - rancid as well. I see the same issue here as with the other one. It doesn't like the 'terminal length 0' command. What to do? $ bin/clogin -c'show version' san-switch01 User Name: **** Password:**************** San-Switch01# San-Switch01#terminal length 0 % Unrecognized command From Wayne.Eisenberg at CarolinasIT.com Tue Dec 11 07:08:54 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Tue, 11 Dec 2018 07:08:54 +0000 Subject: [rancid] HP Aruba support? In-Reply-To: References: Message-ID: What do you use for rancid type? The default 'hp'? Any tweaks? Yes, we have several here. On Fri, Dec 7, 2018 at 8:27 AM Wayne Eisenberg wrote: Does rancid support the HP Aruba J9726A 2920-24G switch ? From azheramin at gmail.com Tue Dec 11 14:01:32 2018 From: azheramin at gmail.com (Azher) Date: Tue, 11 Dec 2018 06:01:32 -0800 Subject: [rancid] HP Aruba support? In-Reply-To: References: Message-ID: Default HP. On Mon, Dec 10, 2018, 11:09 PM Wayne Eisenberg < Wayne.Eisenberg at carolinasit.com> wrote: > What do you use for rancid type? The default 'hp'? Any tweaks? > > > Yes, we have several here. > > On Fri, Dec 7, 2018 at 8:27 AM Wayne Eisenberg Wayne.Eisenberg at carolinasit.com> wrote: > Does rancid support the HP Aruba J9726A 2920-24G switch ? > _______________________________________________ > 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 Tue Dec 11 18:13:08 2018 From: heas at shrubbery.net ('heasley') Date: Tue, 11 Dec 2018 18:13:08 +0000 Subject: [rancid] problems with PowerConnect switches In-Reply-To: References: <20181207200548.GD12825@shrubbery.net> Message-ID: <20181211181308.GB92978@shrubbery.net> Tue, Dec 11, 2018 at 06:51:01AM +0000, Wayne Eisenberg: > > -----Original Message----- > > From: heasley [mailto:heas at shrubbery.net] > > Sent: Friday, December 07, 2018 3:06 PM > > To: Wayne Eisenberg > > Cc: 'rancid-discuss at shrubbery.net' > > Subject: Re: [rancid] problems with PowerConnect switches > > > > Fri, Dec 07, 2018 at 10:18:54AM +0000, Wayne Eisenberg: > > > Hi, > > > > > > I have a PowerConnect 5448 that I am having trouble with. If I run the steps > > manually it's fine, but using rancid-run always fails. > > > > > > The router.db file is: > > > pc5448;powerconnect;up > > > > > > The etc/rancid.types.conf section is: > > > > > > powerconnect;script;rancid -t powerconnect powerconnect;login;clogin > > > powerconnect;module;dell powerconnect;inloop;dell::inloop > > > powerconnect;command;dell::GetSystem;show system > > > powerconnect;command;dell::GetConf;show running-config > > > > > > and all the info in .clogin is fine. > > > > > > If I manually run clogin for that switch, it has no problems. Then running > > 'show system' and 'show running-config' gives no problems. > > > > > meaning that > > clogin -c 'show system;show running-config' hostname completes w/o a > > timeout? if so, that implies to me that either a pager is involving itself in an > > unrecognized manner or there is other unrecognized input preventing it > > from finding the prompt reliably, possibly due to TERM settings (and poor > > defaults). that could be tested, or it might debugging to, run that clogin from > > cron to see how it acts w/o a terminal. > > > > That results in: > > User Name:admin > Password:************ > > console# > console# terminal length 0 > % Unrecognized command > > What is issuing the 'terminal length 0' command? clogin. how is the pager disabled on that device? From Wayne.Eisenberg at CarolinasIT.com Tue Dec 11 21:12:00 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Tue, 11 Dec 2018 21:12:00 +0000 Subject: [rancid] problems with PowerConnect switches In-Reply-To: <20181211181308.GB92978@shrubbery.net> References: <20181207200548.GD12825@shrubbery.net> <20181211181308.GB92978@shrubbery.net> Message-ID: > -----Original Message----- > From: 'heasley' [mailto:heas at shrubbery.net] > Sent: Tuesday, December 11, 2018 1:13 PM > To: Wayne Eisenberg > Cc: 'heasley' ; 'rancid-discuss at shrubbery.net' > > Subject: Re: [rancid] problems with PowerConnect switches > > Tue, Dec 11, 2018 at 06:51:01AM +0000, Wayne Eisenberg: > > > -----Original Message----- > > > From: heasley [mailto:heas at shrubbery.net] > > > Sent: Friday, December 07, 2018 3:06 PM > > > To: Wayne Eisenberg > > > Cc: 'rancid-discuss at shrubbery.net' > > > Subject: Re: [rancid] problems with PowerConnect switches > > > > > > Fri, Dec 07, 2018 at 10:18:54AM +0000, Wayne Eisenberg: > > > > Hi, > > > > > > > > I have a PowerConnect 5448 that I am having trouble with. If I run > > > > the steps > > > manually it's fine, but using rancid-run always fails. > > > > > > > > The router.db file is: > > > > pc5448;powerconnect;up > > > > > > > > The etc/rancid.types.conf section is: > > > > > > > > powerconnect;script;rancid -t powerconnect > > > > powerconnect;login;clogin powerconnect;module;dell > > > > powerconnect;inloop;dell::inloop > > > > powerconnect;command;dell::GetSystem;show system > > > > powerconnect;command;dell::GetConf;show running-config > > > > > > > > and all the info in .clogin is fine. > > > > > > > > If I manually run clogin for that switch, it has no problems. Then > > > > running > > > 'show system' and 'show running-config' gives no problems. > > > > > > > > meaning that > > > clogin -c 'show system;show running-config' hostname completes w/o a > > > timeout? if so, that implies to me that either a pager is involving > > > itself in an unrecognized manner or there is other unrecognized > > > input preventing it from finding the prompt reliably, possibly due > > > to TERM settings (and poor defaults). that could be tested, or it > > > might debugging to, run that clogin from cron to see how it acts w/o a > terminal. > > > > > > > That results in: > > > > User Name:admin > > Password:************ > > > > console# > > console# terminal length 0 > > % Unrecognized command > > > > What is issuing the 'terminal length 0' command? > > clogin. how is the pager disabled on that device? 'terminal datadump' for both devices Interestingly enough, the 'show system' and 'show version' outputs of both switches look amazingly similar to each other. I don't know who copied who, but the command sets look very similar. Wayne From weylin at bu.edu Tue Dec 11 21:56:10 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Tue, 11 Dec 2018 21:56:10 +0000 Subject: [rancid] login problem on cisco switch In-Reply-To: References: Message-ID: <8D7C923A-DE58-4697-9408-9D1F4AB296B3@bu.edu> Do you have "terminal length 0" disabled either by your AAA server, or by the priviledge level defined, or by the... I forget from the other day, there was a 3rd way to define role-based access control, but do you have this command either (a) not specifically allowed or (b) specifically disabled by whatever AAA mechanism you're using? ?On 12/11/18, 2:07 AM, "Wayne Eisenberg" wrote: > We ran into a similar problem recently with one (of over 200) 3850 stack. Suggest you run each of the command that rancid runs after the clogin. > > In our case, the "show version" command was taking too long and reported that it could not figure out how long one of the switches in the stack was up. There were other log entries that pointed to a messed up control plane. A > simple maintenance window switch reboot got "show version" to work - rancid as well. I see the same issue here as with the other one. It doesn't like the 'terminal length 0' command. What to do? $ bin/clogin -c'show version' san-switch01 User Name: **** Password:**************** San-Switch01# San-Switch01#terminal length 0 % Unrecognized command From heas at shrubbery.net Tue Dec 11 23:12:17 2018 From: heas at shrubbery.net ('heasley') Date: Tue, 11 Dec 2018 23:12:17 +0000 Subject: [rancid] problems with PowerConnect switches In-Reply-To: References: <20181207200548.GD12825@shrubbery.net> <20181211181308.GB92978@shrubbery.net> Message-ID: <20181211231216.GB41030@shrubbery.net> Tue, Dec 11, 2018 at 09:12:00PM +0000, Wayne Eisenberg: > > -----Original Message----- > > From: 'heasley' [mailto:heas at shrubbery.net] > > Sent: Tuesday, December 11, 2018 1:13 PM > > To: Wayne Eisenberg > > Cc: 'heasley' ; 'rancid-discuss at shrubbery.net' > > > > Subject: Re: [rancid] problems with PowerConnect switches > > > > Tue, Dec 11, 2018 at 06:51:01AM +0000, Wayne Eisenberg: > > > > -----Original Message----- > > > > From: heasley [mailto:heas at shrubbery.net] > > > > Sent: Friday, December 07, 2018 3:06 PM > > > > To: Wayne Eisenberg > > > > Cc: 'rancid-discuss at shrubbery.net' > > > > Subject: Re: [rancid] problems with PowerConnect switches > > > > > > > > Fri, Dec 07, 2018 at 10:18:54AM +0000, Wayne Eisenberg: > > > > > Hi, > > > > > > > > > > I have a PowerConnect 5448 that I am having trouble with. If I run > > > > > the steps > > > > manually it's fine, but using rancid-run always fails. > > > > > > > > > > The router.db file is: > > > > > pc5448;powerconnect;up > > > > > > > > > > The etc/rancid.types.conf section is: > > > > > > > > > > powerconnect;script;rancid -t powerconnect > > > > > powerconnect;login;clogin powerconnect;module;dell > > > > > powerconnect;inloop;dell::inloop > > > > > powerconnect;command;dell::GetSystem;show system > > > > > powerconnect;command;dell::GetConf;show running-config > > > > > > > > > > and all the info in .clogin is fine. > > > > > > > > > > If I manually run clogin for that switch, it has no problems. Then > > > > > running > > > > 'show system' and 'show running-config' gives no problems. > > > > > > > > > > > meaning that > > > > clogin -c 'show system;show running-config' hostname completes w/o a > > > > timeout? if so, that implies to me that either a pager is involving > > > > itself in an unrecognized manner or there is other unrecognized > > > > input preventing it from finding the prompt reliably, possibly due > > > > to TERM settings (and poor defaults). that could be tested, or it > > > > might debugging to, run that clogin from cron to see how it acts w/o a > > terminal. > > > > > > > > > > That results in: > > > > > > User Name:admin > > > Password:************ > > > > > > console# > > > console# terminal length 0 > > > % Unrecognized command > > > > > > What is issuing the 'terminal length 0' command? > > > > clogin. how is the pager disabled on that device? > > 'terminal datadump' for both devices you need a login script that sends that command. > Interestingly enough, the 'show system' and 'show version' outputs of both switches look amazingly similar to each other. I don't know who copied who, but the command sets look very similar. From Wayne.Eisenberg at CarolinasIT.com Wed Dec 12 06:49:20 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Wed, 12 Dec 2018 06:49:20 +0000 Subject: [rancid] problems with PowerConnect switches In-Reply-To: <20181211231216.GB41030@shrubbery.net> References: <20181207200548.GD12825@shrubbery.net> <20181211181308.GB92978@shrubbery.net> <20181211231216.GB41030@shrubbery.net> Message-ID: > Tue, Dec 11, 2018 at 09:12:00PM +0000, Wayne Eisenberg: > > > -----Original Message----- > > > From: 'heasley' [mailto:heas at shrubbery.net] > > > Sent: Tuesday, December 11, 2018 1:13 PM > > > To: Wayne Eisenberg > > > Cc: 'heasley' ; 'rancid-discuss at shrubbery.net' > > > > > > Subject: Re: [rancid] problems with PowerConnect switches > > > > > > Tue, Dec 11, 2018 at 06:51:01AM +0000, Wayne Eisenberg: > > > > > -----Original Message----- > > > > > From: heasley [mailto:heas at shrubbery.net] > > > > > Sent: Friday, December 07, 2018 3:06 PM > > > > > To: Wayne Eisenberg > > > > > Cc: 'rancid-discuss at shrubbery.net' > > > > > > > > > > Subject: Re: [rancid] problems with PowerConnect switches > > > > > > > > > > Fri, Dec 07, 2018 at 10:18:54AM +0000, Wayne Eisenberg: > > > > > > Hi, > > > > > > > > > > > > I have a PowerConnect 5448 that I am having trouble with. If I > > > > > > run the steps > > > > > manually it's fine, but using rancid-run always fails. > > > > > > > > > > > > The router.db file is: > > > > > > pc5448;powerconnect;up > > > > > > > > > > > > The etc/rancid.types.conf section is: > > > > > > > > > > > > powerconnect;script;rancid -t powerconnect > > > > > > powerconnect;login;clogin powerconnect;module;dell > > > > > > powerconnect;inloop;dell::inloop > > > > > > powerconnect;command;dell::GetSystem;show system > > > > > > powerconnect;command;dell::GetConf;show running-config > > > > > > > > > > > > and all the info in .clogin is fine. > > > > > > > > > > > > If I manually run clogin for that switch, it has no problems. > > > > > > Then running > > > > > 'show system' and 'show running-config' gives no problems. > > > > > > > > > > > > > > meaning that > > > > > clogin -c 'show system;show running-config' hostname completes > > > > > w/o a timeout? if so, that implies to me that either a pager is > > > > > involving itself in an unrecognized manner or there is other > > > > > unrecognized input preventing it from finding the prompt > > > > > reliably, possibly due to TERM settings (and poor defaults). > > > > > that could be tested, or it might debugging to, run that clogin > > > > > from cron to see how it acts w/o a > > > terminal. > > > > > > > > > > > > > That results in: > > > > > > > > User Name:admin > > > > Password:************ > > > > > > > > console# > > > > console# terminal length 0 > > > > % Unrecognized command > > > > > > > > What is issuing the 'terminal length 0' command? > > > > > > clogin. how is the pager disabled on that device? > > > > 'terminal datadump' for both devices > > you need a login script that sends that command. > > > Interestingly enough, the 'show system' and 'show version' outputs of both > switches look amazingly similar to each other. I don't know who copied who, > but the command sets look very similar. > Thanks. That got me pointed in the right direction. The built-in cisco-sb type and csblogin script seems to do the job. From heas at shrubbery.net Wed Dec 12 15:32:08 2018 From: heas at shrubbery.net ('heasley') Date: Wed, 12 Dec 2018 15:32:08 +0000 Subject: [rancid] problems with PowerConnect switches In-Reply-To: References: <20181207200548.GD12825@shrubbery.net> <20181211181308.GB92978@shrubbery.net> <20181211231216.GB41030@shrubbery.net> Message-ID: <20181212153207.GB14799@shrubbery.net> Wed, Dec 12, 2018 at 06:49:20AM +0000, Wayne Eisenberg: > > Tue, Dec 11, 2018 at 09:12:00PM +0000, Wayne Eisenberg: > > > > -----Original Message----- > > > > From: 'heasley' [mailto:heas at shrubbery.net] > > > > Sent: Tuesday, December 11, 2018 1:13 PM > > > > To: Wayne Eisenberg > > > > Cc: 'heasley' ; 'rancid-discuss at shrubbery.net' > > > > > > > > Subject: Re: [rancid] problems with PowerConnect switches > > > > > > > > Tue, Dec 11, 2018 at 06:51:01AM +0000, Wayne Eisenberg: > > > > > > -----Original Message----- > > > > > > From: heasley [mailto:heas at shrubbery.net] > > > > > > Sent: Friday, December 07, 2018 3:06 PM > > > > > > To: Wayne Eisenberg > > > > > > Cc: 'rancid-discuss at shrubbery.net' > > > > > > > > > > > > Subject: Re: [rancid] problems with PowerConnect switches > > > > > > > > > > > > Fri, Dec 07, 2018 at 10:18:54AM +0000, Wayne Eisenberg: > > > > > > > Hi, > > > > > > > > > > > > > > I have a PowerConnect 5448 that I am having trouble with. If I > > > > > > > run the steps > > > > > > manually it's fine, but using rancid-run always fails. > > > > > > > > > > > > > > The router.db file is: > > > > > > > pc5448;powerconnect;up > > > > > > > > > > > > > > The etc/rancid.types.conf section is: > > > > > > > > > > > > > > powerconnect;script;rancid -t powerconnect > > > > > > > powerconnect;login;clogin powerconnect;module;dell > > > > > > > powerconnect;inloop;dell::inloop > > > > > > > powerconnect;command;dell::GetSystem;show system > > > > > > > powerconnect;command;dell::GetConf;show running-config > > > > > > > > > > > > > > and all the info in .clogin is fine. > > > > > > > > > > > > > > If I manually run clogin for that switch, it has no problems. > > > > > > > Then running > > > > > > 'show system' and 'show running-config' gives no problems. > > > > > > > > > > > > > > > > > meaning that > > > > > > clogin -c 'show system;show running-config' hostname completes > > > > > > w/o a timeout? if so, that implies to me that either a pager is > > > > > > involving itself in an unrecognized manner or there is other > > > > > > unrecognized input preventing it from finding the prompt > > > > > > reliably, possibly due to TERM settings (and poor defaults). > > > > > > that could be tested, or it might debugging to, run that clogin > > > > > > from cron to see how it acts w/o a > > > > terminal. > > > > > > > > > > > > > > > > That results in: > > > > > > > > > > User Name:admin > > > > > Password:************ > > > > > > > > > > console# > > > > > console# terminal length 0 > > > > > % Unrecognized command > > > > > > > > > > What is issuing the 'terminal length 0' command? > > > > > > > > clogin. how is the pager disabled on that device? > > > > > > 'terminal datadump' for both devices > > > > you need a login script that sends that command. > > > > > Interestingly enough, the 'show system' and 'show version' outputs of both > > switches look amazingly similar to each other. I don't know who copied who, > > but the command sets look very similar. > > > > Thanks. That got me pointed in the right direction. The built-in cisco-sb type and csblogin script seems to do the job. does the cisco-sb type work without modification? That would be useful info to document. From rancid at ale.cx Wed Dec 12 17:02:08 2018 From: rancid at ale.cx (Alex DEKKER) Date: Wed, 12 Dec 2018 17:02:08 +0000 Subject: [rancid] problems with PowerConnect switches In-Reply-To: <20181212153207.GB14799@shrubbery.net> References: <20181207200548.GD12825@shrubbery.net> <20181211181308.GB92978@shrubbery.net> <20181211231216.GB41030@shrubbery.net> <20181212153207.GB14799@shrubbery.net> Message-ID: <12c39653-9ed4-4091-8ecc-5a87a21037ac@ale.cx> On 12/12/2018 15:32, 'heasley' wrote: > Tue, Dec 11, 2018 at 09:12:00PM +0000, Wayne Eisenberg: >>> >>> switches look amazingly similar to each other. I don't know who copied who, >>> but the command sets look very similar. >>> >> It's not a case of Cisco copying Dell or vice versa - they've both bought the same switching platform from Marvell. I am sure that it's more than just Dell and Cisco selling it, for that matter. > does the cisco-sb type work without modification? That would be useful > info to document. > Need a wiki page of what-equipment-masquerades-as-what, or a repository of sample device configs that some clever algorithm can compare and spit out a similarity %age.? Paste your config into it and it tells you which backend to use. alexd From Wayne.Eisenberg at CarolinasIT.com Wed Dec 12 19:07:17 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Wed, 12 Dec 2018 19:07:17 +0000 Subject: [rancid] problems with PowerConnect switches In-Reply-To: <20181212153207.GB14799@shrubbery.net> References: <20181207200548.GD12825@shrubbery.net> <20181211181308.GB92978@shrubbery.net> <20181211231216.GB41030@shrubbery.net> <20181212153207.GB14799@shrubbery.net> Message-ID: > -----Original Message----- > From: 'heasley' [mailto:heas at shrubbery.net] > Sent: Wednesday, December 12, 2018 10:32 AM > To: Wayne Eisenberg > Cc: 'heasley' ; 'rancid-discuss at shrubbery.net' > > Subject: Re: [rancid] problems with PowerConnect switches > > Wed, Dec 12, 2018 at 06:49:20AM +0000, Wayne Eisenberg: > > > Tue, Dec 11, 2018 at 09:12:00PM +0000, Wayne Eisenberg: > > > > > -----Original Message----- > > > > > From: 'heasley' [mailto:heas at shrubbery.net] > > > > > Sent: Tuesday, December 11, 2018 1:13 PM > > > > > To: Wayne Eisenberg > > > > > Cc: 'heasley' ; 'rancid-discuss at shrubbery.net' > > > > > > > > > > Subject: Re: [rancid] problems with PowerConnect switches > > > > > > > > > > Tue, Dec 11, 2018 at 06:51:01AM +0000, Wayne Eisenberg: > > > > > > > -----Original Message----- > > > > > > > From: heasley [mailto:heas at shrubbery.net] > > > > > > > Sent: Friday, December 07, 2018 3:06 PM > > > > > > > To: Wayne Eisenberg > > > > > > > Cc: 'rancid-discuss at shrubbery.net' > > > > > > > > > > > > > > Subject: Re: [rancid] problems with PowerConnect switches > > > > > > > > > > > > > > Fri, Dec 07, 2018 at 10:18:54AM +0000, Wayne Eisenberg: > > > > > > > > Hi, > > > > > > > > > > > > > > > > I have a PowerConnect 5448 that I am having trouble with. > > > > > > > > If I run the steps > > > > > > > manually it's fine, but using rancid-run always fails. > > > > > > > > > > > > > > > > The router.db file is: > > > > > > > > pc5448;powerconnect;up > > > > > > > > > > > > > > > > The etc/rancid.types.conf section is: > > > > > > > > > > > > > > > > powerconnect;script;rancid -t powerconnect > > > > > > > > powerconnect;login;clogin powerconnect;module;dell > > > > > > > > powerconnect;inloop;dell::inloop > > > > > > > > powerconnect;command;dell::GetSystem;show system > > > > > > > > powerconnect;command;dell::GetConf;show running-config > > > > > > > > > > > > > > > > and all the info in .clogin is fine. > > > > > > > > > > > > > > > > If I manually run clogin for that switch, it has no problems. > > > > > > > > Then running > > > > > > > 'show system' and 'show running-config' gives no problems. > > > > > > > > > > > > > > > > > > > > meaning that > > > > > > > clogin -c 'show system;show running-config' hostname > > > > > > > completes w/o a timeout? if so, that implies to me that > > > > > > > either a pager is involving itself in an unrecognized manner > > > > > > > or there is other unrecognized input preventing it from > > > > > > > finding the prompt reliably, possibly due to TERM settings (and > poor defaults). > > > > > > > that could be tested, or it might debugging to, run that > > > > > > > clogin from cron to see how it acts w/o a > > > > > terminal. > > > > > > > > > > > > > > > > > > > That results in: > > > > > > > > > > > > User Name:admin > > > > > > Password:************ > > > > > > > > > > > > console# > > > > > > console# terminal length 0 > > > > > > % Unrecognized command > > > > > > > > > > > > What is issuing the 'terminal length 0' command? > > > > > > > > > > clogin. how is the pager disabled on that device? > > > > > > > > 'terminal datadump' for both devices > > > > > > you need a login script that sends that command. > > > > > > > Interestingly enough, the 'show system' and 'show version' outputs > > > > of both > > > switches look amazingly similar to each other. I don't know who > > > copied who, but the command sets look very similar. > > > > > > > Thanks. That got me pointed in the right direction. The built-in cisco-sb type > and csblogin script seems to do the job. > > does the cisco-sb type work without modification? That would be useful info > to document. Yes they do. From Wayne.Eisenberg at CarolinasIT.com Thu Dec 13 07:55:29 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Thu, 13 Dec 2018 07:55:29 +0000 Subject: [rancid] end of run not found Message-ID: Regarding some PowerConnect N2000/3000/4000 series switches, I am getting "End of run not found" errors. If I use the smc type that is recommended in the rancid.types.base file, I have the added pleasure of getting "missed cmd(s): show version, dir, show vlan". Trying cisco as a type doesn't change the 'end of run' error, although I don't miss any commands. Trying my powerconnect type that I made earlier also results in 'end of run not found'. Running 'clogin -c"dir,show version,show running-config" switchname' works perfectly and returns to the command prompt. How do I troubleshoot 'end of run not found'? From heas at shrubbery.net Thu Dec 13 17:06:02 2018 From: heas at shrubbery.net (heasley) Date: Thu, 13 Dec 2018 17:06:02 +0000 Subject: [rancid] end of run not found In-Reply-To: References: Message-ID: <20181213170602.GA10761@shrubbery.net> Thu, Dec 13, 2018 at 07:55:29AM +0000, Wayne Eisenberg: > Regarding some PowerConnect N2000/3000/4000 series switches, I am getting "End of run not found" errors. If I use the smc type that is recommended in the rancid.types.base file, I have the added pleasure of getting "missed cmd(s): show version, dir, show vlan". Trying cisco as a type doesn't change the 'end of run' error, although I don't miss any commands. Trying my powerconnect type that I made earlier also results in 'end of run not found'. > > Running 'clogin -c"dir,show version,show running-config" switchname' works perfectly and returns to the command prompt. > > How do I troubleshoot 'end of run not found'? > it means that it did not find the end of the config. look at the raw output and srancid -dl for missed command matches. I suspect that it srancid is not recognizing the prompt due to mangled input or unexpected characters in the prompt. From Wayne.Eisenberg at CarolinasIT.com Thu Dec 13 22:45:36 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Thu, 13 Dec 2018 22:45:36 +0000 Subject: [rancid] end of run not found In-Reply-To: <20181213170602.GA10761@shrubbery.net> References: <20181213170602.GA10761@shrubbery.net> Message-ID: > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: Thursday, December 13, 2018 12:06 PM > To: Wayne Eisenberg > Cc: 'rancid-discuss at shrubbery.net' > Subject: Re: [rancid] end of run not found > > Thu, Dec 13, 2018 at 07:55:29AM +0000, Wayne Eisenberg: > > Regarding some PowerConnect N2000/3000/4000 series switches, I am > getting "End of run not found" errors. If I use the smc type that is > recommended in the rancid.types.base file, I have the added pleasure of > getting "missed cmd(s): show version, dir, show vlan". Trying cisco as a type > doesn't change the 'end of run' error, although I don't miss any commands. > Trying my powerconnect type that I made earlier also results in 'end of run > not found'. > > > > Running 'clogin -c"dir,show version,show running-config" switchname' > works perfectly and returns to the command prompt. > > > > How do I troubleshoot 'end of run not found'? > > > > it means that it did not find the end of the config. look at the raw output and > srancid -dl for missed command matches. I suspect that it > srancid is not recognizing the prompt due to mangled input or unexpected > characters in the prompt. How does one look at raw output? From heas at shrubbery.net Thu Dec 13 23:00:00 2018 From: heas at shrubbery.net ('heasley') Date: Thu, 13 Dec 2018 23:00:00 +0000 Subject: [rancid] end of run not found In-Reply-To: References: <20181213170602.GA10761@shrubbery.net> Message-ID: <20181213230000.GB88630@shrubbery.net> Thu, Dec 13, 2018 at 10:45:36PM +0000, Wayne Eisenberg: > > -----Original Message----- > > From: heasley [mailto:heas at shrubbery.net] > > Sent: Thursday, December 13, 2018 12:06 PM > > To: Wayne Eisenberg > > Cc: 'rancid-discuss at shrubbery.net' > > Subject: Re: [rancid] end of run not found > > > > Thu, Dec 13, 2018 at 07:55:29AM +0000, Wayne Eisenberg: > > > Regarding some PowerConnect N2000/3000/4000 series switches, I am > > getting "End of run not found" errors. If I use the smc type that is > > recommended in the rancid.types.base file, I have the added pleasure of > > getting "missed cmd(s): show version, dir, show vlan". Trying cisco as a type > > doesn't change the 'end of run' error, although I don't miss any commands. > > Trying my powerconnect type that I made earlier also results in 'end of run > > not found'. > > > > > > Running 'clogin -c"dir,show version,show running-config" switchname' > > works perfectly and returns to the command prompt. > > > > > > How do I troubleshoot 'end of run not found'? > > > > > > > it means that it did not find the end of the config. look at the raw output and > > srancid -dl for missed command matches. I suspect that it > > srancid is not recognizing the prompt due to mangled input or unexpected > > characters in the prompt. > > How does one look at raw output? > > export NOPIPE YES ; srancid -dl leaves hostname.raw From Wayne.Eisenberg at CarolinasIT.com Fri Dec 14 16:15:41 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Fri, 14 Dec 2018 16:15:41 +0000 Subject: [rancid] end of run not found In-Reply-To: <20181213230000.GB88630@shrubbery.net> References: <20181213170602.GA10761@shrubbery.net> <20181213230000.GB88630@shrubbery.net> Message-ID: > > > Thu, Dec 13, 2018 at 07:55:29AM +0000, Wayne Eisenberg: > > > > Regarding some PowerConnect N2000/3000/4000 series switches, I am > > > getting "End of run not found" errors. If I use the smc type that is > > > recommended in the rancid.types.base file, I have the added pleasure > > > of getting "missed cmd(s): show version, dir, show vlan". Trying > > > cisco as a type doesn't change the 'end of run' error, although I don't miss > any commands. > > > Trying my powerconnect type that I made earlier also results in 'end > > > of run not found'. > > > > > > > > Running 'clogin -c"dir,show version,show running-config" switchname' > > > works perfectly and returns to the command prompt. > > > > > > > > How do I troubleshoot 'end of run not found'? > > > > > > > > > > it means that it did not find the end of the config. look at the > > > raw output and srancid -dl for missed command matches. I > > > suspect that it srancid is not recognizing the prompt due to mangled > > > input or unexpected characters in the prompt. > > > > How does one look at raw output? > > > > > export NOPIPE YES ; srancid -dl leaves hostname.raw I'm not seeing the problem. I ran: export NOPIPE YES; rancid -t powerconnect -dl tco-core where: powerconnect;script;rancid -t powerconnect powerconnect;login;clogin powerconnect;module;dell powerconnect;inloop;dell::inloop powerconnect;command;dell::GetSystem;show system powerconnect;command;dell::GetConf;show running-config (I remarked out the sub GetFile from dell.pm for testing only) I got: loadtype: device type powerconnect loadtype: found device type powerconnect in /usr/local/rancid3/etc/rancid.types.conf executing clogin -t 90 -c"show system;show running-config" tco-core HIT COMMAND:TCO-CORE#show system In GetSystem: TCO-CORE#show system HIT COMMAND:TCO-CORE#show running-config In GetConf: TCO-CORE#show running-config Done clogin: tco-core: End of run not found tco-core: clean_run is false exit And the .new file has a full copy of both 'show system' and 'show running-config'. No obvious mistakes. Interestingly, if I put the GetFile sub back in and add it to the rancid.types.conf file, I get the same error and the .new file is the same - no directory listing. Weird. Any other type of debugging that can be done? From heas at shrubbery.net Fri Dec 14 21:36:04 2018 From: heas at shrubbery.net ('heasley') Date: Fri, 14 Dec 2018 21:36:04 +0000 Subject: [rancid] end of run not found In-Reply-To: References: <20181213170602.GA10761@shrubbery.net> <20181213230000.GB88630@shrubbery.net> Message-ID: <20181214213604.GC99222@shrubbery.net> Fri, Dec 14, 2018 at 04:15:41PM +0000, Wayne Eisenberg: > > > > Thu, Dec 13, 2018 at 07:55:29AM +0000, Wayne Eisenberg: > > > > > Regarding some PowerConnect N2000/3000/4000 series switches, I am > > > > getting "End of run not found" errors. If I use the smc type that is > > > > recommended in the rancid.types.base file, I have the added pleasure > > > > of getting "missed cmd(s): show version, dir, show vlan". Trying > > > > cisco as a type doesn't change the 'end of run' error, although I don't miss > > any commands. > > > > Trying my powerconnect type that I made earlier also results in 'end > > > > of run not found'. > > > > > > > > > > Running 'clogin -c"dir,show version,show running-config" switchname' > > > > works perfectly and returns to the command prompt. > > > > > > > > > > How do I troubleshoot 'end of run not found'? > > > > > > > > > > > > > it means that it did not find the end of the config. look at the > > > > raw output and srancid -dl for missed command matches. I > > > > suspect that it srancid is not recognizing the prompt due to mangled > > > > input or unexpected characters in the prompt. > > > > > > How does one look at raw output? > > > > > > > > export NOPIPE YES ; srancid -dl leaves hostname.raw > > I'm not seeing the problem. > > I ran: > export NOPIPE YES; rancid -t powerconnect -dl tco-core ^= > where: > powerconnect;script;rancid -t powerconnect > powerconnect;login;clogin > powerconnect;module;dell > powerconnect;inloop;dell::inloop > powerconnect;command;dell::GetSystem;show system > powerconnect;command;dell::GetConf;show running-config > > (I remarked out the sub GetFile from dell.pm for testing only) > > I got: > loadtype: device type powerconnect > loadtype: found device type powerconnect in /usr/local/rancid3/etc/rancid.types.conf > executing clogin -t 90 -c"show system;show running-config" tco-core > HIT COMMAND:TCO-CORE#show system > In GetSystem: TCO-CORE#show system > HIT COMMAND:TCO-CORE#show running-config > In GetConf: TCO-CORE#show running-config > Done clogin: > tco-core: End of run not found > tco-core: clean_run is false implies it didnt find the prompt & command where it logs-out from the device. see match in dell::inloop. > exit > > And the .new file has a full copy of both 'show system' and 'show running-config'. No obvious mistakes. > > Interestingly, if I put the GetFile sub back in and add it to the rancid.types.conf file, I get the same error and the .new file is the same - no directory listing. Weird. that function is discarding its input except for the last line, as I inheritted it. welcome a patch make it do something more useful. > Any other type of debugging that can be done? > > From Wayne.Eisenberg at CarolinasIT.com Sat Dec 15 13:05:23 2018 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Sat, 15 Dec 2018 13:05:23 +0000 Subject: [rancid] end of run not found In-Reply-To: <20181214213604.GC99222@shrubbery.net> References: <20181213170602.GA10761@shrubbery.net> <20181213230000.GB88630@shrubbery.net> <20181214213604.GC99222@shrubbery.net> Message-ID: > -----Original Message----- > From: 'heasley' [mailto:heas at shrubbery.net] > Sent: Friday, December 14, 2018 4:36 PM > To: Wayne Eisenberg > Cc: 'heasley' ; 'rancid-discuss at shrubbery.net' > > Subject: Re: [rancid] end of run not found > > Fri, Dec 14, 2018 at 04:15:41PM +0000, Wayne Eisenberg: > > > > > Thu, Dec 13, 2018 at 07:55:29AM +0000, Wayne Eisenberg: > > > > > > Regarding some PowerConnect N2000/3000/4000 series switches, I > > > > > > am > > > > > getting "End of run not found" errors. If I use the smc type > > > > > that is recommended in the rancid.types.base file, I have the > > > > > added pleasure of getting "missed cmd(s): show version, dir, > > > > > show vlan". Trying cisco as a type doesn't change the 'end of > > > > > run' error, although I don't miss > > > any commands. > > > > > Trying my powerconnect type that I made earlier also results in > > > > > 'end of run not found'. > > > > > > > > > > > > Running 'clogin -c"dir,show version,show running-config" > switchname' > > > > > works perfectly and returns to the command prompt. > > > > > > > > > > > > How do I troubleshoot 'end of run not found'? > > > > > > > > > > > > > > > > it means that it did not find the end of the config. look at > > > > > the raw output and srancid -dl for missed command > > > > > matches. I suspect that it srancid is not recognizing the > > > > > prompt due to mangled input or unexpected characters in the prompt. > > > > > > > > How does one look at raw output? > > > > > > > > > > > export NOPIPE YES ; srancid -dl leaves hostname.raw > > > > I'm not seeing the problem. > > > > I ran: > > export NOPIPE YES; rancid -t powerconnect -dl tco-core > ^= > > > where: > > powerconnect;script;rancid -t powerconnect powerconnect;login;clogin > > powerconnect;module;dell powerconnect;inloop;dell::inloop > > powerconnect;command;dell::GetSystem;show system > > powerconnect;command;dell::GetConf;show running-config > > > > (I remarked out the sub GetFile from dell.pm for testing only) > > > > I got: > > loadtype: device type powerconnect > > loadtype: found device type powerconnect in > > /usr/local/rancid3/etc/rancid.types.conf > > executing clogin -t 90 -c"show system;show running-config" tco-core > > HIT COMMAND:TCO-CORE#show system > > In GetSystem: TCO-CORE#show system HIT COMMAND:TCO-CORE#show > > running-config > > In GetConf: TCO-CORE#show running-config Done clogin: > > tco-core: End of run not found > > tco-core: clean_run is false > > implies it didnt find the prompt & command where it logs-out from the > device. > see match in dell::inloop. > > > exit > > > > And the .new file has a full copy of both 'show system' and 'show running- > config'. No obvious mistakes. > > > > Interestingly, if I put the GetFile sub back in and add it to the > rancid.types.conf file, I get the same error and the .new file is the same - no > directory listing. Weird. > > that function is discarding its input except for the last line, as I inheritted it. > welcome a patch make it do something more useful. > > > Any other type of debugging that can be done? > > > > There you go. The dell.pm is looking for if (/[>#]\s?exit$/) but these switches don't put the exit statement on a separate line (or maybe we don't see it because of the ' tr/\015//d;' statement right before the if statement ). In any case, the end of the session looks like: TCO-CORE>exitConnection to tco-core closed. So get rid of the $ at the end of the expression, and it works. Thanks again for your help. From heas at shrubbery.net Mon Dec 17 21:28:58 2018 From: heas at shrubbery.net ('heasley') Date: Mon, 17 Dec 2018 21:28:58 +0000 Subject: [rancid] end of run not found In-Reply-To: References: <20181213170602.GA10761@shrubbery.net> <20181213230000.GB88630@shrubbery.net> <20181214213604.GC99222@shrubbery.net> Message-ID: <20181217212858.GG57594@shrubbery.net> Sat, Dec 15, 2018 at 01:05:23PM +0000, Wayne Eisenberg: > There you go. The dell.pm is looking for > if (/[>#]\s?exit$/) > but these switches don't put the exit statement on a separate line (or maybe we don't see it because of the ' tr/\015//d;' statement right before the if statement ). In any case, the end of the session looks like: > TCO-CORE>exitConnection to tco-core closed. > > So get rid of the $ at the end of the expression, and it works. cat5rancid does it this way: if (/> \(enable\) ?exit(?:$|Connection)/) { more pedantic... From aaron.sutton at glencore.com.au Wed Dec 19 06:12:56 2018 From: aaron.sutton at glencore.com.au (aaron.sutton at glencore.com.au) Date: Wed, 19 Dec 2018 06:12:56 +0000 Subject: [rancid] Ubuntu with Rancid 3.7 - Comware (CMW) Message-ID: <561d3ec8a3694a02af72002716d1d2e6@AUSYDSRVR5102.ANYACCESS.NET> Hi All, Seeking some assistance as I'm a RANCID noob. Have had no issues getting Cisco devices to work, however no luck with HPE switches. I have a large environment of HPE switches which run COMEWARE v7. I found the following device scripts by JRBINKS at the following link: https://sites.google.com/site/jrbinks/code/rancid/cmwrancid When I attempt to run a test against my device, I get the following error: rancid at testrancidserver:~/bin$ ./rancid -d -t cmw aubneleaf3a0508 loadtype: device type cmw loadtype: found device type cmw in /etc/rancid/rancid.types.conf loadtype: loading cmw failed: Can't locate cmw.pm in @INC (you may need to install the cmw module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /usr/share/perl5/rancid) at /usr/share/perl5/rancid/rancid.pm line 257. Couldn't load device type spec for cmw Server: Ubuntu x64 18.04 Rancid version 3.7 >From /etc/rancid/rancid.conf BASEDIR=/var/lib/rancid; export BASEDIR PATH=/usr/lib/rancid/bin:/usr/bin:/usr/sbin:/bin:/usr/local/bin; export PATH I've copied cmwlogin to /var/lib/rancid/bin I've copied cmw.pm to /var/lib rancid at aubnesrv7rancid1:~/bin$ pwd /var/lib/rancid/bin rancid at aubnesrv7rancid1:~/bin$ ls cmwlogin -l -rwxr-xr-x 1 root root 30304 Dec 19 15:18 cmwlogin rancid at aubnesrv7rancid1:~$ pwd /var/lib/rancid rancid at aubnesrv7rancid1:~$ ls cmw.pm -l -rwxr-xr-x 1 rancid rancid 16533 Dec 19 15:21 cmw.pm rancid at testrancidserver:~/bin$ export declare -x HOME="/var/lib/rancid" declare -x LANG="en_US.UTF-8" declare -x LOGNAME="rancid" declare -x MAIL="/var/mail/rancid" declare -x OLDPWD="/var/lib/rancid" declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin" declare -x PWD="/var/lib/rancid/bin" declare -x SHELL="/bin/bash" declare -x SHLVL="1" declare -x TERM="xterm" declare -x USER="rancid" declare -x XDG_DATA_DIRS="/usr/local/share:/usr/share:/var/lib/snapd/desktop" Anyone able to assist? Kind Regards Aaron ********************************************************************************* LEGAL DISCLAIMER. The contents of this electronic communication and any attached documents are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system. ********************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From weylin at bu.edu Wed Dec 19 15:15:57 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Wed, 19 Dec 2018 15:15:57 +0000 Subject: [rancid] F5 Issue Message-ID: Any idea what I can do to fix this, without upgrading rancid? weylin [rancid at nsgv-prod-59 ~]$ rancid -V rancid 3.4.1 [rancid at nsgv-prod-59 ~]$ [rancid at nsgv-prod-59 ~]$ [rancid at nsgv-prod-59 ~]$ [rancid at nsgv-prod-59 ~]$ NOPIPE=yes rancid -dl -t f5 comm881-ltm-lab06.bu.edu loadtype: device type f5 loadtype: found device type f5 in /usr/local/rancid/etc/rancid.types.base executing clogin -t 90 -c"" comm881-ltm-lab06.bu.edu executing clogin -t 90 -c"" comm881-ltm-lab06.bu.edu inloop is not configured for device type f5 at /usr/local/rancid/bin/rancid line 126. [rancid at nsgv-prod-59 ~]$ [rancid at nsgv-prod-59 ~]$ [rancid at nsgv-prod-59 ~]$ [rancid at nsgv-prod-59 ~]$ cat -e comm881-ltm-lab06.bu.edu.raw comm881-ltm-lab06.bu.edu$ spawn telnet comm881-ltm-lab06.bu.edu^M$ Trying 10.88.11.20...^M^M$ telnet: connect to address 10.88.11.20: Connection refused^M$ spawn ssh -2 -c aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc -x -l rancid comm881-ltm-lab06.bu.edu^M$ Password: ^M$ Last login: Wed Dec 19 10:07:49 2018 from 128.197.253.136^M^M$ ^[[?1034h[rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # ^M$ [rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # terminal length 0^M$ -bash: terminal: command not found^M$ [rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # terminal width 132^M$ -bash: terminal: command not found^M$ [rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # exit^M$ logout^M$ ^[[H^[[2JConnection to comm881-ltm-lab06.bu.edu closed.^M^M$ [rancid at nsgv-prod-59 ~]$ From heas at shrubbery.net Wed Dec 19 18:55:30 2018 From: heas at shrubbery.net (heasley) Date: Wed, 19 Dec 2018 18:55:30 +0000 Subject: [rancid] F5 Issue In-Reply-To: References: Message-ID: <20181219185530.GA60699@shrubbery.net> Wed, Dec 19, 2018 at 03:15:57PM +0000, Piegorsch, Weylin William: > Any idea what I can do to fix this, without upgrading rancid? > weylin > > > [rancid at nsgv-prod-59 ~]$ rancid -V > rancid 3.4.1 > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ NOPIPE=yes rancid -dl -t f5 comm881-ltm-lab06.bu.edu NOPIPE=yes f5rancid -dl comm881-ltm-lab06.bu.edu if youre running f5-whateveritscalled-os >=11, then you want rancid 3.5, and another type was added for >=13 in the current alpha. > loadtype: device type f5 > loadtype: found device type f5 in /usr/local/rancid/etc/rancid.types.base > executing clogin -t 90 -c"" comm881-ltm-lab06.bu.edu > executing clogin -t 90 -c"" comm881-ltm-lab06.bu.edu > inloop is not configured for device type f5 at /usr/local/rancid/bin/rancid line 126. > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ cat -e comm881-ltm-lab06.bu.edu.raw > comm881-ltm-lab06.bu.edu$ > spawn telnet comm881-ltm-lab06.bu.edu^M$ > Trying 10.88.11.20...^M^M$ > telnet: connect to address 10.88.11.20: Connection refused^M$ > spawn ssh -2 -c aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc -x -l rancid comm881-ltm-lab06.bu.edu^M$ > Password: ^M$ > Last login: Wed Dec 19 10:07:49 2018 from 128.197.253.136^M^M$ > ^[[?1034h[rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # ^M$ > [rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # terminal length 0^M$ > -bash: terminal: command not found^M$ > [rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # terminal width 132^M$ > -bash: terminal: command not found^M$ > [rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # exit^M$ > logout^M$ > ^[[H^[[2JConnection to comm881-ltm-lab06.bu.edu closed.^M^M$ > [rancid at nsgv-prod-59 ~]$ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From weylin at bu.edu Wed Dec 19 19:08:32 2018 From: weylin at bu.edu (Piegorsch, Weylin William) Date: Wed, 19 Dec 2018 19:08:32 +0000 Subject: [rancid] F5 Issue In-Reply-To: <20181219185530.GA60699@shrubbery.net> References: <20181219185530.GA60699@shrubbery.net> Message-ID: Alles klar. Thank you. weylin ?-----Original Message----- From: heasley Date: Wednesday, December 19, 2018 at 1:56 PM To: Weylin Piegorsch Cc: "'rancid-discuss at shrubbery.net'" Subject: Re: [rancid] F5 Issue Wed, Dec 19, 2018 at 03:15:57PM +0000, Piegorsch, Weylin William: > Any idea what I can do to fix this, without upgrading rancid? > weylin > > > [rancid at nsgv-prod-59 ~]$ rancid -V > rancid 3.4.1 > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ NOPIPE=yes rancid -dl -t f5 comm881-ltm-lab06.bu.edu NOPIPE=yes f5rancid -dl comm881-ltm-lab06.bu.edu if youre running f5-whateveritscalled-os >=11, then you want rancid 3.5, and another type was added for >=13 in the current alpha. > loadtype: device type f5 > loadtype: found device type f5 in /usr/local/rancid/etc/rancid.types.base > executing clogin -t 90 -c"" comm881-ltm-lab06.bu.edu > executing clogin -t 90 -c"" comm881-ltm-lab06.bu.edu > inloop is not configured for device type f5 at /usr/local/rancid/bin/rancid line 126. > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ > [rancid at nsgv-prod-59 ~]$ cat -e comm881-ltm-lab06.bu.edu.raw > comm881-ltm-lab06.bu.edu$ > spawn telnet comm881-ltm-lab06.bu.edu^M$ > Trying 10.88.11.20...^M^M$ > telnet: connect to address 10.88.11.20: Connection refused^M$ > spawn ssh -2 -c aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc -x -l rancid comm881-ltm-lab06.bu.edu^M$ > Password: ^M$ > Last login: Wed Dec 19 10:07:49 2018 from 128.197.253.136^M^M$ > ^[[?1034h[rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # ^M$ > [rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # terminal length 0^M$ > -bash: terminal: command not found^M$ > [rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # terminal width 132^M$ > -bash: terminal: command not found^M$ > [rancid at comm881-lmt-lab06:Active:Changes Pending]^[]0;comm881-lmt-lab06^G ~ # exit^M$ > logout^M$ > ^[[H^[[2JConnection to comm881-ltm-lab06.bu.edu closed.^M^M$ > [rancid at nsgv-prod-59 ~]$ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From heas at shrubbery.net Wed Dec 19 19:22:50 2018 From: heas at shrubbery.net (heasley) Date: Wed, 19 Dec 2018 19:22:50 +0000 Subject: [rancid] Ubuntu with Rancid 3.7 - Comware (CMW) In-Reply-To: <561d3ec8a3694a02af72002716d1d2e6@AUSYDSRVR5102.ANYACCESS.NET> References: <561d3ec8a3694a02af72002716d1d2e6@AUSYDSRVR5102.ANYACCESS.NET> Message-ID: <20181219192250.GB60699@shrubbery.net> Wed, Dec 19, 2018 at 06:12:56AM +0000, aaron.sutton at glencore.com.au: > Hi All, > > Seeking some assistance as I'm a RANCID noob. Have had no issues getting Cisco devices to work, however no luck with HPE switches. > > I have a large environment of HPE switches which run COMEWARE v7. I found the following device scripts by JRBINKS at the following link: https://sites.google.com/site/jrbinks/code/rancid/cmwrancid > > When I attempt to run a test against my device, I get the following error: > > rancid at testrancidserver:~/bin$ ./rancid -d -t cmw aubneleaf3a0508 > loadtype: device type cmw > loadtype: found device type cmw in /etc/rancid/rancid.types.conf > loadtype: loading cmw failed: Can't locate cmw.pm in @INC (you may need to install the cmw module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /usr/share/perl5/rancid) at /usr/share/perl5/rancid/rancid.pm line 257. cmw.pm must be found in the path of rancid.conf:PERL5LIB > Couldn't load device type spec for cmw > > Server: Ubuntu x64 18.04 > Rancid version 3.7 > > >From /etc/rancid/rancid.conf > BASEDIR=/var/lib/rancid; export BASEDIR > PATH=/usr/lib/rancid/bin:/usr/bin:/usr/sbin:/bin:/usr/local/bin; export PATH > > I've copied cmwlogin to /var/lib/rancid/bin > I've copied cmw.pm to /var/lib > > rancid at aubnesrv7rancid1:~/bin$ pwd > /var/lib/rancid/bin > rancid at aubnesrv7rancid1:~/bin$ ls cmwlogin -l > -rwxr-xr-x 1 root root 30304 Dec 19 15:18 cmwlogin > > rancid at aubnesrv7rancid1:~$ pwd > /var/lib/rancid > rancid at aubnesrv7rancid1:~$ ls cmw.pm -l > -rwxr-xr-x 1 rancid rancid 16533 Dec 19 15:21 cmw.pm > > rancid at testrancidserver:~/bin$ export > declare -x HOME="/var/lib/rancid" > declare -x LANG="en_US.UTF-8" > declare -x LOGNAME="rancid" > declare -x MAIL="/var/mail/rancid" > declare -x OLDPWD="/var/lib/rancid" > declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin" > declare -x PWD="/var/lib/rancid/bin" > declare -x SHELL="/bin/bash" > declare -x SHLVL="1" > declare -x TERM="xterm" > declare -x USER="rancid" > declare -x XDG_DATA_DIRS="/usr/local/share:/usr/share:/var/lib/snapd/desktop" > > Anyone able to assist? > > Kind Regards > Aaron > > > ********************************************************************************* > > LEGAL DISCLAIMER. The contents of this electronic communication and any attached documents are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. > > If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system. > > ********************************************************************************* > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From nick.nauwelaerts at aquafin.be Wed Dec 19 21:23:57 2018 From: nick.nauwelaerts at aquafin.be (Nick Nauwelaerts) Date: Wed, 19 Dec 2018 21:23:57 +0000 Subject: [rancid] aerohive/hiveos support Message-ID: (also included: removal of fortinet/fnrancid references since it's now a module & a few minor nitpicks) support for aerohive/hiveos access points: login script ahlogin: * originally by erik muller: https://github.com/ermuller/rancid-stuff. * should be up to date with the latest changes of svn 3937. * saving on changed config works, -x & -c have also been tested. * .cvsignore entry added module hiveos.pm: * respects nocommstr; filter_pwds & filter_osc * tested against multiple hardware options & operating system versions * does not sort acls/snmp yet * does not yet handle all passwords/secrets - it does filter the items we use with respect to filter_* settings * also fetches additional info depending on filter_* settings * no clear end of run marker * rancid.types.base entries other: * docs, makefiles & config scripts have been updated completely i hope. * hiveos.pm.in has a lot of comments, they can be deleted if they add little/no value. has been in use for almost 6 months. perhaps naming the login script ahlogin (aerohive login) and the module hiveos.pm seems strange, just rename if you don't like it. git code here but git & me just dont get along: https://github.com/inphobia/rancid-aerohive-support // nick ________________________________ Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy. P Denk aan het milieu. Druk deze mail niet onnodig af. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ah.diff Type: application/octet-stream Size: 56781 bytes Desc: ah.diff URL: From aaronsutton89 at outlook.com Thu Dec 20 00:10:19 2018 From: aaronsutton89 at outlook.com (Aaron Sutton) Date: Thu, 20 Dec 2018 00:10:19 +0000 Subject: [rancid] Ubuntu with Rancid 3.7 - Comware (CMW) In-Reply-To: References: Message-ID: Hi, Thank you Haes, I found the path for PERL5LIB and copied cmw.pm into this folder. I also had to modify cmwlogin SHEBANG line from '#! /usr/local/bin/expect --' to '#! /usr/bin/expect --' I can now successfully run ./cmwlogin -y aes128-cbc routername. This logs into the device I can also successfuly run ./cmwlogin -y aes128-cbc -c 'display current-config' routername. This logs into the device, outputs running-config and then exits SSH session. Hit my next problem now, i'm getting 'end of run not found' in my logs. routername1: End of run not found return routername2: End of run not found return routername3: End of run not found return If i try the following command; ./rancid -d -t cmw routername1 loadtype: device type cmw loadtype: found device type cmw in /etc/rancid/rancid.types.conf executing cmwlogin -t 90 -c"display version;display boot-loader;display startup;dir /all;dir /all unit2>flash:/;dir /all slot2#flash:/;dir /all unit3>flash:/;dir /all slot3#flash:/;dir /all unit4>flash:/;dir /all slot4#flash:/;dir /all unit5>flash:/;dir /all slot5#flash:/;dir /all unit6>flash:/;dir /all slot6#flash:/;dir /all unit7>flash:/;dir /all slot7#flash:/;dir /all unit8>flash:/;dir /all slot8#flash:/;display device;display device manuinfo;display fan;display power;display poe powersupply;display poe temperature-protection;display transceiver interface;display cluster;display domain;display local-user;display password-control;display password-control super;display ssh server status;display irf;display xrn-fabric;display ftm topology-database;display fib;display ip routing-table;display ospf;display ospf brief;display vlan all;display lacp sys;display link-aggregation summary;display link-aggregation verbose;display loopback-detection;display mirror all;display ntp-service status;display stp root;display current-configuration" routername1 sh: 1: cmwlogin: not found aubneleaf3a0511: missed cmd(s): all commands aubneleaf3a0511: End of run not found aubneleaf3a0511: clean_run is false aubneleaf3a0511: found_end is false Now, SH: 1: cmwlogin: not found error was why i updated the SHEBANG originally, but for some reason i'm not hitting this on ./rancid. If i run rancid-run however, this issue isn't present in the logs. I feel very close to getting this working now... -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaronsutton89 at outlook.com Thu Dec 20 00:25:31 2018 From: aaronsutton89 at outlook.com (Aaron Sutton) Date: Thu, 20 Dec 2018 00:25:31 +0000 Subject: [rancid] Ubuntu with Rancid 3.7 - Comware (CMW) In-Reply-To: References: , Message-ID: Hi, More information, I think the SH: 1: cmwlogin: not found error is due to not running this as the rancid user. I also get the same error with cisco devices which run completely run with rancid-run. admin at rancidserver:/var/lib/rancid/bin$ sudo ./rancid -t cisco routername100 [sudo] password for admin: sh: 1: clogin: not found routername100: missed cmd(s): all commands routername100: End of run not found If i try and run under rancid account however, i'm getting permission errors. rancid at rancidserver:~/bin$ ./rancid -t cisco routername100 Can't open rotuername100.new for writing: Permission denied Kind Regards Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Dec 20 00:51:19 2018 From: heas at shrubbery.net (heasley) Date: Thu, 20 Dec 2018 00:51:19 +0000 Subject: [rancid] Ubuntu with Rancid 3.7 - Comware (CMW) In-Reply-To: References: Message-ID: <20181220005119.GJ60699@shrubbery.net> Thu, Dec 20, 2018 at 12:25:31AM +0000, Aaron Sutton: > Hi, > > More information, > > I think the SH: 1: cmwlogin: not found error is due to not running this as the rancid user. I also get the same error with cisco devices which run completely run with rancid-run. > > admin at rancidserver:/var/lib/rancid/bin$ sudo ./rancid -t cisco routername100 > [sudo] password for admin: > sh: 1: clogin: not found it does not assume a PATH, it inherits; so clogin must be in yours. the rancid-run uses rancid.conf to adjust its PATH. > routername100: missed cmd(s): all commands > routername100: End of run not found > > If i try and run under rancid account however, i'm getting permission errors. > rancid at rancidserver:~/bin$ ./rancid -t cisco routername100 > Can't open rotuername100.new for writing: Permission denied > > Kind Regards > Aaron > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From aaronsutton89 at outlook.com Thu Dec 20 01:14:18 2018 From: aaronsutton89 at outlook.com (Aaron Sutton) Date: Thu, 20 Dec 2018 01:14:18 +0000 Subject: [rancid] Ubuntu with Rancid 3.7 - Comware (CMW) In-Reply-To: <20181220005119.GJ60699@shrubbery.net> References: , <20181220005119.GJ60699@shrubbery.net> Message-ID: Thanks Heasley, Appreciate your responses. Makes sense regarding PATHS then when running as rancid user. Any ideas about the 'end of run' issues? Kind Regards Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From nineoften at hotmail.com Fri Dec 21 20:40:40 2018 From: nineoften at hotmail.com (Ni Ne) Date: Fri, 21 Dec 2018 20:40:40 +0000 Subject: [rancid] aerohive/hiveos support In-Reply-To: References: Message-ID: Thank you very much for publishing this. I have only started using it just now, so I can only confirm that it at least pulls configs successfully. I have it working against these software version and these hardware versions, with about 150 total devices included: # software 3.4r4a 6.5r8a 6.5r10 8.0r1 8.1r1 # hardware HiveAP020_ag AP250 HiveAP320_n HiveAP330 I had a bit of trouble figuring out how to apply your patches to my existing install of RANCID. I installed from source tarball from the Shrubbery site. So I couldn't just do a git merge or something. These are the instructions I used: 1) clone this repo, save to your home dir (outside of normal rancid path) git clone https://github.com/inphobia/rancid-aerohive-support.git 2) Configure into your home dir (outside of normal rancid path) ./configure --prefix=/home/nineoften/rancid 3) Install make install 4) Copy the login and pm files (/usr/local/rancid is my production rancid main path) cp /home/nineoften/rancid/bin/ahlogin /usr/local/rancid/bin/. cp /home/nineoften/rancid/lib/rancid/hiveos.pm /usr/local/rancid/lib/rancid/. 5) Add lines to rancid.types.conf hiveos;script;rancid -t hiveos hiveos;login;ahlogin hiveos;module;hiveos hiveos;inloop;hiveos::inloop hiveos;command;hiveos::ShowVersion;show version hiveos;command;hiveos::ShowVersion;show hw-info hiveos;command;hiveos::ShowBoot;show boot-param hiveos;command;hiveos::ShowLicense;show license hiveos;command;hiveos::ShowCapWap;show capwap client hiveos;command;hiveos::ShowIDManager;show idm hiveos;command;hiveos::WriteTerm;show running-config password hiveos;command;hiveos::WriteTerm;show running-config users password 6) Do other normal stuff, like add entries to router.db file using "hiveos" as the vendor type for your AeroHive access points. Would it be possible to get this merged into the mainline release of RANCID in the future? Last time I installed RANCID from scratch several years ago, I had to do similar steps - and figure out how to include others' patches for AeroHive into my install. Thanks again! -Aaron ________________________________ From: Rancid-discuss on behalf of Nick Nauwelaerts Sent: Wednesday, December 19, 2018 3:23 PM To: rancid-discuss at shrubbery.net Subject: [rancid] aerohive/hiveos support (also included: removal of fortinet/fnrancid references since it's now a module & a few minor nitpicks) support for aerohive/hiveos access points: login script ahlogin: * originally by erik muller: https://github.com/ermuller/rancid-stuff. * should be up to date with the latest changes of svn 3937. * saving on changed config works, -x & -c have also been tested. * .cvsignore entry added module hiveos.pm: * respects nocommstr; filter_pwds & filter_osc * tested against multiple hardware options & operating system versions * does not sort acls/snmp yet * does not yet handle all passwords/secrets - it does filter the items we use with respect to filter_* settings * also fetches additional info depending on filter_* settings * no clear end of run marker * rancid.types.base entries other: * docs, makefiles & config scripts have been updated completely i hope. * hiveos.pm.in has a lot of comments, they can be deleted if they add little/no value. has been in use for almost 6 months. perhaps naming the login script ahlogin (aerohive login) and the module hiveos.pm seems strange, just rename if you don't like it. git code here but git & me just dont get along: https://github.com/inphobia/rancid-aerohive-support // nick ________________________________ Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy. P Denk aan het milieu. Druk deze mail niet onnodig af. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.nauwelaerts at aquafin.be Sat Dec 22 01:15:05 2018 From: nick.nauwelaerts at aquafin.be (Nick Nauwelaerts) Date: Sat, 22 Dec 2018 01:15:05 +0000 Subject: [rancid] aerohive/hiveos support In-Reply-To: References: Message-ID: good point, me & git are not yet compatible :) so, this diff should work against rancid svn revision 3935 (also known as rancid-alpha, but the source tarball is a moving target - ftp://ftp.shrubbery.net/pub/rancid/alpha/ ), i have not tested it in any way with rancid 3.8. for rancid svn 3935 + aerohive support the easiest way is to check out https://github.com/inphobia/rancid-orig.git: (i'm trying to track rancid svn , but thus far it's been manual merging) git clone https://github.com/inphobia/rancid-orig.git cd rancid-orig ./configure --help (follow the rancid build instructions from here on) if you do want to backport it, there are 3 important parts you need to add: bin/ahlogin ->login script for aerohive ap's lib/hiveos.pm -> perl module needed to actually do something etc/rancid.types.base or rancid.types.conf -> add items listed in step 5 from mail below. and yeah, i do hope this might get included in mainline rancid. while there are a few things not yet completed (as noted in the original mail), it has already helped me out immensely since hivemanager-ng has no revision control it seems. lmk should you have any more questions. // nick From: Ni Ne [mailto:nineoften at hotmail.com] Sent: Friday, December 21, 2018 21:41 To: Nick Nauwelaerts ; rancid-discuss at shrubbery.net Subject: Re: aerohive/hiveos support Thank you very much for publishing this. I have only started using it just now, so I can only confirm that it at least pulls configs successfully. I have it working against these software version and these hardware versions, with about 150 total devices included: # software 3.4r4a 6.5r8a 6.5r10 8.0r1 8.1r1 # hardware HiveAP020_ag AP250 HiveAP320_n HiveAP330 I had a bit of trouble figuring out how to apply your patches to my existing install of RANCID. I installed from source tarball from the Shrubbery site. So I couldn't just do a git merge or something. These are the instructions I used: 1) clone this repo, save to your home dir (outside of normal rancid path) git clone https://github.com/inphobia/rancid-aerohive-support.git 2) Configure into your home dir (outside of normal rancid path) ./configure --prefix=/home/nineoften/rancid 3) Install make install 4) Copy the login and pm files (/usr/local/rancid is my production rancid main path) cp /home/nineoften/rancid/bin/ahlogin /usr/local/rancid/bin/. cp /home/nineoften/rancid/lib/rancid/hiveos.pm /usr/local/rancid/lib/rancid/. 5) Add lines to rancid.types.conf hiveos;script;rancid -t hiveos hiveos;login;ahlogin hiveos;module;hiveos hiveos;inloop;hiveos::inloop hiveos;command;hiveos::ShowVersion;show version hiveos;command;hiveos::ShowVersion;show hw-info hiveos;command;hiveos::ShowBoot;show boot-param hiveos;command;hiveos::ShowLicense;show license hiveos;command;hiveos::ShowCapWap;show capwap client hiveos;command;hiveos::ShowIDManager;show idm hiveos;command;hiveos::WriteTerm;show running-config password hiveos;command;hiveos::WriteTerm;show running-config users password 6) Do other normal stuff, like add entries to router.db file using "hiveos" as the vendor type for your AeroHive access points. Would it be possible to get this merged into the mainline release of RANCID in the future? Last time I installed RANCID from scratch several years ago, I had to do similar steps - and figure out how to include others' patches for AeroHive into my install. Thanks again! -Aaron ________________________________ From: Rancid-discuss on behalf of Nick Nauwelaerts Sent: Wednesday, December 19, 2018 3:23 PM To: rancid-discuss at shrubbery.net Subject: [rancid] aerohive/hiveos support (also included: removal of fortinet/fnrancid references since it's now a module & a few minor nitpicks) support for aerohive/hiveos access points: login script ahlogin: * originally by erik muller: https://github.com/ermuller/rancid-stuff. * should be up to date with the latest changes of svn 3937. * saving on changed config works, -x & -c have also been tested. * .cvsignore entry added module hiveos.pm: * respects nocommstr; filter_pwds & filter_osc * tested against multiple hardware options & operating system versions * does not sort acls/snmp yet * does not yet handle all passwords/secrets - it does filter the items we use with respect to filter_* settings * also fetches additional info depending on filter_* settings * no clear end of run marker * rancid.types.base entries other: * docs, makefiles & config scripts have been updated completely i hope. * hiveos.pm.in has a lot of comments, they can be deleted if they add little/no value. has been in use for almost 6 months. perhaps naming the login script ahlogin (aerohive login) and the module hiveos.pm seems strange, just rename if you don't like it. git code here but git & me just dont get along: https://github.com/inphobia/rancid-aerohive-support // nick ________________________________ Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy. P Denk aan het milieu. Druk deze mail niet onnodig af. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sid.Arnold at corp.forethought.net Fri Dec 21 21:51:04 2018 From: Sid.Arnold at corp.forethought.net (Sid Arnold) Date: Fri, 21 Dec 2018 21:51:04 +0000 Subject: [rancid] aerohive/hiveos support In-Reply-To: References: , Message-ID: <1545429063543.99106@corp.forethought.net> ?Thank you Julie. ________________________________ From: Rancid-discuss on behalf of Ni Ne Sent: Friday, December 21, 2018 1:40 PM To: Nick Nauwelaerts; rancid-discuss at shrubbery.net Subject: Re: [rancid] aerohive/hiveos support Thank you very much for publishing this. I have only started using it just now, so I can only confirm that it at least pulls configs successfully. I have it working against these software version and these hardware versions, with about 150 total devices included: # software 3.4r4a 6.5r8a 6.5r10 8.0r1 8.1r1 # hardware HiveAP020_ag AP250 HiveAP320_n HiveAP330 I had a bit of trouble figuring out how to apply your patches to my existing install of RANCID. I installed from source tarball from the Shrubbery site. So I couldn't just do a git merge or something. These are the instructions I used: 1) clone this repo, save to your home dir (outside of normal rancid path) git clone https://github.com/inphobia/rancid-aerohive-support.git 2) Configure into your home dir (outside of normal rancid path) ./configure --prefix=/home/nineoften/rancid 3) Install make install 4) Copy the login and pm files (/usr/local/rancid is my production rancid main path) cp /home/nineoften/rancid/bin/ahlogin /usr/local/rancid/bin/. cp /home/nineoften/rancid/lib/rancid/hiveos.pm /usr/local/rancid/lib/rancid/. 5) Add lines to rancid.types.conf hiveos;script;rancid -t hiveos hiveos;login;ahlogin hiveos;module;hiveos hiveos;inloop;hiveos::inloop hiveos;command;hiveos::ShowVersion;show version hiveos;command;hiveos::ShowVersion;show hw-info hiveos;command;hiveos::ShowBoot;show boot-param hiveos;command;hiveos::ShowLicense;show license hiveos;command;hiveos::ShowCapWap;show capwap client hiveos;command;hiveos::ShowIDManager;show idm hiveos;command;hiveos::WriteTerm;show running-config password hiveos;command;hiveos::WriteTerm;show running-config users password 6) Do other normal stuff, like add entries to router.db file using "hiveos" as the vendor type for your AeroHive access points. Would it be possible to get this merged into the mainline release of RANCID in the future? Last time I installed RANCID from scratch several years ago, I had to do similar steps - and figure out how to include others' patches for AeroHive into my install. Thanks again! -Aaron ________________________________ From: Rancid-discuss on behalf of Nick Nauwelaerts Sent: Wednesday, December 19, 2018 3:23 PM To: rancid-discuss at shrubbery.net Subject: [rancid] aerohive/hiveos support (also included: removal of fortinet/fnrancid references since it's now a module & a few minor nitpicks) support for aerohive/hiveos access points: login script ahlogin: * originally by erik muller: https://github.com/ermuller/rancid-stuff. * should be up to date with the latest changes of svn 3937. * saving on changed config works, -x & -c have also been tested. * .cvsignore entry added module hiveos.pm: * respects nocommstr; filter_pwds & filter_osc * tested against multiple hardware options & operating system versions * does not sort acls/snmp yet * does not yet handle all passwords/secrets - it does filter the items we use with respect to filter_* settings * also fetches additional info depending on filter_* settings * no clear end of run marker * rancid.types.base entries other: * docs, makefiles & config scripts have been updated completely i hope. * hiveos.pm.in has a lot of comments, they can be deleted if they add little/no value. has been in use for almost 6 months. perhaps naming the login script ahlogin (aerohive login) and the module hiveos.pm seems strange, just rename if you don't like it. git code here but git & me just dont get along: https://github.com/inphobia/rancid-aerohive-support // nick ________________________________ Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy. P Denk aan het milieu. Druk deze mail niet onnodig af. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Remi.FESSARD at knorr-bremse.com Mon Dec 31 09:52:08 2018 From: Remi.FESSARD at knorr-bremse.com (=?iso-8859-1?Q?FESSARD=2C_R=E9mi?=) Date: Mon, 31 Dec 2018 09:52:08 +0000 Subject: [rancid] HP 2620-24-PoEP Switch (J9625A) Message-ID: Hello, Since I updated the firmware RA.16.02.0012 to RA.16.04.0016 on my switches HP 2620-24-PoEP Switch (J9625A), Rancid didn't save it. If I test the command ./bin/hlogin -c "show system information" rein0087, I have this result: rein0087 spawn hpuifilter -- ssh -x -l kbradm rein0087 We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.hpe.com/networking/register kbradm at xx.xx.xx.xx's password: HP J9625A 2620-24-PoEP Switch Software revision RA.16.04.0016 (C) Copyright 2018 Hewlett Packard Enterprise Development LP RESTRICTED RIGHTS LEGEND Confidential computer software. Valid license from Hewlett Packard Enterprise Development LP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. System went down: 12/31/18 09:37:48 Saved crash information: Operator reboot from WEB session. Press any key to continue Your previous successful login (as manager) was on 2018-12-31 09:33:40 from 149.244.146.125 REIN0087-B1-HPE2620-24-PoE+# REIN0087-B1-HPE2620-24-PoE+# no page REIN0087-B1-HPE2620-24-PoE+# Can you, please, help me to solve this issue ? Many thanks in advance, R?mi This transmission is intended solely for the addressee and contains confidential information. If you are not the intended recipient, please immediately inform the sender and delete the message and any attachments from your system. Furthermore, please do not copy the message or disclose the contents to anyone unless agreed otherwise. To the extent permitted by law we shall in no way be liable for any damages, whatever their nature, arising out of transmission failures, viruses, external influence, delays and the like. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Remi.FESSARD at knorr-bremse.com Mon Dec 31 10:43:35 2018 From: Remi.FESSARD at knorr-bremse.com (=?iso-8859-1?Q?FESSARD=2C_R=E9mi?=) Date: Mon, 31 Dec 2018 10:43:35 +0000 Subject: [rancid] HP 2620-24-PoEP Switch (J9625A) In-Reply-To: References: Message-ID: Hello, Forgot this mail, it was not a firmware upgrade issue but just because my colleague add "-PoE+" in the hostname. Without the "+", it works fine now. R?mi From: FESSARD, R?mi Sent: Monday, December 31, 2018 10:52 AM To: rancid-discuss at shrubbery.net Subject: HP 2620-24-PoEP Switch (J9625A) Hello, Since I updated the firmware RA.16.02.0012 to RA.16.04.0016 on my switches HP 2620-24-PoEP Switch (J9625A), Rancid didn't save it. If I test the command ./bin/hlogin -c "show system information" rein0087, I have this result: rein0087 spawn hpuifilter -- ssh -x -l kbradm rein0087 We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.hpe.com/networking/register kbradm at xx.xx.xx.xx's password: HP J9625A 2620-24-PoEP Switch Software revision RA.16.04.0016 (C) Copyright 2018 Hewlett Packard Enterprise Development LP RESTRICTED RIGHTS LEGEND Confidential computer software. Valid license from Hewlett Packard Enterprise Development LP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. System went down: 12/31/18 09:37:48 Saved crash information: Operator reboot from WEB session. Press any key to continue Your previous successful login (as manager) was on 2018-12-31 09:33:40 from 149.244.146.125 REIN0087-B1-HPE2620-24-PoE+# REIN0087-B1-HPE2620-24-PoE+# no page REIN0087-B1-HPE2620-24-PoE+# Can you, please, help me to solve this issue ? Many thanks in advance, R?mi This transmission is intended solely for the addressee and contains confidential information. If you are not the intended recipient, please immediately inform the sender and delete the message and any attachments from your system. Furthermore, please do not copy the message or disclose the contents to anyone unless agreed otherwise. To the extent permitted by law we shall in no way be liable for any damages, whatever their nature, arising out of transmission failures, viruses, external influence, delays and the like. -------------- next part -------------- An HTML attachment was scrubbed... URL: