cancel
Showing results for 
Search instead for 
Did you mean: 

sa1 Errorcode

SOLVED
Go to solution
Ralf Seefeldt
Valued Contributor

sa1 Errorcode

Hi,

I have a Server wher sa1 is executed by cron:
0 * * * * /usr/lbin/sa/sa1

some times, it exits with errorcode 1..
/var/adm/cron/log reads like this:
> uid73876 28840 c Thu Jan 7 09:00:00 UTC 2010
> CMD: /usr/lbin/sa/sa1
< uid73876 28840 c Thu Jan 7 09:00:25 UTC 2010 rc=1

I did not find any information aboit possible errorcodes of sa1 or sar.

Does anyone know what the meaning of this errorcode is and whether or not I can ignore it.

The systems runs HP-UX 11.31 with all september 2009 patches.

sa1 is listet in the crontab of root.
The entries in the logfile indicate, that sa1 was run by the user uid73876, who has no special rights on the system. - I don't know, why there are two different users involved.

The server is a ia64 hp server BL870c

Thanks for any help

Ralf
4 REPLIES
Sameer_Nirmal
Honored Contributor

Re: sa1 Errorcode

The return code 1 indicates EPREM i.e. operation not permitted.

As mentioned, if the UID 73876 doesn't have special rights on the system then the above error is obvious.

Maybe the user 73876 has it's own crontab having sa1.
Ralf Seefeldt
Valued Contributor

Re: sa1 Errorcode

Hello Sameere,

thank you for your answer.

I greatly would appreciate you sending me a complete list of sar errorcodes. I was not able to find any errorcodeinformation regarding sar or sa1.

Bye
Ralf
Sameer_Nirmal
Honored Contributor
Solution

Re: sa1 Errorcode

The sa1 binary includes /usr/include/sys/errno.h

You can refer this header file or man errno to get all error codes.
Ralf Seefeldt
Valued Contributor

Re: sa1 Errorcode

Hello Sameer,

Thank you. That was exactly what I was looking for.