HP VAN SDN Controller Administrator Guide v3

1. Use the following command to authenticate with the controller and create a security 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 2 Security token output
"record": {"token":"521213eb11f1495ba7a9903d3ead0585",
"expiration":1377745235000,
"expirationDate":"2013-08-2820-00-35-0700",
"userId":"38ae428848954b99b7ca67c1d74d21bd",
"userName":"sdn",
"domainId":"30e34b7630e74c81969aefaa738e02bc",
"domainName":"sdn"}}
2. Record your security token.
Example 3 Security token obtained from output
The token obtained from the example in the previous step is:
521213eb11f1495ba7a9903d3ead0585
3. Use the following command to obtain the SDN controller-assigned install_id value.
curl -sk -H "X-Auth-Token:MyToken"
https://MyControllerIP:8443/sdn/v2.0/licenses/installid
Replace MyToken with the token created in step 2.
Replace MyControllerIP with your controller IP address.
NOTE: If you are installing a High Availability license, enter the IP address
of the lead controller.
A numerical install_id appears. For example: 1249679
4. Record your install_id for use in the next part of the license registration process.
A.2.2 Activating a license on the controller
Using your license key, you must now activate a license on the controller, completing the license
registration and activation process.
To activate a license on the controller:
112 cURL Commands