Operating System - HP-UX
1823356 Members
3000 Online
109654 Solutions
New Discussion юеВ

Re: uname and hostname diffrenet, any harm ?

 
SOLVED
Go to solution
Abdul Majeed Lardhi
Regular Advisor

uname and hostname diffrenet, any harm ?

Dears,

I have to have more than 8 characters the machine name (hpncbsrvunx1,hpncbsrvunx2,hpncbsrvunx3 etc.)

but the problem that uname -S (system name ) not supoorting this feature !!!

and first 8 char of our host is identical
i.e, hpncbsrv ....
when I do uname -a for all hosts :
HP-UX hpncbsrv ........

but the hosname are diffrent becuase its more than 8 : hpncbsrvunx1, hpncbsrvunx2,hpncbsrvunx3 etc.


Is any harm or problem I will face in future if I implement this approch ???

Regards
5 REPLIES 5
Peter Leddy_1
Esteemed Contributor

Re: uname and hostname diffrenet, any harm ?

Hi,

Have a look at this thread, Bill details what is happening.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=780160

HTH,

Peter
Pete Randall
Outstanding Contributor

Re: uname and hostname diffrenet, any harm ?

While this may well be possible, it is generally not recommended:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=186444


Pete

Pete
Geoff Wild
Honored Contributor
Solution

Re: uname and hostname diffrenet, any harm ?

The harm you have is deviating from the standard 8 characters for a hostname.

I'm a firm believer in assigning simple, numeric type host names - then use DNS to create aliases for long ones..

IE:

Your hosts:

hp1000
hp1001
hp1002
etc

Then, in DNS, if needed, alias hpncbsrvunx2 to hp1002, etc...

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
rick jones
Honored Contributor

Re: uname and hostname diffrenet, any harm ?

One of these days we may actually remove that pesky 8 character limitation. Not sure if it made it into 11.23 or not.

Anyway, so long as you don't have any software that is mistakenly using uname when it should be using hostname you will probably be OK. Later releases being more likely to be OK than earlier ones.
there is no rest for the wicked yet the virtuous have no pillows
Abdul Majeed Lardhi
Regular Advisor

Re: uname and hostname diffrenet, any harm ?

Thanks All

Regards
Abdul Majeed