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.
curl command usage with iLO
When you use curl to extract the Active Health System log, the command components include the
following:
Options
<iLO IP address>
Specifies the iLO IP address.
from=<yyyy-mm-dd>&to=<yyyy-mm-dd>
Represents the start and end date of the range of dates to include in the log. Enter dates in the format
year-month-day, for example, 2017-07-29 for July 29, 2017.
days=<number of days>
Specifies that you want to download the log file for the last <number of days> from today's date.
downloadAll=1
Specifies that you want to download the entire log.
–k
Specifies that HTTPS warnings will be ignored.
Reports and logs 155