Operating System - HP-UX
1753634 Members
5668 Online
108798 Solutions
New Discussion

set_parms hostname unattended (batch changes)

 
Jerry Jaynes
Frequent Advisor

set_parms hostname unattended (batch changes)

We are changing all of our hostnames to meet a new naming scheme. Is there a way I can script out the name changes using set_parms?

As it is it interactively asks for a hostname then a yes to change and a yes or no to reboot.

All suggestions will be greatly appreciated!

Jerry Jaynes
Never let 'em see you choke!!
1 REPLY 1
James R. Ferguson
Acclaimed Contributor

Re: set_parms hostname unattended (batch changes)

Hi Jerry:

While my choice would *not* be to do this non-interactively, you should be able to accomodate your wish. Build a file with *exactly* the responses you require. Then run '/sbin/set_parms' with the file redirected to stdin. I have not used this technique for the purpose you describe but have in other situations.

Regards!

...JRF...