Open the Table of Contents

You are here: About the Environment Variables > For Administering License Queuing

# Environment Variables for Administering License Queuing

Several environment variables allow the network administrator to set license queuing preferences. These environment variables override settings within the application itself originally set by your vendor.

LS_MAX_QWAIT_SEC - Set Maximum Queue Wait Time

This environment variable allows the network administrator to set the maximum queue wait time for the License Manager computer on which the variable is set.

For example, to tell the License Manager running on a Windows computer to set the maximum queue wait time to 15 minutes (900 seconds), use the following command:

SET LS_MAX_QWAIT_SEC=900

LS_MAX_QHOLD_SEC - Set Maximum Hold Time

This environment variable allows the network administrator to set the maximum time that the License Manager will hold a license for a requester once the license becomes available.

For example, To tell the License Manager running on a Windows computer to hold a license for 120 seconds for a user, use the following command:

SET LS_MAX_QHOLD_SEC=120

LS_MAX_QLEN - Set Maximum Queue Length

This environment variable allows the network administrator to set the maximum queue length for the License Manager computer on which the variable is set. It can also override queuing preferences set in the application. Here are its possible values:

- If not set, then the application dictates whether the user is placed in a queue.
- Great than zero: specifies the maximum number of users that can be in the queue.
- Set to less than zero: enables license queuing, even if the application’s default is not to place the user in a queue.
- Set to zero: disables license queuing for this License Manager.

For example, to tell the License Manager running on a Windows computer to stop placing users in the queue when the queue has 15 users, use the following command:

SET LS_MAX_QLEN=15

LS_MAX_GROUP_QLEN - Set Maximum Group Queue Length

This environment variable allows the network administrator to set the maximum queue length for the reservation group on the License Manager computer on which the variable is set. It can also override queuing preferences set in the application. Here are its possible values:

- If not set, then the application dictates whether the user is placed in the group queue.
- Great than zero: specifies the maximum number of users that can be in the group queue.
- Set to less than zero: enables license queuing, even if the application’s default is not to place the user in a group queue.
- Set to zero: disables group license queuing for this License Manager.

For example, to tell the License Manager running on a Windows computer to stop placing users in the group queue when the queue has 15 users, use the following command:

SET LS_MAX_GROUP_QLEN=15