2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-21 17:11:58 +00:00

Add a utility to induce an inventory

This commit is contained in:
Jarrod Johnson 2022-05-03 08:29:43 -04:00
parent ac762c7ad5
commit 98d22ffabc

9
misc/forceinventory.py Normal file
View File

@ -0,0 +1,9 @@
import pyghmi.ipmi.command as cmd
import sys
import os
# alternatively, the following ipmi raw sequence:
# 0x3a 0xc4 0x3 0x0 0x21 0x1 0x9d 0x2f 0x76 0x32 0x2f 0x69 0x62 0x6d 0x63 0x2f 0x75 0x65 0x66 0x69 0x2f 0x66 0x6f 0x72 0x63 0x65 0x2d 0x69 0x6e 0x76 0x65 0x6e 0x74 0x6f 0x72 0x79 0x11 0x1
c = cmd.Command(sys.argv[1], os.environ['XCCUSER'], os.environ['XCCPASS'], verifycallback=lambda x: True)
c.oem_init()
c._oem.immhandler.set_property('/v2/ibmc/uefi/force-inventory', 1)