Operating System - HP-UX
1758351 Members
2347 Online
108868 Solutions
New Discussion

Re: HOSTNAME configuration in Unix B.11.31

 
SOLVED
Go to solution
jason-dr
Occasional Contributor

HOSTNAME configuration in Unix B.11.31

Greetings to all,

I am facing an error with Hostname in one of our HPVM server.

Here we can see Hostname and uname -a command's are giving different hostname's insted of same. 
# hostname
meccapp106
# uname -a
HP-UX meccapp1 B.11.31 U ia64 1508026702 unlimited-user license
#

I hope everyone understand my problem
Kindly share any suggestions regarding this.

Thanks ,
Jason 

 

 


 

3 REPLIES 3
dedmonst
Occasional Advisor

Re: HOSTNAME configuration in Unix B.11.31

That's a standard feature to ensure backwards compatibility. You can override if you want by changing a kernel tuneable. All the details, including the things you will need to think about, are decribed in this white paper:

https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=c01925495

georgek_1
HPE Pro

Re: HOSTNAME configuration in Unix B.11.31

Hello jason-dr,

Output of command hostname shows meccapp106 (10 characters) while uname -a shows only 8 of them meccapp1 .

Please change the kernel tunable expanded_node_host_names set to 1, followed by running # uname -S meccapp106.
This will help you get entire 10 characters for uname -a output .

You may refer the document https://support.hpe.com/hpesc/public/docDisplay?docId=c01925495&docLocale=en_US for details .

I work for HPE/ I am an HPE Employee (HPE Community)


I am an HPE Employee. .
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Sunitha_Mod
Moderator
Solution

Re: HOSTNAME configuration in Unix B.11.31

Hello @jason-dr,

Let us know if you were able to resolve the issue.

If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.

Thanks,
Sunitha G
I'm an HPE employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo