- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX Prompt
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
Discussions
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
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
10-31-2023 08:08 AM - last edited on 11-01-2023 08:39 PM by support_s
10-31-2023 08:08 AM - last edited on 11-01-2023 08:39 PM by support_s
HP-UX Prompt
Hi,
I want to change the Unix Prompt for Unix 10.2.
If I do following
Log in as super user
#hostname newname
# uname –S newname
# HOSTNAME="newname"
# /sbin/init.d/net stop
# /sbin/init.d/net start
and check than the hostname with
# uname -a
the name is changed.
I also change the name in hosts and netconf
/etc/hosts
/etc/rc.config.d/netconf
But as soon as I reset the PC, the hostname is back to the old name.
Does I miss a something that I have to change>
Thanks.
- Tags:
- Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 08:13 AM
10-31-2023 08:13 AM
Re: HP-UX Prompt
The command to change the system hostname is:
"set_parms hostname"
You will get prompted to enter the new hostname.
Hope that helps.
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 08:34 AM
10-31-2023 08:34 AM
Re: HP-UX Prompt
I used this command as well, but it is still same, after cycle power, the old name is back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 08:49 AM
10-31-2023 08:49 AM
Re: HP-UX Prompt
I don´t have access to a HPUX system anymore, especially a 10.20 one.
Check if there is this file:
/etc/rc.config.d/hostname
You should find the HOSTNAME statement in that file and set_parms should have changed it.
If not, modify it and use the new name, then test again.
BTW.: Does your system use DHCP to get its IP-address ?
Check /etc/rc.config.d/netconf if you don´t know.
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 07:49 AM
11-01-2023 07:49 AM
Re: HP-UX Prompt
Hi Bertram,
There is no hostname file in /etc/rc.config.d.
If I reboot after set_parms hostname, I can see in the line the old name.
The system does not use DHCP.
If I do this
#hostname newname
# uname –S newname
# HOSTNAME="newname"
# /sbin/init.d/net stop
# /sbin/init.d/net start
log out and back in, the name is changed. If I reboot, it change back to the old name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 08:09 AM
11-01-2023 08:09 AM
Re: HP-UX Prompt
Could you please provide the below outputs to check ?
#grep -i hostname /etc/rc.config.d/netconf
#grep -v ^# /etc/profile
#grep -v ^# /.profile
#cat /etc/rc.log
#uname -a
Please let me know the old and new host name.
Thanks
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
