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
9
votes
3 answers

SNMP: OID to use when writing custom MIBs

If you are writing your own MIB for a bespoke application, is there a 'best practice' for which branch you should use. I'm thinking of something analogous to private IP addresses, that can be used within enterprises, without conflicting with…
user329633
  • 211
  • 3
  • 6
8
votes
1 answer

Looking for example code to implement a SNMP table using AgentX

I've written an AgentX app (Linux, gcc, g++) which works well at sending back scalers. Here is what I'm doing now: init_agent( "blah" ); netsnmp_register_read_only_scalar( netsnmp_create_handler_registration( "foo1", handle_foo1, oid, oid.size(),…
Stéphane
  • 19,459
  • 24
  • 95
  • 136
8
votes
3 answers

Convert snmp octet string to human readable date format

Using the pysnmp framework i get some values doing a snmp walk. Unfortunately for the oid 1.3.6.1.21.69.1.5.8.1.2 (DOCS-CABLE-DEVICE-MIB) i get a weird result which i cant correctly print here since it contains ascii chars like BEL ACK When…
Michael Lang
  • 83
  • 1
  • 1
  • 3
8
votes
2 answers

Delphi: Get MAC of Router

I am using Delphi and I want to determinate the physical MAC address of a network device in my network, in this case the Router itself. My code: var idsnmp: tidsnmp; val:string; begin idsnmp := tidsnmp.create; try …
Daniel Marschall
  • 3,739
  • 2
  • 28
  • 67
8
votes
1 answer

Using Perl to get list of IP addresses from Cisco Call Manager

I need to retrieve a list of IP addresses of phones from Cisco Unified Call Manager, and I'd like to be able to do it using Perl and standard modules as much as possible. I can get the addresses using snmpwalk (we are using SNMP v3) but for some…
WVEagle81
  • 89
  • 4
8
votes
2 answers

SNMP OUTPUT OPTIONS - How do I get the OID response value only?

I have to go through and collect a few OIDs from some SNMP enabled network printers with a BASH script I have been working on. My Request: snmpget -v2c -c public 192.168.0.77 .1.3.6.1.2.1.1.1 .1.3.6.1.2.1.1.2 My Actual Response: …
user2179455
  • 107
  • 1
  • 2
  • 9
8
votes
9 answers

Managing Cisco programmatically; Telnet vs SNMP?

I was recently approached by a network-engineer, co-worker who would like to offload his minor network admin duties to a junior-level helpdesk tech. The specific location in need of management acts as an ISP for tenants on its single-site…
crftr
  • 8,488
  • 4
  • 34
  • 44
8
votes
1 answer

net-snmp perl subagent not being triggered by snmpget

I've been working on a custom SNMP Mib and I've come up against a wall while trying to get an agent to return the proper data. MIB (validated by running smilint -l 6): IDB-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-IDENTITY, OBJECT-TYPE,…
user1637579
8
votes
3 answers

Make a PHP site send SNMP information to a network management app

I'm trying to make a PHP website send information through SNMP. I've been reading allot about SNMP, but I'm still a bit clueless about where to start. I believe I need to create an MIB with all the OIDs my website will use to send the info. Is this…
rogeriopvl
  • 51,659
  • 8
  • 55
  • 58
8
votes
5 answers

How to get MAC or IP Addresses of devices connected to a switch using SNMP?

Using SNMP, how do I get the MAC address of the device connected to each port on the switch? We're using HP ProCurve Switches. I tried using the OID dot1dTpFdbPort but that seems to be giving me the MAC address of every device that's in…
Danny Ackerman
  • 997
  • 1
  • 10
  • 25
7
votes
7 answers

What is a SNMP ping?

I know what SNMP is and I know what ping is. What is meant by a 'SNMP ping'? SNMP can be used to see if devices on a network are still alive.. what does it use to do this? I wouldn't have thought an SNMP ping is the same as an ICMP ping?
ale
  • 11,636
  • 27
  • 92
  • 149
7
votes
6 answers

Define MIB and send SNMP trap under .net

I have developed a special application for a company under .net in C# and it is used for years. Now it is developed on, one of the main new features I have to implement is to integrate it with another software by sending SNMP traps to it in some…
Tom
  • 3,899
  • 22
  • 78
  • 137
7
votes
1 answer

How to have a single JMX proxy for multiple JVMs?

When running multiple JVMs on a single machine (single IP address as well), incorporating JMX in each JVM requires a separate port. For reasons I won't get into configured ports are at a premium in this environment, so instead I'd like to have a…
Scott A
  • 7,745
  • 3
  • 33
  • 46
7
votes
7 answers

Free SNMP simulator tools?

Lately I have gotten into SNMP agent development and have been using the 30 day free trial of ireasoning's snmpd simulator. The tool has proven immensely handy, it can act as an snmpd service providing random/specified data for mib(s). While I would…
RandomUser
  • 4,140
  • 17
  • 58
  • 94
7
votes
2 answers

Figure out memory usage using SNMP on Windows

Currently i use the following to figure it out: For total memory: .1.3.6.1.2.1.25.2.2.0 For used memory i walk the following oid (gives me usage of each process): .1.3.6.1.2.1.25.5.1.1.2 and sum them all. However, this is very inaccurate,…
timeshift
  • 245
  • 1
  • 3
  • 7