1833017 Members
2327 Online
110048 Solutions
New Discussion

SD-UX

 
R.SRIDHAR
Occasional Advisor

SD-UX

Hi All

when i am running swlist -l patch command i am getting this error message help me


# swlist -l fileset
# Initializing...
# Contacting target "--help"...
ERROR: Could not contact host "--help". 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 --help:/var/adm/sw/swagentd.log).


i have attached the swagentd log file for your reference
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: SD-UX

Hi,

Can you resolve you own hostname?

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1192796

Regards,
Robert-Jan
Jha_1
New Member

Re: SD-UX

Hi Sridhar,

One strange line of output, which I can see is
# Contacting target "--help".

Somehow the hostname of the system has been set to the word "--help" , and that is the reason why you have come across this error.

(Reason: The swlist command is failing to resolve the hostname "--help" bcoz it doesnt have the entry in the DNS. So the swlist command is unable to reach your current host.You can find your DNS Server in /etc/resolv.conf file
)

Pls correct the hostname of the system using the following command

# hostname

Also make sure the whatever hostname you choose, it should have an entry in the DNS Server.

Also check the file /etc/resolv.conf . First of all it should exist and should look like, as shown below:


nameserver
.
.

It is possible to have multiple entry in this file but all should resemble the above two lines.

Let me know if you still face the difficulty.
Aneesh Mohan
Honored Contributor

Re: SD-UX

Try the below steps .

#/sbin/init.d/hostname stop
#/sbin/init.d/hostname start
#swagent -r

still it is not working then please post the output of the below commands



#hostname
#cat /etc/hosts
#cat /etc/resolv.conf


Thanks,
Aneesh
Dennis Handly
Acclaimed Contributor

Re: SD-UX

What does "uname -a" show?
Your log file shows root@testapp in January.
Rasheed Tamton
Honored Contributor

Re: SD-UX

Hi Sridhar,

Looks like someone from Linux/Cygwin background has used the command

hostname --help

and apparently changed the hostname to --help without knowing it.

So please type the below command

hostname
and it will output the current hostname

if it is not correct, use

/sbin/set_parms hostname
to set the correct hostname permanently

May be you have to restart the swagentd

/usr/sbin/swagentd -r

Rgds.