HP VAN SDN Controller Administrator Guide v3
A cURL Commands
If the cURL utility is not installed on the machine where the HP VAN SDN Controller is installed,
use the following command to download it:
sudo apt-get install curl
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: 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.
A.1 Export audit log data as a CSV file
curl -sik -H "X-Auth-Token: token" -H "Accept-Type:
application/zip"
https://controller_ip_addr:8443/sdn/v2.0/auditlog -o
filename.zip
To acquire the token for the above command, use the cURL command at “Acquire an Authentication
Token ” (page 119).
For example, to export the current content in the controller audit log in a file named
auditlogExport.CSV inside a zip file:
curl -sik -H "X-Auth-Token: 5fad89dc15c9478baa8d45f0d026ab47"
-H "Accept-Type: application/zip"
https://10.0.1.32:8443/sdn/v2.0/auditlog -o
/tmp/auditlogExport.zip
A.2 Licensing Actions
A.2.1 Obtaining an Install ID
To obtain an Install ID:
A.1 Export audit log data as a CSV file 111