Here's a simple CL program to count and print the number of libraries on your system. You should run this as part of your monthly security auditing and track in a monthly security audit spreadsheet. It can help you spot unexpected activity and document increased system usage.
PGM DSPOBJD OBJ(*ALL) OBJTYPE(*LIB) OUTPUT(*OUTFILE) + OUTFILE(QTEMP/#OFLIBS) RUNQRY QRYFILE((QTEMP/#OFLIBS)) OUTTYPE(*PRINTER) + OUTFORM(*SUMMARY) ENDPGMUSER FEEDBACK TO THIS TIP
- Just an FYI, the 'Back door to get command line access' trick will only work on OS/400 V4R4 and below. The V4R5 implementation has removed this back door. —Dave Barth
This was first published in June 2001