Querying and Clearing SEL Information (sel)
Function
The sel command is used to query and clear system event log (SEL) information.
Format
ipmcget -d sel -v <option> [sel_id]
ipmcset [-t fru0] -d sel -v clear
Parameters
Parameter |
Description |
Value |
---|---|---|
option |
Specifies the operation to be performed. |
NOTE:
A maximum of 4000 SEL records can be stored. If more SEL records are generated, the system automatically deletes the earliest 2000 SEL records and numbers the new SEL records from 2001. |
sel_id |
Identifies an SEL. |
This parameter is valid only when the suggestion operation is to be performed. You can perform the list operation to obtain the sel_id. |
clear |
Clears all SELs. NOTE:
Cleared SELs cannot be restored. |
- |
Usage Guidelines
None
Example
# Query SEL records.
iBMC:/->ipmcget -d sel -v info
SEL Information
Version :1.0.0
Current Event Number : 147
Max Event Number : 4000
# Query the handling suggestion of SEL 146.
iBMC:/->ipmcget -d sel -v suggestion 146 ID : 146 Generation Time : 2016-10-26 03:26:23 Severity : Minor Event Code : 0x12000013 Status : Asserted Event Description : [Mock]Failed to obtain data of the air inlet temperature Suggestion : 1. Restart the iBMC. 2. Remove and reconnect power cables or remove and reinstall the board in the chassis.
# clear SEL information
iBMC:/->ipmcset -t fru0 -d sel -v clear
WARNING: The operation may have many adverse effects.
Do you want to continue?[Y/N]:y
Clear SEL records successfully.