Showing results for 
Search instead for 
Do you mean 

swlist error

SOLVED
Go to Solution
Highlighted
Regular Advisor

swlist error

Dear All,

 

I am finding it difficult to run swlist and also view already installed patches on HP-UX 11.31. The message below pups up any time i try to run these things. Kindly help out.

 

/ # swlist
# Initializing...
# Contacting target "GHACCUPG"...
WARNING: An attempt to get the network host entry for "GHACCUPG"
         failed.  This may result in denial of access to users and
         agents at this host.  Check the spelling of this name, then
         your "/etc/hosts" file, or your "/etc/resolv.conf" file and
         DNS resolver configuration.  The nslookup program may be
         helpful in isolating this problem.
ERROR:   Internal error.  Security check failed unexpectedly.  This
         error occurred in function "idam_LocateLocalFile", source file
         "id.c", line 4765.  Please give this information to your
         Hewlett-Packard support contact.
ERROR:   "GHACCUPG:/":  You do not have permission for this operation.
         The depot owner, system administrator, or alternate root owner
         may need to use the "swreg" or "swacl" command to give you
         permission.  Or, to manage applications designed and packaged
         for nonprivileged mode, see the "run_as_superuser" option in
         the "sd" man page.

 

 

Thank you.

 

kingsley

4 REPLIES
Honored Contributor Honored Contributor

Re: swlist error

Looks like your system cannot resolve its own hostname: the /etc/hosts file should have an entry with the system's own IP address and hostname, but that entry might be out of date or missing. Check that and fix it if necessary.

 

Then restart the swagentd daemon:

sh /sbin/init.d/swagentd stop
sh /sbin/init.d/swagentd start

 

MK
Regular Advisor

Re: swlist error

Hi MK!

 

Your solution has resolved the problem and  i thank you so much.

 

kingsley

Senior Member

Re: swlist error

we should have below entry in

test# cat /etc/nsswitch.conf
hosts: files [NOTFOUND=continue] dns
ipnodes: files [NOTFOUND=continue] dns
Occasional Advisor

Re: swlist error

I'm not found this file nsswltch.conf in /etc