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
confsetcntrl [ -d ConfigurationSet ] [ -l | -c ]
The confsetcntrl command supports the following operations:
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.
Time range examples:
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.
lswlmconfThe output to this command might look similar to the following:
standard template fvtrules fvtlimits fvtregul fvtdfct fvtsynt fvtthreads
lswlmconf -cThe output might look similar to the following:
fvtlimits
lswlmconf -sSince this example configuration contains no configuration sets, this command produces a message indicating that no matching configuration was found.
confsetcntrl -C confset1 standard
lswlmconf -sThe command now produces the following output:
confset1
confsetcntrl -d confset1 -a fvtlimits 1-5
First, remove the old time range, as follows (confsetcntrl accepts day names, as reported by "locale day" or "locale abday" commands):
confsetcntrl -d confset1 -r fvtlimits monday-friday
Then create the new time range, as follows:
confsetcntrl -d confset1 -a fvtlimits 1-5,8:00-12:00
confsetcntrl -d confset1 -a fvtregul 0
confsetcntrl -d confset1In this example, this command produces the following output:
fvtlimits: time = "1-5,8:00-12:00" fvtregul: time = "0" standard: time = "-"
confsetcntrl -C confset2 templateIn order change "confset2' so it will use the configuration "fvtsynt" every nigh, type:
confsetcntrl -d confset2 -a fvtsynt 18:00-10:00
lswlmconf -rIn 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 fvtthreadsHowever, as expected, the list of configurations sets in this example has changed, as shown by the following command:
lswlmconf -sThis command produces the following output in this example:
confset1 confset2
lswlmconf -d confset2 -lIn this example, this command produces the following output:
confset2/fvtsyntYou 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:00This command produces the following output in this example:
standard template fvtrules fvtlimits fvtregul fvtdfct fvtsynt fvtthreads confset1/fvtregul confset2/fvtsyntIn order to display this information only for configuration sets, type:
lswlmconf -s -l -t 0,9:00This produces the following output in this example:
confset1/fvtregul confset2/fvtsynt
confsetcntrl -D confset2lswlmconf -s now produces the following output in this example:
confset1
wlmcheck -d confset1In 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 confset1The command lswlmconf -c now produces the following output:
confset1The 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.
.times | Contains the list of all the configuration/time range pairs of the set. |
description | Contains an optional description text of the set. |
The wlmcntrl command, lswlmconf command.