Operating System - HP-UX
1833433 Members
2949 Online
110052 Solutions
New Discussion

Different hostname & uname -a

 
SOLVED
Go to solution
SKR_1
Trusted Contributor

Different hostname & uname -a

Hi,

I have to make hostname of 10 characters.
hostname is coming ok.

hostname hpprodbl03

When giving uname -a, different output is coming for hostname/nodename. It's limited to eight char.

HP-UX hpprodbl B.11.23 U ia64 0467147311 unlimited-user license

Please help me out to make nodename to 10 characters also.

Thanks

SKR
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: Different hostname & uname -a

>Please help me out to make nodename to 10 characters also.

You don't want to do that. That change would require you to recompile any application that calls the uname(2) system call.

There is a special product you can install on 11.31 to do that. I'm not sure if it is there on 11.23??
Dennis Handly
Acclaimed Contributor

Re: Different hostname & uname -a

Also on 11.31, you will have to get the latest Aries and dld patches to handle nodename > 8 characters.
sen_ux
Valued Contributor

Re: Different hostname & uname -a


What is your OE, with update.?
By default uname supports 8 bytes.
You may need to configure for supporting more than 8 bytes..

# man uname

Thanks
SEN
Ganesan R
Honored Contributor
Steven E. Protter
Exalted Contributor
Solution

Re: Different hostname & uname -a

Shalom,

http://software.hp.com does have a depot that will permit hostname of more than 8 characters.

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

I do not recommend it. HP-UX works well with 8 character hostname. Do you really want to do the extra typing?

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
T G Manikandan
Honored Contributor
SKR_1
Trusted Contributor

Re: Different hostname & uname -a

Thanks to all of you