1832957 Members
2675 Online
110048 Solutions
New Discussion

Re: swlist problem

 
SOLVED
Go to solution
Sridhar R
Regular Advisor

swlist problem

Hi,

Below is what is the error that i get when i try executing swlist command.



cdbap101#swlist
# Initializing...
# Contacting target "cdbap101"...
ERROR: Could not contact host "cdbap101". Make sure the hostname is
correct and an absolute pathname is specified (beginning with
"/").
ERROR: More information may be found in the daemon logfile on this
target (default location is
cdbap101:/var/adm/sw/swagentd.log).


The nslookup output is:


cdbap101#nslookup cdbap101
Using /etc/hosts on: cdbap101

looking up FILES
*** No address information is available for "cdbap101"



What could be the problem?
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: swlist problem

Shalom,

The error message is misleading.

/sbin/init.d/swagentd -r

That will usually fix the problem.

Lets see the /etc/hosts entry.

cdbap101 192.168.0.10

If that IP address is valid.

See /etc/nsswitch.conf to make sure you are looking at files. I think thats all right though.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: swlist problem

It sounds like your server is not defined in /etc/hosts. Run this:

grep cdbap101 /etc/hosts

Also post "cat /etc/nsswitch.conf"


Pete

Pete
Sridhar R
Regular Advisor

Re: swlist problem


Hi,

Below is what the output shows:



cdbap101#
cdbap101#/sbin/init.d/swagentd -r
usage: /sbin/init.d/swagentd {start|stop}


cdbap101#/sbin/init.d/swagentd stop
The swagentd daemon is stopped.
cdbap101#
cdbap101#/sbin/init.d/swagentd start
cdbap101#

Even after doing this, error repeates!

Find other output:
cdbap101#
cdbap101#grep cdbap101 /etc/hosts
10.200.227.62 cdbap101.ashokleyland.com cdpap101
cdbap101#


And i know this is a valid ip in this network.

Moreover, i dont find any nsswitch.conf file within /etc directory (infact in the server itself)
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: swlist problem

Hi,

Copy the /etc/nsswitch.files to the /etc/nsswistch.conf

# cp /etc/nsswitch.files /etc/nsswistch.conf

Restart the swagentd

Try swlist again.

regards,
Robert-Jan
Sridhar R
Regular Advisor

Re: swlist problem

Hi,

I Tried that..

But still the result is same.
Robert-Jan Goossens_1
Honored Contributor

Re: swlist problem

ooooops made a typo in above message...

# cp /etc/nsswitch.files /etc/nsswitch.conf

NOT nsswistch
Robert-Jan Goossens_1
Honored Contributor

Re: swlist problem

and you seem to have a typo in the /etc/hosts file.

cdbap101 ---> cdbap101.ashokleyland.com cdpap101

should be --> cdbap101.ashokleyland.com cdbap101
Sridhar R
Regular Advisor

Re: swlist problem


Hi,

Thanks!!


Working Now!!

Sridhar
Sridhar R
Regular Advisor

Re: swlist problem

Problem is resolved!!