How to modify the Hostname?

Tangtang
Tangtang used Ask the Experts™
on
First I have used Ignite-UX to make a bootable backup tape for the whole system!
Second I installation another machine use such tape at the booting stage and without interactive!
So to avoiding the conflict, I need to modify the Hostname and IP address for the second mechine! How can I do?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
even I do not know Ignite-UX, it should be simple to change:
first locate all files containing your hostname and/or IP:
  find / -type f -exec egrep 'yourhostname|yourIP' {} \;

(replace yourhostname and yourIP appropriate)

Then edit these files, changing to new values.
Then reboot.

Author

Commented:
I do not think it is a good way!
and what is a better way?
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

ahoffman's way will definitely work.

However, you can also do this more directly in HP-UX with:
  /sbin/set_parms  hostname
and
  /sbin/set_parms ip_address

Or, use
  /sbin/set_parms initial
to set the hostname, ip_address, date/time, root password, timezone, and other things you might want to be different all in one fell swoop.
sille question (for me): is Ignite-UX HP-UX?

Author

Commented:
Thank U! I think by this way I can modify the hostname and IP address and ensure the correctness!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial