Operating System - HP-UX
1833052 Members
2564 Online
110049 Solutions
New Discussion

swlist -l bundle gives error

 
Sameek
New Member

swlist -l bundle gives error

Hi,

I am trying to find out what packages are installed on the HPUX B.11.31 box.

I am using the following command:
#swlist -l bundle

However I am getting the following error.
# Initializing...
# Contacting target "epc-cr-h"...
WARNING: An attempt to get the network host entry for "epc-cr-h"
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 4754. Please give this information to your
Hewlett-Packard support contact.
ERROR: "epc-cr-h:/": 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.

I tried running swreg and swacl command but gives similar errors. Please Help.
7 REPLIES 7
Ivan Krastev
Honored Contributor

Re: swlist -l bundle gives error

Have you ever checked resolving? See WARNING section.


regards,
ivan
Steven E. Protter
Exalted Contributor

Re: swlist -l bundle gives error

Shalom,

Are you running this as root?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tingli
Esteemed Contributor

Re: swlist -l bundle gives error

Use ps -eaf to check
/usr/sbin/swagentd -r

if not, start it.
likid0
Honored Contributor

Re: swlist -l bundle gives error

Hy,

As it says:

WARNING: An attempt to get the network host entry for "epc-cr-h"
failed.

fix your /etc/host or DNS to resolve the hostname epc-cr-h
Windows?, no thanks
Sameek
New Member

Re: swlist -l bundle gives error

yes I am running this as root. I tried both from console ans well as remote location. Both gives same results.
Johnson Punniyalingam
Honored Contributor

Re: swlist -l bundle gives error

Hi Sameek,

Can please check nsswitch.conf file

more /etc/nsswitch.conf

looks to me that would be case of this problem

also please compare the nsswitch.conf file with any other server,

please the below example file of My "nsswitch.conf " file
Example:-
========

passwd: files
group: files
hosts: files dns
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files



Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Sameek
New Member

Re: swlist -l bundle gives error

That did it. nsswitch.conf file was the problem. There was no /etc/nsswitch.conf file. I copied /etc/nsswitch.hp_defaults to nsswitch.conf and changed the order in the hosts section.

originally it was:
hosts: dns [NOTFOUND=return] nis [NOTFOUND=return] files

I changed it to:
hosts: files dns [NOTFOUND=return] nis [NOTFOUND=return]

That did it. Thanks everybody! Especially Johnson.