straterra

Untitled

Aug 4th, 2011
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. if evt.oid == '1.3.6.1.4.1.6876.4.1.301':
  2. evt.summary = "vSphere Alarm"
  3. evt.eventClass = "/HW/ESX"
  4. for attr in dir(evt):
  5. if attr.oid.startswith('1.3.6.1.4.1.6876.4.20.3.1.4.')
  6. 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