asu获取IMM system event log

asu是IBM官方提供的一个命令行工具,全称IBM Advanced Settings Utility,可以对IMM进行操作。

You can use the IBM Advanced Settings Utility (ASU) to modify firmware settings from the command line on multiple operating-system platforms like RHEL, SUSE, ESX/ESXi, Windows (yes also WinPE). It supports BIOS code, Remote Supervisor Adapter firmware, Remote Supervisor Adapter II firmware, Baseboard management controller firmware. Also since ASU 3.60, RDCLI is included into ASU software suite. RDCLI is an utility that you can mount ISO or CD/DVD to a remote IMM system.[1]

Show the system event log

You can use the ASU command line to show the IMM system event log for the remote system.[2]

Command syntax

asu immapp showsel [command options] [connection options]

Command

Table 1. Options
Option Description
--help Display help information for commands and exit without running the command.
Table 2. Connection options
Connection option Description
--host <ip> Address of the IMM server to operate on.
--user <userid> IMM user name to authenticate. The default is USERID.
--password <password> IMM password to authenticate. The default is PASSWORD.
--kcs Force the use of IPMI over the KCS local interface.

Command example

C:\asu>asu.exe immapp showsel --host 10.10.10.1 --user USERID --password PASSW0RD
IBM Advanced Settings Utility version 9.30.79M
Licensed Materials - Property of IBM
(C) Copyright IBM Corp. 2007-20nn All Rights Reserved
Connected to IMM at IP address:10.10.10.1
SEL Information
Version          : 1.5 (v1.5, v2 compliant)
Entries          : 512
Free Space       : 0 bytes
Percent Used     : 100%
Last Add Time    : 02/26/2002 08:58:55
Last Del Time    : 02/19/2002 03:43:34
Overflow         : true
Supported Cmds   : 'Reserve'
   1 | 07/03/2012 | 09:38:35 | Event Logging Disabled #0xb6 | Log area reset/cle
ared | Asserted
   2 | 07/03/2012 | 09:39:54 | System Firmware Progress #0xb4 | System boot init
iated | Asserted
   3 | 07/04/2012 | 07:00:27 | Power Unit #0x01 | Power off/down | Asserted
   4 | 07/04/2012 | 07:01:25 | Power Unit #0x01 | Power off/down | Deasserted
   5 | 07/04/2012 | 07:01:25 | System Firmware Progress #0xb4 | Unspecified | As
serted
   6 | 07/04/2012 | 07:03:21 | System Firmware Progress #0xb4 | System boot init
iated | Asserted
   7 | 07/04/2012 | 07:24:06 | Power Unit #0x01 | Power off/down | Asserted
   8 | 07/04/2012 | 07:35:48 | Power Unit #0x01 | Power off/down | Deasserted
   9 | 07/04/2012 | 07:35:59 | System Firmware Progress #0xb4 | Unspecified | As
serted
   10 | 07/04/2012 | 07:38:06 | System Firmware Progress #0xb4 | System boot init
iated | Asserted

shell封装

windows下使用msys,新建/bin/ibmsel,脚本内容如下:

#!/bin/bash
IP=$1 
asu immapp showsel --host $IP --user USERID --password PASSW0RD

使用方式

$ ibmsel 10.128.0.190
无效开关 - "Users"。
IBM Advanced Settings Utility version 9.63.86D
Licensed Materials - Property of IBM
(C) Copyright IBM Corp. 2007-2014 All Rights Reserved
Connected to IMM at IP address 10.128.0.190
SEL Information
Version          : 1.5 (v1.5, v2 compliant)
Entries          : 76
Free Space       : 6976 bytes
Percent Used     : 14%
Last Add Time    : 03/05/2015 04:03:31
Last Del Time    : 06/17/2011 08:14:28
Overflow         : false
Supported Cmds   : 'Reserve'
   1 | 06/17/2011 | 08:14:29 | Event Logging Disabled #0xb6 | Log area reset/cleared | Asserted
   2 | 06/17/2011 | 08:27:17 | Power Unit #0x01 | Power off/down | Asserted
   3 | 07/02/2011 | 06:51:45 | System Firmware Progress #0xb5 | Unspecified | Asserted
   4 | 07/02/2011 | 06:56:04 | System Firmware Progress #0xb5 | System boot initiated | Asserted
   5 | 07/02/2011 | 07:01:02 | System Firmware Progress #0xb5 | Unspecified | Asserted
   6 | 08/25/2011 | 02:50:46 | Power Unit #0x01 | Power off/down | Asserted
   7 | 08/25/2011 | 02:50:52 | Power Supply #0x70 | Power Supply AC lost | Asserted
   8 | 08/25/2011 | 02:50:52 | Power Supply #0x7f | Redundancy Lost
   9 | 08/25/2011 | 02:53:05 | Power Unit #0x01 | Power off/down | Asserted
  10 | 08/25/2011 | 02:53:11 | Power Supply #0x70 | Power Supply AC lost | Asserted
  11 | 08/25/2011 | 02:53:11 | Power Supply #0x7f | Redundancy Lost
  12 | 08/25/2011 | 02:56:45 | Power Supply #0x70 | Power Supply AC lost | Deasserted

参考资料

[1]. https://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=TOOL-ASU
[2]. http://publib.boulder.ibm.com/infocenter/toolsctr/v1r0/index.jsp?topic=%2Fasu%2Fasu_show_syslog_imm.html

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注