Questions tagged [snmp-trap]

A trap is an SNMP message used by an Agent to notify its Manager that an event has occurred, either an error or a normal occurrence. Use this tag for SNMP related questions that concern Trap messages.

A trap is an SNMP message used by an Agent to notify its Manager that an event has occurred, either an error or a normal occurrence. Traps are often used by network management systems to detect faults or deviations in the monitored devices.

Traps are sent without expecting acknowledgement, in contrast to Inform messages. A Manager that receives an Inform message should send a reply to the Agent.

Like other SNMP messages, a trap may carry one or several Variable Bindings. The value and meaning of each variable binding is implementation specific.

A MIB document is usually available which describes both the Trap and the varbinds.

161 questions
0
votes
1 answer

AES 256 privacy with Adventnet Java API - traps not received

I am using Adventnet 4.0.0 API to receive traps. When AES 128 is used as privacy authentication it is successfully received, whereas when I change to use AES 256 it is not receiving. But Wireshark is able to receive and decode properly. Any thing I…
Sridhar
  • 1,832
  • 3
  • 23
  • 44
0
votes
1 answer

Send snmp trap message to net snmp

I am trying to send a trap message from my agent to net-snmp but in my agent it looks like it's fine, however net-snmp doesn't show the message. I want to know if net-snmp knows how to handle a trap message?
dor_torge
  • 69
  • 2
  • 8
0
votes
1 answer

Indy's SNMP Trap send nothing

I tried to send SNMP Trap using Indy's component TIdSnmp. (Code was copied from Implementing SNMP SendTrap using Indy components) void __fastcall TMainForm::btSendTrapClick(TObject *Sender) { String myEnterprise = _D("1.5.5.5.5.5.5.5"); String…
mli
  • 420
  • 1
  • 4
  • 10
0
votes
1 answer

Defining severity level, SNMPTRAP

I want to send an SNMP trap, using snmptrap command, but I don't know how to set Severity Level. I'm using this: snmptrap -v 2c -c public host "" MIB-MODULE::notificationName severity s "MINOR" On the SNMPManager, the perceived severity of the trap…
Sérgio Pinto
  • 21
  • 1
  • 3
0
votes
1 answer

In unix platform using perl, from snmp::getTrapdLog i have to grep for INTEGER: levels corresponding to their Hex-STRING values

Here from the below log I have to grep for INTEGER: level1(1) and Hex-STRING: 22 22 22 22 22 22 00 00 and compare both. In my case, If INTEGER: level1(1) corresponds to Hex-STRING: 22 22 22 22 22 22 00 00 then the check point should pass. So how…
Priyanka
  • 1
  • 2
0
votes
0 answers

SNMP v1 trap send not working with snmp4j

I'm trying to send a trap v1 using snmp4j. It doesn't throwns any exception and execute everything, but the trap is not reaching its destiny. Am I missing something? Is there another way to do it? The IP and the ports in the code are corrects. What…
0
votes
2 answers

How to send traps in local subnet

I am using Net-snmp. I want to send traps in my subnet. I am having IP of my m/c as 10.0.2.15. I want to send it in 10.0.2.0/24 subnet. I have tried command as follows snmptrap -v 2c -c public 10.0.2.0/24 "" OID-value pairs It was getting hanged and…
0
votes
1 answer

Can't able to get description of SNMP v2 traps

I am sending SNMP v2 trap with OID specific to some organisation but I can't find description in Ireasoning trap watcher,also I have captured snmp trap in wireshark in that I'm able to find description of trap,so what is minimal requirement for…
0
votes
1 answer

Net-SNMP Agent snmptrapd.conf examples

I'm trying to set up an Ubuntu virtual machines to receive test traps to help me get a handle of SNMP. I'm looking for examples of snmptrapd.conf files to help me get a handle of the software. I'm fairly new at using Ubuntu and SNMP so feel free to…
user2334109
  • 1
  • 1
  • 3
0
votes
1 answer

Index in MIB table

I want to use a hierarchical table structure within a MIB for an SNMPv2-Trap similar to the one described within this answer https://stackoverflow.com/a/2510340/346899 However I do not really get the concept of the INDEX for entries in a MIB table.…
s106mo
  • 1,243
  • 2
  • 14
  • 20
0
votes
1 answer

Configure traps in snmpd.conf with TLS certificates in net-snmp

How to configure the net-snmp agent (snmpd.conf) to send traps using TLS and certificates? Will it reuse the server snmp server cert and use it as a client cert towards the trapd server? Can you configure a cert per trapsink target? An example…
Miyagi
  • 154
  • 2
  • 17
0
votes
2 answers

How get trap with indy TidSNMP component

I'm using c++builderXE with Indy 10.5.7 and I'm trying to receive trap from another agent snmp. I have no info describing how to do the program to receive trap. Below you can find the snippet of code which I'm trying to use now. The ReceiveTrap()…
enzo1959
  • 409
  • 2
  • 5
  • 13
0
votes
1 answer

SNMP Trap Truncated?

So we receive an SNMP trap and the text is as follows: The following SNMP trap notification was generated by ms931.mytest.com (xx.x.xxx.xx): DISMAN-EVENT-MIB::sysUpTimeInstance 0:0:21:08.75 SNMPv2-MIB::snmpTrapOID.0 …
Mathew
  • 9
  • 1
-1
votes
0 answers

Receive SNMP Trap from Cisco Nexus on Linux server with SNMP v3

We have a Cisco nexus switch on which our network team has created a user and have allowed SNMP v3 access. I am able to access this using Snmpwalk and I can fetch all the data. Below are the details I had received. username :- snmpuser1 Password :-…
KeyurM
  • 388
  • 1
  • 3
  • 12
-1
votes
1 answer

How do i get this Hex string converted to Date in java

I am trying to convert hex string "07e4070e04032b" to date and below is my code: String hexmillis1 = "07e4070e04032b"; long convertedMillis1 = Long.decode("0x" + hexmillis1); Instant instant1 = Instant.ofEpochMilli(convertedMillis1); LocalDateTime…
Pankaj
  • 54
  • 1
  • 7
1 2 3
10
11