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

snmpset Object not writable. Why?

I have been trying to understand how to create a MIB : here what I did so far : I created a MIB, and tried to allocate values to new OID => fail Here is the MIB : TEST-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-COMPLIANCE, OBJECT-GROUP FROM…
Ant
  • 1,812
  • 5
  • 22
  • 39
5
votes
2 answers

How can I read an SNMP MIB file in c#?

How to read a MIB file(.Mib file) using c#.net
arun Kumar
5
votes
1 answer

How can I check the data transfer on a network interface in python?

There is a socket method for getting the IP of a given network interface: import socket import fcntl import struct def get_ip_address(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) return socket.inet_ntoa(fcntl.ioctl( …
Matt Sweeney
  • 2,060
  • 1
  • 14
  • 19
5
votes
5 answers

SNMP devices emulation

We have network management system under linux, C/C++, perl and we need to test performance of this system. Is there a tool or way that would allow us to emulate 50 000 SNMP devices? I don't know what more to say here... Please let me know if I…
Bogdan
  • 1,995
  • 2
  • 14
  • 12
5
votes
2 answers

sendto: Operation not permitted: netsnmp

I get an error from the net-snmp library doing an snmp get that says Operation not permitted error from sendto. I am wondering what could make the sendto(2) system call fail with this error. Note, this is an intermittent error so I didn't think it…
Ivan Novick
  • 745
  • 2
  • 8
  • 12
5
votes
2 answers

Java real-time service monitoring framework

Got to create some kind of "counters" for online service monitoring - i.e. Foo_Request_Total, Foo_Request_DB_error, Foo_Request_Timedout, Bar_Request_Total,... Also, some kind of alarm has to be generated when counter passes a pre-defined limit…
Dmitry Khalatov
  • 4,313
  • 3
  • 33
  • 39
5
votes
1 answer

C# SNMP programming

I try write some code to retrieve objectID and the result is 2B-06-01-04-01-82-31-01-03-01-01. Isn't this value correct? // Send a SysObjectId SNMP request response = conn.get("get", argv[0], argv[1], "1.3.6.1.2.1.1.2.0"); if (response[0] ==…
T_y
  • 89
  • 1
  • 3
  • 8
5
votes
2 answers

Get OID's type (syntax) from MIB using Net-SNMP API

How can I get the syntax type and read/write access for an OID using NET-SNMP API? I am writing an SNMP tool that reads and sets values on a remote machine using SNMP protocol. Before setting the value, I need to check its type and access…
Ser
  • 51
  • 1
  • 2
5
votes
4 answers

snmp string limitations?

While I am learning about SNMP, I have some questions on SNMP string operations: What is the maximum size of the string? If we have read permission on string how can you determine the size? The string can basically accept all types of character…
Mallikarjunarao Kosuri
  • 1,023
  • 7
  • 25
  • 52
5
votes
2 answers

Using pySNMP to write an SNMP agent (for OpenNMS)

I'm trying to write a python SNMP agent that I can embed within my python application so that the application can be monitored remotely by OpenNMS. OpenNMS expects the Agent to implement the HOST-RESOURCES-MIB querying two fields hrSWRunNameand…
Richard B
  • 895
  • 13
  • 39
5
votes
1 answer

How to pass variables for a script via SNMP by using snmpget?

I have one simple bash script calls test_snmp, let's say: #!/bin/bash echo $1 I have snmpd.conf set as following: rwcommunity public 127.0.0.1 extend .1.3.6.1.4.1.2021.53 /bin/bash /tmp/test_snmp What I'd like to do is to run a snmpwalk command,…
Severin Simko
  • 73
  • 2
  • 8
5
votes
4 answers

Generate SNMP traps with PHP

I'm desperately searching for a way to generate SNMP traps from PHP. I know the build in methods to use snmpget but I was not able to figure out how to send SNMP traps. Does anybody know a class / code snippet for it? Searching the web did not bring…
glutorange
  • 993
  • 1
  • 10
  • 17
5
votes
2 answers

Sending SNMP Traps containing custom data

A client has requested that instead of email alerts that we send SNMP Traps to their Nagios server instead. The only thing I knew about SNMP before yesterday was that it sounded like an acronym, so please excuse (and correct me on) any…
Matt
  • 1,377
  • 2
  • 13
  • 26
5
votes
1 answer

How to add row in a MIB table with snmpset?

I changed recently my custom MIB file to include tables and not only scalars, it validates, I can create sub-agent etc. but if I try to read it, it says no entries: snmptable -v1 -c public hostname:10161 myMibName::myTable myMibName::myTable: No…
lzdt
  • 489
  • 1
  • 6
  • 17
5
votes
4 answers

Does net-snmp support AES-192 and AES-256 encryption?

The network device has been configured with snmpv3 users which uses AES192 as the privacy protocol.But when the following command is executed snmpwalk -v3 -l authPriv -u user -a SHA -A authpass -x AES256 -X privpass device_ip:161 oid It throws the…
Optimus
  • 697
  • 2
  • 8
  • 22