Operating System - HP-UX
1827283 Members
3676 Online
109717 Solutions
New Discussion

Re: SAM problem and swconfig permissions

 
Omar Alvi_1
Super Advisor

SAM problem and swconfig permissions

Hi,

I noticed that my SAM is no longer working. Gives the following messages

mkdir: cannot access /var/sam: No such file or directory
chmod: can't access /var/sam/log
/var/sam/log: No such file or directory
/var/sam/log: No such file or directory
/usr/sbin/sam[196]: /var/sam: not found.
The SAM Registration database, /etc/sam/reg_files.db, either is
missing, cannot be opened, or is empty. This is usually caused by
running SAM on a system that is not configured to run SAM. If this is
the case, please use swconfig(1M) to configure the "SystemAdmin"
product.

swlist -l fileset -a state |grep -i sam

PHCO_17792.SAM configured
PHCO_17792.SAM-HELP configured
PHCO_25902.SAM configured
PHCO_25902.SAM-HELP configured
PHCO_27375.SAM configured
PHCO_27375.SAM-ENG-A-MAN configured
PHCO_27375.SAM-HELP configured
PHSS_20141.DDX-SAM configured
PHSS_20149.SAM configured
PHSS_26620.DDX-SAM configured
SX25-HPerf.SX25-HPERF-SAM configured
SystemAdmin.SAM installed
SystemAdmin.SAM-ENG-A-MAN installed
SystemAdmin.SAM-HELP installed
Xserver.DDX-SAM installed

and finally

swconfig -v SystemAdmin gives the following

======= 08/22/04 16:30:39 MDT BEGIN swconfig SESSION
(non-interactive)

* Session started for user "root@hp11".

* Beginning Selection
ERROR: An attempt to open the SD inter-host secrets file
"/var/adm/sw/security/secrets" (or its ndbm(3) database)
failed. Verify that the file exists and that it does not
reside on a remote file system.
ERROR: "hp11:/": You do not have the required permissions to select
this target. Check permissions using the "swacl" command or
see your system administrator for assistance. Or, to manage
applications designed and packaged for nonprivileged mode, see
the "run_as_superuser" option in the "sd" man page.
* Target connection failed for "hp11:/".
ERROR: More information may be found in the daemon logfile on this
target (default location is hp11:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 08/22/04 16:30:39 MDT END swconfig SESSION (non-interactive)

How to resolve the issue?

Appreciate the help

thanks and regards,

omar Alvi
4 REPLIES 4
Dave Olker
Neighborhood Moderator

Re: SAM problem and swconfig permissions

Hi Omar,

Well, the first thing I'd verify is that your /var/sam directory even exists. Many of these error messages indicate that something has happened to your /var directory. Have you confirmed that /var is intact and has the proper permissions?

The fact that /var/sam doesn't exist and /var/adm/sw/security/secrets cannot be found, and /var/sam/log isn't found - all indicate to me that something has happened to your /var directory.

Can you please confirm that /var exists, is populated properly, and has the proper permissions? If /var is a separate filesystem, please be sure it is mounted when SAM runs.

That's the first few things I'd check.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Robert-Jan Goossens
Honored Contributor

Re: SAM problem and swconfig permissions

Hi,

Found two documents in the itrc database.

Document description: SAM registration database corruption
Document id: USAMKBRC00008937

Europe
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062922596
US
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062922596

Document description: swinstall error on "inter-host secrets file"
Document id: USDUXKBRC00012458

Europe
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000068583785
US
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000068583785

Regards,
Robert-Jan
Omar Alvi_1
Super Advisor

Re: SAM problem and swconfig permissions

Thanks for the assistance

Robert, one of the documents solved my issue with swconfig. would've liked to assign 10 points, but need to keep the thread open.

The first document seems to address the SAM problem I'm having presently, but I'm still facing it.

When I try something in SAM I get the attached screens one after the other.

with your help, i'm now half through solving the issue.

Thanks and Regards,

-Alvi
Robert-Jan Goossens
Honored Contributor

Re: SAM problem and swconfig permissions

Hi Alvi,

are you running 11.11 ?

check this patch.
http://www4.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHCO_30598

Regards,
Robert-Jan