Skip to content

Support sel list/elist start <n> command #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhangjian3032
Copy link

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:

  1. 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

  2. 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

  3. 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 zhangjian.3032@bytedance.com

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:
1. 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

2. 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

3. 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 <zhangjian.3032@bytedance.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant