- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: I am unabe to get the hostname by excecuting u...
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
Forums
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
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-05-2005 07:27 PM
12-05-2005 07:27 PM
Thanks in advance.
I am unable to get the hostnameafter excecuting uname -a command.
How can i get the information when it was changed and how can i restore without rebooting the server.?
uname -a
-t HP-UX B.10.20 U 9000/785 2015611644 unlimited-user license
> hostname
HP-UX
root@HP-UX:/
>
TX
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 07:32 PM
12-05-2005 07:32 PM
Re: I am unabe to get the hostname by excecuting uname -a ?
You can perfectly change your hostname online
with the command
hostname newname
Check /etc/hosts afterwards to see if the relation between IP adress and hostname are correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 07:39 PM
12-05-2005 07:39 PM
Re: I am unabe to get the hostname by excecuting uname -a ?
uname command displays selected information about the about the current computer system, derived from the utsname structure.
To get the hostname type in hostname and it shoud return the host name. Or look in the file /etc/hosts on the DNS server.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 07:41 PM
12-05-2005 07:41 PM
Re: I am unabe to get the hostname by excecuting uname -a ?
If i change the host name by using the command: hostname servername,will it add permanantly(After rebboting the Server)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 07:57 PM
12-05-2005 07:57 PM
Re: I am unabe to get the hostname by excecuting uname -a ?
id prefer to use
#set_parms hostname
this updates the conf files for you and saves you having to change the hosts file manually. This will want a reboot to tkae effect though.
it is still worth checking the hosts file though afterwards and nslookup aswell
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 07:58 PM
12-05-2005 07:58 PM
Re: I am unabe to get the hostname by excecuting uname -a ?
set_parms hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 08:05 PM
12-05-2005 08:05 PM
Solution# hostname HP-UX
# uname -S HP-UX
# edit /etc/rc.config.d/netconf file as,
HOSTNAME="HP-UX"
# Update /etc/hosts file with this changes. (may be good)
It will work now. Else revert ;)