Operating System - HP-UX
1753464 Members
4669 Online
108794 Solutions
New Discussion юеВ

HP-UX 11.31 hostname lengh more than eight characters

 
Marta_12
Frequent Advisor

HP-UX 11.31 hostname lengh more than eight characters

Hi all,

I have a server where hostname is HP-UX_OVO (9 characters).

HP_UX version is 11.31
Machine type is Itaniun.
uname command is showing only 8 characters.

Does anybody know is this hostname could cause problems?
This is an HPOV server. Could this long hostname cause problems in OVO 9.00?
Marta
2 REPLIES 2
Fred Ruffet
Honored Contributor

Re: HP-UX 11.31 hostname lengh more than eight characters

Hi,

"Man uname" gives me the folowwing information :
-S nodename Change the node name (system name) to nodename.
nodename is restricted to UTSLEN-1 characters (see
uname(2)). See WARNINGS. Only users with
appropriate privileges can use the -S option.

folowing man pages and digging into utsname.h file, max length is either 8 or 256, regarding the setting of a constant : _INCLUDE_HPUX_API_LEVEL

stopping ther and googling for this variable, I get this document :
http://docs.hp.com/en/5991-6425/large_nodename_hostname_whitepaper.rev2.0.20070110.1500.pdf

Hope this helps,

Fred
--

"Reality is just a point of view." (P. K. D.)
Alzhy
Honored Contributor

Re: HP-UX 11.31 hostname lengh more than eight characters

kctune expanded_node_host_names=1
kctune uname_eoverflow=0
Hakuna Matata.