[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 3


mkclass Command

Purpose

Create a Workload Management class.

Syntax

mkclass [ -a Attribute=Value  ...  ] [ -c | -m | -b KeyWord=Value ] [ -d Config_Dir ] [ -S SuperClass ] Name

Description

The mkclass command creates a superclass or a subclass identified by the Name parameter. The class must not already exist. The Name parameter can contain only upper and lower case letters, numbers and underscores. The name is in the format supername or subname (with the -S supername flag) or supername.subname. Supername and subname are each limited to 16 characters in length. The names Default, System, and Shared are reserved. They refer to predefined classes. Any Attribute=Value or KeyWord=Value argument initialise the specified attribute or resource limit. See chclass for more information.

Normally, mkclass adds the class and its attributes in the relevant WLM property files, and the modifications is 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 created only in the WLM in-core data structures, and no property file is updated, making the new class temporary (the change is lost if WLM is stopped and restarted or the system is rebooted).

Flags


-d Config_Dir Use /etc/wlm/Config_Dir as an alternate directory for the properties files. When this flag is not used, mkclass uses the configuration files in the directory pointed to by /etc/wlm/current. If an empty string is passed as the configuration name (-d "") the new class is created only in the WLM in-core data structures and no configuration file is modified.
-S SuperClass Specifies the name of the superclass when creating a subclass. There are two ways of creating the subclass Sub of superclass Super:
  1. Specify the full name of the subclass as Super.Sub for Name and not use -S
  2. Specify the -S flag to give the superclass name and use the short name for the subclass:

    mkclass options -S Super  Sub
    

Security

Access control: Only the root user can create 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 create a subclass of this superclass.

Files


classes Contains the names and definitions of the classes.
limits Contains the resource limits enforced each class.
shares Contains the resource shares attributed to each class.

Related Information

The wlmcntrl command, lsclass command, chclass command, and rmclass command.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]