- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HOSTNAME vs NODENAME
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
06-13-2002 11:01 AM
06-13-2002 11:01 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:04 AM
06-13-2002 11:04 AM
Re: HOSTNAME vs NODENAME
Believe it comes from the HOSTNAME= value in /etc/rc.config.d/netconf.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:06 AM
06-13-2002 11:06 AM
Re: HOSTNAME vs NODENAME
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:16 AM
06-13-2002 11:16 AM
Re: HOSTNAME vs NODENAME
But if it is never explicitly run after base install, is the install itself running the uname -S command?
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:16 AM
06-13-2002 11:16 AM
Re: HOSTNAME vs NODENAME
Man this Forum ROCKS!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:20 AM
06-13-2002 11:20 AM
Re: HOSTNAME vs NODENAME
Think you can change the value of "HOSTNAME" in /etc/rc.config.d/netconf and then reboot the system for the change to take effect. uname -S will make the change effective immediately.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:20 AM
06-13-2002 11:20 AM
Re: HOSTNAME vs NODENAME
Where is it stored?
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:25 AM
06-13-2002 11:25 AM
Re: HOSTNAME vs NODENAME
Alan is correct. In general, great confusion is avoided by keeping the hostname and the uucp nodename the same.
When you change a server's hostname, the easiest solution is to run:
# /sbin/set_parms hostname
If for some reason you have to have a hostname that differs from the nodename, you can add a line to '/etc/rc.config.d/netconf' like:
NODENAME="mynode"
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:28 AM
06-13-2002 11:28 AM
Re: HOSTNAME vs NODENAME
I'd still like to know where the value for nodename is stored.
Thx,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:30 AM
06-13-2002 11:30 AM
Re: HOSTNAME vs NODENAME
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000047556885
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:36 AM
06-13-2002 11:36 AM
Re: HOSTNAME vs NODENAME
Thanks...
So it appears that unless the env parm NODENAME is explicitly set by someone or a script, then NODENAME is pulled from the HOSTNAME field in netconf - correct?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:36 AM
06-13-2002 11:36 AM
Re: HOSTNAME vs NODENAME
I had already tried to run set_parms hostname but that doesn't sync them up.
Does anybody know where uname is getting it's nodename variable from?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:40 AM
06-13-2002 11:40 AM
Re: HOSTNAME vs NODENAME
See:
man uname (2 and 1M)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:40 AM
06-13-2002 11:40 AM
Re: HOSTNAME vs NODENAME
If NODENAME is undefined, HOSTNAME is used. Have a look at '/sbin/init.d/hostname'. You will see that 'uname -s...' is issued based on HOSTNAME if NODENAME is empty.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:40 AM
06-13-2002 11:40 AM
Re: HOSTNAME vs NODENAME
Check the above pointed link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:42 AM
06-13-2002 11:42 AM
Re: HOSTNAME vs NODENAME
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:42 AM
06-13-2002 11:42 AM
Re: HOSTNAME vs NODENAME
Kim,
So then it appears there has to be a script or a person setting the env var NODENAME for them to get out of sync.
Think you've got some detective work to do.
Good Luck,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:42 AM
06-13-2002 11:42 AM
Re: HOSTNAME vs NODENAME
Yes, you lose the nodename manually set after a boot. As I indicated, declare it as NODENAME in '/etc/rc.config.d/netconf'.
See also my post above, regarding '/sbin/init.d/hostname'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:44 AM
06-13-2002 11:44 AM
Re: HOSTNAME vs NODENAME
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:48 AM
06-13-2002 11:48 AM
Re: HOSTNAME vs NODENAME
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 05:47 PM
06-13-2002 05:47 PM
Re: HOSTNAME vs NODENAME
/etc/rc.config.d/netconf only documents HOSTNAME. However, if you check the scripts in /sbin/init.d that refer to HOSTNAME, you'll find the script: hostname and here is how NODENAME is used:
hostname $HOSTNAME
set_return
if [ -z "$NODENAME" ] ; then
uname -S ${HOSTNAME%%.*}
else
uname -S $NODENAME
fi
set_return
In other words, if $NODENAME has not been set (it's zero-length), then uname -S will be set to the $HOSTNAME value (with possible domain info stripped). If $NODENAME does have a value, then that value is used.
netconf is missing comments about this variable.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 05:57 PM
06-13-2002 05:57 PM
Re: HOSTNAME vs NODENAME
As always you are the definitive source to clear up the ambiguities.
BTW - What TZ you in as you always seem to come in w/your posts late as compared to my CST TZ?
Cheers,
Jeff