# AdskLicensingSupportTool

AdskLicensingSupportTool is a standalone and cross-platform console-based application that offers end users service component visibility and configuration. This tool will be useful for Autodesk internal development, support teams as well as customers.

# How to use

List of supported parameters:

parameter | example | usage | requires admin privilege
--- | --- | --- | ---
`-h` or `--help` | ./AdskLicensingSupportTool `--help` | To view the help message and a list of supported parameters | no
`-v` or `--version` | ./AdskLicensingSupportTool `--version` | View current AdskLicensingSupportTool version. | no
`-i` or `--info` | ./AdskLicensingSupportTool `--info` | View Licensing v1 and v2 component versions and registered products. | no
`-sdl` or `--setdefaultlogging` | sudo ./AdskLicensingSupportTool `--setdefaultlogging` | Set service and agent log levels to default. | yes
`-svl` or `--setverboselogging` | sudo ./AdskLicensingSupportTool `--setverboselogging` | Set service and agent log levels to debug mode. | yes
`-u` or `--checkurls` | ./AdskLicensingSupportTool `--checkurls` | Check for inaccessible desktop subscription URLs. | no
`-l [DIR]` or `--getlogs [DIR]` | ./AdskLicensingSupportTool `--getlogs C:\Program Files` | Collect and zip log files. Provide a directory to contain the zipped folder. (for example, ‘–getlogs C:\temp’). If no directory is provided, the zipped folder will be stored at the current working directory. Logs and files that will be collected: .log AdlSdk-.log AdskLicensingUpdateSupport.log LoginState.xml WebServices.log adlm-err.log agent-std.log install.log nlm-server-info.json pubnub_sdk-.log | no
`-r` or `--resetlicensemethod` | sudo ./AdskLicensingSupportTool `-r A91L1:User` | Change the licensing method for a product_key to a specified licensing method. product_key can be a single product key, a comma-separated list of products, or keyword ALL. At least one product key, or the keyword ALL, must be specified. Possible license methods are: USER, NETWORK, STANDALONE, NONE. If no method is supplied, NONE will be used. NONE will result in the “Let’s Get Started” screen appearing on next launch of the product. Set all products to USER licensing method AdskLicensingSupportTool –resetlicensemethod ALL:USER Set product key 128L1 to USER licensing method AdskLicensingSupportTool –resetlicensemethod 128L1:USER Set product keys 128L1, 426I1, and 829L1 to USER licensing method AdskLicensingSupportTool –resetlicensemethod 128L1,426I1,829L1:USER Clear the licensing method for all products AdskLicensingSupportTool –resetlicensemethod ALL Clear the licensing method for product key 128L1 AdskLicensingSupportTool –resetlicensemethod 128L1 Clear the licensing method for product keys 128L1, 426I1, and 829L1 AdskLicensingSupportTool –resetlicensemethod 128L1,426I1,829L1 | yes

Execute with admin privileges:

- Mac/Linux - Add ``sudo -E`` in front of the command. For example, ```sudo -E ./AdskLicensingSupportTool --setdefaultlogging```.
- Windows - Click on the Windows/Start menu, type command prompt - right click on the "Command Prompt" icon in the menu and select "Run as Administrator" - execute the Autodesk Licensing Support Tool in the new console window that appears.