[rancid] Printed artifact when rancid logs into a switch (^[[53; 211R)
Remsik,Robert
Robert.Remsik at colostate.edu
Wed May 17 15:45:34 UTC 2017
Confirmed, that was the exact fix needed. Thank you all again!
Robert Remsik
ACNS
Desk Phone: 970 491 7120
Robert.Remsik at colostate.edu
________________________________
From: Remsik,Robert
Sent: Wednesday, May 17, 2017 8:55:07 AM
To: Per-Olof Olsson; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Printed artifact when rancid logs into a switch (^[[53; 211R)
That looks to be almost, if not exactly what I'm looking for. Thank you. 😊
Did you just do a 'make', to compile the hpuifilter file? Or did you do 'make install' as well? I'm hoping I can just 'make' and then copy the compiled file to where I need.
Robert Remsik
ACNS
Desk Phone: 970 491 7120
Robert.Remsik at colostate.edu
________________________________
From: Per-Olof Olsson <peo at chalmers.se>
Sent: Tuesday, May 16, 2017 11:19 PM
To: Remsik,Robert; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Printed artifact when rancid logs into a switch (^[[53; 211R)
Hello
Is it new ESC-codes added in late HP/Aruba versionens that make the login problem?
It's possible that You need to patch hpuifilter.c and add filters for “[?7h”, “[1L”, and “[1M”.
Look for Subject "rancid with hp5412 J8697A or hp5406" posted on this list mars 24 2017.
/Peo
----------------------------------------------------------
Per-Olof Olsson Email: peo at chalmers.se
Chalmers tekniska högskola IT-avdelningen
Arvid Hedvalls backe 6 412 96 Göteborg
Tel: 031/772 6738 Mob: 0707 88 3708
----------------------------------------------------------
On 05/17/2017 12:41 AM, Remsik,Robert wrote:
> Hello!
>
>
> I'm trying to troubleshoot a case where rancid's not backing up a device properly because it can't login.
>
>
> ... In the test.log file: ...
>
> starting: Tue May 16 15:37:25 MDT 2017
>
>
>
> Trying to get all of the configs.
> couldn't compile regular expression pattern: parentheses () not balanced
> while executing
> "expect {
> -re "\[\n\r]+" { exp_continue }
> -re $reprompt {}
> }"
> (procedure "run_commands" line 12)
> invoked from within
> "run_commands $prompt $command"
> ("foreach" body line 159)
> invoked from within
> "foreach router [lrange $argv $i end] {
> set router [string tolower $router]
> send_user "$router\n"
>
> # device timeout
> set timeout [find t..."
> (file "/path-to-rancid/rancid-3.5.1/bin/hlogin" line 657)^M
> 10.100.116.17: missed cmd(s): all commands
> 10.100.116.17: End of run not found
>
> ... which after trying to run hrancid I get the same error and it doesn't write the correct debug file 'z'.
> Looking at the .new file I see it didn't process any of the commands. ...
>
> rancid at truck:~/bin$ hrancid -t z -d 10.100.116.17
> executing hlogin -t 90 -c"show version;show flash;show system-information;show system information;show
> module;show stack;show tech transceivers;show config files;show config status;write term" 10.100.116.17
>
> rancid at truck:~/bin$ ls z
> ls: cannot access 'z': No such file or directory
>
>
> rancid at truck:~/bin$ ls *.new
> 10.100.116.17.new
>
>
>
> rancid at truck:~/bin$ cat 10.100.116.17.new
> ;RANCID-CONTENT-TYPE: hp
> ;
> ;
> ;
> ;
> ;
> ;
> ;
> ;
> ;
>
>
>
> ... When I run hlogin with the -c option I get the same error. However when I remove the -c option to confirm
> if I can login at all, I can, with an artifact of (^[[53;211R) at the prompt. Logging in via SSH doesn't
> provide this artifact. ...
>
> rancid at SERVER:~/bin$ ./hlogin -f /PATH/rancid-3.5.1/.cloginrc -c 'show ip' x.y.116.17
> x.y.116.17
> spawn hpuifilter -- ssh -x -l USER x.y.116.17
> 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<http://www.hpe.com/networking/register>
>
>
> USER at x.y.116.17's password:
> Aruba JL261A 2930F-24G-PoE+-4SFP Switch
> Software revision WC.16.02.0016
>
> (C) Copyright 2017 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.
>
> Press any key to continueYour previous successful login (as x) was on 2017-05-16 16:28:23
> from 10.100.1.219
> hostname# couldn't compile regular expression pattern: parentheses () not balanced
> while executing
> "expect {
> -re "\[\n\r]+"{ exp_continue }
> -re $reprompt{}
> }"
> (procedure "run_commands" line 12)
> invoked from within
> "run_commands $prompt $command"
> ("foreach" body line 159)
> invoked from within
> "foreach router [lrange $argv $i end] {
> set router [string tolower $router]
> send_user "$router\n"
>
> # device timeout
> set timeout [find t..."
> (file "./hlogin" line 657)
>
> rancid at SERVER:~/bin$ ./hlogin -f /PATH/rancid-3.5.1/.cloginrc x.y.116.17
> x.y.116.17
> spawn ssh -x -l USER x.y.116.17
> 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<http://www.hpe.com/networking/register>
>
>
> USER at x.y.116.17's password:
> Aruba JL261A 2930F-24G-PoE+-4SFP Switch
> Software revision WC.16.02.0016
>
> (C) Copyright 2017 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.
>
> Press any key to continue
> from x.y.1.219
>
>
> HOSTNAME# ^[[53;211R
> HOSTNAME#
>
> ... Curiously the problem is not widespread. ~1% of my environment and after talking with a college (who's
> running the latest version of rancid - he reported the problem to me) it appears to be switch version
> dependant as only some specific versions of code. He confirmed by upgrading and downgrading code on an
> HP5412Rzl2 in his environment. I was able to locate 2 more versions of code that had the same error.
>
> Aruba JL261A 2930F-24G-PoE+-4SFP Switch
> Software revision WC.16.02.0016
>
> HP J9851A Switch 5412Rzl2
> Software revision KB.16.01.0012
>
> *Switch Version RANCID able to poll*
> 16.03.0004 no
> 16.03.0003 yes
> 16.02.0018 no
> 16.02.0016 no
> 16.02.0015 yes
> 16.02.0013 yes
>
>
> Has anyone encountered this before or know how to remove the artifact? Thank you in advance,
>
>
> Robert
>
>
>
>
> Robert Remsik
>
> ACNS
>
> Desk Phone: 970 491 7120
>
> Robert.Remsik at colostate.edu
>
>
>
> _______________________________________________
> 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: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170517/66586adf/attachment.html>
More information about the Rancid-discuss
mailing list