The Story So Far: My Systems Management Commands and Utilities

Article ID: 57258

For the past four years I have written a little more than sixty systems management commands and utilities that have been published by Dan Riehl in this newsletter. In order to give you an overview of this offering as well as to help you catch up in case you missed one or two of the tools the first time around, I’ve collected links to all the articles and code here.

Display PTF Information (DSPPTFINF) – May 26, 2004

The Display PTF Information (DSPPTFINF) command shows the program temporary fix (PTF) information for the specified PTF identification number. No product ID is required, the PTF identification number is assumed to be unique for the current release. 

Rename Hardware Resource (RNMHDWRSC) – June 9, 2004

The Rename Hardware Resource (RNMHDWRSC) command changes the name of a hardware resource on the system. Use the Display Hardware Resources (DSPHDWRSC) or the Work with Hardware Resources (WRKHDWRSC) commands to establish the current resource names. 

Display Language Default CCSID (DSPCCSID) – June 23, 2004

The Display Language Default CCSID (DSPCCSID) command displays the specified language ID's corresponding default coded character set ID (CCSID).

Print Server Authentication Entries (PRTSVRAUTE) – July 7, 2004

The Print Server Authentication Entries (PRTSVRAUTE) command prints a list of server authentication entries for either a specific user profile or all user profiles on the system.

Remove ARP Table Entry (RMVARPTBLE) – August 4, 2004

The Remove ARP Table Entry (RMVARPTBLE) command removes one or all dynamic entries from the ARP (Address Resolution Protocol) table for the specified line. Local interface entries cannot be removed.

Process File Lock (PRCFILLCK) – August 18, 2004

The Process File Locks (PRCFILLCK) command identifies all jobs currently holding a lock for the specified object, and for each job either sends a break message or ends the job. The break message is sent to the job holding the lock or optionally to all jobs currently running under the user profile of the job holding the lock.

Process Record Locks (PRCRCDLCK) – September 15, 2004

The Process Record Locks (PRCRCDLCK) command identifies all jobs currently holding a record lock for the specified relative record number(s) in the specified physical file, and for each job either sends a break message or ends the job. The break message is sent to the job holding the record lock or optionally to all jobs currently running under the user profile of the job holding the record lock.

Change User Status (CHGUSRSTS) – September 29, 2004

The Change User Status (CHGUSRSTS) command is capable of resetting a user profile password as well as changing a user profile status to *ENABLED. If the system audit journal QAUDJRN exists on the system where this command is run, all usage of the command will be recorded in the system audit journal, regardless of how the command ends.

Display Software Inventory (DSPSFWINV) – October 13, 2004

You can use the Display Software Inventory command to display your installed keyed licensed programs and features which are orderable. The command can help you decide which keyed licensed programs to order for an upgrade or a new release.

Display Attribute (DSPATR) – December 8, 2004

Displays attribute information for a specific IFS object.

Check Special Authorities (CHKSPCAUT) – January 19, 2005

The Check User Special Authorities (CHKSPCAUT) command provides a verification of whether the user has the specified special authorities.

Retrieve Special Authorities (RTVSPCAUT) – February 2, 2005

The Retrieve Special Authorities (RTVSPCAUT) command provides an indication of whether the user has the specified special authorities.

Retrieve User Special Authorities (RTVUSRSPCA) – February 16, 2005

The Retrieve User Special Authorities (RTVUSRSPCA) command returns an array of the special authorities that the specified user profile has, either privately, through it's group profile, its supplemental group profiles accumulated, or optionally all aforemented profiles special authorities accumulated.

Change Object Authority (CHGOBJAUT) – March 16, 2005

The Change Object Authority (GHGOBJAUT) command changes the specified user's authority to the selected objects. Only objects that the user has the specified current authority to, are changed.

Start Journaling Library (STRJRNLIB) – March 30, 2005

