- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- uname -a and hostname
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
тАО01-16-2010 09:23 PM
тАО01-16-2010 09:23 PM
uname -a and hostname
I want to change my systems name as same on both uname -a and hostname.
Now its shows as different.
/etc/rc.config.d/netconf have the same name in hostname.
Pls help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2010 09:52 PM
тАО01-16-2010 09:52 PM
Re: uname -a and hostname
#man set_parms
#set_parms hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2010 09:55 PM
тАО01-16-2010 09:55 PM
Re: uname -a and hostname
To change the hostname check the below link:
http://sysdigg.blogspot.com/2008/03/how-to-change-hostname-on-hp-ux-11i.html
To change the uname -a check the below link:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1303751
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2010 09:56 PM
тАО01-16-2010 09:56 PM
Re: uname -a and hostname
Check the following thread also:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1263707504886+28353475&threadId=1282764
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2010 10:37 PM
тАО01-16-2010 10:37 PM
Re: uname -a and hostname
#set_parms hostname
Khalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2010 11:51 PM
тАО01-16-2010 11:51 PM
Re: uname -a and hostname
Set and view the TCP/IP hostname
# hostname
# hostname
Set and view the UUCP hostname
# uname ├в S
# uname -n
Good Luck,
Nafez ALNajjar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2010 11:53 PM
тАО01-16-2010 11:53 PM
Re: uname -a and hostname
#hostname -S
Nafez ALNajjar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 01:05 AM
тАО01-17-2010 01:05 AM
Re: uname -a and hostname
What is the output of "uname -n" and "hostname".
What is the OS Version?
If the the hostname you specified in /etc/rc.config.d/netconf is more than 8 characters then surely the "uname -n" and "hostname" will be different if the OS Version is not HP Unix 11.31 and the long hostname is not enabled.
you can use "set_parms hostname" command to reset the hostname. But it will be active only after rebooting the Server.
or
Edit the /etc/rc.config.d/netconf file, change the hostname and run the following commands.
/sbin/init.d/net stop
/sbin/init.d/net start
Do a fresh login and verify.
Manoj K
Manoj K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 10:20 PM
тАО01-17-2010 10:20 PM
Re: uname -a and hostname
change the host name in the /etc/hosts file and the /etc/rc.config.d/netconf file.
then do the following
#/sbin/init.d/hostname start
#/sbin/init.d/net stop
/sbin/init.d/net start
Regards,
Shanmugam.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 12:45 AM
тАО01-18-2010 12:45 AM
Re: uname -a and hostname
Please try it with
set_parms hostname
and give your desired hostname.
Also check the entry in /etc/rc.config.d/netconf - as what the hostname specified there. uname -a only will show you the first 8 chara of the name specified in netconf file.
Thanks