.. _cloud-up-licenses: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Licenses ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Licenses in RLM Cloud are always created against a specific license server, from a product definition or product bundle that you created earlier (see :ref:`cloud-up-products`). This section describes how to add, replace, and delete licenses, how the portal writes those changes to the server, and how to manage meters and live checkouts. ------ .. _cloud-up-add-license: ############################ Adding a License to a Server ############################ Licenses are created from the server's **Configuration** page. Open the server you want to license and press **Add License** (requires **Edit**). The license form opens. * **Product** – choose the product definition for the license. To license a bundle instead, turn on **Use Bundle** and choose a bundle; the portal then creates one license per product in the bundle. * **License Count** – the number of licenses to create. This field appears only for floating (counted) products and must be 1 or greater. For nodelocked, token, and metered products the count is fixed at 1 and the field is not shown. * **Override product definition defaults** – when this is off, the license inherits its expiration and version from the product definition. When it is on, you can set: * **Expiration** – Permanent, a number of days, or a fixed date. * **Version** – Normal (*n.n*) or a date-based number of months. * **Notes** – optional free-form notes. * **Other RLM keyword=value pairs** – optional additional RLM keywords written into the license verbatim. See :ref:`cloud-up-license-keywords`. * **License Hostid** – an optional hostid to lock this license to. See :ref:`cloud-up-license-hostid`. Press **Create License** to create the license. ------ .. _cloud-up-license-keywords: ################################## Other RLM keyword=value pairs ################################## The **Other RLM keyword=value pairs** field is a free-form escape hatch for any RLM license keyword the license form has no field of its own for — ``akey=``, ``alias=``, ``exptime=``, ``auto_refresh=``, ``personal=``, and so on. Whatever you type is written into the generated license exactly as entered: the portal adds no keyword prefix and no quotes of its own. .. note:: This field replaces the field previously labeled **Options**. It is *not* the RLM ``options=`` keyword. If you want that keyword, type ``options=`` and its value here, the same way you would type any other keyword. The following rules apply: * The pairs are written **after** every keyword the portal generates from the product definition. RLM keeps the *last* occurrence of a repeated keyword, so a keyword you type here overrides the value the product definition supplied. * ``disable=``, ``type=``, and ``share=`` are the exceptions. RLM combines their values rather than replacing them, so this field can *add* to what the product set but can never clear it. * Quote any value that contains a space, for example ``platforms="x86_w x64_w"``. Every double quote must be closed by another; an unbalanced quote is rejected when you save. * The characters ``<``, ``>``, ``&``, ``'``, and a backtick are not accepted. * The limit is **768 bytes**, and it applies to the *assembled* keyword string — the keywords generated from the product definition count against the same budget. If the assembled string is too long the portal refuses to save and tells you how many characters to remove. .. warning:: There is no keyword allow-list and no spell-check on values. A keyword or value RLM does not recognize causes the whole license line to fail to parse, and that failure is not reported back on the license form. Verify the generated license after using this field. ------ .. _cloud-up-license-hostid: ############################ License Hostid ############################ **License Hostid** locks the license to a specific host. It is written after the hostid the license generator would otherwise emit, so a value here takes precedence over the license server machine's own hostid. * Leave the field **empty** for the default behavior — the license carries the lock the server machine and the product definition imply. * Enter ``ANY`` to make the license usable on any host. * A hostid may be a whitespace-separated list of hosts. Surrounding and repeated whitespace is collapsed for you when you save. * Each individual host is limited to **76 characters** and the whole value to **200 characters**. * Commas, non-ASCII characters, and the characters ``<``, ``>``, ``&``, ``'``, ``"``, and a backtick are not accepted. A comma is *not* a separator to RLM — a comma-separated value parses as one wrong lock, which is why it is rejected. When the selected product carries its own hostid, the field is pre-filled with it so you can see and adjust the lock the license will carry. Saving the pre-filled value pins it to this license, which stops the license from tracking later changes to the product; clearing the field is how you keep the license tracking the product. .. note:: A hostid imported from the legacy portal in a shape this field does not accept is not pre-filled into the form. The license still emits the product's lock — the value simply is not pinned at the license level. ------ .. _cloud-up-replace-delete: ################################ Replacing and Deleting a License ################################ Both operations are performed from the license table on the server's Configuration page and require **Edit**. * **Replace** – replace an existing license with a new one. In replace mode the product (or bundle) is locked and cannot be changed; you adjust the remaining license settings and create the replacement. * **Delete** – remove the license. Deleting a license removes the license file from the server and triggers a reread so that the change takes effect. ------ .. _cloud-up-license-writes: ############################ How License Writes Work ############################ Creating, replacing, and deleting a license writes to the license server as a background job. The page polls for the result and shows a success or error toast when the job finishes; this may take a few seconds. .. note:: If a server is missing the connection data needed to reach it, the license record is still created in the portal database, but nothing is written to the server itself. Once the server's connection data is in place, you can write the license to the server. ------ .. _cloud-up-edit-meter: ############################ Editing a Meter ############################ For metered products you can add count to a license's meter directly from the portal (requires **Manage**). On the **Cloud Servers** page, expand a server and then expand the metered product pool, and click the **Edit Meter** (gauge) icon. The Edit Meter dialog shows the **Counter** name and the current **Count**. .. TODO: screenshot Enter a whole number in **Count to Add** (from 1 up to 2,147,483,647) and press **Update** to increment the meter. The change is recorded in the **Audit Log**. ------ .. _cloud-up-checkouts: ############################## Viewing and Removing Checkouts ############################## Expand a server's product pool to see the licenses currently checked out from that pool. The list refreshes automatically about every 10 seconds and shows the following columns: * **User** – the user who checked out the license. * **Host** – the host the license was checked out on. * **Requested Product** / **Version** – the product and version requested. * **Checked Out** – the number of licenses checked out. * **Reserved** – the number reserved. * **Time** – when the license was checked out. * **Roam Return** – the roam return date, for roaming checkouts. * **PID** – the process ID of the checkout. *********************** Removing a Checkout *********************** Whether a checkout can be removed depends on its type: * **Roaming** checkouts cannot be revoked. * **Temporary** checkouts can be removed only by users with **Edit** or **Admin** access. When you remove one, the portal warns you that the license is not actually revoked until it expires. * **Normal** checkouts can be removed by users with **Manage** access or higher. All checkout removals are recorded in the **Audit Log**.