Listing and Manually Deactivating Seats
Overview
A command line tool shipped with Profound.js / Profound API lists the active seats for a given license and deactivates seats manually. This is useful when automatic deactivation fails – for example after a power loss or a force kill (see Automatic Seat Deactivation).
The tool is named lic_client.js and is installed in the product installation directory. It must be run using Node.js. Any copy of lic_client.js can be used to work with any floating license, because the tool authenticates to the licensing server using the same floating license authorization code as the product.
To view the built-in help:
node lic_client.js -hThe commands below require a floating license authorization code. See Applying Authorization Codes.
Listing Seats
This command displays current seat usage:
node lic_client.js listExample output:
The command can also produce the same output in machine-readable JSON format, which is useful for scripting and automation:
node lic_client.js list --jsonExample output:
{
"license_description": "Profound.js Deployment License (Floating)",
"seats_entitled": 10,
"seats_available": 8,
"seats": [
{
"uuid": "a07be43d-5371-47cb-b8da-958ec033a7b5",
"machine_id": "xxx",
"os_platform": "windows",
"ip": "xxx.xxx.xxx.xxx",
"user_data": "prod_instance",
"last_pulse": "2023-05-23T19:22:15.000Z",
"pulse_expires": "2023-05-24T19:22:15.000Z"
},
{
"uuid": "8c45da45-269d-40ce-8f4d-3e35c48ead9b",
"machine_id": "xxx",
"os_platform": "windows",
"ip": "xxx.xxx.xxx.xxx",
"user_data": "test_instance",
"last_pulse": "2023-05-23T19:21:57.000Z",
"pulse_expires": "2023-05-24T19:21:57.000Z"
}
]
}The user_data field shows the value of PJS_FLOATING_USER_DATA for that instance, which is the easiest way to tell seats apart (see Seat Activation).
Manually Deactivating Seats
The uuid field uniquely identifies a seat to the licensing server and is what you pass to the deactivate command. For example, to deactivate the two seats listed above:
node lic_client.js deactivate a07be43d-5371-47cb-b8da-958ec033a7b5 8c45da45-269d-40ce-8f4d-3e35c48ead9bYou can specify as many ids as desired, separated by spaces.