1825719 Members
3188 Online
109686 Solutions
New Discussion

network file

 
SOLVED
Go to solution
Fadia Almarei
Super Advisor

network file

Hi All
if i remove the /etc/rc.config.d/netconf file from the HP 11.11 system how can i recreat this file .
another question i go to single user mode and i do changes on some files using the vi editor after wq! i open the file to see the changes and i see that nothing changed what shull i do for that (even in init 2 mod),please quick help
BR,
Fadia
fadia.marei
16 REPLIES 16
Con O'Kelly
Honored Contributor

Re: network file

Hi

Either restore from backup or else there is a copy in /usr/newconfig/etc/rc.config.d.

Obviously if you use the copy from /usr/newconfig you will need to update with it IP address, hostname, gateway etc etc.

Which files are you trying to modify in single user mode??

Cheers
Con

Fadia Almarei
Super Advisor

Re: network file

i want to do the changes for the /etc/rc.config.d/netconf file, and the /etc/hosts file but the changes does not restored , and also the system can not reach the init 3 ,it only work on the init 2 , and i need the CDE , as the application work on it.
fadia.marei
Con O'Kelly
Honored Contributor

Re: network file

Hi

I'm not sure of your exact problem but if you've deleted netconf file then try this:

Boot to single user mode:
ISL> hpux -is

Mount /usr fileystem:
# mount /usr

Then copy netconf file to /etc/rc.config.d:
#cp /opt/newconfig/etc/rc.config.d/netconf /etc/rc.config.d/netconf

Update netconf file with hostname, IP address, Gateway etc.
Update /etc/hosts file if this also got removed.

Then reboot the server
# shutdown -ry 0

Cheers
Con

Fadia Almarei
Super Advisor

Re: network file

the problem that it does not take the changes i do,
is this is a cause of not mounting the /etc,
and the mounting command just "mount /etc"
fadia.marei
Con O'Kelly
Honored Contributor
Solution

Re: network file

No I don't think so.

If you are in single user mode the root FS (/) is already mounted. /etc is part of root filesystem.

You need to mount /usr so that you can use vi command.

Then copy netconf file to /etc/rc.config.d.

Then edit netconf file:
# vi /etc/rc.config.d/netconf

What message do you get after using ":wq"??

Cheers
Con


Fadia Almarei
Super Advisor

Re: network file

as usual i change the mode before to 744 so i can write to it , but manly do you think that the problem that i do not reach the CDE is due to this file problem
fadia.marei
Con O'Kelly
Honored Contributor

Re: network file

Its very possible, I think CDE is normally started in run level 4.

If you don't have a netconf file, then none of your network interfaces are going to be configured, hence most of the services in run-level 3 and 4 cannot start.

I'd fix your netconf problem first and then trouble-shoot any remaining issues with CDE etc.

Cheers
Con
Fadia Almarei
Super Advisor

Re: network file

thanks for help , but please i need a quick help
fadia.marei
Shaikh Imran
Honored Contributor

Re: network file

Hi,
At this stage i will advise you to run
#set_parms
and set the required networking parameters.
Once done reboot and try for CDE.

Regards,

I'll sleep when i am dead.
Fadia Almarei
Super Advisor

Re: network file

using the set_parms will generate the /etc/rc.config.d/netconf file
fadia.marei
Shaikh Imran
Honored Contributor

Re: network file

Hi,
Yes it should.
Make a copy of existing.

Regards,

I'll sleep when i am dead.
Fadia Almarei
Super Advisor

Re: network file

and what about the interface cards,it will detect them ,or i need also to add them ,and i will add them how to solve the problem of editing and saving in single user mode or even in init 2 mode
fadia.marei
Shaikh Imran
Honored Contributor

Re: network file

Hi,
You could set the ip adresses of lan cards
default gateways time server.. etc..
This is interactive pls run and check

Regards,

I'll sleep when i am dead.
Fadia Almarei
Super Advisor

Re: network file

can i run this command in single user mode or in init 2 mode
fadia.marei
Shaikh Imran
Honored Contributor

Re: network file

Hi,

Yes you can try in either.

Regards,
I'll sleep when i am dead.
Fadia Almarei
Super Advisor

Re: network file

thanks guies for help ,your points help me to solve the problem , but one note to mister Imran that the netconf file can not created automatically when you are using the set_parms command the file must exsist first then i can exexute the command,thanks all
BR,
fadia
fadia.marei