Questions tagged [snmp]

Simple Network Management Protocol (SNMP) is an Internet-standard protocol for managing devices on IP networks and consists of operations for data retrieval, modification and notification. SNMP generally operates over UDP.

Simple Network Management Protocol (SNMP) is an Internet-standard protocol for managing devices on IP networks.

SNMP is defined by a series of IETF Requests for Comment (RFCs). There are three versions of the protocol: SNMPv1, SNMPv2, and SNMPv3. RFC 3584 is the "Best Current Practice" for handling coexistence of the three protocol versions, and provides a view of interoperability issues between the versions as well as a list of references to the various RFCs that define the different versions.

Before posting a question about SNMP, ensure that it is on-topic for this site. Examples of of activities that might generate on-topic questions are:

  • writing a program using Net-SNMP's C API
  • writing a shell script to use or parse output from SNMP tools
  • writing a MIB

Other questions, especially those related to running an SNMP server or agent, may be more suited for ServerFault, which is dedicated to questions about server and network infrastructure.

Usually organizations will obtain a Private Enterprise Number (PEN) used to reference their devices that use SNMP similarly to a domain name Pen Application. This is then added to a registry of all PENs each organization making sub IDs called OIDs with Management Information Base (MIB) configuration files to take care of the sub ID definitions. These MIB files should be provided by each organization for any of their devices that use SNMP.

2383 questions
7
votes
1 answer

Send a notification trap SNMP with snmptrap command Linux

For test purpose, i'm trying to use the snmptrap command to produce a .1.3.6.1.2.1.43.18.2.0.1 trap (printer alert trap). I'm not in my two feet with the syntax of the snmptrap command, so can someone explain me how to correctly use this command,…
Nicolas Frbezar
  • 497
  • 1
  • 5
  • 24
7
votes
2 answers

SNMP: Create custom OID

I need custom OIDs for monitoring some of my software states. But I just can't understand: how can I create custom OID (like .1.3.6.1.4.1.30891.100.103) in Windows XP system? I need few of them to write there some info and read it when needed but I…
Flynn
  • 73
  • 1
  • 1
  • 4
7
votes
2 answers

Toner levels using SNMP

I'm trying to get the toner levels from a Brother MCF-9465CDN using SNMP, in order to ultimately plot them in a graph using Munin. I'm not getting ink levels though. Although I'm a bit new to SNMP, I assume what I'm trying should be possible. $…
SaeX
  • 17,240
  • 16
  • 77
  • 97
7
votes
1 answer

Querying numerical OID in PySNMP?

I'm attempting to query an SNMP variable on a Cisco routing device in Python, and struggling. I have a snmpwalk command that works fine: $snmpwalk -v2c -c
victorhooi
  • 16,775
  • 22
  • 90
  • 113
7
votes
4 answers

Network auto-discovery using SNMP and .NET

Are there any libraries, (third party is fine) that can help do network auto-discovery using SNMP and .NET? If not, have you ever rolled your own?
Iain Holder
  • 14,172
  • 10
  • 66
  • 86
7
votes
3 answers

How can I parse a raw SNMP trap in Perl?

A few weeks ago I wrote an SNMP relayer for our ops group. They have some dumb devices that can only send traps to a single IP, and we have a monitoring system that listens on multiple IPs for availability. The code's dead simple, and…
jj33
  • 7,543
  • 2
  • 38
  • 42
7
votes
1 answer

sysuptime in snmp

I am trying to send trap messages via SNMP. The examples on the net mention the setting of 'sysUpTime' value, but they lack in explanations. Which is the role of sysUpTime in this context? Thank you!
Roxana
  • 1,569
  • 3
  • 24
  • 41
6
votes
1 answer

net-snmp sample code to parse MIB file and extract trap related information from it

I am using the net-snmp C library on Windows. I want to parse trap-related information from the MIB files. I need some sample code to do this. I didn't find anything useful on http://www.net-snmp.org/
Rahul
  • 1,401
  • 4
  • 17
  • 33
6
votes
2 answers

Remove User in snmp by agent

I could quickly go through the snmp installation and it works fine. In one of the agent modules I am currently looking into and trying to modify the source. I came across an issue where I need to remove the user by the agent. Stuck with to complete…
user857063
6
votes
4 answers

Identify a non-computer network device?

I'm current working on a program that scans my network and discoveres computers and devices on the network. I use various operations to find data on the devices I discover, but want to distinguish the network devices from computers. And I'm…
Avilan
  • 161
  • 1
  • 4
  • 10
6
votes
1 answer

How to use RowStatus?

I'm writing an SNMP manager and a simulated SNMP agent from a MIB (to test a manager). I have a table similar to below that the manager should be able to add/delete rows. What's the customary way to do this using RowStatus? Is RowStatus set…
Steve Jackson
  • 1,330
  • 1
  • 15
  • 25
6
votes
3 answers

Writing my own MIB - any references of how to do so?

Mapping some OIDs to system commands is actually all I need However, I could not find yet a resource which explain how to compose such thing. Any idea?
Tzury Bar Yochay
  • 8,798
  • 5
  • 49
  • 73
6
votes
4 answers

Best way of adding SNMP support to your own application on Debian

I am working on Debian and I have this server we want to monitor. The application is ours and there are around a hundred real-time counters we want to export for monitoring purposes, graphs and alarms. I've been looking at the Debian way of doing…
Arkaitz Jimenez
  • 22,500
  • 11
  • 75
  • 105
6
votes
5 answers

Send trap v2 in Java

How can I send snmpv2 traps from Java application. I tried to do example on snmp4j, but it didn't work.
EK.
  • 2,890
  • 9
  • 36
  • 49
6
votes
1 answer

Implementing SNMP agent on embedded system

I am currently developing an embedded uP based appliance which can be remotely controlled via ethernet from a PC using its own SNMP manager software. I have implemented all the private commands, i.e. using a private community password and under the…
tommessum
  • 95
  • 1
  • 5