- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Confilict between nodename 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
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
01-11-2007 08:52 PM
01-11-2007 08:52 PM
Confilict between nodename and hostname
I was just wondering that what could be the effect of setting differnet "nodename" and "hostname" for an HP box.
i can alter the hostname using,
set_parms hostname
and can change the nodename using,
setuname -n
~amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 09:06 PM
01-11-2007 09:06 PM
Re: Confilict between nodename and hostname
Not sure why you would want to, but you could also edit the /etc/rc.config.d/netconf file and add NODENAME parameter.
Impact is best explained in "man 1m setuname" "man hostname" and "man 5 hostname"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 09:18 PM
01-11-2007 09:18 PM
Re: Confilict between nodename and hostname
Are these (i.e. "set_parms hostname" and "setuname" ) just two different interfaces for changing the hostname/nodename ?
~amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 09:45 PM
01-11-2007 09:45 PM
Re: Confilict between nodename and hostname
two different naming entities.
Hostname is used in a number of locations/programs. Nodename is used mainly by uname -a . It does become clearer, once you have read the man pages ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 10:46 PM
01-11-2007 10:46 PM
Re: Confilict between nodename and hostname
it would be like creating two aliases for the same ip address in the /etc/hosts file.
Having different values for nodename and hostname is not something i would recommend, unless you have good reasons for doing so.
If you have observed such an anomaly, you should investigate further and correct it if need be...
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 11:24 PM
01-11-2007 11:24 PM
Re: Confilict between nodename and hostname
My investigation so far:
Excerpt from 1M setuname:
The size of the name and node is limited to UTSLEN-1 characters. <------
UTSLEN is defined in
so i looked into /usr/include/sys/utsname.h
and i found following macros defined(rest not mentioned here)
#define __SYS_NMLN_V2 257 <---
#define __SYS_NMLN_V1 9 <---
#define __SNLEN_V2 257
#define __SNLEN_V1 15
# define UTSLEN _SYS_NMLN
#if (_INCLUDE_HPUX_API_LEVEL < 20040821)
#define _SYS_NMLN __SYS_NMLN_V1
#else /* _INCLUDE_HPUX_API_LEVEL >= 20040821 */
#define _SYS_NMLN __SYS_NMLN_V2
Entry in /usr/include/sys/stdsyms.h
#ifdef _HPUX_API_LEVEL
# if _HPUX_API_LEVEL == 20040821
# define _INCLUDE_HPUX_API_LEVEL 20040821
# elif _HPUX_API_LEVEL == 0
# define _INCLUDE_HPUX_API_LEVEL 0
# else /* _HPUX_API_LEVEL != 0 && _HPUX_API_LEVEL != 20040821 */
error "Invalid value for _HPUX_API_LEVEL"
# endif /* _HPUX_API_LEVEL != 0 && _HPUX_API_LEVEL != 20040821 */
#else
# define _INCLUDE_HPUX_API_LEVEL 0
so what i deduce from all above is as follows:
The nodename can be maximum of 8 characters if the macro _HPUX_API_LEVEL is set to
"20040821" else the nodename can be maximum of 256 charcters.Please correct me if i am wrong.
Thanks for pointing me to corrosponding Man pages.
~amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 11:32 PM
01-11-2007 11:32 PM
Re: Confilict between nodename and hostname
if the hostname length change is what you are after:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=457037
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1020037
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 11:54 PM
01-11-2007 11:54 PM
Re: Confilict between nodename and hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 11:56 PM
01-11-2007 11:56 PM