- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to change IP-Address and Hostname on HP-UX...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2009 10:53 PM
тАО12-19-2009 10:53 PM
How to change IP-Address and Hostname on HP-UX 11.31 using Script.
I have around 60 HP-UX 11.31 Boxes , please help me with a script through which I can perform the process of changing Host Name and IP address change on all the systems.
Thanks in Advance.
Right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2009 03:00 AM
тАО12-20-2009 03:00 AM
Re: How to change IP-Address and Hostname on HP-UX 11.31 using Script.
the best way is to use the commands
set_parms hostname
set_parms ip_addr
this amkes necessary changes to the other files too.
you might also need to change the default route, for that use SAM.
but these take you through the menus where you have to give responses.
or can try using SAM.
regar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2009 04:27 PM
тАО12-20-2009 04:27 PM
Re: How to change IP-Address and Hostname on HP-UX 11.31 using Script.
set_parms initial
also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2009 08:59 PM
тАО12-20-2009 08:59 PM
Re: How to change IP-Address and Hostname on HP-UX 11.31 using Script.
How much editing will be needed in
"/etc/hosts" on each system?
In how many other places will these changing
host names appear? NFS exports?
"/etc/hosts.equiv"? "~/.rhosts"? DNS data?
IP address changes are hard enough. Name
changes can be very troublesome, especially
with insufficient information and planning.
Expecting to be able to write "a script" to
do all the work seems (to me) to be asking
for trouble. (Or were you hoping that
someone else would write an error-free script
for you, which does exactly what you want
done?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2009 11:39 PM
тАО12-20-2009 11:39 PM
Re: How to change IP-Address and Hostname on HP-UX 11.31 using Script.
Thanks for your reply , I am looking for some sample script for this IP-Address and Hostname Change.
I do not want any one to write for me, if any one can provide me sample script , I can work on the same and make them work for my environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2009 11:51 PM
тАО12-20-2009 11:51 PM
Re: How to change IP-Address and Hostname on HP-UX 11.31 using Script.
> [...]
Fine, but exactly what do you want it to
change, and to what? Where will the new
addresses and names come from? How many
places will they need to go?
> Is this a well defined task?
I don't yet see a useful specification of
what you need to have done. (Of course, if
you could explain exactly what you need the
script to do, then it's not clear to me why
you can't write the thing.)
Someone may amaze me, but I doubt that anyone
has such a script (or at least a good one)
lying around. There are simply too many
site-dependent variables involved. (I asked
about a few of them, but got no answers.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 04:40 AM
тАО12-21-2009 04:40 AM
Re: How to change IP-Address and Hostname on HP-UX 11.31 using Script.
Mr. Schweda has made some very good reasons for not 'scripting' changing the full identity of a server via a script. So think this out....
Often software has imbedded information within it that encompasses host info. Like Data Protector for example. If you were to change the IP and the hostname on an HPUX box running DP - your backup software will have serious issues. And I know of the several vendors that on loading the software, it extracts host info and inputs into the software.
So...you mention 60 boxes. I'm guessing they are all running many things, but you do not once mention that you have checked the impact of changing IP's/hostnames.
A quick script is easy to write using the utility folks abvove mentioned. But planning to do that will likely adversely affect those boxes.
Kindest regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 04:43 AM
тАО12-21-2009 04:43 AM
Re: How to change IP-Address and Hostname on HP-UX 11.31 using Script.
I know this too ;-)
Be prepared to see very strange things ...
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 06:37 AM
тАО12-21-2009 06:37 AM
Re: How to change IP-Address and Hostname on HP-UX 11.31 using Script.
However, once you change the IP address and hostname, you may have to reboot every machine. Many applications and some OS tools like swinstall will fail to run as they have stored the hostname and/or IP address inside the application. And you may have multi-homed systems (servers with multiple LAN cards that may or may not need address changes. And of course, if you depend on DNS services, all of those new names and addresses must be changed before your servers will work correctly. And finally, some of these 60 machines may depend on each other and they may have local hosts files that have the old IP addresses. These will have to be updated as well as scheduling reboots for servers that provide services for other machines.
Changing host/IP can be trivial for a small workstation but can be a custom job for every large server. You may want to schedule to switchover in stages if at all possible. At the very least, there will need to be a lot of testing and rebooting -- not a scriptable task.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 08:41 AM
тАО12-21-2009 08:41 AM
Re: How to change IP-Address and Hostname on HP-UX 11.31 using Script.
My $0.02
sp,