Operating System - HP-UX
1836987 Members
2362 Online
110111 Solutions
New Discussion

Re: help! one of my hpux boxes won't boot...

 
Edwin R. Rivera
Occasional Contributor

help! one of my hpux boxes won't boot...

i have an a180c running HP-UX 10.2

when booting, it gets as far as echoing hewlett packard's address and patents(or copyrights?)..

then, i get an error:

/sbin/rc[61] syntax error at line 22:
INIT: command is respawning too rapidly
will try again in 5 minutes.
check for possible errors.
id:cons "/usr/sbin/getty console

i am connecting to the box via an hp secure web console.

thanks in advance!

-edwin
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: help! one of my hpux boxes won't boot...

Edwin:

Line-61 of /sbin/rc points is the sourcing of /etc/rc.config files during startup. It appears that you have a syntax error in line-22 of one of those scripts (in the /etc/rc.config.d/ directory). See if you can bootup to single user mode (only) and check for recent changes therein. If you can look in /etc/rc.log you probably will see where things went wrong.

...JRF...
Joseph C. Denman
Honored Contributor

Re: help! one of my hpux boxes won't boot...

I agree. Check /etc/rc.log to see where to start troubleshooting.
If I had only read the instructions first??
Rob Mallard
Valued Contributor

Re: help! one of my hpux boxes won't boot...

If you wnat to find the offending config file in /etc/rc.config.d you can just source each script and see which one returns an error. Try the following command (or put it in a script)

for x in $(ls /etc/rc.config.d)
do
echo $x
. /etc/rc.config.d/$x
done

I also find doing an ll -t (to sort files by time) will show me the files that have been edited most recently/since the last reboot. These are the most likely canidates for errors.
Ajay Sishodia
Frequent Advisor

Re: help! one of my hpux boxes won't boot...

There can be many causes for the above:

a. an erroneous or incorrect setting in inittab

b. Did you or someone else changed the kernel parameters? Than you might want to reboot from previous kernel.

c. Make sure there are no script copies like netconf.old in /etc/rc.config.d/. Please remove any bogus files and reboot.

good luck
Ajay