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

How to fix:UDP packet send through vlan(eth0.4092), reaching at both eth0 and eth0.4092

I tried to send snmp UDP packet through vlan interface by using "setsockopt bind to interface", but in client side when i capture packet using wireshark i can capture the packet both in eth0.4092 and eth0. 1:I tried to bind the interface name using…
ARJUN
  • 21
  • 1
  • 7
0
votes
0 answers

Getbulk operation with list of Oids as input

The problem I am using snmp4j libraries and built a snmp connector I have created two operations one using the Getbulk and one with Get. Both take in a list of OID's. Both work as attended with out problems. The only problem I am having is on…
Deru
  • 1
0
votes
1 answer

scan IP without SNMP agent

Using as an example a following code from https://www.jitendrazaa.com/blog/java/snmp/create-snmp-client-in-java-using-snmp4j/ to monitor a network when I send OIDs to an empty IP or to a device without SNMP the program throws an exception. I use a…
agriarte
  • 75
  • 8
0
votes
0 answers

How to fix PySNMP WrongValueError

If these needs to be asked in an existing thread (snmpv3 getone fails while trying via pysnmp (WrongValueError)), that is fine. However, I am receiving the same error with essentially the same configuration. Receiving the error when using…
0
votes
0 answers

Is it ok to use snmp broadcast to discover printers

I'm writing a C# program to monitor all printers on the LAN via SNMP, using the open source #SNMP library (https://github.com/lextm/sharpsnmplib). The method it uses for discovering SNMP devices is via UDP broadcast to the entire network…
Dan Z
  • 696
  • 8
  • 19
0
votes
2 answers

Get Target Ip Address From SNMP4j Trap Receiver

I create snmp trap receiver using snmp4j. I managed to receive the pdu and process it. I need the targeted ip address as my machine have multiple ip addresses. I could thinking either two ways: Retrieve entire command in my trap receiver which is…
Nurul
  • 13
  • 7
0
votes
0 answers

How to parse the snmp trap handled using sharpsnmplib

Using the translate sample mentioned https://stackoverflow.com/a/12278067/10955742 we are unable to parse the trap messages. The sample talks more about loading the modules and parsing the object tree. Now what are these module files are these MIB…
0
votes
0 answers

No SNMP daemon restart on setting engine Id

Currently, SNMP daemon restart when engine id is set. This causes service delay to clients. This need to be avoided and any signal like SIGHUP to be used for sync the new configuration. I used SIGHUP i am able to achieve that demon is not restarted…
0
votes
0 answers

Per-page count of the Kyocera SNMP printer

I am trying to create a project to insert the counts of my printer into the database or into a text file. To create a .txt file with the general total counts, by color and black, both prints and copies I use the following OIDs with the following…
Bruno
  • 801
  • 5
  • 11
0
votes
1 answer

adding severity into mib file and its corresponding OId

I have created a custom mib file i need to add the prioroty to it so while sending trap from java application i can see the severity information at my trap viewer. my doubts are: 1;) suppose the OID for TrapDescWarn is X.Y.Z , so for critial it…
Satyajeet
  • 15
  • 6
0
votes
1 answer

How do I convert PySNMP's nextCmd on a table to multiple objects

When PySNMP's nextCmd() iterates over the table I am working with, it outputs by column, rather than by row. This has proven difficult when trying to save the data into an Object. For example, I will see every value from the alarmID column before…
Bonteq
  • 777
  • 7
  • 24
0
votes
1 answer

Get Data Type for OID with PySNMP

I need to find the object name and data type for a given OID. I can get the name, but can't find the functionality in PySNMP to also return the data type (integer, octet string, counter...). What I have so far (example): from pysnmp.smi import…
alena
  • 61
  • 1
  • 1
  • 12
0
votes
1 answer

SNMP4J CommandResponder not receiving V3 traps

Im trying to implement a SNMP trap listener which based on the examples on the internet. I was able to make it work. My problem is that the V3 trap messages are not being captured. I'm aware that V3 has an authentication so I'm quite certain that…
naoru
  • 2,149
  • 5
  • 34
  • 58
0
votes
3 answers

Are SNMP request sequential - are there chances they it can arrive in multiples

I am writing an SNMP agent and plan to write agent to process SNMP request one by one. Means that as when a request arrives at port 161 - will not accept any further request until response / timeout completes. I am no sure of many SNMP clients - but…
Programmer
  • 8,303
  • 23
  • 78
  • 162
0
votes
2 answers

Cacti is not generating the graphics

I have the cacti installed on the ubuntu 18.04 server and it is not generating the graphics. All information is -nan (not a number). I need to help solve it. Ask for the configuration files that I'm adding to the post.
Lucas Catani
  • 37
  • 1
  • 11
1 2 3
99
100