Operating System - HP-UX
1837355 Members
3591 Online
110116 Solutions
New Discussion

Re: "uname -S <name greater than 9 chars>" fails

 
Soma_1
Occasional Advisor

"uname -S <name greater than 9 chars>" fails

Hi all,
Iam having a server running HPUX11i. I had setup the dhcp server to give ipaddress for lan0 and when the server boots Iam seeing in the HPUX Startup sequence that the hostname setup script (/sbin/rc1.d/S320hostname fails.
"Setting hostname..... FAIL *"

When I run this from command line I figured out that the hostname / nodename that the dhcp server setsup is longer than 9 chars and so the command "uname -S ${HOSTNAME} fails.

Reading some docs I figuredout that there is a variable in sys/utsname.h structure has a variable "UTSLEN" that is set to 9 which is the limiting factor.
http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=B2355-90682&service=hpux&path=../B2355-90682/00/02/226&title=HP-UX%20Reference%20Volume%203%3A%20Sections%202%20and%204

Is there a way to setup the variable to be bigger than that. Can someone help me please!


Also, my "swlist" command fails because it is not able to get the right name for the server, is there a workarround for this.
1 REPLY 1
Michael Tully
Honored Contributor

Re: "uname -S <name greater than 9 chars>" fails

Hi,

See this posting of a few days ago, it gives some valuable advice.

HTH
-Michael

http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x77d1cf38d6bdd5118ff10090279cd0f9,00.html
Anyone for a Mutiny ?