

' sysUpTime.0 = time since the EQL device was up in timeticks ' has two varbinds eqlDiskStatus and eqlDiskSlot. ' For example, eqlDiskStatusChangeTrap - as per MIB definition ' SNMP adds two hidden variable bindings TrapOID, SysUptime as part of everytrap. ' Note: SCOM returns the variable binds in reverse order. ' Args(12), Args(12) = Variable binding (OID, value) ' Args(10), Args(11) = Variable binding (OID, value)

' Args(8), Args(9) = Variable binding (OID, value) ' Args(6), Args(7) = Variable binding (OID, value) ' Args(4), Args(5) = Variable binding (OID, value) ' Args(2), Args(3) = Variable binding (OID, value) ' Args(0) = IP Address of EqualLogic Group ' Now the arguments are in the oArgs array. ' Retrieve the arguments into oArgs array. Set FileSystemObject = CreateObject("Scripting.FileSystemObject") ' ParseOIDs - contains all OIDs referenced by DescrMap.ĭim ParseOIDs, SeverityLookup, StatusNameLookup, DescrMap ' parenthesis, which is replaced by the actual values in the varbind.

' DescrMap - is a lookup of Trap and its description. ' mapping between the Status OID and status/human readable fmt mapping table.

' StatusNameLookup - is a lookup of lookups. ' mapping between the Status OID and status/severity mapping table. ' SeverityLookup - is a lookup of lookups. ' Applicable only if severity could not be computed. ' AlertSeverity Hints - Hints on how the alert severity is computed. ' AlertSeverity - Computed Severity of the alert ' Varbind#_desc - Human-readable format of the varbind value. ' Varbind# - Value returned in the varbind, ' Note: # indicates the varbind position returned by SCOM ' The script outputs a property bag with following: ' Script to extract a status varbind from the trap and compute alert severity $Config/IP$ #*# $Data/Version$ #*# $Data/SnmpVarBinds/SnmpVarBind/OID$ #*# $Data/SnmpVarBinds/SnmpVarBind/Value$ #*# $Data/SnmpVarBinds/SnmpVarBind/OID$ #*# $Data/SnmpVarBinds/SnmpVarBind/Value$ #*# $Data/SnmpVarBinds/SnmpVarBind/OID$ #*# $Data/SnmpVarBinds/SnmpVarBind/Value$ #*# $Data/SnmpVarBinds/SnmpVarBind/OID$ #*# $Data/SnmpVarBinds/SnmpVarBind/Value$ #*# $Data/SnmpVarBinds/SnmpVarBind/OID$ #*# $Data/SnmpVarBinds/SnmpVarBind/Value$ #*# $Data/SnmpVarBinds/SnmpVarBind/OID$ #*# $Data/SnmpVarBinds/SnmpVarBind/Value$ #
