AS/400 User Profile

70 pts.
Tags:
AS/400
AS/400 user profiles
'ANZUSRPRF': Is there any specific command there in AS/400. Please let me know and suggest the best way to find the total number of active users list on AS/400?

Answer Wiki

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

Depends on how you define “active”, i.e. users with current active sessions, you can check via WRKACTJOB under QINTER subsystem. You could also do DSPUSRPRF *ALL output to a file, then check the previous sign on century/date/time to figure out when these profiles last signed on to your IBM i server. hth…..

Discuss This Question: 12  Replies

 
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.
  • BigKat
    you could run this command and check the number of records in the workfile produced
    DSPOBJD OBJ(*ALL/*ALL)           
            OBJTYPE(*USRPRF)         
            OUTPUT(*OUTFILE)         
            OUTFILE(YOURLIB/WORKFILE)
    9,000 pointsBadges:
    report
  • Splat
    Assuming you have the authority, DSPUSRPRF USRPRF(*ALL) OUTPUT(*OUTFILE) OUTFILE([library name]/[file name]) would give you an output file of enabled (active) and disabled profiles.
    11,195 pointsBadges:
    report
  • ToddN2000
    Either method mentioned will work. My question is what do you mean by active? Currently logged in or based on a last activity date or not disabled?
    84,910 pointsBadges:
    report
  • TheRealRaven
    ToddN2000 is right. What is an "active user"?

    Maybe it's a user who shows up on the 'Display active user' list from the DSPACTPRFL command. Or maybe it's a user profile that's shown as the job-user portion of a qualified job name from a currently running job.

    There are too many ways that an answer might fit. We need to know what your definition is.
    21,845 pointsBadges:
    report
  • pdraebel
    I usually start with a DSPUSRPRF to an Outfile. From the resulting file several Queries can be run. One can check on the User Status as well as on the profiles last activity. Remember that some profiles might seem to be "Not Used", but batch and communications processes could depend on those profiles.
    There is no single approach, it all depends on your particular installation.
    7,485 pointsBadges:
    report
  • pdraebel
    My starting point in making an analysis of User Profiles on the system is always a DSPUSRPRF to File. From that file a lot can be learned.
    7,485 pointsBadges:
    report
  • Rickmcd

    The above commands will also show *disabled Profiles unless doing a Query Select to only see *Enabled and not Q IBM Profiles,

    To see number if users currently

    Use

    WRKSYSSTS ASTLVL(*BASIC) 

    You will then see number of users signed on

                                 Display System Status                     SYSTEMA 
                                                                 04/22/15  09:32:09
                                                                                   
     Disk space:                                                                   
       System storage (in 1,000,000 bytes)  . . . . . . . . . . :   1116759        
       System storage used  . . . . . . . . . . . . . . . . . . :     44.44%       
                                                                                   
     Users:                                                                        
       Signed on  . . . . . . . . . . . . . . . . . . . . . . . :         9        
       Temporarily signed off . . . . . . . . . . . . . . . . . :         0        
       Suspended by system request or group jobs  . . . . . . . :         8        
       Signed off with printer output waiting to print  . . . . :       360         

    1,720 pointsBadges:
    report
  • 4u2nvm
    type in go managesys then type in 12 (Work with signed-on users) and enter.. that will give you all active users
    0 pointsBadges:
    report
  • TheRealRaven
    GO MANAGESYS option 12 only shows signed-on telnet users, not necessarily "active" users. Any number of non-telnet users can be signed on and active and won't be shown. As has already been asked, we need to know what "active" means to the OP.
    21,845 pointsBadges:
    report
  • Deepak0312
    How do I get total number of user in AS/400 server and then fetch in Excel?
    10 pointsBadges:
    report
  • Subhendu Sen
    Try to pass this command USERS, & it shows the information regarding the number of users. Or if you want to see authorized users, then pass the command, DSPAUTUSR.
    89,360 pointsBadges:
    report
  • ToddN2000
    @Deppak0312: You could always do it this way. Run the command DSPUSRPRF USRPRF(*ALL) OUTPUT(*OUTFILE) OUTFILE(MYLIB/PROFILES). Then use the add-in for excel to import this file. It shows all the profile that you are authorized to see. You may need to run this under QSECOFR if any are unavailable.
    84,910 pointsBadges:
    report

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.

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

Following

Share this item with your network: