HP VAN SDN Controller Administrator Guide

55
Configuring a Controller Team
Configuration Prerequisites
1. Install and start three standalone HP VAN SDN controllers in the network. (See the latest HP
VAN SDN Controller Installation Guide.)
2. Optional: To improve security, you can change the username and password from the default
settings on each of the standalone controllers in step 1.
3. Select any one of the controllers to use for configuring the team.
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>"}}'
Notes
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 .
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.
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
9000,"expirationDate":"2013-10-16 20-59-59 -
0700","userId":"b00cb0e94c9441d58011f980cf9635ae","userName":"sdn","domainId
":"a6701f6593d84fa5b8f23f9ab4ed69db","domainName":"sdn"}}