Operating System - HP-UX
1847915 Members
4317 Online
104021 Solutions
New Discussion

Problems connecting to network

 
SOLVED
Go to solution
Kevin_107
Regular Advisor

Problems connecting to network

I modified my netconf file. now when trying to reboot it says "error in /etc/rc[62] line 98" how can I get back into my netconf file. Can I do it in single user mode and if so how can I edit the file.
He who laughs last.....doesnt get the joke !!
8 REPLIES 8
Ted Ellis_2
Honored Contributor
Solution

Re: Problems connecting to network

go into single user mode following reboot:

use vi to edit the file. In order to use vi, you will need the /usr file system mounted. On my system it is lvol7. Check your system to verify this. You can then edit the file system from the local or web console

Ted
Stefan Farrelly
Honored Contributor

Re: Problems connecting to network


If you need your network to access your server then youre stuck - you will have to boot into single user mode from your console (or web console) then you can simply do;
mount -a
vi /etc/rc.config.d/netconf

and fix the problem, save it, and reboot.
Im from Palmerston North, New Zealand, but somehow ended up in London...
harry d brown jr
Honored Contributor

Re: Problems connecting to network

Please post your netconf file

live free or die
harry
Live Free or Die
David Bell_1
Honored Contributor

Re: Problems connecting to network

You can replace it with the original and re-edit the file. The original should be located in /usr/newconfig/etc/rc.config.d/netconf

You can indeed do it in single user mode. Once in single user mode, you can mount any of the "unmounted" system volumes. The using 'vi' you can edit the configuration.

HTH,

Dave
S.K. Chan
Honored Contributor

Re: Problems connecting to network

Yes you can edit and fix it in single-user-mode. Once you got the root prompt at single-user-mode, you have to mount "/usr" because "vi" resides there. After that just vi the file as usual. In vi go to the ESC mode and at the bottom of the screen that has the ":" prompt, enter ..
: set number
and that will redisplay your file with line numbers. Look for line# 98.
John Palmer
Honored Contributor

Re: Problems connecting to network

In single user mode, the quickest way to mount your filesystem (vi will require /usr and /var) is with 'mount -a'

Regards,
John
Kevin_107
Regular Advisor

Re: Problems connecting to network

thanks for the help..however still having probs...I actually re-installed 10.20 before trying to put it in the network would it be a driver issue with my cards. My lan cards actually state there are up??
He who laughs last.....doesnt get the joke !!
John Palmer
Honored Contributor

Re: Problems connecting to network

No, this is an error in one of the scripts in /etc/rc.config.d/netconf. If you've only modified netconf then that's the one to check.

Don't forget that /sbin/rc (via /etc/rc.config) actually runs every file in /etc/rc.config.d as a subscript (providing it's name doesn't include certain characters like . , etc. to set-up environment variables that are used by the startup scripts in /sbin/init.d. It may be that you've got a 'rogue' script.

Regards,
John