Hello sriram,


  Usually the hostname (or rather an interface name, as in 

servername-e1000g0) is fixed in the /etc/hosts file and 

associated with a single certain IP address. This interface 

name is then saved in /etc/hostname.e1000g0 or whatever 

interface you configure.


  There are few if any good reasons to keep an IP address 

(as digits) anywhere except /etc/hosts (otherwise migrating 

an IP becomes a major hassle); perhaps a dhcp client is 

changing /etc/hosts, but that's about the only reason I 

know and it is not likely valid for a server setup.


  I am interested to know of any other reasons for reference,

but if there aren't any - I suggest you keep the text-name 

in /etc/hostname.e1000g0 and save this name in /etc/hosts.


//Jim


Wednesday, July 30, 2008, 5:39:08 PM, you wrote:


>

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






-- 

Best regards,

 Jim Klimov                            mailto:[EMAIL PROTECTED]

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to