How to manually generate traps and test snmptd probe variables function in Windows
search cancel

How to manually generate traps and test snmptd probe variables function in Windows


Article ID: 57331


Updated On:


DX Unified Infrastructure Management (Nimsoft / UIM) Unified Infrastructure Management for Mainframe CA Unified Infrastructure Management SaaS (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM)


This article describes a procedure on how to manually generate snmp traps via Windows, and to test the snmptd probe Variables section functionality.


- UIM / DX UIM version 8.5x or higher
- snmptd 3.x or higher


- Guidance


  1. Install the net-snmp package ( Take from  ). The installation requires Windows VS2017
    By default, it will be installed on C:\usr\bin
  2. Go to C:\usr\bin
  3. Send the trap as below :
    snmptrap -v2c -c public 42 sysName.0 s "MyHost" i 2

      This is the v2 trap where:

        a. public is the community of the trap.
        b. is the target IP where you are sending the trap ( It could be your local IP too if you have probe and net-snmp package installed on the same machine ).

        This trap will have 4 variables.

To capture the trap, you must have the snmptd probe installed on the target IP with the SNMP service enabled.

Once you send the trap, you will receive it in your probe trap Monitor, create the profile and then you can test the probe just by playing around with the probe configuration & original trap variables.
Also attached to this article are scripts (batch and shell script ) that contain the trap commands you can use.

Another common Issue (not a probe bug):
Alarm with message text as "Alarm Message text is empty" is generated while dealing with trap variables.

One of the causes (there could be many):

When an incoming trap variable value matches one of the threshold rules defined in the probe but this rule does not have the message text.
For example:

a. You have 4 variables in the trap. And the 3rd variable has a value of MyHost?'   
b. You have already configured the profile for this trap with one of the rules as (just a snapshot from the config file ):
var = 3
oid =
op = =
val = "MyHost"
sev = 2
msg =
i18n_token =
order = 2
c. You can see that the  msg field is empty
d. Now, when the trap comes, probe matches the 3rd variable value with the threshold  value but it finds that the msg field is empty.
So, the probe sends the Alarm message with text as "Alarm message text is empty "with severity as defined in the Default tab.

***Define the message text for every rule***

Additional Information

snmptd probe relase notes 
snmptd probe training slides (Powerpoint), are attached to this case and can be downloaded.


snmptd probe_1653486482667.pptx get_app get_app