Questions tagged [mib]

A MIB is an acronym for Management Information Base in use with the SNMP Protocol.

A MIB is the schema for an entity, such as a corporation, that wishes to exchange SNMP packets with another entity. They use the MIB, or Management Information Base, which is the schema that allows the computers to communicate and establish understanding, such as data types, permissions and other values.

MIBs are written in Abstract Syntax Notation One (ASN.1).
MIBs are written in plain text.

Programs such a smilint can test MIB syntax for correctness and conformity to SNMP standards such as SMIv1 and SMIv2, which are subsets of ASN.1

368 questions
16
votes
2 answers

Definition of SNMP Gauge32 vs Counter32

Can someone point me to a good definition of Gauge32 vs Counter32? I understand that Counter32 can wrap, but Gauge32 can't. I'm trying to understand their semantics. For example, I've heard you should take the difference between two Counter32…
DougN
  • 4,407
  • 11
  • 56
  • 81
16
votes
2 answers

SNMP MIB SMIv2 Conformance Group Issue

I have a MIB that I started working on but smilint complains about a missing conformance group. How do I add this conformance group to my file? BLEH-PRODUCT-MIB DEFINITIONS ::= BEGIN -- Objects in this MIB are implemented in the local SNMP agent. …
Eric des Courtis
  • 5,135
  • 6
  • 24
  • 37
16
votes
4 answers

How to get OIDs from a MIB file?

I want to read all the objects from the MIB file that a manager has. I developed one tool to get some data from a SNMP enabled agent. I want to enhance that tool by showing all the OIDs form the manager's MIB file. I am using the NET-SNMP…
pradipta
  • 1,718
  • 2
  • 13
  • 24
9
votes
1 answer

SNMP purpose of OBJECT-GROUP, MODULE-COMPLIANCE with regards to OBJECT-TYPES

I am implementing my own MIB and also use smilint to check to validate the MIB. I am getting a lot of node xxx must be contained in at least one conformance group warnings. I am having trouble deciphering the purpose of the OBJECT-GROUP and where it…
gavenant
  • 453
  • 7
  • 26
9
votes
5 answers

SNMP MIB development tool

Does anybody know a good tool to assist in the development of an SNMP MIB with correct formatting and syntax? If possible, it should be free and run under Linux.
user60008667
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
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
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 do I implement a custom MIB in PySNMP?

I already have the MIB text file (do I need to make this into a .py file somehow??). I am trying to use PySNMP (not net-snmp). I have been able to connect to my device and print out some info, but the info was not very helpful (just ObjectName,…
6
votes
1 answer

net-snmp sample code to parse MIB file and extract trap related information from it

I am using the net-snmp C library on Windows. I want to parse trap-related information from the MIB files. I need some sample code to do this. I didn't find anything useful on http://www.net-snmp.org/
Rahul
  • 1,401
  • 4
  • 17
  • 33
6
votes
1 answer

How to use RowStatus?

I'm writing an SNMP manager and a simulated SNMP agent from a MIB (to test a manager). I have a table similar to below that the manager should be able to add/delete rows. What's the customary way to do this using RowStatus? Is RowStatus set…
Steve Jackson
  • 1,330
  • 1
  • 15
  • 25
6
votes
3 answers

Writing my own MIB - any references of how to do so?

Mapping some OIDs to system commands is actually all I need However, I could not find yet a resource which explain how to compose such thing. Any idea?
Tzury Bar Yochay
  • 8,798
  • 5
  • 49
  • 73
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
5
votes
2 answers

mib name printing from mib values in perl

This is the code that I used to walk through the table in net:snmp using perl: #! /usr/local/bin/perl use strict; use warnings; use Net::SNMP qw(:snmp); my $OID_hrSystem = '1.3.6.1.2.1.25.1'; my…
Cherry Chakri
  • 51
  • 1
  • 2
1
2 3
24 25