主要介绍如何使用 命令行快速从 OMSA (OpenManage Server Administrator) 导出 RAID 控制器日志(TTY 日志)(未包含操作系统日志、应用程序数据日志等)
必须符合以下两个条件:
omreport storage controller
C:\>omreport storage controller
List of Controllers in the system
Controller
ID : 0
Status : Ok
Name : PERC H330 Adapter
Slot ID : Embedded
State : Ready
Firmware Version : 25.5.5.0005
Minimum Required Firmware Version : Not Applicable
Driver Version : 6.603.06.00
Minimum Required Driver Version : Not Applicable
Storport Driver Version : 10.0.14393.4825
Minimum Required Storport Driver Version : Not Applicable
Number of Connectors : 1
Rebuild Rate : 30%
BGI Rate : 30%
Check Consistency Rate : 30%
Reconstruct Rate : 30%
Alarm State : Not Applicable
Cluster Mode : Not Applicable
SCSI Initiator ID : Not Applicable
Cache Memory Size : 0 MB
Patrol Read Mode : Manual
Patrol Read State : Stopped
Patrol Read Rate : 30%
Patrol Read Iterations : 0
Abort Check Consistency on Error : Disabled
Allow Revertible Hot Spare and Replace Member : Enabled
Load Balance : Not Applicable
Auto Replace Member on Predictive Failure : Disabled
Redundant Path view : Not Applicable
CacheCade Capable : Not Applicable
Persistent Hot Spare : Disabled
Encryption Capable : Not Applicable
Encryption Key Present : Not Applicable
Encryption Mode : Not Applicable
Preserved Cache : Not Applicable
Spin Down Unconfigured Drives : Disabled
Spin Down Hot Spares : Disabled
Spin Down Configured Drives : Disabled
Automatic Disk Power Saving (Idle C) : Disabled
Start Time (HH:MM) : Not Applicable
Time Interval for Spin Up (in Hours) : Not Applicable
T10 Protection Information Capable : No
Non-RAID HDD Disk Cache Policy : Unchanged
Current Controller Mode : RAID
Controller
ID : 1
Status : Ok
Name : BOSS-S1
Slot ID : Embedded
State : Ready
Firmware Version : 2.5.13.3011
Minimum Required Firmware Version : Not Applicable
Driver Version : Not Applicable
Minimum Required Driver Version : Not Applicable
Storport Driver Version : Not Applicable
Minimum Required Storport Driver Version : Not Applicable
Number of Connectors : Not Available
Rebuild Rate : Not Applicable
BGI Rate : Not Applicable
Check Consistency Rate : Not Applicable
Reconstruct Rate : Not Applicable
Alarm State : Not Applicable
Cluster Mode : Not Applicable
SCSI Initiator ID : Not Applicable
Cache Memory Size : Not Applicable
Patrol Read Mode : Not Applicable
Patrol Read State : Not Applicable
Patrol Read Rate : Not Applicable
Patrol Read Iterations : Not Applicable
Abort Check Consistency on Error : Not Applicable
Allow Revertible Hot Spare and Replace Member : Not Applicable
Load Balance : Not Applicable
Auto Replace Member on Predictive Failure : Not Applicable
Redundant Path view : Not Applicable
CacheCade Capable : Not Applicable
Persistent Hot Spare : Not Applicable
Encryption Capable : Not Applicable
Encryption Key Present : Not Applicable
Encryption Mode : Not Applicable
Preserved Cache : Not Applicable
T10 Protection Information Capable : Not Applicable
Non-RAID HDD Disk Cache Policy : Not Applicable
C:\>
omconfig storage controller action=exportlog controller=id
例如:
omconfig storage controller action=exportlog controller=0
执行命令后,执行成功会提示“Command successful”。
C:\>omconfig storage controller action=exportlog controller=0
Command successful!
C:\>
日志文件 LSI_Date.log 将保存在指定的目录中:
如果常常需要提前RAID控制器日志,可以编写一个快速执行脚本。方法如下:
新建一个TXT文本,并将如下指令写入。
@echo off
echo Running RAID Log...
omconfig storage controller action=exportlog controller=0
保存后退出,并将该文本后缀修改为.bat 文件,这样简单的一个快速提取日志脚本就完成了。下次有需要时,直接双击运行即可。
请注意实际操作时请替换相应参数为实际所需的日志类型和输出文件路径,并根据服务器的具体型号及OMSA版本调整命令。由于不同版本的OMSA命令会有所差异,因此在执行之前务必参考最新版的官方文档。
希望以上对您有所帮助。