swlist error (1528 Views)
Regular Advisor
Posts: 142
Registered: ‎01-14-2009
Message 1 of 4 (1,528 Views)
Accepted Solution

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.



Honored Contributor
Posts: 6,271
Registered: ‎12-02-2001
Message 2 of 4 (1,523 Views)

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


Regular Advisor
Posts: 142
Registered: ‎01-14-2009
Message 3 of 4 (1,509 Views)

Re: swlist error

Hi MK!


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



Senior Member
Posts: 1
Registered: ‎07-08-2011
Message 4 of 4 (603 Views)

Re: swlist error

we should have below entry in

test# cat /etc/nsswitch.conf
hosts: files [NOTFOUND=continue] dns
ipnodes: files [NOTFOUND=continue] dns
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.