HP VAN SDN Controller Administrator Guide v3
4. On the selected controller, acquire an Authentication Token. Use the following cURL command,
with the controller IP address, to acquire the token:
curl --noproxy <controller_ip> -X POST --fail -ksSfL --url
"https://<controller_ip>:8443/sdn/v2.0/auth" -H
"Content-Type: application/json" --data-binary '{"login":
{"domain": "<domain>","user": "<user>","password":
"<password>"}}'
CAUTION: Credential information (user name, password, domain, and authentication tokens)
used in cURL commands may be saved in the command history. For security reasons, HP
recommends that you disable command history prior to executing commands containing
credential information.
NOTE: The default "<domain>" and "<user>" settings are "sdn". The default "<password>"
setting is "skyline".
Examples of cURL commands in this guide use the "--noproxy" option, which is appropriate
where execution of cURL commands does not need a proxy to access controllers. If your
network is set up such that a proxy is needed to access controllers, use the "--proxy" option.
For details on cURL proxy options, visit http://curl.haxx.se/docs/manpage.html.
For example, in a controller using the default domain, user name, and password, the following
command generates the authentication token 1759f214479e4ffd9504acb42123ef40:
curl --noproxy 192.15.135.187 -X POST --fail -ksSfL --url
"https://192.15.135.187:8443/sdn/v2.0/auth" -H "Content-Type:
application/json" --data-binary '{"login": {"domain":
"sdn","user": "sdn","password": "skyline"}}'
{"record":{"token":"1759f214479e4ffd9504acb42123ef40","expiration":138198239
1381982399000,"expirationDate":"2013-10-16 20-59-59 -
0700","userId":"b00cb0e94c9441d58011f980cf9635ae","userName":"sdn","domainId
":"a6701f6593d84fa5b8f23f9ab4ed69db","domainName":"sdn"}}
5. Determine the team configuration parameters:
ValueParameter
Alphanumeric character string. Spaces not allowed.Team Name
The team IP address is different from the individual controller IP
addresses. It is used as a virtual address for connecting to the
team leader.
Team IP Address
Alphanumeric character string. Spaces not allowed.Member Name
The unique IP address assigned to each controller.Member IP Address
6.2.2 Configuration Steps
1. Select any active controller to initially configure the team.
2. Enter the following cURL command:
curl --noproxy <member-ip> --header X-Auth-Token:<auth_token>
--fail -ksS --request POST --url
https://<ip-addr>:8443/sdn/v2.0/team --data-binary
'{"team":{"name":"<team-name>","ip":"<team-ip>","systems":
[{"name":"member_1","ip":"<member-1-ip>"},
6.2 Configuring a Controller Team 83