1834631 Members
3180 Online
110069 Solutions
New Discussion

HP-UX: sam problem

 
guaggia
Advisor

HP-UX: sam problem

I have a system with hp-ux 11.11 and when I try to use sam from root user, I receive the following error message :

UNEXPECTED EXIT: process LANG=C LC_ALL=C /usr/sam/lbin/samx -C -p 9629 -s users usr/sam/lib//ug.ui exited with a non-zero exit status. Sorry, you must have superuser (root) privilege to enter this program.

what is the problem ?

thanks in advance.
16 REPLIES 16
Bharat Katkar
Honored Contributor

Re: HP-UX: sam problem

hi,
SAM can only be used by superuser i.e. root. in order to make SAM accessible to other user you have run SAM in SAMbuilder mode.

see man sam.

Regards,
You need to know a lot to actually know how little you know
guaggia
Advisor

Re: HP-UX: sam problem

I received the error message with root user.
Sanjay Kumar Suri
Honored Contributor

Re: HP-UX: sam problem

Check if you have to apply some patchs to overcome this problem.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Robert-Jan Goossens
Honored Contributor

Re: HP-UX: sam problem

Hi,

could you run,

# swlist -l patch -a state | grep -i sam

Regards,
Robert-Jan
guaggia
Advisor

Re: HP-UX: sam problem

hi all
thanks you to everybody for your help, but I try to start directly the following command :

/usr/sam/lbin/samx -C -p 10056 -s users /usr/sam/lib/%L/ug.ui

and works correctly.

do you have an idea ?

V. Nyga
Honored Contributor

Re: HP-UX: sam problem

Hi,

anything in /var/sam/log/samlog?

Volkmar
*** Say 'Thanks' with Kudos ***
guaggia
Advisor

Re: HP-UX: sam problem

this is the output of the samlog file :

