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
2
votes
1 answer

Is it possible to send table in SNMP Trap?

I'm using net-snmp library (c/c++) to write the snmp trap sender. For basic object types, it's quite simple to add an object to the trap: snmp_varlist_add_variable(notification_vars, MibName, length, MIBType, MIBValue, len); Where 'MibName' being…
jelical
  • 23
  • 3
2
votes
1 answer

Clearing SNMP Trap

I am writing an SNMPv2 Agent and need to send traps. Traps are being sent fine but there is a requirement to clear a trap when the condition comes back to OK. Presently the SNMP receiver remains in an alarmed state until manually cleared. Do I…
Lalita Kumar
  • 311
  • 1
  • 5
  • 14
2
votes
1 answer

SharpSnmpLib SendTrap

I create this button in C#: private void sendTrapBtn_Click(object sender, EventArgs e) { Messenger.SendTrapV1(new IPEndPoint(IPAddress.Parse("172.29.16.200"), 162), IPAddress.Parse("172.29.16.203"), // my machine new…
Diego Pereira
  • 81
  • 1
  • 6
2
votes
1 answer

WinSNMP v1traps

I'm using WinSNMP in c++ to send snmp traps. For backwards compatibility I’m required to send v1 snmp traps. WinSNMP works with v2 traps but is capable of converting those v2 traps to v1 when sending the trap. I use…
J W
  • 1,679
  • 4
  • 20
  • 28
1
vote
1 answer

Is it possible to setup SNMP trap settings on the NMS instead of the device itself?

I know that I should setup the trap service on each devices seperately but I am just thinking about the possibility of setting up all devices in the network, by using the NMS. Any ideas?
tingfungc
  • 115
  • 1
  • 1
  • 9
1
vote
1 answer

pysnmp send Notification not working - return None

I develop two programs which are an SNMP agent and an SNMP manager, with the PySnmp library: agent : receives GET requests, generates Notifications (trap / inform) manager : generates GET requests, receives Notifications (and answers to…
RamboSushi
  • 69
  • 5
1
vote
1 answer

SNMP - V3 - i Missing type/value for variable

im trying to send a snmptrap but im getting an error "i: Missing type/value for variable" i already saw some scripts as example and i cannot found the problem. everything seems correct my command: eval snmptrap -v 3 -u XXX -l authPriv -a SHA -A…
macieira
  • 315
  • 2
  • 7
  • 18
1
vote
1 answer

SNMP library for python failed return SNMP details

Unable to get Fetch SNMP variable details using sample posted at (https://snmplabs.thola.io/pysnmp/quick-start.html) and got error response . please advice how to fix the error . Thanks in advance Traceback (most recent call last): File…
1
vote
0 answers

How to spoof source address when using snmptrap to use a different IP other than localhost

I am using following snmptrap command to generate v2 traps. This generates a trap and it's received on Manager. However, the received trap has source address as sender's machine IP address. My requirement is to send the trap with someother…
1
vote
1 answer

i'm receiving SNMP traps from network device (switchs), but how can i identify that this trap is coming from which device (switch)

I'm receiving SNMP traps from network device (switches), but how can I identify that this trap is coming from which device (switch). because trap containing only system uptime Notification type and actual data like (link up or down) Received…
1
vote
0 answers

Encrypting or Encoding content in jdmk.security

I'm coding a java program, using the JDMK 5.1 toolkit, to send SNMPv3 traps and the jdmk security file (jdmk.security.file) I seem to need to create, and have in place, to do so currently has the authorization and privacy keys in the clear. How can…
Dale
  • 3,527
  • 6
  • 24
  • 22
1
vote
1 answer

How to subscribe for the snmpclient (printer) in C#

Actually I have a sample SNMP trap receiver code. But its like a UDP socket is established and it listens for the trap. I am testing the code manually by generating the trap with the help of an exe. But now I have to subscribe for the snmp client…
Mikemohan
  • 13
  • 3
1
vote
0 answers

Sync v3 SNMP trap and receiver - engineBoot engineTime out of sync

I have configured a v3 SNMP trap and I have confirmed a trap is being received but the following error is appearing: "RFC3414 §3.2.7.a Not in time window; engineID='', engineBoots=19, engineTime=60374 " From various articles I can see it is due to…
borson89
  • 41
  • 1
  • 3
1
vote
0 answers

SNMP trap message shows source and destination as unknown

I am trying to send snmp traps using TLS/DTLS with net-snmp 5.7.2 package. I am unable to see the source and destination address in my trap message. It is showing 'unknown' instead of the address. I used the below command to send the trap. snmptrap…
1
vote
1 answer

Auth and Priv not working for SNMP v3 traps

I'm sending v3 traps to my net-snmp container. When I set securityLevel to 1 I get: 0.....0...1x.... ..........-0+... ..p.....3.8..... ....myuser..s...f' ##..{-..0~.....p .........Mon Jan 04 18:42:16 CET 20210...+.....me ssage The security Level 1…
Tom Hill
  • 27
  • 8
1
2
3
10 11