1832856 Members
3194 Online
110047 Solutions
New Discussion

set_parms not reliable

 
SOLVED
Go to solution
jhingoor
Frequent Advisor

set_parms not reliable

Hi guys...
I wanted to change ip of an server..for which i used set_parms ip_address...then entered the ip..and then rebooted the server...But the change didnt take place....may i know why???

9 REPLIES 9
RAC_1
Honored Contributor

Re: set_parms not reliable

It should have worked, if you followed it correctly. The address would be changed in /etc/rc.config.d/netconf file and /etc/hosts file. Check if rc.log has any errors about it.

Also have a look at syslog.log for general errors. Also dmesg.
There is no substitute to HARDWORK
SGUX
Valued Contributor

Re: set_parms not reliable

check /etc/rc.config.d for any other netconf-files (netconf.old, netconf."date")
(In the early days i once made this mistake and caused some confusion)
check /etc/hosts for "old-"entries
jhingoor
Frequent Advisor

Re: set_parms not reliable

Hi guys,
First of all tell me should the ip of our host change only by entering
set_parms ip_address::
and then following the menu option to change ip...

that is exactly what i did...but even after reboot the lanscan showed me the same old ip...

Then i manually edited the /etc/rc.config.d/netconf file by entering the ip,subnet,default gateway,etc....and then shutdown -r...

To make it even worse during booting it hanged at NFS server not responding....

I had to boot in single user mode...and disable the nfs...but day was really bad..to use vi i had to mount /usr..which on doing said /usr filesystem is corrupt..needs checking....i gave up and reported to my senior...
SGUX
Valued Contributor
Solution

Re: set_parms not reliable

to mount /usr run;
fsck -F vxfs -o full,nolog -y /dev/vg00/lvol7 (default for /usr)
as i remember it is best to run this twice

Editting /etc/rc.config.d/netconf and reboot should do the trick.

do not save the old/original netconf-file in /etc/rc.config.d

You might check for patches on set_parms or related as well
jhingoor
Frequent Advisor

Re: set_parms not reliable

Anyway,

After handing over to my senior ,he just ran mountall command in single user mode..and all the filesystem got mounted...he disabled nfs at startup....and rebooted....Finally the ip was changed.....
Steven E. Protter
Exalted Contributor

Re: set_parms not reliable

Shalom,

The lesson here is to learn how to do these jobs without set_parms

Sam and set_parms are well known for making mistakes when run to modify network configuration.

Learning how to carefully make such changes in /etc/rc.config.d/netconf is a way to avoid these problems.

Glad your issue is solved.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Doug O'Leary
Honored Contributor

Re: set_parms not reliable

>>The lesson here is to learn how to do these jobs without set_parms

Exactly! Any menuing system that purports to do everything for you, very definitely including SAM should not be used by system administrators. You must know the OS commands needed to do the items yourself.

Getting vi running in single user mode is a particularly useful bit of information to have. If you want to recover the root password from single user mode, restore the password file, restore an fstab file, etc, etc.

Learn the OS commands! Do not rely on administration menus/GUIs!

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
jhingoor
Frequent Advisor

Re: set_parms not reliable

Guys,
Exactly that is what i wanted from all of you .....But my manager thinks it was a 15 min job through SAM.......i have now convinced him that it surely wasn't........

OK.....
jhingoor
Frequent Advisor

Re: set_parms not reliable

Thanks guys all of u.