1833860 Members
2056 Online
110063 Solutions
New Discussion

hostname.......

 
JK_3
Occasional Contributor

hostname.......

Dear ,
#swlist
# Initializing...
# Contacting target "hostname"...
ERROR: Could not contact host "hostname". Make sure the hostname is correct.

ERROR: More information may be found in the daemon logfile on this target (default location is ecomdev:/var/adm/sw/swagentd.log).

I`ve checked the /etc/hosts file it is ok and also it display the hostname properly after executing the hostname command.

Thanxs in Advance
JAI

Never Give Up...
9 REPLIES 9
Vincenzo Restuccia
Honored Contributor

Re: hostname.......

In /etc/nsswitch.conf set primary resolution of name /etc/hosts,or with SAM network name switch.
Stefan Farrelly
Honored Contributor

Re: hostname.......


If you do the command> hostname

Whats the output ? eg. something like; hp1

Can you now do the command> ping hp1

Does it work ?

Do you have the localhost/loopback entry in your hosts file ? eg;
127.0.01 localhost loopback
Im from Palmerston North, New Zealand, but somehow ended up in London...
JK_3
Occasional Contributor

Re: hostname.......

Dear,
It`s ping to hostname and also to local host ( 127.0.0.1)
#cat /etc/nsswitch.conf
hosts : dns files

Thanxs
JAI
Never Give Up...
Pedro Sousa
Honored Contributor

Re: hostname.......

JK,
change your hosts file to:
127.0.0.1 localhost loopback

then stop and start swagentd.
good luck.
Berlene Herren
Honored Contributor

Re: hostname.......

Check your /etc/rc.log. Do other services fail to start indicating a syntax error? If so, look for a file in /etc/rc.config.d that should not be there.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Carlos Fernandez Riera
Honored Contributor

Re: hostname.......

On /etc/hosts

Fisrt line ( after all comments)
127.0.0.1 localhost loopback
xxx.xxx.xxx.xxx yourservername

It is supposed that localhost and servername may be in /etc/hosts in any line, but i think that it is not completly true ;-)
unsupported
James R. Ferguson
Acclaimed Contributor

Re: hostname.......

Hi:

In addition to the suggestions already given, make sure that /etc/hosts is readable by any user (-r--r--r--).

p.s. BERLENE HERREN: Looks like your using your "alter ego" account! ;-)

...JRF...
JK_3
Occasional Contributor

Re: hostname.......

Dear All,

Thanxs for replying, but still facing the same problem. Giving error while executing the "swlist " command

Rgds
JAI
Never Give Up...
JK_3
Occasional Contributor

Re: hostname.......

Dear All,

swlist is executing successfully....

Thanxs to everyone for giving your valuable time for looking into this problem....
Points will be assigned very soon.

JAI
Never Give Up...