IBM N 系列存储 AutoSupport 日志收集与巡检
IBM N系列存储产品的AutoSupport日志收集
简介
本文讨论的是IBM N系列存储产品的AutoSupport日志收集和巡检。
日志收集部分
登录ONTAP 8(7-mode) command line,输入如下的命令
ONTAP_name> options autosupport.doit nowTue Aug 22 13:18:48 CST [ONTAP_name:callhome.invoke.all:info]: User triggered complete call home for USER_TRIGGERED (COMPLETE:now)
等待5分钟之后,找到刚刚触发的AutoSupport的序号,如1977:
ONTAP_name> autosupport history showSeq Attempt Last
Num Destination Status Count Update
----- ----------- -------------------- ------- --------------------
1977
smtp sent-successful 1 8/22/2017 13:19:26
http ignore 1 8/22/2017 13:19:26
noteto ignore 1 8/22/2017 13:19:13
...
根据第1.2.2步的序号把AutoSuport日志重新打包成7z文件,如fas8080cl1-cn_1977.7z:
ONTAP_name> autosupport history retransmit -seq-num 1977 -uri file:///mroot/home/http/fas8080cl1-cn_1977.7zInfo: Retransmit request queued. To check the status of the request, use this
command: system node autosupport history show -destination retransmit
-seq-num 1977
确认存储启用了http服务:
ONTAP_name> options httphttpd.access *
httpd.admin.access legacy
httpd.admin.enable on
httpd.admin.hostsequiv.enable off
httpd.admin.max_connections 512
httpd.admin.ssl.enable on
httpd.admin.top-page.authentication on
httpd.autoindex.enable on
httpd.bypass_traverse_checking off
httpd.enable on
httpd.ipv6.enable off
httpd.log.format common (value might be overwritten in takeover)
httpd.method.trace.enable off
httpd.rootdir /vol/vol0/home/http
httpd.timeout 300 (value might be overwritten in takeover)
httpd.timewait.enable off (value might be overwritten in takeover)
Note: 如果没有开启httpd服务,则通过如下命令设置:
options httpd.access *
options httpd.enable on
options httpd.admin.enable on
options httpd.autoindex.enable on
options httpd.rootdir /vol/vol0/home/http
通过浏览器访问存储的管理地址,将生成的日志文件如fas8080cl1-cn_1977.7z保存下来:

Note: 如果是ONTAP 7的系统,在trigger autosupport之后,可以直接在command output中用rdfile把生成的autosupport读取保存命令打印输出即可。
1,输入命令:Filer> options autosupport.doit XXXXXXXX(所创建日志时间,例如:>options autosupport.doit 202210260826)
2,输入命令:Filer> priv set advanced
(进入高级模式才可以查看所有日志的目录时间。)
3,输入命令:Filer*> ls /etc/log/autosupport
(查看所有日志目录时间,找到新创建的日志时间点是否建立成功。)
4,输入命令:Filer*> rdfile /etc/log/autosupport/XXXXXXXXX.0 (例如:202210260826.0捕获之前创建的日志,直到收集完成。)
巡检项检查
# | 检查项目 | 备注 | 检查结果 | |
1 | 系统故障灯 | 检查系统故障灯是否亮起 | 正常 | |
2 | 硬盘状态灯 | 检查硬盘状态灯是否正常 | 正常 | |
3 | 控制器状态灯 | 检查控制器状态灯是否正常 | 正常 | |
4 | 电池状态灯 | 检查电池状态灯是否正常 | 正常 | |
5 | 电源状态灯 | 检查电源状态灯是否正常 | 正常 | |
6 | 主机接口状态灯 | 检查主机FC状态灯是否正常 | 正常 | |
7 | 设备表面温度 | 检查设备外表是否过热 | 正常 | |
8 | 连接线路 | 检查电源线、光纤线连接是否正常 | 正常 | |
9 | 机房环境 | 检查机房环境是否有问题 | 正常 | |
10 | 其他问题 | 检查是否有其他异常情况 | 正常 | |
11 | 检查RAID状态 | 检查sysconfig -A中是否有磁盘异常(7 mode) | 正常 | |
12 | 检查控制器的集群状态 | 检查cf status控制器节点状态(7 mode) | 正常 | |
13 | 错误日志检查 | 检查/etc/messages中是否有异常报错(7 mode) | 正常 | |
14 | 设备表面温度 | 检查机箱外表是否过热 | 正常 | |
15 | 连接线路 | 检查检查电源线、FC、网线连接是否正常 | 正常 | |
16 | 管理控制台报错 | 检查管理控制台中是否有硬件报错 | 正常 | |
17 | 其他问题 | 检查是否有其他异常情况 | 正常 | |