Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

Network Change & Configuration Management

Reply
Highlighted

NetMRI script engine not handling VT-100 escape characters from HP ProCurve

[ Edited ]
Authority
Posts: 19
3825     1

NetMRI version 7.0.5.83982

 

Looking at a session log from a job run, after successful login to an HP switch we see all kinds of garbage from NetMRI not handling control characters (VT-100 escape characters) propertly. This means that after a command is executed the script is confused by the garbage returned to it and cannot properly evaluate what is going on, what it needs to do, etc.

 

We have worked around this by adding the following to the beginning of all of our scripts for HP switches, but that's not the right way to go about things.

 

 

config t
console local-terminal none
end

 

Please have engineering fix this in the product so it works as expected for all customers.

 

Example of session log with the "garbage" output...

 

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.hp.com/networking/register


HP J9850A Switch 5406Rzl2

Software revision KB.15.17.0005



Copyright (C) 1991-2015 Hewlett-Packard Development Company, L.P.

                   RESTRICTED RIGHTS LEGEND
 Confidential computer software.  Valid license from HP 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.
                   HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P. 
                   20555 State Highway 249, Houston, TX 77070

Press any key to continue[?25h[?6l[?7lYour previous successful login (as manager) was on 2016-05-06 05:38:48     
 from 10.10.0.15
[?25hSWITCHNAME# [?25henable[?25hE[?25hInvalid input: enable
[?25hSWITCHNAME# [?25hterminal l[?25hength 1000[?25hE[?25h[?7l[?6l[?25h[?6l[?7l[?25hSWITCHNAME# [?25hterminal w[?25hidth 1920[?25hE[?25h[?7l[?6l[?25h[?6l[?7l[?25hSWITCHNAME# [?25hno page[?25hE[?25h[?25hSWITCHNAME# [?25hconfig t[?25hE[?25h[?25hSWITCHNAME(config)# [?25hconsole lo[?25hcal-termin[?25hal none[?25hE[?25hThis command will initiate a raw mode with all terminal escape
sequences removed from the output. To exit this mode, use the
command "console local-terminal vt100".
tty=none SWITCHNAME(config)# end
tty=none SWITCHNAME# conf t
tty=none SWITCHNAME(config)# end
tty=none SWITCHNAME# wr mem
tty=none SWITCHNAME# 

*** Job Completed Successfully ***

 PS. Why is there no NetMRI "label" available (forum requires selecting at least one label)?

Highlighted

Re: NetMRI script engine not handling VT-100 escape characters from HP ProCurve

Adviser
Posts: 417
3826     1

NCCM or CCS but I informed our community manager Smiley Wink

 

FYI, I would open a ticket looks like our RegEx to clean up the collection changed and needs to be fixed.

 

Sif


Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Highlighted

Re: NetMRI script engine not handling VT-100 escape characters from HP ProCurve

[ Edited ]
Authority
Posts: 19
3826     1



Highlighted

Re: NetMRI script engine not handling VT-100 escape characters from HP ProCurve

Adviser
Posts: 244
3826     1
Thanks for the heads up. I'll get it included and add the tag.

Thank you!

Eric
If you appreciate my efforts, please give me a kudo ↓ or Accept as solution to help others find it faster.
Highlighted

Re: NetMRI script engine not handling VT-100 escape characters from HP ProCurve

Adviser
Posts: 244
3826     1

Done! You'll find NetMRI as the 2nd tag offered.

 

If you appreciate my efforts, please give me a kudo ↓ or Accept as solution to help others find it faster.
Showing results for 
Search instead for 
Do you mean 

Recommended for You