Downloading the Active Health System Log by using cURL

iLO supports extracting the Active Health System Log with the cURL command-line tool.

Procedure
  1. Install cURL.
  2. You can download cURL from the following website: http://curl.haxx.se/.
  3. Open a command window.
  4. 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
  5. The file is saved to the specified path.
  6. Close the command window.
  7. (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.

  8. (Optional) Upload the file to the Active Health System Viewer.

    For more information, see https://www.hpe.com/servers/ahsv.