HP VAN SDN Controller Administrator Guide v3
1. If your previous cURL session has closed or timed out, re–enter 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 4 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 this command to activate the license on the controller:
curl -sk -H "X-Auth-Token:MyToken" --data-ascii MyLicenseKey
https://MyControllerIP:8443/sdn/v2.0/licenses
• Replace MyToken with the token you obtained using the authentication
command.
• Replace MyLicenseKey with the key obtained in “Registering your license
and obtaining a license key”. You can view the key by logging on to the My
Network portal and selecting My Licenses, as shown in Figure 59.
• Replace MyControllerIP with your controller IP address.
NOTE: If you are installing a High Availability license, enter the IP address
of the lead controller.
The installed license information appears in JSON format, as shown below.
A.2 Licensing Actions 113