Operating System - HP-UX
1752800 Members
5450 Online
108789 Solutions
New Discussion юеВ

Re: help with hostname with 10 character

 
SOLVED
Go to solution
gobi_1
Frequent Advisor

help with hostname with 10 character

hi guys, need your help on this.

im running a hpux 11iv2 on rx6600 machine with hostname the consist of 10 characters. But when ever i use sam it prompt me to use node name which is 8 char.

when i also run uname -n it result 8 character. how can make the hostname & uname the same w/ 10 character?
7 REPLIES 7
sujit kumar singh
Honored Contributor
Solution

Re: help with hostname with 10 character

Hi


This is a standard that the hostname and the nodename be kept the same on the server and the max is to be of 8 chars.

I hope if you are aware of the impacts of using the Hostnames and nodenames more that 8 chars and the aplications that run on the server how will they behave (HP Suggets and recommends strictly to use the 8 chars, if not done then the applications can behave unpredictably).

I hope that in the line of understanding the above statement you can go ahead with using the names more than 8 chars or long uaing the following


http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1300946


here is the product page:::

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=NodeHostNameXpnd


regards
sujit
Ganesan R
Honored Contributor

Re: help with hostname with 10 character

Hi Gobi,

Though hostname can be more than 8 characters, uname is still limited to 8 characters due to backward compatability.

It is not recommanded to have >8 characters hostname though it supports since it will have impact on some applications.

So hostname and unname should be the same and therefore cannot exceed 8-characters. The length of the uname structure is defined in /usr/include/sys/utsname.h in "_SYS_NMLN" (see man 2 uname).
Best wishes,

Ganesh.
Jeeshan
Honored Contributor

Re: help with hostname with 10 character

Dennis Handly
Acclaimed Contributor

Re: help with hostname with 10 character

You will also have to install the latest dld patches to handle these long hostnames.
Simon Hargrave
Honored Contributor

Re: help with hostname with 10 character

It's worth knowing that 11i v3 supports hostnames longer than 8 characters. Still not sure whether I would, as third-party applications may still have a problem with this.
Steven E. Protter
Exalted Contributor

Re: help with hostname with 10 character

Shalom,

As noted 11.31 supports hostnames longer than 8 characters.

11.23 does as well if you go to http://software.hp.com and install support.

I'm not a big fan of either approach.

I've seen reports that problems have cropped up and still believe its much better to go with an 8 character hostname.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Suraj K Sankari
Honored Contributor

Re: help with hostname with 10 character

Hi,

As per my knowledge host name can't be more then 8 charecter.

Suraj