03-14-2012 09:05 AM
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
# 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.
Solved! Go to Solution.
03-14-2012 01:30 PM
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