AHS download CLI is a command line interface tool for downloading AHS logs from the host OS.  It being made available for customers that do not configure Ilo and as alternative to forcing a system to be booted into Intelligent Provisioning which would cause an outage.  AHS download CLI is fully script-able and can be run as cron job.  In most cases it AHS download CLI can download a week’s worth of telemetry in about 30 seconds so impact to overall system performance is very minimal

Special Note: AHS download CLI requires the Ilo CHIF driver to be installed in order to communicate with Ilo and download the AHS telemetry

前提条件如果需要使用CLI小程序搜集AHS log,服务器系统必须安装IloCHIFdriver(如果用IP安装系统或者打PSP这个driver会包含在内)

 

1、首先到HP网站下载Active Health System Log Download CLI for Windows 工具

 

 

2、下载后需要在所要搜集log的Gen8服务器下解压即可

有一个AHSdownload.exe程序

如果你要搜集完整的AHS log,那么只要双击这个程序 会自动搜集log到这个目录下

如图所示双击AHSdownload.exe 提示会自动连接到这台服务器的Ilo

 

Log自动搜集完毕如下图所示:

 

3、如果想要按照rang方式来搜集log可以使用如下命令:

Commands:

AHSdownload [-d destination_folder] [-a download all] [-s start_date -e end_date] [-v] [-f] [-h|-?]

-d destination_folder:  the destination location where to create the ahs file

-a download all: download all AHS log data

-s start_date: the date from which the data from AHS log has to be retrieved. It has to be specified in the form of MM_DD_YYYY

-e end_date: the date till when the data from AHS log has to be retrieved. It has to be specified in the form of MM_DD_YYYY

-v: print verbose output to stdout

-f: adds a check for free disk space before creating the package in the destination_folder.

-h display usage

-? display usage

Notes:

If –d is not specified then the default destination will be the directory where AHSdownload was run from

If –s is not specified then the default will be the current date

If –e is not specified then the default will be start date minus 7 days

如下图所示

使用命令搜集201255日到2012522日的AHS 日志
存到桌面上

最后提示成功

最后能看到在桌面显示按照要求搜集2012年5月5日到2012年5月22日的AHS log

发表评论