The Start Journal for Library (STRJRNLIB) command will start journaling for all objects of the specified object type in the specified library. Specify a generic object name to further qualify the selection of objects to start journaling changes. Only objects currently not journaled will be selected. 

End Journaling Library (ENDJRNLIB) – April 13, 2005

The End Journal for Library (ENDJRNLIB) command will end journaling for all objects of the specified object type in the specified library. Specify a generic object name to further qualify the selection of objects to end journaling changes. Only objects currently being journaled will be selected.

Print Save Information (PRTSAVINF) – April 27, 2005

The Print Save Information (PRTSAVINF) command produces two lists with save information. One list displays information about when the system save commands were last run. The other list displays save information for either the specified libraries or for the objects in the specified libraries.

Analyze User Profiles (ANZUSRPRF) – May 11, 2005

The Analyze User Profiles (ANZUSRPRF) command prints a list of all user profiles meeting the specified selection criteria.

Print Journal Receivers (PRTJRNRCV) – June 8, 2005

The Print Journal Receivers (PRTJRNRCV) generates a report of journal and journal receiver directory information.

Display PTF Level (DSPPTFLVL) – June 22, 2005

The Display PTF CUM Level (DSPPTFLVL) command displays the current system PTF cumulative package level as well as the date and time of the most recent system IPL (Initial Program Load). The information is returned in an informational message.

Retrieve System Data (RTVSYSDTA) – July 6, 2005

The Retrieve System Data (RTVSYSDTA) command is used in a CL program to retrieve various system data and attributes. The values are returned (copied) to the specified CL variables in the program running this command.

Check Cryptographic Support (CHKCRPSPT) – July 20, 2005

The Check Cryptographic Support (CHKCRPSPT) command checks whether the specified cryptographic algorithm is currently supported on the system, or displays a list, in the form of informational messages, of all currently supported cryptographic algorithms.

Retrieve Device IP Address (RTVDEVIP) – August 3, 2005

The Retrieve Device IP Address (RTVDEVIP) command returns the current IP address of the specified display or printer device in dotted decimal form. If the specified device is not currently varied on, the special value *NONE is returned.

Display Device IP Address (DSPDEVIP)

The Display Device IP Address (DSPDEVIP) command displays the current IP address of the specified display or printer device in dotted decimal form. If the specified device is not currently varied on, the special value *NONE is returned.

Retrieve Directory Entry SMTP Name (RTVDIRSMTP) – August 17, 2005

The Retrieve Directory Entry SMTP Address (RTVDIRSMTP) command is used to retrieve the SMTP address of the specified system distribution directory entry.

Display Directory Entry SMTP Name (DSPDIRSMTP)

The Display Directory Entry SMTP Address (DSPDIRSMTP) command is used to display the SMTP address of the specified system distribution directory entry. The information is returned in an informational message. http://systeminetwork.com/article/retrieve-and-display-users-e-mail-addr...

Print Journal Report (PRTJRNRPT) – August 31, 2005

The Print Journal Report (PRTJRNRPT) command produces a list of objects whose current journal status corresponds to the specified report type.

Process Object Locks (PRCOBJLCK) – September 14, 2005

The Process Object Locks (PRCOBJLCK) command identifies all jobs currently holding a lock for the specified object, and for each job either sends a break message or ends the job. The break message is sent to the job holding the lock or optionally to all jobs currently running under the user profile of the job holding the lock.

Change Profile Exit Program (CHGPRFEXIT) – September 28, 2005

The Change Profile Exit Program command (CHGPRFEXIT) activates or deactivates for the specified user profile, the exit program(s) registered for the exit point defined by the format parameter. The current setting is retrieved for the specified user profile if the command is prompted prior to execution.

Check PTF Status (CHKPTFSTS) – October 26, 2005

The Check PTF Status command (CHKPTFSTS) locates all PTFs having the specified current status. All installed products are searched.

Analyze User Profile Usage (ANZPRFUSG) – November 9, 2005

