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

Significance of context name in snmpv3

Snmpv3 is a secured protocol compared to Snmpv2 and Snmpv1. But I dont understand what is the use of context name.We already have an user name and also authentication and privacy passwords which provide a security level. Someone using a wireshark…
user1578656
  • 131
  • 1
  • 3
  • 6
5
votes
1 answer

Difference between snmpd and net-snmp

I am new to SNMP. As far as I know snmpd is a Linux daemon for SNMP which acts as SNMP agent. We can install it from the package snmpd. Now net-snmp also provides a SNMP agent. Does net-snmp provide snmpd daemon as its agent, if so then what is the…
user1578656
  • 131
  • 1
  • 3
  • 6
5
votes
1 answer

Is there an SNMP appender for log4net?

Please read carefully, I'm looking for an SNMP (not SMTP) trap appender for log4net. Log4j has an SNMPTrapAppender and I have not seen an equivalent for log4net. Does anyone know of an appender that already does this?
Ajaxx
  • 2,500
  • 4
  • 27
  • 38
5
votes
3 answers

Java Getting Name/Description for OIDs in MIB

I am programming a network management system, and need to be able to print out meaningful names behind the OIDs that are received from SNMP traps. Due to the nature/size of this system, it would not be a good idea to manually map every OID to a…
Stephen Watkins
  • 25,047
  • 15
  • 66
  • 100
5
votes
1 answer

Database scheme for storing SNMP data

I am trying to build a MYSQL DB for storing SNMP MIB information (a small subset of OIDs only).. Is there a DB schema that I may refer to? Thanks, Neel
Neel
  • 9,913
  • 16
  • 52
  • 74
5
votes
3 answers

What are the sysLocation and sysContact objects in snmpd.conf?

I am trying to configure SNMP on Ubuntu 14.04. There is a step where I have to edit the community string along with sysLocation and sysContact but I am not sure what goes there. What are the sysLocation and sysContact objects in the snmpd.conf file…
Swapnil1988
  • 269
  • 3
  • 6
  • 18
5
votes
1 answer

How ResponseListener works in snmp4j

I have written a simple program to understand how snmp4j asynchronous request/response works: TransportMapping transport = new DefaultUdpTransportMapping(); Snmp snmp = new Snmp(transport); transport.listen(); Address targetAddress =…
Majid Azimi
  • 5,575
  • 13
  • 64
  • 113
5
votes
1 answer

Specify port when using snmptrap

I am trying to specify the port when I am sending a trap via snmptrap. Just in order to test my SNMP receiver I want to send traps to it, but I do not have access to port 162. How do I send the trap to another port? As I see it the man-page does…
Atonic
  • 509
  • 1
  • 5
  • 14
5
votes
1 answer

Decode SNMP PDUs - Where to Start?

Hello my first ever question on here, in need of bit of guidance. I'm working on a packet sniffer mainly to decode SNMP PDUs, however I am not entirely sure where to go with it. Simply put my packet sniffer can extract information from packets…
Michael01
  • 53
  • 1
  • 1
  • 5
5
votes
3 answers

What are some good resources for understanding SNMP MIBs?

I know a little about SNMP, but not enough. I need to develop an application that can read standard SNMP MIBs and read/write the various properties. The network end is no problem, but the actual MIBs and exactly what they may contain is something of…
Roddy
  • 66,617
  • 42
  • 165
  • 277
5
votes
4 answers

SNMP Library for iPhone

Are there any open source libraries for doing SNMP GET/SETs using the Objective C/Cocoa Touch (for IPhone)?
anilwanted
  • 61
  • 1
  • 4
5
votes
1 answer

Bash: Checking for exit status of multi-pipe command chain

I have a problem checking whether a certain command in a multi-pipe command chain did throw an error. Usually this is not hard to check but neither set -o pipefail nor checking ${PIPESTATUS[@]} works in my case. The setup is like this: cmd="$snmpcmd…
user3040975
  • 615
  • 1
  • 6
  • 10
5
votes
1 answer

what is the correct snmptrap command format?

Which of the following is the correct format for snmptrap (net-snmp) command? snmptrap -v 2c -c public host "" NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification \ netSnmpExampleHeartbeatRate i 123456 or snmptrap -v 2c -c public host…
Kiran Mohan
  • 2,696
  • 6
  • 36
  • 62
5
votes
1 answer

How to control source ip or port for UDP packet with nodejs

I'm working on an application that interfaces with embedded equipment via the SNMP protocol. To facilitate testing, I've written a simulator for the embedded equipment with Nodejs and the snmpjs library. The simulator responds to SNMP gets/sets and…
jared
  • 151
  • 2
  • 9
5
votes
3 answers

SNMP in Java, specifically to be JMX adapter

I have a few JAVA application that I monitor using JMX. I would like to write an SNMP client for these applications that wraps the JMX interface and by discovery exposes the same attributes that are exposed in JMX, through SNMP. I have no problem…
Ben
  • 10,020
  • 21
  • 94
  • 157