I think you're trying to find out how to collect this information from the command line, and not with the GUI client. Let me know if I'm mistaken.
You'll want to read up on "arsdoc", specifically the "query" option. You can use it to perform queries against CMOD folders or Application Groups. You can even save 'Named Queries' in the GUI client, then run those named queries at the command line with "arsdoc query".
If you need all this information, you could also use the Logging User Exit. With a shell (or batch) script, you could select the messages you're interested in to be written to a file.
Good luck, and write back if you need clarification or more info.
-JD.