The Analyze User Profile Usage (ANZPRFUSG) command prints a list of all all profiles meeting the specified selection criteria. You can specify whether to disable the listed user profiles. However, user profiles created by *IBM will not be disabled, regardless of this setting.

Print Registered Exit Programs (PRTREGEXIT) – December 7, 2005

The Print Registered Exit Programs (PRTREGEXIT) command produces a list of all exit points currently having one or more exit programs registered. For each exit point all registered exit programs and a number of the exit programs' attributes are listed.

Add Pseudorandom Number Seed (ADDPRNSEED) – February 15, 2006

The Add Pseudorandom Number Seed (ADDPRNSEED) command allows the user to add seed into the server's pseudorandom number generator system seed digest.

Display Job IFS Object Locks (DSPJOBIFSL) – March 1, 2006

The Display Job IFS Object Locks (DSPJOBIFSL) displays Integrated File System (IFS) object access and lock information for the specified job. This information includes the type of lock or access for all IFS objects currently referenced by the job.

Print Job Run Attributes (PRTJOBRUNA) – March 15, 2006

The Print Job Run Attributes (PRTJOBRUNA) command produces a list of jobs being of the specified job type. For each job the job's current run attributes are printed. This information is similar to the information presented when running the command DSPJOB OPTION(*RUNA).

Add Group Profile (ADDGRPPRF) – March 29, 2006

The Add Group Profile (ADDGRPPRF) command adds the specified group profile to all user profiles that meet the specified selection criteria. The group profile is added as the primary group if the user profile does not already have one. Otherwise the group profile is added as a supplemental group, provided that not all supplemental groups have already been specified.

Print User Authorization List (PRTUSRAUTL) – May 10, 2006

The Print User Authorization Lists (PRTUSRAUTL) command prints a list of all authorization list entries for the specified user profile. The list also includes an entry for ownership and primary group if the specified user profile owns the authorization list or is primary group for the authorization list.

Remove Group Profile (RMVGRPPRF) – June 7, 2006

The Remove Group Profile (RMVGRPPRF) command removes the specified group profile from all user profiles that meet the specified selection criteria. The group profile is removed as either primary group profile or supplemental group profile, dependent on it's current status.

Change NetServer User (CHGNETUSR) – July 5, 2006

The Change NetServer User (CHGNETUSR) command enables activation of a disabled NetServer user profile.

Work with NetServer Users (WRKNETUSR) – August 2, 2006

The Work with NetServer Users (WRKNETUSR) command allows you to work with NetServer users currently being disabled, and optionally enable these users.

Remove Journal Receivers (RMVJRNRCV) – August 30, 2006

The Remove Journal Receivers (RMVJRNRCV) command is used to remove the journal receivers matching the specified selection criteria from the system. The command also optionally changes the journal receiver.

Add Server Share (ADDSVRSHR) – September 27, 2006

The Add Server Share (ADDSVRSHR) command shares a portion of the integrated file system (IFS) or a system output queue with the network by using the iSeries Support for Windows Network Neighborhood server.

Remove NetServer Share (RMVSVRSHR) – October 11, 2006

The Remove Server Share (RMVSVRSHR) command removes a share from thelist of files or printers on the server. When this command removes a share, all connections to the shared resource are disconnected.

Change NetServer Share (CHGSVRSHR) – October 25, 2006

The Change Server Share (CHGSVRSHR) command changes an the information about a shared portion of the Integrated File System (IFS) or a shared system printer.

Display Server Share (DSPSVRSHR) – November 8, 2006

The Display Server Share (DSPSVRSHR) command displays information about the specified server share. The type of information varies depending on the actual type of server share, being either a print of file share.

Work with NetServer Shares (WRKSVRSHR) – December 4, 2006

The Work with Server Shares (WRKSVRSHR) command allows you to work with all currently configured server shares.

Display User Jobs (DSPUSRJOB) – January 3, 2007

The Display User Jobs (DSPUSRJOB) command allows you to display a list of jobs based on a combination of user name, job status and job type.

