Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If there are too many sel, it offers a faster way to try to get part of sel.
Support ipmitool sel list/elist sub option
start
if start was used, you need specific the start id,
If the sel entry with start id does not exist in BMC,
will start with the entry 0x00(means the first sel entry),
same with
ipmitool sel list/elist
.Tested:
Start id exist.
ipmitool sel list start 0x3d
3d | Pre-Init |0000000204| reserved #0xff | | Asserted
3e | Pre-Init |0000000205| reserved #0xff | | Asserted
3f | Pre-Init |0000000206| reserved #0xff | | Asserted
Start id is 0xffff(only last entry)
ipmitool sel elist start 0xffff
1b5b | 05/27/2022 | 06:12:15 PM CST | Temperature PSU1_Inlet_Temp | Upper Non-critical going high | Deasserted | Reading 52 > Threshold 53 degrees C
Start id not exist.
ipmitool sel list start 0x40
Get SEL Entry 40 command failed: Requested sensor, data, or record not found
Get SEL Entry 40 command failed: Requested sensor, data, or record not found
1 | Pre-Init |0000000116| reserved #0xff | | Asserted
2 | Pre-Init |0000000117| reserved #0xff | | Asserted
3 | Pre-Init |0000000117| reserved #0xff | | Asserted
4 | Pre-Init |0000000119| reserved #0xff | | Asserted
5 | Pre-Init |0000000119| reserved #0xff | | Asserted
6 | Pre-Init |0000000120| reserved #0xff | | Asserted
7 | Pre-Init |0000000121| reserved #0xff | | Asserted
8 | Pre-Init |0000000121| reserved #0xff | | Asserted
9 | Pre-Init |0000000121| reserved #0xff | | Asserted
......
Signed-off-by: Jian Zhang [email protected]