Operating System - HP-UX
1831944 Members
3324 Online
110032 Solutions
New Discussion

set_parms From Single User Mode?

 
Rob Smith
Respected Contributor

set_parms From Single User Mode?

Had to change the IP address on a machine after the machine was moved to another building. When it came up I booted into single user mode and ran set_parms ip_address and set_parms addl_netwrk to change all the ip related information. When the machine rebooted all was not well. It still had the original ip information etc. So I had to change it all manually via vi netconf. This the way I usually do ip address changes but this time I wanted to try something different, I know big mistake. What went wrong? Are you not supposed to run set_parms from single user mode? I did this many times on an 11.00 box and never had a problem, this was a 10.20 box. Also when I finally got the machine up and running I noticed that the permissions on /etc/hosts had been changed! Ugh! Anybody ever had this problem? Many thanks in advance.

Rob

Learn the rules so you can break them properly.
4 REPLIES 4
Philip Chan_1
Respected Contributor

Re: set_parms From Single User Mode?

Hi Rob,

I usually do this set_parms thing in multi-user mode and this way it never fails in either 11.0 or 10.x for me. It could be that while the machine entered single user mode certain file systems were mounted as read-only hence prevented the updating. Also, after running set_parms for changing IP address the /etc/hosts permission will always updated to 444.
Philip Chan_1
Respected Contributor

Re: set_parms From Single User Mode?

My mistake! the /etc/hosts permission should not be '444' as I said in last message. Just can't remember exactly but it should be either 440 or 400, so a normal user belonging to 'users' will not be able to read that and you had to change mode again by yourself.
Bill McNAMARA_1
Honored Contributor

Re: set_parms From Single User Mode?

also you can change a few thing
in /etc/rc.config.d/
and lots of files in /etc/ by hand!
It works for me (tm)
Shannon Petry
Honored Contributor

Re: set_parms From Single User Mode?

Never had the problem in 10.20 or 11.0 with set_parms. One note though is that you should only change one thing at a time.
I.E. set_parms ip_addr
done>reboot
set_parms hostname
done>reboot
set_parms addl_netwrk
done>reboot
As some things dont seem to be changed immediately this is the safest. Also, set_parms may take some information from the current hostname, lanscan, ifconfig, etc....it may put old info back.

I usually do everything manually though, /etc/rc.config.d/netconf and /etc/hosts to start! To me I can change everything at once, bounce and I'm done!

Regards,
Shannon
Microsoft. When do you want a virus today?