Operating System - HP-UX
1834629 Members
3144 Online
110069 Solutions
New Discussion

hostname not shown in uname

 
Brecht De Baets
Frequent Advisor

hostname not shown in uname

Hello,

When I issue the command : hostname, I get the following output :
wildbora02

When I issue the command : uname -a, I get the following output :
HP-UX unknown B.11.23 U ia64 1693602562 unlimited-user license

Should the hostname wiloradb02 not be shown as result of the uname-command instead of 'unknown'.

How can I change this ??

8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: hostname not shown in uname

Run "uname -S wildbora02".


Pete

Pete
RAC_1
Honored Contributor

Re: hostname not shown in uname

uname -S wildbora02. also check /etc/rc.config.d/netconf file.
There is no substitute to HARDWORK
Ignacio Javier
Regular Advisor

Re: hostname not shown in uname


Hi Brecht:

The resulf of the command uname -a is not the hostname:


-n Display the node name (system name) by which the system is usually known in a UUCP network. See

man uname, in section WARNIGS explains you how to configure it.


Regards
Brecht De Baets
Frequent Advisor

Re: hostname not shown in uname

When I issue the statement I get the following error :
Nodename must be less than 9 characters

When I look into the netconf file I see the following :
HOSTNAME=wildbora02

What to do ?
Pete Randall
Outstanding Contributor

Re: hostname not shown in uname

Shorten the name.


Pete

Pete
Ignacio Javier
Regular Advisor

Re: hostname not shown in uname

James R. Ferguson
Acclaimed Contributor

Re: hostname not shown in uname

Hi:

If you examine '/sbin/init.d/hostname' you will see the the nodename is normally set from the hostname. When you use 'uname' it is the nodename that you are actually seeing.

Historically, the 'nodename' is limited to 8-characters. Very extensive software changes are necessary to change this limitation. In fact, see:

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

Regards!

...JRF...
Brecht De Baets
Frequent Advisor

Re: hostname not shown in uname

I will change the hostname to a shorter name !