HPE Aruba Networking & ProVision-based
1829691 Members
8127 Online
109992 Solutions
New Discussion

How to get correct output when telnet to HP ProCurve

 
SOLVED
Go to solution
leeffa
Advisor

How to get correct output when telnet to HP ProCurve

Hi all

I use a telnet library to connect to device.

And got the output with many strange character,ex:

here i send "enable" command, and got:

enable[?25hE[?25hUsername: [?25h[?25h[?25h

 

Please tell me how to remove it or display output correctly?

 

Thanks.

4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: How to get correct output when telnet to HP ProCurve

Using telnet from where?  What OS version?  What type of terminal emulation?

It appears you need a xterm?

leeffa
Advisor

Re: How to get correct output when telnet to HP ProCurve

Hi,

I use library com.jscape.inet.telnet.Telnet to connect from PC (Windows XP) to real HP ProCurve 4104gl switch.

Please help!!

 

Oleg Sukharev
Valued Contributor
Solution

Re: How to get correct output when telnet to HP ProCurve

Hi leffa,

 

That's normal.

You need to strip off ANSI/VT100 Terminal Control Escape Sequences (i.e. used to position cursor):

http://www.termsys.demon.co.uk/vtansi.htm

 

HTH,

Oleg

leeffa
Advisor

Re: How to get correct output when telnet to HP ProCurve

Thanks. I got it.