@!@129@1087472025@0
Thu Jun 17 13:33:45 2004 Entering SAM area "System Administration Manager (HR
00D380)".
@!@8@1087472025@0
Entering Task Manager with task FAL_IS_MUL_SAMS.
@!@4@1087472025@0
Checking for Multiple SAMs Running on System.
@!@4@1087472025@0
Looking for SAM lock files in the directory "/var/sam/lock".
@!@8@1087472025@0
Exiting Task Manager with task FAL_IS_MUL_SAMS.
@!@8@1087472025@0
Entering Task Manager with task FAL_CHECK_FOR_INSTALL.
@!@4@1087472025@0
Checking SAM installation state.
@!@8@1087472025@0
Entering Task Manager with task FAL_GET_WHAT_STRING.
@!@4@1087472025@0
Retrieving revision information from the file /usr/sam/lib/C/sam.ui.
@!@4@1087472025@0
Executing the following command:\C/usr/bin/what -s /usr/sam/lib/C/sam.ui\C
@!@4@1087472025@0
Command completed with exit status 0.
@!@8@1087472025@0
Exiting Task Manager with task FAL_GET_WHAT_STRING.
@!@4@1087472025@0
Successfully retrieved initial installed state for SAM.
@!@8@1087472025@0
Exiting Task Manager with task FAL_CHECK_FOR_INSTALL.
@!@4@1087472026@0
Looking for SAM *.cb files in directory "/opt/perf/help/gp/C/".
@!@4@1087472026@0
Looking for SAM *.ou files in directory "/opt/perf/help/gp/C/".
@!@4@1087472026@0
Looking for SAM *.cb files in directory "/opt/resmon/bin/C/".
@!@4@1087472026@0
Looking for SAM *.ou files in directory "/opt/resmon/bin/C/".
@!@4@1087472026@0
Looking for SAM *.cb files in directory "/usr/lib/X11/Xserver/misc/sam/C/".
@!@4@1087472026@0
Looking for SAM *.ou files in directory "/usr/lib/X11/Xserver/misc/sam/C/".
@!@4@1087472026@0
Looking for SAM *.cb files in directory "/usr/sam/lib/C/".
@!@4@1087472026@0
Looking for SAM *.ou files in directory "/usr/sam/lib/C/".
@!@8@1087472026@0
Entering Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472026@0
Executing the pre-condition command for \"Groups\" to determine if it should
be listed in SAM's list of areas.
@!@4@1087472026@0
Executing the following command:\C/usr/sam/lbin/ug_area_vis\C
@!@4@1087472026@0
Command completed with exit status 0.
@!@8@1087472026@0
Exiting Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@8@1087472026@0
Pre-condition command for "Groups" succeeded.
@!@4@1087472026@0
Pre-condition failure: the file "/var/sam/ug_subareas/local_groups" does not
exist. The area "Local Groups" will not be listed in SAM.
@!@4@1087472026@0
Pre-condition failure: the file "/var/sam/ug_subareas/nisp_groups" does not e
xist. The area "NIS+ Groups" will not be listed in SAM.
@!@8@1087472026@0
The file or executable "/var/sam/ug_subareas/users" exists.
@!@4@1087472026@0
Pre-condition failure: the file "/var/sam/ug_subareas/local_users" does not e
xist. The area "Local Users" will not be listed in SAM.
@!@4@1087472026@0
Pre-condition failure: the file "/var/sam/ug_subareas/nis_users" does not exi
st. The area "NIS Users" will not be listed in SAM.
@!@4@1087472026@0
Pre-condition failure: the file "/var/sam/ug_subareas/nisp_users" does not ex
ist. The area "NIS+ Users" will not be listed in SAM.
@!@8@1087472026@0
The file or executable "/usr/sbin/audsys" exists.
@!@8@1087472026@0
The file or executable "/usr/sbin/audsys" exists.
@!@8@1087472026@0
The file or executable "/var/sam/ug_subareas/users" exists.
@!@4@1087472026@0
Pre-condition failure: the file "/var/sam/ug_subareas/local_users" does not e
xist. The area "Audited Local Users" will not be listed in SAM.
@!@4@1087472026@0
Pre-condition failure: the file "/var/sam/ug_subareas/nisp_users" does not ex
ist. The area "Audited NIS+ Users" will not be listed in SAM.
@!@8@1087472026@0
The file or executable "/usr/sbin/audsys" exists.
@!@4@1087472026@0
Pre-condition failure: the file "/var/sam/.enable_diskless" does not exist.
The area "NFS Cluster Configuration" will not be listed in SAM.
@!@8@1087472026@0
The file or executable "/sbin/lvmrc" exists.
@!@8@1087472026@0
The file or executable "/sbin/lvmrc" exists.
@!@8@1087472026@0
Entering Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472026@0
Executing the pre-condition command for \"NIS Hosts Map\" to determine if it
should be listed in SAM's list of areas.
@!@4@1087472026@0
Executing the following command:\C/usr/bin/ypcat hosts > /dev/null\C
@!@4@1087472026@0
Command completed with exit status 1.
@!@8@1087472026@0
Exiting Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472026@0
Pre-condition failure: the command for the area "NIS Hosts Map" returned non-
zero. This area will not be listed in SAM.
@!@8@1087472026@0
Entering Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472026@0
Executing the pre-condition command for \"NIS+ Hosts Table\" to determine if
it should be listed in SAM's list of areas.
@!@4@1087472026@0
Executing the following command:\C/usr/bin/niscat hosts.org_dir > /dev/null\
C
@!@4@1087472026@0
Command completed with exit status 1.
@!@8@1087472026@0
Exiting Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472026@0
Pre-condition failure: the command for the area "NIS+ Hosts Table" returned n
on-zero. This area will not be listed in SAM.
@!@8@1087472026@0
The file or executable "/usr/sbin/nfsd" exists.
@!@8@1087472026@0
The file or executable "/usr/sbin/biod" exists.
@!@8@1087472026@0
The file or executable "/usr/sbin/nfsd" exists.
@!@8@1087472026@0
The file or executable "/usr/sbin/biod" exists.
@!@8@1087472026@0
Entering Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472026@0
Executing the pre-condition command for \"NIS Netgroups\" to determine if it
should be listed in SAM's list of areas.
@!@4@1087472026@0
Executing the following command:\C/usr/bin/ypcat netgroup > /dev/null\C
@!@4@1087472027@0
Command completed with exit status 1.
@!@8@1087472027@0
Exiting Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472027@0
Pre-condition failure: the command for the area "NIS Netgroups" returned non-
zero. This area will not be listed in SAM.
@!@8@1087472027@0
Entering Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472027@0
Executing the pre-condition command for \"NIS+ Netgroups\" to determine if it
should be listed in SAM's list of areas.
@!@4@1087472027@0
Executing the following command:\C/usr/bin/niscat netgroup.org_dir > /dev/nu
ll\C
@!@4@1087472027@0
Command completed with exit status 1.
@!@8@1087472027@0
Exiting Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472027@0
Pre-condition failure: the command for the area "NIS+ Netgroups" returned non
-zero. This area will not be listed in SAM.
@!@4@1087472027@0
Pre-condition failure: the file "/usr/local/news/bin/getlist" does not exist.
The area "Inbound Newsfeeds" will not be listed in SAM.
@!@4@1087472027@0
Pre-condition failure: the file "/usr/local/news/bin/getlist" does not exist.
The area "Outbound Newsfeeds" will not be listed in SAM.
@!@8@1087472027@0
The file or executable "/usr/bin/top" exists.
@!@8@1087472027@0
The file or executable "/usr/bin/ipcs" exists.
@!@8@1087472027@0
The file or executable "/usr/sbin/sar" exists.
@!@8@1087472027@0
The file or executable "/usr/bin/iostat" exists.
@!@8@1087472027@0
The file or executable "/usr/bin/vmstat" exists.
@!@8@1087472027@0
The file or executable "/sbin/lvmrc" exists.
@!@8@1087472027@0
The file or executable "/sbin/lvmrc" exists.
@!@8@1087472027@0
Entering Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472027@0
Executing the pre-condition command for \"Instruments\" to determine if it sh
ould be listed in SAM's list of areas.
@!@4@1087472027@0
Executing the following command:\C/usr/bin/hp9000s800 && ! /usr/bin/hp9000s70
0\C
@!@4@1087472027@0
Command completed with exit status 0.
@!@8@1087472027@0
Exiting Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@8@1087472027@0
Pre-condition command for "Instruments" succeeded.
@!@8@1087472027@0
The file or executable "/usr/lbin/ups_mond" exists.
@!@8@1087472027@0
Entering Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472027@0
Executing the pre-condition command for \"Monitor Configuration\" to determin
e if it should be listed in SAM's list of areas.
@!@4@1087472027@0
Executing the following command:\C/usr/bin/test -x /opt/graphics/common/bin/s
etmon\C
@!@4@1087472027@0
Command completed with exit status 0.
@!@8@1087472027@0
Exiting Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@8@1087472027@0
Pre-condition command for "Monitor Configuration" succeeded.
@!@8@1087472027@0
Entering Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472027@0
Executing the pre-condition command for \"Print Server Configuration\" to det
ermine if it should be listed in SAM's list of areas.
@!@4@1087472027@0
Executing the following command:\C/usr/bin/test -x /usr/sbin/tpsconfig\C
@!@4@1087472027@0
Command completed with exit status 0.
@!@8@1087472027@0
Exiting Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@8@1087472027@0
Pre-condition command for "Print Server Configuration" succeeded.
@!@8@1087472027@0
Entering Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@4@1087472027@0
Executing the pre-condition command for \"Monitor Configuration\" to determin
e if it should be listed in SAM's list of areas.
@!@4@1087472027@0
Executing the following command:\C/usr/bin/test -x /opt/graphics/common/bin/s
etmon\C
@!@4@1087472027@0
Command completed with exit status 0.
@!@8@1087472027@0
Exiting Task Manager with task FAL_EXEC_PRE_CONDITION.
@!@8@1087472027@0
Pre-condition command for "Monitor Configuration" succeeded.
@!@8@1087472036@0
Entering Task Manager with task KC_REGEN_REQD.
@!@2@1087472036@0
Checking to see if kernel regen is required
@!@8@1087472036@0
Exiting Task Manager with task KC_REGEN_REQD.
@!@8@1087472036@0
Entering Task Manager with task KC_CLEANUP_SESSION.
@!@1@1087472036@0
Cleaning up session and lock files
@!@8@1087472036@0
Exiting Task Manager with task KC_CLEANUP_SESSION.
@!@129@1087472036@0
Thu Jun 17 13:33:56 2004 Exiting SAM area "System Administration Manager (HR0
0D380)".

