Remove a Workload Management class.
rmclass [ -d Config_Dir ] [ -S SuperClass ] Name
The rmclass command removes the superclass or the subclass identified by the Name parameter from the class definition file, the class limits file and the class shares file. The class must already exist. The predefined Default, System, and Shared classes cannot be removed.
In addition, when removing a superclass Super, the directory /etc/wlm/Config_Dir/Super and all the WLM property files it contains (if they exist) are removed. Removing a superclass fails if any user created subclass still exists (subclass other than Default and Shared).
Note: Only root can remove a superclass. Only root or authorized users whose user ID or group ID matches the user name or group name specified in the attributes adminuser and admingroup of a superclass can remove a subclass of this superclass.
Normally, rmclass deletes the class and its attributes in the relevant WLM property files, and the modifications are applied to the in-core class definitions (active classes) only after an update of WLM using the wlmcntrl command.
If an empty string is passed as the configuration name (Config_dir) with the -d flag, the class is deleted only in the WLM in-core data structures, and no property file is updated. So, if the class is still defined in a WLM configuration, it is recreated after an update or restart of WLM. This flag should be mainly used to remove classes dynamically created in the in-core WLM data structures only by applications using the WLM API, for example, to do some cleanup after application failure.
classes | Contains the names and definitions of the classes. |
limits | Contains the resource limits. |
shares | Contains the resource shares. |
The wlmcntrl command, lsclass command, chclass command, and mkclass command.