1.Use the following command to obtain information about all installed licenses on your controller.

curl [options] -H "X-Auth-Token:<token>" \ https://<controller_ip>:8443/sdn/v2.0/licenses

Replace <token> with the token created in step 1.

Replace controller_ip with your controller IP address.

NOTE: If you are uninstalling a High Availability license, enter the IP address of the lead controller.

The installed license information appears in JSON format, as shown below.

Example 3 All installed licenses output

{

"licenses" : [{ "install_id" : 12491640, "serial_no" : 12,

"license_metric" : "Controller Node",

"product" : "HP VAN SDN Ctrl Base",

"metric_qty" : 52,

"license_type" : "PRODUCTION",

"base_license" : true,

"creation_date" : "2013-09-06T00:26:52.248+0000",

"activated_date" : "2013-09-06T00:26:52.248+0000",

"expiry_date" : "2014-01-14T00:26:52.248+0000",

"license_status" : "ACTIVE" },{

}

"licenses" : { "install_id" : 12491640, "serial_no" : 13,

"license_metric" : "HA Controller",

"product" : "HP VAN SDN Ctrl Base",

"metric_qty" : 500,

"license_type" : "PRODUCTION",

"base_license" : false,

"creation_date" : "2013-09-06T00:26:52.248+0000",

"activated_date" : "2013-09-06T00:26:52.248+0000",

"expiry_date" : "2014-01-14T00:26:52.248+0000",

"license_status" : "ACTIVE"

}]

}

2.Record each serial_no value.

3.Use the following command to uninstall, or deactivate, each active license on your controller:

curl [options] -H "X-Auth-Token:" \ -d deactivate \

https://<controller_ip>:8443/sdn/v2.0/licenses/<serial_number>/action

Replace <token> with the token you obtained using the authentication command.

Replace <controller_ip> with your controller IP address.

NOTE: If you are installing a High Availability license, enter the IP address of the lead controller.

Replace <serial_number with the serial number of the license you want to deactivate. You can view the key by logging on to the My Network portal and selecting My Licenses, as shown in Figure 33.

114 cURL commands