Operating System - HP-UX
1837108 Members
2211 Online
110112 Solutions
New Discussion

Urgent: Cannot log into my HP box

 
SOLVED
Go to solution
Nicky_5
Regular Advisor

Urgent: Cannot log into my HP box

Hi,

I am not able to log into my HP box.
and i dont have a console attached to it either. Please help me.
I am able to ping to the IP but not able to log in via ssh or telnet.

15 REPLIES 15
Pedro Cirne
Esteemed Contributor

Re: Urgent: Cannot log into my HP box

Hi,

Do you have a login prompt asking for login/password?

Are you able to connect using another service like rcp ou ftp?

Let us know!

Pedro
Geoff Wild
Honored Contributor

Re: Urgent: Cannot log into my HP box

What error message do you get?

No console - is the MP lan port setup or webconsole?

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Pat Lieberg
Valued Contributor

Re: Urgent: Cannot log into my HP box

Does telnet not respond at all or is it not accepting your username/password?
Nicky_5
Regular Advisor

Re: Urgent: Cannot log into my HP box

Hi All, for some reason i am not able to telnet to this machine.

Before i posted the message above i was not able to log in, and when i did a ping i would get the message something like "request quenched".. dont have a screen shot of that message. So i rebooted this machine. after rebooting i was able to ping but not login to it.. Now its all fine.

But i see that this is a regular thing happening to this machie.. its hardly used, but occationally when i try to login i am unable to do so, i have to reboot it everything..

Can some one helpme find out what the problem is?
Leif Halvarsson_2
Honored Contributor

Re: Urgent: Cannot log into my HP box

Hi,
Is there any service processor (GSP) on your system, if yes, you can login using that (GSP processor is a kind of LAN-terminal, installed in the later HP-UX servers).

If no GSP and no response form network login, you have not much options. Either you must find a terminal or a PC with terminal emulator or, crash the server and hope it boots normal.
Rick Garland
Honored Contributor

Re: Urgent: Cannot log into my HP box

Are there any messages in the /var/adm/syslog/syslog.log related to the login attempt?

Was the CAPS LOCK key on?

Post the output of the 'last | head' and 'lastb | head' commands.

Nicky_5
Regular Advisor

Re: Urgent: Cannot log into my HP box

Hi All, Thankyou for your quick replies..
but i am now able to log in. But I keep getting this problem.

After a few days if i try to log in i will again have the same problem where in i will not be able to log in and if i do a ping at that time i will get the message

196.153.12.45: service request quenched

then after i do a reboot all is fine...
I did not bother abt this a lot earlier because this machine is rarely used any more, but now i am just curious about that is hapening..

Nicky_5
Regular Advisor

Re: Urgent: Cannot log into my HP box

hi the output is as below:

last |head
oracle8i pts/tc Tue Aug 16 11:37 still logged in
root pts/tb Tue Aug 16 11:34 still logged in
consa pts/ta Tue Aug 16 11:34 still logged in
root pts/ta Mon Jun 20 14:19 - 17:47 (03:27)
root pts/ta Thu Jun 2 15:08 - 17:29 (02:20)
oracle8i pts/tb Fri May 20 09:39 - 10:08 (00:28)
max pts/0 Thu May 19 15:46 - 18:55 (03:08)
root pts/ta Tue May 17 14:41 still logged in
root pts/ta Tue May 17 11:30 - 11:35 (00:05)
root pts/ta Sun May 8 05:53 - 06:23 (00:29)

lastb|head
ORACLE pts/tc Tue Aug 16 11:36
sdf pts/ta Tue Aug 16 11:34
sdf pts/ta Tue Aug 16 11:34
OS pts/ta Tue Aug 16 11:34
sbsdev3 pts/ta Thu Apr 28 12:33
root pts/ta Thu Apr 28 12:33
root pts/tc Wed Apr 27 11:23
ROOT 169.143.196. Mon Apr 25 10:39
MAX pts/ta Thu Apr 21 14:57
r root pts/ta Thu Apr 21 09:45
A. Clay Stephenson
Acclaimed Contributor

Re: Urgent: Cannot log into my HP box

I suspect that inetd has died each time. Look for and install the latest inetd patches. I actually have a cron job that runs every 10 minutes to make sure that inetd is running and if not restarts the daemon. It very rarely does anything but those times it does saves someone from having to drive in at night to reboot.
If it ain't broke, I can fix that.
Nicky_5
Regular Advisor

Re: Urgent: Cannot log into my HP box

hi ,

how can i be sure that inetd was what caused the problem.
Can you send me the entry that you have put in your crontab to check inetd and restart it.
I also want to modify it a little so that whenever it is restarting it will send me an email too.. that way i know that inetd was the culprit...
Rick Garland
Honored Contributor

Re: Urgent: Cannot log into my HP box

Do see some bad logins with the CPAS LOCK on.
Example ORACLE. This happened today.
Mel Burslan
Honored Contributor
Solution

Re: Urgent: Cannot log into my HP box

To add inetd checking and restarting from cron as necessary, as root, run the command

crontab -e

and add the following line to the crontab and save the file and exit.

00,10,20,30,40,50 * * * * ps -ef | grep inetd | grep -qv grep ; r=${?};if [ $r -ne 0 ];then /usr/sbin/inetd -l;fi

the optin -l following inetd is to enable logging of inetd event into syslog. If you do not want that, just drop the "-l" part.

hope this helps
________________________________
UNIX because I majored in cryptology...
A. Clay Stephenson
Acclaimed Contributor

Re: Urgent: Cannot log into my HP box

That's a pretty classic symptom of a dead inetd when you are able to ping a box but essentially nothing else works.

Here's a sample script, inetdchek.sh:

# Checks to see that inetd is running
# 07/27/1999 acs only execute in run level 3

typeset PROCESS=inetd
typeset TDIR=${TMPDIR:-/var/tmp}

typeset LOG=${TDIR}/inetdchek.log
typeset ERRLOG=${TDIR}/inetdchek.err

readonly PROCESS LOG ERRLOG

PATH=/usr/bin:${PATH}
export PATH

run_state()
{
typeset -i RSTAT=0
typeset RS=$(who -r | awk '{ print $3 }')
RSTAT=${?}
if [[ ${RSTAT} -ne 0 ]]
then
RS="-1"
fi
echo "${RS}"
return ${RSTAT}
} # run_state

typeset -i STAT=0
typeset RS1=$(run_state)
STAT=${?}

if [[ "${RS1}" -ne 3 ]]
then
exit ${STAT}
fi

ps -ef | grep "${PROCESS}" | grep -q -v grep
STAT=${?}

if [[ ${STAT} -eq 1 ]]
then
/sbin/init.d/${PROCESS} stop >> ${LOG} 2>>${ERRLOG}
sleep 5
/sbin/init.d/${PROCESS} start >> ${LOG} 2>>${ERRLOG}
STAT=${?}
fi

exit ${STAT}
-------------------------------------------

Your crontab entry should look something like this:

2,12,22,32,42,52 * * * * /root/bin/inetdchek.sh # make sure inetd is running

--------------------------------------------

Note: Do this AFTER you have looked for and applied and inetd related patches.
If it ain't broke, I can fix that.
Nicky_5
Regular Advisor

Re: Urgent: Cannot log into my HP box

Hi All,
Thankyou for all your replies, based on Mel's reply i wrote a small script that i am running every 5 minutes form cron. It seems to work fine, but just let me know incase you see any potential problem with this...

Script (start_inet)
ps -ef | grep inetd | grep -qv grep

r=${?}

if [ $r -ne 0 ];
then
rm -r /tmp/kite
echo `date` > /tmp/kite
echo "INETD is DOWN" >> /tmp/kite
echo "Restarting INETD" >> /tmp/kite
/usr/sbin/inetd -l;
cat /tmp/kite | mailx -s "`hostname` `date` INETD DOWN" kavita.bhakta@sbsint.com
rm -r /tmp/kite
else
rm -r /tmp/kite
echo `date` > /tmp/kite
echo "INETD is Running" >> /tmp/kite
cat /tmp/kite | mailx -s "`hostname` `date` INETD is RUNNING" kavita.bhakta@sbsint.com
rm -r /tmp/kite

crontab entry:
00,05,10,15,20,25,30,35,40,45,50,55 * * * * /root/start_inet

Right now its is sending me mails every 5 minutes that inetd is runing, but that is only for testing, i plan disable mailing if the process is running.. that way i will get mails only of inetd is down...
Geoff Wild
Honored Contributor

Re: Urgent: Cannot log into my HP box

To be honest, the script is fine as a bandaid, but you need to figure out why it dies....more then likely a patch issue...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.