1825464 Members
3596 Online
109681 Solutions
New Discussion юеВ

samlog_viewer error?

 

samlog_viewer error?

I was looking into the samlog_viewer & when trying to look @ the samlog, I get the error below. I've used two different methods & get the same error. Any ideas?

I am not attempting to run this as 'root' & am accessing the system using CDE.

/usr/sam/bin/samlog_viewer -l C /var/sam/log/samlog

cat samlog | /usr/sam/bin/samlog_viewer -tn -


The SAM log viewer could not open the file "/var/sam/LFV_RUN5183" (errno = 13).hgdwtest:oracle:/var/sam/log$
8 REPLIES 8
Peter Godron
Honored Contributor

Re: samlog_viewer error?

Mark,
Errno 13 = EACCES = User access denied

Run your commands as root and you should be ok.

Please read:
http://66.34.90.71/ITRCForumsEtiquette/after.html

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
on how to reward any useful answers given to your questions.

So far you have not awarded any points !

Re: samlog_viewer error?

Peter,

I appreciate your reply. However, there is no way that I will be able to run any command on this system as 'root'.

Mark
Peter Godron
Honored Contributor

Re: samlog_viewer error?

Hi,
in that case, why do you expect that you can read a log file generated by the root user ? ;-)

In don't have access to a HP system at the moment, but check the permissions on:
/usr/sam/bin/samlog_viewer
and /var/sam/log/samlog

Re: samlog_viewer error?

Peter,

It's a viewer........ and yes, there should be third-party verification of what 'root' is doing on this system.

FYI:

hgdwtest:oracle:/home/oracle$ll /usr/sam/bin/samlog_viewer
-r-xr-xr-x 1 bin bin 57344 Jun 15 2004 /usr/sam/bin/samlog_viewer


hgdwtest:oracle:/var/sam/log$ll samlog
-rw-r--r-- 1 root sys 108666 Apr 23 02:01 samlog
Jaime Bolanos Rojas.
Honored Contributor

Re: samlog_viewer error?

Mark,

It looks like you got permissions to read those files, and I do not recall an error like that in SAM.

You might want to make sure that you got the latest patches for SAM for you specific OS.

Regards,

Jaime.
Work hard when the need comes out.
Marco A.
Esteemed Contributor

Re: samlog_viewer error?

Maybe that patches could help you, because the permissions are ok, check if you have the following patches, I sent you the info for 11.11 and 11.23.

PHCO_34207
s700_800 11.11 cumulative SAM patch

PHCO_34208
s700_800 11.23 cumulative SAM patch

Regards,
Just unplug and plug in again ....

Re: samlog_viewer error?

Marco,

I had the patch you reference thrown on & it does not appear to have any effect:

hgdwtest:oracle:/var/sam/log$/usr/sam/bin/samlog_viewer -l C /var/sam/log/samlog
The SAM log viewer could not open the file "/var/sam/LFV_RUN19834" (errno = 13).

hgdwtest:oracle:/var/sam/log$cat samlog | /usr/sam/bin/samlog_viewer -tn -
The SAM log viewer could not open the file "/var/sam/LFV_RUN19836" (errno = 13).

hgdwtest:oracle:/var/sam/log$

Re: samlog_viewer error?

Solution:

This is a permissions issue, but it's with the directory that the samlog_viewer creates working files. Changing /usr/sam to 777 allows for the creation of working files:

drwxrwxrwx 9 bin bin 8192 Apr 23 13:12 sam


hgdwtest:oracle:/var$ll sam
total 544
-rw-r--r-- 1 mfrederi gdw_user 10195 Apr 23 13:12 LFV_13106
-rw-r--r-- 1 mfrederi gdw_user 0 Apr 23 13:12 LFV_RUN13106


The next question is, can be change to location of where these files are created, like in /tmp ??