From 2ba05fb7b1f091b33140bd1b34528d2859888596 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 29 Sep 2020 11:21:53 -0400 Subject: [PATCH] Enable IPMI on SMMv2 --- confluent_server/confluent/discovery/handlers/smm.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/confluent_server/confluent/discovery/handlers/smm.py b/confluent_server/confluent/discovery/handlers/smm.py index d2922954..552c43dd 100644 --- a/confluent_server/confluent/discovery/handlers/smm.py +++ b/confluent_server/confluent/discovery/handlers/smm.py @@ -82,6 +82,14 @@ class NodeHandler(bmchandler.NodeHandler): def _webconfignet(self, wc, nodename): cfg = self.configmanager + if 'service:lenovo-smm2' in self.info.get('services', []): + # need to enable ipmi for now.. + wc.request('POST', '/data', 'set=DoCmd(0x06,0x40,0x01,0x82,0x84)') + rsp = wc.getresponse() + rsp.read() + wc.request('POST', '/data', 'set=DoCmd(0x06,0x40,0x01,0x42,0x44)') + rsp = wc.getresponse() + rsp.read() cd = cfg.get_node_attributes( nodename, ['hardwaremanagement.manager']) smmip = cd.get(nodename, {}).get('hardwaremanagement.manager', {}).get('value', None)