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
6
votes
7 answers

What's a good tool to monitor network activity

I'm operating a neighbourhood WIFI network in a rural environment. Now I'm looking fo a monitoring tool to run on a server (Windows or Linux) which would track bandwidth, uptime (clients as well as internet connection), etc... Most of this…
mkoeller
  • 4,469
  • 23
  • 30
6
votes
1 answer

SNMP "exec format error" when trying to run a script

I'm using SNMPD to run a script on a Raspberry Pi with net-snmp. I was able to get the same script running on my Slackware machine, but on the Pi, under extOutput.1, I'm getting "Exec format error". The batch file being called is set to 777 and…
wolf2600
  • 565
  • 2
  • 8
  • 17
6
votes
0 answers

How to send SNMP v2 trap using Ararat Synapse?‏

I've tried to modify the TrapSend.dpr sample project which I downloaded from http://synapse.ararat.cz/files/contrib/Trap.zip to send SNMP v2 traps without success. Note: I'm able to successfully send SNMP v1 traps using the sample. This is the…
Joshua
  • 1,709
  • 2
  • 24
  • 38
6
votes
2 answers

SNMP MIB: revision for last update is missing

What does smilint mean when it complains about a specific line in a MIB file saying that: "revision for last update is missing"?
Subway
  • 5,286
  • 11
  • 48
  • 59
6
votes
1 answer

How to encode and decode large OID values?

I have OID of 1.3.6.1.2.1.2.2.1.8.4096 (ifOperStatus) In my code I have: MIB[0]=0x2b MIB[1]=0x06 MIB[2]=0x01 MIB[3]=0x02 MIB[4]=0x01 MIB[5]=0x02 MIB[6]=0x02 MIB[7]=0x01 MIB[8]=0x08 MIB[9]=0xA0 MIB[10]=0x00 where A0 00 represents 4096. 4096 in…
sw_embed
  • 199
  • 3
  • 15
6
votes
1 answer

how to send net-snmp traps from "C"

I need to write code to send traps from my application (using net-snmp APIs) Anyone has a simple sample code to do that? Thanks, Gil
Gil
  • 61
  • 1
  • 2
6
votes
6 answers

NoAccess error in snmpset

I have a MIB object with read-write permission. MIB section looks like this: EnableHalt OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-write STATUS current DESCRIPTION "implemented in NetSnmpcodsMr.c file." DEFVAL { 0 } ::= { Scalars 4…
user189066
6
votes
1 answer

Net-SNMP returned types

Net-snmp has a small number of types: i: INTEGER,u: unsigned INTEGER, t: TIMETICKS, a: IPADDRESS o: OBJID, s: STRING, x: HEX STRING, d: DECIMAL STRING U: unsigned int64, I: signed int64, F: float, D: double Interestingly, the story does not end…
user442920
  • 857
  • 4
  • 21
  • 49
6
votes
4 answers

How can I access ink levels of printers programmatically?

Okay, this is a Windows specific question. I need to be able to access the ink levels of a printer connected to a computer. Possibly direct connection, or a network connection. I recognize that it will likely be different for each printer (or…
Cruncher
  • 7,641
  • 1
  • 31
  • 65
6
votes
3 answers

Reference for Net-SNMP API?

I'm currently developing a monitoring application for some in-house hardware using net-snmp. I have code that somewhat works, when calling snmp_pdu_free() my code segfaults. I am creating the pdu struct with snmp_create_pdu(). I would like an API…
Edward
  • 1,786
  • 1
  • 15
  • 33
6
votes
1 answer

SharpSnmp vs SnmpSharpNet

I'm about to embark on a project where I need to create an SNMP Agent via C#. I've never worked with SNMP, so I plan on using an existing library/api such as SharpSnmp or SnmpSharpNet. I'm fishing for responses from anyone who has personal…
Jed
  • 10,649
  • 19
  • 81
  • 125
6
votes
1 answer

SNMP: ifAdminStatus vs ifOperStatus

I have a question about ifAdminStatus and ifOperStatus. Here is an output of my network interfaces state using ifAdminStatus: snmpwalk -Os -c public -v 1 192.168.1.1 1.3.6.1.2.1.2.2.1.7ifAdminStatus.1 = INTEGER: up(1) ifAdminStatus.12 = INTEGER:…
PrimeSeventyThree
  • 940
  • 2
  • 9
  • 24
5
votes
1 answer

Snmp Server for Windows

I'm looking for a snmp server for windows, are there any free (or at least working trial version) ones, I can only find clients? I know I could install the windows snmp service but here at work it is not really an option (I don't have the "win xp"…
Valmond
  • 2,897
  • 8
  • 29
  • 49
5
votes
3 answers

How can I enable/disable ports in Cisco Catalyst 2960 with C#?

I am a fresh graduate and have just got my first job as a programmer in Hong Kong. As the topic described, I need to use C# to control the ports on the Cisco switch. I have search and study for quite a long time so I have the basic knowledge about…
tingfungc
  • 115
  • 1
  • 1
  • 9
5
votes
1 answer

SNMP library for android

Is it possible to create let's say an App that can run SNMP get and set query under any android version Or is there SNMP library for Android development? Regards, Paul
polino247
  • 51
  • 3