SNMP Trap submits 4 strings

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
thomas.mueller@envers.de
Posts: 34
Joined: Mon Oct 26, 2009 2:55 pm
Location: Duisburg, GERMANY

SNMP Trap submits 4 strings

Post by thomas.mueller@envers.de »

Hello,

I use SNMP trap to receive Information from out Symantec backupExec 2012. BackupExec Manual says that there are up to 4 strings submitted with each OID.

Example:
trap-type: Job cancelled
OID: 1302.3.1.2.8.2
string 1: Backup Exec: Job was cancelled by operator
string 2: Computername
string 3: Jobname
string 4: Operatorname

What I get as in the reply-field of HM is string 1. Is there any way to use string 2 to 4 as well?

Thanks for any hints,
Thomas
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may use one of the following macro-variables with actions or "Tune up Reply field" option:
%TrapAllValues%
This macro returns information about ALL variables received within Trap message (%TrapAllValues% returns "oid=value" line(s); if there is more than 1 variable in SNMP Trap message, lines will be separated by #13#10 characters).
Note: %MibOid%, %MibName%, %MibType%, %MibValue% variables provide the information about specific OID variable (if you have set "Message contains OID" option of the test filter) or the information about 1st variable within SNMP Trap packet.

%TrapAllValues_Name%
Using the database of compiled MIB files HostMonitor may translate Object Identifiers (OIDs) provided by %MibAllValues% variable from its numeric form to a MIB nameþ If you need to extend the database by including information about MIBs supported by some specific SNMP enabled device, use MIB Browser.

%TrapAllValues_NameShort%
Similar to %TrapAllValues_Name% but shows the name of the variable (plus possible index) without names of parent nodes.
E.g.
if %TrapAllValues% returns
1.3.6.1.2.1.2.2.1.7.1 = 1
1.3.6.1.2.1.2.2.1.2.1.8.1 = 1
then %TrapAllValues_Name% will show
iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifAdminStatus.1 = 1
iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifOperStatus.1 = 1
and %TrapAllValues_NameShort% will return
ifEntry.ifAdminStatus.1 = 1
ifEntry.ifOperStatus.1 = 1

%TrapAllValues_NameValue%
Similar to %TrapAllValues_Name% while translates not only OID but also its value from numeric form to a MIB name (if value represents some object identifier as well).

%TrapAllValues_NameValueShort%
Similar to %TrapAllValues_NameShort%, translates every OID and its value from its numeric form to a MIB name.(if value represents some object identifier as well).

Please check for details at:
http://www.ks-soft.net/hostmon.eng/mfra ... #trapmacro
Post Reply