Operating System - HP-UX
1855162 Members
2862 Online
104109 Solutions
New Discussion

Re: Errot in swlist command.

 
Anand HCL
New Member

Errot in swlist command.

Hi All,
While giving swlist command I'm getting the following error. Can anyone tell me the root cause of this ?

# swlist
# Initializing...
# Contacting target "dhcp43ta043"...
ERROR: Could not contact host "dhcp43ta043". 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
dhcp43ta043:/var/adm/sw/swagentd.log).
Thnx in advance,
Anand.
7 REPLIES 7
Arunvijai_4
Honored Contributor

Re: Errot in swlist command.

Check your /etc/resolv.conf and /etc/nsswitch.conf and make sure all entries correct. This error is common when host is not reachable. After making changes, restart swagent by # swagentd -r

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
RAC_1
Honored Contributor

Re: Errot in swlist command.

What this host?? Is nslookup fine with this host?? (both ways)
There is no substitute to HARDWORK
S.Arunkumar
Trusted Contributor

Re: Errot in swlist command.

Hi,

PLease do restart the swagentd Daemon once and try it again.I have faced this problem earlier and this way I could short it out.

Regards
S.Arunkumar
BhupeshK
New Member

Re: Errot in swlist command.

Hi Anand,

The swagentd daemon is unable to resolv the hostname of your system.

is dhcp43ta043 is the hostname for the system ?

if not then setup your systems hostname and resolv.conf properly.

you may need to modify /etc/resolv.conf.

HTH
-Bhupesh
Anand HCL
New Member

Re: Errot in swlist command.

Hello,
If I'm giving uname -a I'm getting "dhcp43ta" and if I'm giving hostname comamnd I'm getting
"dhcp43ta043". The hostname is 11 characters. Will it create any problem ?

Regards,
Anand
Mohanasundaram_1
Honored Contributor

Re: Errot in swlist command.

Hi Anand,

Yes, having a hostname more than 8 characters in length will cause you similar problems.

Correct this and also check /etc/hosts for IP address / hostname changes recently.

perform a
/sbin/init.d/swagentd stop
and
/sbininit.d/swagentd start

after correcting the hostname problem.

With regards,
Mohan.
Attitude, Not aptitude, determines your altitude
Thummalu
Frequent Advisor

Re: Errot in swlist command.

Hi Anand,

before modifying the hostname, follow these

1) check any SG cluster running on the machine. stop the cluster
2) If you are using DNS to resolv, change the files in /var/named with the correct hostname and give the following commands

root% rndc reload
root% kill -HUP `head - /var/run/named.pid`
3) Reconfigure LAN interface(s)
Modify the HOSTNAME and NODENAME to the new hostname in /etc/rc.config.d/netconf.

4) If there are any NFS point mounted, stop nfs server and nfs client

5)Restart Lan interface(s)
Now the changes to the LAN interface are made valid by
root% /sbin/init.d/net stop
root% /sbin/init.d/net start
6)Restart the swagentd
In order swagentd needs to work with the new hostname, restart the daemon
root% /sbin/init.d/swagentd stop
root% /sbin/init.d/swagentd start

7)Set the new hostname
root% /sbin/init.d/hostname start

thats it :)

br
Thummalu