Beispiel #1
0
 def do_eventlog(self):
     eventout = []
     clear = False
     if self.op == 'delete':
         clear = True
     for event in self.ipmicmd.get_event_log(clear):
         self.pyghmi_event_to_confluent(event)
         eventout.append(event)
     self.output.put(msg.EventCollection(eventout, name=self.node))
Beispiel #2
0
 def decode_alert(self):
     inputdata = self.inputdata.get_alert(self.node)
     specifictrap = int(inputdata['.1.3.6.1.6.3.1.1.4.1.0'].rpartition(
         '.')[-1])
     for tmpvarbind in inputdata:
         if tmpvarbind.endswith('3183.1.1'):
             varbinddata = inputdata[tmpvarbind]
     varbinddata = hex2bin(varbinddata)
     event = self.ipmicmd.decode_pet(specifictrap, varbinddata)
     self.pyghmi_event_to_confluent(event)
     self.output.put(msg.EventCollection((event,), name=self.node))