Auditing commands used by a UserID

You can audit a UserID for all the commands that were executed by calling a program.

Step 1  
Change the user's ID, which needs to be audited by using the command. 

   USER Profile -- give the profile

All the commands used by that user will be logged into the journal receivers of the system security Journal QAUDJRN.

Step 2

When you want to retrieve the information you have to call the command. 

  Journal - QAUDJRN
  Library - QSYS
  Starting journal receiver - *CURCHAIN
  Starting Date - date you want 
  Starting time - time you want
  Ending Date - date you want 
  End time - time you want
  User Profile - enter user ID
  Output- can be to a outfile or display

Note if an outfile is used than specify the outfile format depending on the information required, for this specify TYPE4. 

In the outfile the last column will show the commands used. 

You can properly format this output also 

MOST IMPORTANT  -- The journal receiver attached to QAUDJRN journal should be available on the system for the date and time specified on the system, then the *CURCHAIN value will jog through all the earlier attached journal receivers to QAUDJRN and get the data.

If there is no data it will give an error -- FROM and TO values not valid. 

You can track select commands instead of tracking all the commands. 

This was first published in June 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

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
Sort by: OldestNewest

Forgot Password?

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

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.