HP VAN SDN Controller Administrator Guide v3
Example 5 Installed license output
{
"license" : {
"install_id" : 1249679,
"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"
}
}
A.2.3 Uninstalling licenses to prepare for transfer
To uninstall licenses:
1. Use the authentication command to obtain a new token:
curl -sk -H 'Content-Type:application/json'-d
'{"login":{"user":"MyUser","password":"MyPassword","domain":"sdn"}}'
https://MyControllerIP:8443/sdn/v2.0/auth
• Replace MyUser and MyPassword with your actual values.
• Replace MyControllerIP with your controller IP address.
NOTE: If you are installing a High Availability license, enter the IP address
of the lead controller.
Output similar to the following appears:
Example 6 Security token output
"record": {"token":"521213eb11f1495ba7a9903d3ead0585",
"expiration":1377745235000,
"expirationDate":"2013-08-2820-00-35-0700",
"userId":"38ae428848954b99b7ca67c1d74d21bd",
"userName":"sdn",
"domainId":"30e34b7630e74c81969aefaa738e02bc",
"domainName":"sdn"}}
2. Use the following command to obtain information about all installed licenses on your controller.
curl -sk -H "X-Auth-Token:MyToken"
https://MyControllerIP:8443/sdn/v2.0/licenses
• Replace MyToken with the token created in step 1.
• Replace MyControllerIP 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.
114 cURL Commands