Operating System - HP-UX
1830180 Members
2608 Online
109999 Solutions
New Discussion

Telnet session hangs, when I open vi or output is large

 
SOLVED
Go to solution
Ashly A K
Honored Contributor

Telnet session hangs, when I open vi or output is large

hi,

We have a HP UX box. When i can connect to it using putty, from Windows. But, when i start vi or any command, with large put put(like tail, cat etc) the session hangs. At the same time, in some of the Windows boxes, it is working with out any issues! I compared the LAN card settings, putty settings etc in the client, all are same.

Could any one please help me to fix this ? I am totally lost!!!
http://www.geocities.com/helponhpopenview
23 REPLIES 23
Oviwan
Honored Contributor

Re: Telnet session hangs, when I open vi or output is large

hy

have you the same putty version and have you enabled the session logging in putty?

Regards
Sharma Sanjeev
Respected Contributor

Re: Telnet session hangs, when I open vi or output is large

Hi

Try this version
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Ashly A K
Honored Contributor

Re: Telnet session hangs, when I open vi or output is large

Yes, putty versions are same.
http://www.geocities.com/helponhpopenview
Ashly A K
Honored Contributor

Re: Telnet session hangs, when I open vi or output is large

Hi Sanjay,

Tried the attached, but issue remains.

http://www.geocities.com/helponhpopenview
Anshumali
Esteemed Contributor

Re: Telnet session hangs, when I open vi or output is large

Putty settings are same, server is same, file is same, but the behavior is reproducible only from one Windows box!!
Afraid to say, the bottleneck is windows, reinstalling might fix issue. Use your due diligence. :)
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Ashly A K
Honored Contributor

Re: Telnet session hangs, when I open vi or output is large

hi,

Not one windows boxes- out of 20 windows boxes, we have issues with most of them. compared the patches, versions etc..etc.. with all the boxes, all are same !!!
http://www.geocities.com/helponhpopenview
Masud Parvez
Valued Contributor

Re: Telnet session hangs, when I open vi or output is large

If in between windows servers and HPUX box there is firewall then try to avoid firewall and test it.
Ashly A K
Honored Contributor

Re: Telnet session hangs, when I open vi or output is large

Hi,

No firewalls!!!

More over, we are able to connect to the HP UX box, and able to execute commands. If the command output is large, the session hangs.


For example, if i say "cat abcd", and the abcd is small, it works. If the file abcd is large, the session hangs, in some of the systems.

http://www.geocities.com/helponhpopenview
Masud Parvez
Valued Contributor

Re: Telnet session hangs, when I open vi or output is large

Which one you are using ssh or telnet when using putty?
Sharma Sanjeev
Respected Contributor

Re: Telnet session hangs, when I open vi or output is large

Hi Ashly

Please try this

open putty session

window > Line to Scrollback > make it 200000

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Deepak Kr
Respected Contributor

Re: Telnet session hangs, when I open vi or output is large

Hi Ashly,

Try this also:

Open a telnet session to hp-ux box

run following

stty ixoff
/bin/X11/resize

cat file_name_you_want_to_open...

"There is always some scope for improvement"
Torsten.
Acclaimed Contributor

Re: Telnet session hangs, when I open vi or output is large

I would use

"pathping"

from the window box to ensure or check connectivity first.

Just type

"pathping"

for more options.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ashly A K
Honored Contributor

Re: Telnet session hangs, when I open vi or output is large

Another possible suspect is, the HP UX and Windows boxes are in different sub-nets. But, some of the Win boxes in this sub net works and some doesn't works.

How can i narrow down, whether this is a network issue or a server issue or a client issue ?

I am totally lost!!
http://www.geocities.com/helponhpopenview
Anshumali
Esteemed Contributor

Re: Telnet session hangs, when I open vi or output is large

We can try following 2 things:

1. Re-IP the windows which is not working with the IP which is working.
2. Capture Ethreal at time of pasting and compare.

1st can be tried immediately.

Anshu
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Ph. LAQUERRIERE
Occasional Advisor

Re: Telnet session hangs, when I open vi or output is large

Could you see a lan configuration between your HP box and a switch, because in some case if your switch conf is in autoneg and your HP box too, you can have the problem.
you must force full duplex in all component, or in HP box.

Regards.
Anshumali
Esteemed Contributor

Re: Telnet session hangs, when I open vi or output is large

I wouldn't suggest touching HP box......... :)
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Jov
Honored Contributor

Re: Telnet session hangs, when I open vi or output is large

Hi,

Repeat the same functions that causes the error, but without logging to eliminate this factor.


Jov
Mark Ellzey
Valued Contributor

Re: Telnet session hangs, when I open vi or output is large

Hi,

Check the usage of /tmp on the HP box. If you are trying to vi a large file, vi uses /tmp (or /var/tmp, I don't remember which) to create a temp file of what you are editing. If /tmp if full, or nearly so, vi will bomb. Ususally, though, it will tell you that it does't have enough space to open the file.

Just my 2cts.
Mark
Anshumali
Esteemed Contributor

Re: Telnet session hangs, when I open vi or output is large

Mark,

he mentioned, "At the same time, in some of the Windows boxes, it is working with out any issues!"

In this case, i dont see any thing on hp-ux as issue is not always reproducible from all Win boxes... :-)

Cheers!
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Trevor Roddam_1
Valued Contributor
Solution

Re: Telnet session hangs, when I open vi or output is large

Hi.

This may lead to nothing but I have seen this when the server and the switch have mismatched Duplex on the NIC.

Find out what the switch is set to (Auto, 1000FD, 1000HD etc) and then use landiag to look at the duplex setting of the NIC.
lanscan will show you which card number to reference.

It will probably be set to the opposite of the switch IE half duplex instead of full.....
It will probably be a CISCO switch too.

Reset both to the same and all is OK...

Trevor.
Baldric, I have a plan so cunning you could pin a tail on it and call it a weasle.
Ashly A K
Honored Contributor

Re: Telnet session hangs, when I open vi or output is large

Hey,

it might be a network issue. we are planning to change from half duplex to full.

mean while, any other ideas, MOST Welcome
http://www.geocities.com/helponhpopenview
Ralph Grothe
Honored Contributor

Re: Telnet session hangs, when I open vi or output is large

>More over, we are able to connect to the HP UX >box, and able to execute commands. If the >command output is large, the session hangs.

I'm not sure, but this sounds as if the path MTU discovery between Putty client and HP-UX server is impaired.
Could it be that you have any blackhole routers along the route (viz. those which aren't allowed to return ICMP "fragmentation needed" packets)?
Some network device admins block all (even legitimate) ICMP traffic).
I'm not sure about the Windows ping command,
but I think it also allows for giving the packet size (try WINkey+r => cmd to get a DOS shell and enter "ping /h" for valid options).
Then you could try to send echo request packets of increasing size (provided these aren't filtered, and the HP-UX server is allowed to respond), and check from when you encounter packet loss.
But I suppose in order to reduce the MTU of your windows box you need to tamper with some registry setting, of which I am afraid I am clueless.
Madness, thy name is system administration
Ashly A K
Honored Contributor

Re: Telnet session hangs, when I open vi or output is large

Thank you All!!! It was the issue with MTU settings in the client PCs...

Thanks a TON for the inputs!!!
http://www.geocities.com/helponhpopenview