|
|
Using the HP 3000 Workload Manager: HP 3000 MPE/iX Computer Systems > Chapter 5 Commands ReferencePURGEWG |
|
Purges the specified user-defined workgroup(s). (Native Mode)
Use the PURGEWG command to purge existing user-defined workgroups. The command requires a workgrp which can be one workgroup or a list of workgroups. In addition, you may use wildcard characters in workgrp to specify multiple workgroups. If you specify "@", only the user-defined workgroups are purged since the five system-defined workgroups cannot be purged. The PURGEWG command handles user prompting through three options, CONFIRM, CONFIRMALL, and NOCONFIRM. The CONFIRM option requests verification of the PURGEWG command as a whole. That is, CONFIRM only asks for verification of the workgrp parameter. The CONFIRMALL option provides user prompting for each workgroup. The NOCONFIRM option overrides all verification. Since the job environment does not support user prompting, the CONFIRM and CONFIRMALL options are ignored. By default the PURGEWG command does not display the name of each purged workgroup. To override the default, use the SHOW option. The ONERROR keyword lets you specify the PURGEWG command's response if it encounters an error while trying to purge an individual workgroup in a pattern match situation. (This can occur, for example, if you try to purge one of the default workgroups which is not allowed). Use the CONTINUE option to continue the execution of the PURGEWG command until the end of the list is reached. Use QUIT, to quit command execution at the point where PURGEWG encountered the error. When purging a list of workgroups, one of three results is possible:
When you specify ONERROR=QUIT, CIERROR is set to the last error which stopped the execution. For example, if there are no user-defined workgroups that end in default on your system, and you enter the command purgewg @default in an attempt to purge the system-defined workgroups, the CIERROR is set to 12205. The text of this error message is Cannot delete a system-defined workgroup. In addition, the following variables are set only when you specify a list of workgroups:
When PURGEWG is discontinued before it reaches the end of the list, the difference between HPNUMSELECTED and HPNUMSUCCEEDED + HPNUMFAILED indicates the number of workgroups that were selected but not purged. When a workgroup is purged, the Workload Manager needs to rescan the affected member processes. The cost of such a rescan depends upon the number of processes and workgroups involved. There are situations in which you may want to defer the rescan. In terms of the workgroup, the system cannot complete the purge until all member processes have found a new workgroup. A workgroup in such a state is considered to have a purge pending. The scan of processes assigned to purge-pending workgroups is a subset of a system-wide scan. That is, a system-wide scan checks every process on the system. A purge-pending scan only checks processes that are assigned to purge-pending workgroups. While a purge-pending scan is performed by default, the NOPURGESCAN option allows you to defer the rescan. The CI supports a second syntax, which you use to explicitly initiate a purge-pending scan without requiring the purging of a workgroup:
Logically, a workgroup in the purge-pending state no longer exists. That is, the workgroup cannot accept new members. However, the workgroup physically remains until either its last member has died or has been moved to another workgroup, or until a scan is performed. Since you may want to create a new workgroup that uses the name of a purge-pending workgroup, the system automatically renames such workgroups when they enter the purge-pending state. The new name becomes the previous name, prepended with a "~". The SHOWWG command displays the workgroup with its new name so that users know that the workgroup is in the purge-pending state. The purging of a user-defined workgroup is deferred while a system-wide or purge-pending scan is in progress. The PURGEWG command may be issued from a session, job, program or in BREAK. Pressing Break aborts execution of this command. PURGEWG requires System Supervisor (OP) or System Manager (SM) capability. To purge all user-defined workgroups, you can enter the commands as shown in either of the two samples below:
To purge just the User_WG1 workgroup, enter:
The Workload Manager does not display any confirmation messages. To purge the multiple workgroups by specifying a list, enter each workgroup name on the command line, separated by commas, and enclosed in parenthesis. For example:
To purge multiple workgroups by specifying a wildcard, enter the partial workgroup name and the appropriate wildcard character. For example:
To purge the User_WG1 and User_WG2 workgroups and request confirmation, enter:
|
|