Manage a set of time-based Workload Manager (WLM) configurations.
confsetcntrl -C ConfigurationSet DefaultConfig
confsetcntrl { -D | -R } ConfigurationSet
confsetcntrl [ -d ConfigurationSet ] { -a | -r } Configuration TimeRange
Time Ranges
Time ranges are used to indicate at which day of the week and which times of the day the associated configuration will be used by the WLM for classifying processes, for accounting, and regulation.
A time range is represented by a range of days, with 0 representing Sunday and 6 representing Saturday, and a range of time, in 24 hour format with hours and minutes specified. These two ranges are separated with a comma. In each range, values are separated with a minus sign, and values may wrap (the first value may be greater than the second one).
The range of days may be omitted, which means every day of the week. Both ends of this range are included. It may then also consist in only one day: 1 is valid and stands for 1-1.
The range of time may be omitted, which means the whole day. Elsewhere, start and end times must be specified. Hours and minutes are separated with a colon or a dot. The end time is not part of the range, so 24:00 is a valid end time but 12:00-12:00 is empty and not valid.
At least one of the day or time ranges must be present. A single minus sign is a valid time range and is a special case: It is called the default time range and means always outside the other defined time ranges if any. This is different from specifying all the time, for example with 0-6,00:00-24:00
For the WLM to be able to find which configuration must be activated, there must exist one and only one configuration applicable at any time of the week. The default time range, which is added when creating a set, is useful to avoid the possibility that no configuration would be applicable for some time. Additional time ranges must not overlap with each other.
Item | Description |
---|---|
-a Configuration TimeRange | Adds Configuration to the configuration
set for the given TimeRange. Configuration must be an
existing WLM regular configuration. It may appear several times in
a set associated with different time ranges. Note: Even if time ranges
become not coherent due to this operation, the changes are performed,
but a warning is reported indicating that further changes are needed.
|
-c | Checks all the configuration/time range pairs of the set. |
-C ConfigurationSet DefaultConfig | Creates configuration set ConfigurationSet with DefaultConfig initial configuration, having default time range. (The default time range means always outside any other explicit time range. Only one is allowed in a set.) DefaultConfig must be an existing WLM regular configuration. |
-d ConfigurationSet | Specifies an alternate configuration set. If not given, current configuration set will be the target of the command. |
-D ConfigurationSet | Deletes configuration set ConfigurationSet. |
-l | Checks and lists all the configuration/time range pairs of the set. This is the default operation if no flag is given. |
-r Configuration TimeRange | Removes the Configuration and TimeRange pair
from the configuration set. This pair is supposed to exist in the
set. Note: Even if time ranges become not coherent due to this operation,
the changes are performed, but a warning is reported indicating that
further changes are needed.
|
-R ConfigurationSet | Erases configuration set ConfigurationSet (removes from ConfigurationSet all configuration/time range pairs). This operation is not recommended as the resulting configuration set state is not consistent and requires additional changes. |
Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
The following examples demonstrate how to display, change, and use WLM configurations using the lswlmconf command, the confsetcntrl command, the wlmcheck command, and the wlmcntrl command.
lswlmconf
The output to this command might look similar to the following: standard
template
fvtrules
fvtlimits
fvtregul
fvtdfct
fvtsynt
fvtthreads
lswlmconf -c
The output might look similar to the following: fvtlimits
lswlmconf -s
Since this
example configuration contains no configuration sets, this command
produces a message indicating that no matching configuration was found.confsetcntrl -C confset1 standard
lswlmconf -s
The command now produces
the following output: confset1
confsetcntrl -d confset1 -a fvtlimits 1-5
confsetcntrl -d confset1 -r fvtlimits monday-friday
confsetcntrl -d confset1 -a fvtlimits 1-5,8:00-12:00
confsetcntrl -d confset1 -a fvtregul 0
confsetcntrl -d confset1
In this example, this command
produces the following output: fvtlimits:
time = "1-5,8:00-12:00"
fvtregul:
time = "0"
standard:
time = "-"
confsetcntrl -C confset2 template
In order change "confset2' so it will use the configuration "fvtsynt"
every nigh, type: confsetcntrl -d confset2 -a fvtsynt 18:00-10:00
lswlmconf -r
In this example, this produces the following
output, (which demonstrates that in this example the list of regular
configurations has not changed): standard
template
fvtrules
fvtlimits
fvtregul
fvtdfct
fvtsynt
fvtthreads
However, as expected, the list of configurations
sets in this example has changed, as shown by the following command: lswlmconf -s
This command produces the following output
in this example: confset1
confset2
lswlmconf -d confset2 -l
In this example, this command
produces the following output: confset2/fvtsynt
You can also show which configurations would be active at another
time. To show which configurations would be active on Sunday at 9:00am,
type: lswlmconf -l -t 0,9:00
This command produces
the following output in this example: standard
template
fvtrules
fvtlimits
fvtregul
fvtdfct
fvtsynt
fvtthreads
confset1/fvtregul
confset2/fvtsynt
In order to display this information only
for configuration sets, type: lswlmconf -s -l -t 0,9:00
This produces the following output in this example: confset1/fvtregul
confset2/fvtsynt
confsetcntrl -D confset2
lswlmconf -s now produces
the following output in this example: confset1
wlmcheck -d confset1
In this
example, this produces the following output: WLM is not running.
Checking classes and rules for 'confset1' configuration...
fvtlimits/System
fvtlimits/Default
fvtlimits/Shared
fvtlimits/login
fvtregul/System
fvtregul/Default
fvtregul/Shared
standard/System
standard/Default
standard/Shared
wlmcntrl -a -d confset1
The command lswlmconf -c now produces the following output: confset1
The command lswlmconf -cl, which shows the active regular
configuration, now produces the following output: confset1/standard
The configuration set files reside in a subdirectory of /etc/wlm whose name is the set name.
Item | Description |
---|---|
.times | Contains the list of all the configuration/time range pairs of the set. |
description | Contains an optional description text of the set. |