Auditing objects in AS/400

5 pts.
Tags:
AS/400
AS/400 audit
AS/400 objects
Auditing
We are auditing objects and profiles by using chgobjaud and chgusraud. Later we forget what are objects audited. How can we find out who are all profile auditing or how many object auditing?

Software/Hardware used:
as/400

Answer Wiki

Thanks. We'll let you know when a new response is added.

When auditing is enabled, the system audit journal logs an AD (Change auditing attribute) entry for every object and user profile that has the attribute changed.

If you don’t capture changes that you want to save, the entries will be gone from the system when the receivers that contain them are deleted. They may be restored when you need to review them, but that’s probably not what you’re interested in doing.

So, you probably will need to run DSPOBJD for each of the libraries and objects in those libraries that you need to cover. Request DETAIL(*BASIC) into an *OUTFILE and query the final result for the values in the ODAUDT field. You might run an initial SELECT ODAUDT FROM qtemp/myobj GROUP BY ODAUDT to see what all of the different values might be.

Since that’s likely to be a lot of records and since it would get complex enough just coding to get all of the objects that needed to be checked, I would probably use the Open List of Objects (QGYOLOBJ) API (and the other Process Open List APIs), and just grab each value as it came through.

User profiles are easier because there are relatively very few of them. DSPUSRPRF to an *OUTFILE is the easy route there.

Tom

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following