Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if evt.oid == '1.3.6.1.4.1.6876.4.1.301':
- evt.summary = "vSphere Alarm"
- evt.eventClass = "/HW/ESX"
- for attr in dir(evt):
- if attr.oid.startswith('1.3.6.1.4.1.6876.4.20.3.1.4.')
- evt.message = getattr(attr,'1.3.6.1.4.1.6876.4.20.3.1.4.1')
Advertisement
Add Comment
Please, Sign In to add comment