Display Subsystem Activity (DSPSBSACT) – January 31, 2007

The Display Subsystem Activity (DSPSBSACT) command allows you to monitor the subsystem activity on your system.

Display Subsystem Job Queues (DSPSBSJOBQ) – February 28, 2007

The Display Subsystem Job Queues (DSPSBSJOBQ) command allows you to monitor activity in all job queues currently allocated to the specified subsystem, but only if that subsystem is currently active. For inactive subsystems, no job queues are listed.

Display Job Queue Jobs (DSPJOBQJOB) – March 28, 2007

The Display Job Queue Jobs (DSPJOBQJOB) allows you to display all jobs that have been submitted through the specified job queue and that have not yet completed. This implies that only jobs that are currently on the specified job queue, or have been on that job queue and are currently active, will be included in the list of jobs to display.

Print programs adopting special authority (PRTPGMADPS) – April 11, 2007

The Print Adopting Special Authority (PRTPGMADPS) command produces a list of program and service program objects, that adopt the special authorities specified. The list can be limited to a specific library or a group of libraries, as defined by the program library special values.

Work with Job 2 (WRKJOB2) – April 25, 2007

The Work with Job 2 (WRKJOB2) command allows you to work with a list of jobs based on a combination of job name, user name, job status and job type. in

Work with Journal 2 (WRKJRN2) – June 6, 2007

The Work with Journal 2 (WRKJRN2) command creates a list of journals that match the specified journal name and are located in the specified library. The displayed list allows you to run a number of commands, that let you display, change or delete the selected journal(s) or create a new journal.

Work with Output Queue Authority (WRKOUTQAUT) – August 1, 2007

The Work with Output Queue Authorities (WRKOUTQAUT) command displays the selected users' authority to the specified output queue as well as the authority to the spooled files on that output queue. The panel list also specifies the source of authority and provides information about the user profile's special authorities and group profiles.

Work with Profile Security Attributes (WRKPRFSECA) – November 7, 2007

The Work with Profile Security Attributes (WRKPRFSECA) command displays or prints a list of user profiles that meet the specified selection criteria. The available selection criteria all relate to user profile security and authorization.

Set Default Journal (SETDFTJRN) – December 5, 2007

The Set Default Journal (SETDFTJRN) command defines the settings that apply to automatic journalling for the library specified.

Work with Default Journal (WRKDFTJRN) – January 9, 2008

The Work with Default Journal (WRKDFTJRN) command allows you to work with all currently configured default journal data areas, which are named QDFTJRN.

Run Job Command (RUNJOBCMD) – March 5, 2008

The Run Job Command (RUNJOBCMD) allows you to run a command in another job, including batch jobs. If the command generates completion, exception or any other types of messages, these will be visible in the job log of the job where the command is run.

Retrieve Job Interrupt Status (RTVJOBITPS) – March 19, 2008

The Retrieve Job Interrupt Status (RTVJOBITPS) command returns the current job's current interrupt status.

Change Job Interrupt Status (CHGJOBITPS)

The Change Job Interrupt Status (CHGJOBITPS) command will retrieve and optionally modify the job interrupt status of the current job.

Work with Jobs (WRKJOBS) – May 7, 2008

The Work with Jobs (WRKJOBS) command allows you to work with a list of jobs based on a combination of job name, user name, job status and job type.

Retrieve Command Information (RTVCMDINF) – June 18, 2008

The Retrieve Command Information (RTVCMDINF) command retrieves information for the specified command and returns this information in CL variables.

If you have an appetite for even more commands and utilities, the System iNetwork Programming Tips Newsletter recently published a similar collection, including systems management related material.

Should you have any ideas or suggestions for new system management tools that you would find useful and like to see in a future issue of the System iNetwork Systems Management Newsletter, please be sure to let me know at flensburg@novasol.dk.

ProVIP Sponsors

ProVIP Sponsors