Operating System - HP-UX
1833873 Members
1653 Online
110063 Solutions
New Discussion

Re: Not able to list the software installed on HP-UX 11.0 using swlist and SAM

 
SOLVED
Go to solution
Venkatakrishna P.V_1
Occasional Advisor

Not able to list the software installed on HP-UX 11.0 using swlist and SAM

Hi All,
I have installed HP-UX 11.0 on L2000 server.
Installation finished without any errors.
The Hostname given is PCSPHP3 ,
IP address is 192.168.79.7 and
Sub Net: 255.255.252.0

Now when ever i try to list the installed products. the following error occures. The same error occures in SAM utility also..
# swlist
# Initializing...
# Contacting target "PCSPHP3"...
ERROR: Could not contact host "PCSPHP3". 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 PCSPHP3:/var/adm/sw/swagentd.log).
#

Even i am not able to ping on local server with hostname and localhost.
error ping: unknown host localhost.
But able to ping using IP of host and localhost on local server.

Please advise me what has gone wrong. I am able to connect this server using telnet & able to ping the server with IP from other system.

Thanks in Adv...

Venkatakrishna.
4 REPLIES 4
Michael Tully
Honored Contributor
Solution

Re: Not able to list the software installed on HP-UX 11.0 using swlist and SAM

Let's make sure some DNS actually works. I am sure that this is your problem.

Name and correct IP address are listed in /etc/hosts

If the server is supposed to be in DNS how are the /etc/resolv.conf and /etc/nsswitch.conf files set.

Is the hostname and correct IP address listed in /etc/rc.config.d/netconf ?

The routing information is correct.
Anyone for a Mutiny ?
Bharat Katkar
Honored Contributor

Re: Not able to list the software installed on HP-UX 11.0 using swlist and SAM

Hi Venkata,
what does this give you:

# hostname

Whether same name is reflected in /etc/hosts with correct IP address.

Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: Not able to list the software installed on HP-UX 11.0 using swlist and SAM

Also check /etc/hosts file for any control characters or any unwanted characters. If you doubt try recreating /etc/hosts file
You need to know a lot to actually know how little you know
Venkatakrishna P.V_1
Occasional Advisor

Re: Not able to list the software installed on HP-UX 11.0 using swlist and SAM

Hi Michael,
Removed search and nameserver entry from /etc/resolv.conf.

Now problem is fixed.

Thanks once again for replying in time.

Venkatakrishna.