Downloading the Active Health System Log by using cURL
iLO supports extracting the Active Health System Log with the cURL command-line tool.
- Install cURL.
- You can download cURL from the following website: http://curl.haxx.se/.
- Open a command window.
-
Enter a command similar to the following examples.
IMPORTANT:
When you enter these commands, ensure that you do not use spaces or other unsupported characters.
If required by your command-line environment, special characters such as the ampersand must be preceded by the escape character. See the command-line environment documentation for more information.
To download the Active Health System Log for a range of dates:
curl "https://<iLO_IP_address>/ahsdata/ahs.ahs?from=<yyyy-mm-dd>&to= <yyyy-mm-dd>" -k -v -u <username>:<password> -o <filename>.ahs
To download the Active Health System Log for the last seven days, and add a Hewlett Packard Enterprise support case number to the log header:
curl "https://<iLO_IP_address>/ahsdata/ahs.ahs?days=<number_of_days> &case_no=<number>" -k -v -u <username>:<password> -o <filename>.ahs
To download the Active Health System Log for the last seven days, and include a case number and contact information:
curl "https://<iLO_IP_address>/ahsdata/ahs.ahs?days=<number_of_days> &case_no=<number>&contact_name=<name>&phone=<phone_number>&email= <email_address>&co_name=<company>" -k -v -u <username>:<password> -o <filename>.ahs
To download the entire Active Health System Log:
curl "https://<iLO_IP_address>/ahsdata/ahs.ahs?downloadAll=1" -k -v -u <username>:<password> -o <filename>.ahs
- The file is saved to the specified path.
- Close the command window.
-
(Optional) If you have an open support case, email the log file to
gsd_csc_case_mngmt@hpe.com.
Use the following convention for the email subject: CASE: <case number>.
Files that are larger than 25 MB must be compressed and uploaded to an FTP site. If needed, contact Hewlett Packard Enterprise for FTP site information.
-
(Optional) Upload the file to the Active Health System Viewer.
For more information, see https://www.hpe.com/servers/ahsv.