From: Monte Hill To: All
Would someone please tell me how to print a list of User Profiles and Device Descriptions? I am new to the AS/400 (coming from a System/36) and need a little help with the new commands. Thanks.
From: Ernie Malaga To: Monte Hill
You can get a list of any kind of object with the Display Object Description (DSPOBJD) command. For example, use this command to print a list of user profiles:
DSPOBJD OBJ(QSYS/*ALL) + OBJTYPE(*USRPRF) + OUTPUT(*PRINT)
To print a list of device descriptions:
DSPOBJD OBJ(QSYS/*ALL) + OBJTYPE(*DEVD) + OUTPUT(*PRINT)
The trouble with these listings is that they're too generic-they give you very little information about the objects themselves besides name and description. For example, the first command doesn't give you any user profile- specific information such as user class or default output queue assigned to the users. To the best of my knowledge, there's no built-in command to print a detailed list of user profiles. I wrote a command called LSTUSRPRF which appeared in the August 1991 issue of MC. You can download it from OpenBBS, or you can get the whole thing from the ResourceLibrary.
Also try the PRTDEVADR command (IBM's) to print a chart showing all the device descriptions attached to a specific workstation controller. For example, try running PRTDEVADR CTL(CTL01). It will give you a chart showing all the local devices attached to that controller.
From: James Coolbaugh To: Ernie Malaga
Ernie, you can use the WRKUSRPRF command to list all the user profiles to the screen; then use option 5 on all the profiles, but on the command line use OUTPUT(*PRINT). This will quickly generate a *BASIC listing of information for every profile.
From: Charlie McLean To: Monte Hill
User Profiles: DSPUSRPRF, F4 to prompt. Local Devices: DSPHDW-RSC, F4 to prompt.
From: Monte Hill To: Ernie Malaga
Thanks for the information. I will give these commands a try. What I am really after is a listing of device descriptions and user profiles that I can store with my backups in case I have a disk failure. Do you think these listings will be specific enough for that purpose? I have run the PRTDEVADR for each of my controllers and have a hard copy on file.
From: Monte Hill To: Charlie McLean
Thanks for the reply, Charlie. I will try the DSPUSRPRF as soon as I get a chance.
From: Ernie Malaga To: James Coolbaugh
Well, that goes to show you that you can never tell what tricks people come up with. I had never thought about that possibility. I tried it (you have to enter an option 5 next to each user you want printed) and it works. I suspect, however, that the question was if there was an OS/400 command that generated a System/36-like listing (you know, like SECLIST) where all user profiles are listed one after the other. I can't figure out why IBM hasn't provided this option-or one to print a similar listing of device descriptions,
LATEST COMMENTS
MC Press Online