Operating System - HP-UX
1832288 Members
2404 Online
110041 Solutions
New Discussion

SAM complains difference in hostname and uname

 

SAM complains difference in hostname and uname

we have a situation where doing some work thru SAM it complains about differences in hostname and uname and ask us to set them to be same. We rely on hostname for some of our scripts so we cannot make them same. Is there anyway we can tell SAM not to complain on the differences. If there is not anyway for this how can we make SAM read only
Hello
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: SAM complains difference in hostname and uname

From a search of the patch database:

"SAM fails to update the /etc/hosts file if the
nodename and hostname is different because SAM
does not support nodename that is more than
nine characters.
Resolution: SAM code has been modified such that the
/etc/hosts file is modified by SAM even if the
nodename and hostname are different."

The patch is PHCO_34207.


Bill Hassell, sysadmin
Albert_31
Trusted Contributor

Re: SAM complains difference in hostname and uname

Hello Ramprakash,

There is a limitation on the number of characters on a HPUX OS till 11.23..

hostname = no limit.(64/256 I am sure at the moment)
nodename = 8 characters.

So you have to ensure that your hostname and nodename are the same. There is no solution to it now.

As a workaround you can create alias in the /etc/hosts or update in dns/nis as applicable.

Regards

Albert