guaggia
guaggia
Advisor

Re: HP-UX: sam problem

and this is the output of the command :

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



# PHCO_25870.SAM configured
# PHCO_25870.SAM-HELP configured
# PHSS_26619.DDX-SAM configured
# SystemAdmin.SAM configured
PHCO_25870.SAM configured
# SystemAdmin.SAM-ENG-A-MAN configured
# SystemAdmin.SAM-HELP configured
PHCO_25870.SAM-HELP configured
# SystemAdmin.SAM-JPN-E-MAN configured
# SystemAdmin.SAM-JPN-S-MAN configured
# Xserver.DDX-SAM configured
PHSS_26619.DDX-SAM configured

guaggia
V. Nyga
Honored Contributor

Re: HP-UX: sam problem

Ok, sorry, I think this is from the successful try. Then we need var/sam/log/samlog.old

V.
*** Say 'Thanks' with Kudos ***
guaggia
Advisor

Re: HP-UX: sam problem

this is the correct file, because I have seen the output while the sam was running, using tail -f command.

guaggia
V. Nyga
Honored Contributor

Re: HP-UX: sam problem

Hi

your patch has a warning:
http://www4.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_25870&context=hpux:800:11:11


with similar messages as your


V.
*** Say 'Thanks' with Kudos ***
Fabio Ettore
Honored Contributor

