Scripted license management

Using REST API calls there is an option for scripted activation and deactivation for MetaDefender Core servers with no Internet connection or if your infrastructure is using automation to create/destroy MetaDefender Core instances. In this chapter the steps of these two scenarios are described.

Requirements

  • an installed MetaDefender Core instance without Internet connection
  • another computer that has Internet connection and can run your activation scripts
  • a manual or automated way to transfer data between the two computers

Activation steps

  1. In order to activate MetaDefender Core, deployment ID and activation key are needed to generate the license file.
    1. Activation key should be purchased from OPSWAT.
    2. MetaDefender Core deployment ID can be queried by using REST API (for details see GET Get Current License InformationAPI page)

Save this deployment ID in your system, you might need this ID when the instance is unavailable at the time of deactivation.

  1. Activate license and get the license file using the following URL, where <quantity> is 1.
activation call
Copy

If the activation is successfully, a license file is downloaded. Save this file.

HTTP status codes can be:

HTTP ResponseBodyComment
200 Oklicense fileActivation was successfully.
200 Activation failederror: '<user conform error message>'Failed activation
200 Invalid parametererror: 'Could not activate your product because the Activation Key you provided is invalid. Check if you typed it correctly or open a support ticket if problem persist.'Invalid key format
200 Invalid parametererror: 'Could not activate your product because the Deployment ID you provided is invalid. Check if you typed it correctly or open a support ticket if problem persist.'Invalid deployment format
200 Invalid parametererror: 'Could not activate your product because the quantity you provided is invalid. Check if you typed it correctly or open a support ticket if problem persist.'Invalid deployment format
400 Bad requestMissing key, quantity or deployment
500 Internal server errorerror: 'Internal server error (<error ID>). Please contact support'

In case of any activation issue, contact OPSWAT support for help

  1. Upload license file to MetaDefender Core: The license file should be uploaded to the MetaDefender Core v4 to activate the product. For details see page: POST Upload license keyAPI

Deactivation steps

  1. For deactivation, following infomation is required:

    1. Activation key
    2. MetaDefender Core deployment ID: can be queried by using REST API (for details see GET Get Current License InformationAPI page)
  2. Deactivate license using the following URL:

deactivation call
Copy

Response HTTP status codes can be:

HTTP ResponseBodyComment
200 Okresult: okSuccessful deactivation
200 No active license founderror: 'Could not found any active license with the given parameters'The license has not been activated yet or it has been deactivated already.
200 Invalid parametererror: 'Could not deactivate your product because the Activation Key you provided is invalid. Check if you typed it correctly or open a support ticket if problem persist.'Invalid key format
200 Invalid parametererror: 'Could not deactivate your product because the Deployment ID you provided is invalid. Check if you typed it correctly or open a support ticket if problem persist.'Invalid deployment format
400 Bad requestMissing key or deployment
500 Internal server errorerror: 'Internal server error (<error ID>). Please contact support'

Important notes

Product activation is tied to several hardware, operating system and software parameters. In case of one or more major hardware or software parameter change the product might turn into deactivated status. Operating system updates, other software updates should not affecting the activation status.

If the product is online activated and has live Internet connection then in case of deployment ID change the product reactivates itself. If the product doesn't have Internet connection then the administrator is responsible to reactivate the product.

Because of the above administrator should consider licensing restrictions of the offline deployments if using any virtualization and/or containerization technologies.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard