1838282 Members
2890 Online
110125 Solutions
New Discussion

telnet,ssh hangs

 
Ali Syed Masoud
Advisor

telnet,ssh hangs

i am not able to telnet to the hp 5430 machine.we were previously updating the database(oracle) and suddenly it stopped responding.

we are able to ping the server but not able to telnet,rsh,ssh,etc.when we do that we see a blank screeen and doesnt ask for userid/password.
but we can type letter.
and we cant see any errors.

Can somebody tell us how to get in by any means ?
13 REPLIES 13
Ali Syed Masoud
Advisor

Re: telnet,ssh hangs

the operating system is hp-ux 11i
RAC_1
Honored Contributor

Re: telnet,ssh hangs

Can you login from console?

Can root user login by any means-telnet,remsh,rlogin or through console?
There is no substitute to HARDWORK
Jochen Heuer
Respected Contributor

Re: telnet,ssh hangs

Are you running the inetd in logging mode (inetd -l) by any chance?

If this is the case and you have problems with name resolution this can leed to timeouts in connection establishment (inetd tries to do a reverse lookup on the connecting ip address).

But first you need access to the system. Check if a console login is possible.

Regards,


Well, yeah ... I suppose there's no point in getting greedy, is there?
Ali Syed Masoud
Advisor

Re: telnet,ssh hangs

not even remsh.we only see the cursor blinking.wat do you mean by console (gsp?)?
it is rack mounted.
Jochen Heuer
Respected Contributor

Re: telnet,ssh hangs

Exactly. Try GSP or lanconsole or whatever you have :-)

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Ali Syed Masoud
Advisor

Re: telnet,ssh hangs

now i have the GSP prompt
tell me what to do?
Jochen Heuer
Respected Contributor

Re: telnet,ssh hangs

Check if inetd is running:

$ ps -ef | grep inetd

If not, start it:

$ /sbin/init.d/inetd start

Check syslog for error messages when trying to telnet to the system. Enable inetd logging:

$ inetd -l

Watch for messages like these in syslog.log:

inetd[pid]: Connection logging enabled
inetd[pid]: telnet/tcp: Connection from ....

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Jochen Heuer
Respected Contributor

Re: telnet,ssh hangs

You might also want to check if there is a duplicate IP address in your network. Check if

/var/adm/nettl.LOG*

has a current date. If this is the case you might have another system which has the same IP address ...
Well, yeah ... I suppose there's no point in getting greedy, is there?
Ali Syed Masoud
Advisor

Re: telnet,ssh hangs

when i managed to log in to the gsp but couldnt get into the console mode.anyway i had to restart it from the the gsp.

i had checked the /var/adm/nettl.LOG*
and it says that "trying to be our address 'IPaddress' cable disconnected going offline"
where 'IPaddress' is the ipaddress of another hpunix server.

it is strange.could you commnent on this or help me find out whats going on.

Jochen Heuer
Respected Contributor

Re: telnet,ssh hangs

Check the nettl.LOG00 with netfmt:

$ netfmt -N -n -l -f /var/adm/nettl.LOG00 | more

There you should be able to see which MAC address tries to use the same IP address ...

Then you have to find the other system. You can try to disconnect this system from the network and ping / telnet / whatever the originial ip address. Maybe the system responds ...

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Ali Syed Masoud
Advisor

Re: telnet,ssh hangs

i got the hardware address in the file /var/adm/nettl.log000
now how to get to the machine?
Jochen Heuer
Respected Contributor

Re: telnet,ssh hangs

You can have a look at this site:

http://www.normos.org/en/lists/ieee/all-ethernet.html

Maybe you can guess which system it is by the network card that is used. Otherwise you have to search for it ....

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Ali Syed Masoud
Advisor

Re: telnet,ssh hangs

when i ran the command you gave it formats it but i find the dates doesnot match with the current date for the problem which came up.the date is somewhere in october.

i checked the complete log but doesnt tell whether there was a network related prob.

anyother investigation methods please.?

regards.