Re: HP-UX: sam problem

Ciao guaggia,

I never saw that error before (I mean exactly that error because similar unexpected error I saw a lot of times).

Often the problem is solved by reinstalling the SAM patch (in your instance is PHCO_25870) or the latest SAM patch (it is PHCO_28123).
I would suggest you to install PHCO_28123, it doesn't require a reboot and hasn't dependencies.

Anyway the new part of the error for my eyes is:
Sorry, you must have superuser (root) privilege to enter this program.

Then I ask you:
if you sure that SAM is launched by root?
Do you launch it by an user which 'su' to root?


HTH.

Best regards,
Ettore
WISH? IMPROVEMENT!
Saeid Ghanei_1
Advisor

Re: HP-UX: sam problem

hi,

Please check if you have another super user in your system. It is recommended not to have more than one super user. You can check it in yout /etc/passwd and check the ids if someone has id 0.

Do you have a secured system (changed to secued mode)?

Regards
Saeid
Jose Mosquera
Honored Contributor

Re: HP-UX: sam problem

Hi,

Try doing a
#swconfig \*

If the above does not work load the latest SAM cumulative patch and any dependencies.
HP-UX 11.11 --> PHCO_23004
Pls check special instructions

Rgds.
Robert-Jan Goossens
Honored Contributor

Re: HP-UX: sam problem

Small correction to the previous answer, latest 11.11 cumulative SAM patch is PHCO_24118

http://www4.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.patchDetail{PHCO_28123,hpux:800:11:11}|patch.breadcrumb.patchDetail{PHCO_23004,hpux:800:11:11}|&patchid=PHCO_24118&context=hpux:800:11:11

Regards,
Robert-Jan
Jose Mosquera
Honored Contributor

Re: HP-UX: sam problem

Thanks Robert-Jan,

The last patch is really PHCO_24118, take note about current rates of them:
PHCO_23004 (passed funtional, customer, stress and performance tests)
PHCO_24118 (passed funtional and costumer tests)

In any case, always read special intructions.

Rgds.