its not really that was the problem. Even I have solved the problem, but
this was due to I was using IP address in hostname.e1000g0 file instead of
hostname. I have just changed it to server name, it worked fine for utadm -A
subnet. After running the script I have changed it back to IP address so
that IP address should not change across the reboots.
Cheers
On Wed, Jul 30, 2008 at 4:40 PM, P.S.M. Swamiji <[EMAIL PROTECTED]> wrote:
> Bob Doolittle wrote:
>
> This is just a wild guess, but just this afternoon somebody within Sun came
>> to me with this exact problem.
>> I had him do "getent hosts `hostname`" and nothing was returned.
>>
>> So looking at /etc/nsswitch.conf, I found that his host map was using NIS
>> and not falling back to files because it had that annoying
>> "[NOTFOUND=return]" directive first. Upon removing that, he was fine.
>>
>> In other words, changing:
>> hosts: nis [NOTFOUND=return] files
>> to:
>> hosts: nis files
>>
>> Solved the issue (i.e. his hostname was not in NIS, it was only in
>> /etc/hosts).
>>
>
> But utadm will modify the hosts line in /etc/nssswitch.conf file to have
> 'files' first for
> 'hosts' line and so it should have been passed if that is the cause..?
>
> Thanks
> P.S.M.Swamiji
>
> Note: These are my personal opinions, nothing to do with my employer
>
>
>
>> -Bob
>>
>> ottomeister wrote:
>>
>> On Mon, Jul 28, 2008 at 6:39 AM, sriram rane <[EMAIL PROTECTED]>
>>> wrote:
>>>
>>>
>>>> I am trying to configure SunRay Server on Solaris x86 platform. when I
>>>> run a
>>>> uttadm -A 172.17.80.0 I will get an error saying
>>>> Error: unable to get information on primary interface
>>>>
>>>>
>>>
>>>
>>> utadm has failed to figure out which of the machine's interfaces
>>> has been configured with the IP address that corresponds to
>>> the machine's hostname.
>>>
>>> The way it tries to figure this out is to compare the first word in
>>> every /etc/hostname.* file against the result of the 'hostname'
>>> command. If none of the /etc/hostname.* files match then
>>> utadm fails.
>>>
>>> Please post the results of running the following commands
>>> on this system:
>>>
>>> /bin/hostname
>>>
>>> /bin/nawk 'FNR=1 {printf("%s: %s\n",FILENAME,$0)}' /etc/hostname.*
>>>
>>> OttoM.
>>> __
>>> ottomeister
>>>
>>> Disclaimer: These are my opinions. I do not speak for my employer.
>>> _______________________________________________
>>> SunRay-Users mailing list
>>> [email protected]
>>> http://www.filibeto.org/mailman/listinfo/sunray-users
>>>
>>>
>>
>>
>> _______________________________________________
>> SunRay-Users mailing list
>> [email protected]
>> http://www.filibeto.org/mailman/listinfo/sunray-users
>>
>
>
> _______________________________________________
> SunRay-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/sunray-users
>
--
Shreeram Rane
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users