Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6966025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:08:15+00:00 2026-05-27T16:08:15+00:00

I have been trying to understand how to create a MIB : here what

  • 0

I have been trying to understand how to create a MIB : here what I did so far :

I created a MIB, and tried to allocate values to new OID => fail

Here is the MIB :

TEST-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-COMPLIANCE, OBJECT-GROUP    FROM SNMPv2-CONF
OBJECT-TYPE, Integer32,MODULE-IDENTITY FROM SNMPv2-SMI;




test    MODULE-IDENTITY
    LAST-UPDATED "201112190200Z"
    ORGANIZATION "blah"
    CONTACT-INFO
        "please"        
    DESCRIPTION
        "I am stuck"
    REVISION    "201112190200Z"
    DESCRIPTION
        "initial Draft"
    ::= { iso org(3) dod(6) internet(1) private(4) enterprises(1) 39106 }

testResearch               OBJECT IDENTIFIER ::= { test 2 }

testVar OBJECT-TYPE
    SYNTAX Integer32
    MAX-ACCESS  read-write
    STATUS  current
    DESCRIPTION
        "just for testing"
    ::= { testResearch 1}

-- conformance information

testMIBConformance OBJECT IDENTIFIER ::= { test 999 }
testMIBCompliances OBJECT IDENTIFIER ::= { testMIBConformance 1 }
testMIBGroups      OBJECT IDENTIFIER ::= { testMIBConformance 2 }

-- compliance statements

testMIBCompliance MODULE-COMPLIANCE
    STATUS  current
    DESCRIPTION
        "blah."
    MODULE  -- this module
    MANDATORY-GROUPS { testGroup }
    ::= { testMIBCompliances 1 }

-- units of conformance

testGroup OBJECT-GROUP
    OBJECTS   { testVar }
    STATUS    current
    DESCRIPTION
        "The draft"
    ::= { testMIBGroups 1 }

END

I then

  • validated this MIB against smilint ,
  • put it in ~/.snmp/mibs/
  • have the rwcommunity string for all host, with no OID restriction
  • restarted the snmpd daemon (On Debian)

So far, all good.

I then tried to see if the daemon knows about this new enterprise, and I did :

snmpwalk -v2c -m +ALL  localhost  .1.3.6.1.4.1.39106

which outputs :
TEST-MIB::test= No Such Object available on this agent at this OID

So I guess That snmpd is telling me he can’t find anything under this tree, because nothing has been set yet.

So I try to set this test variable with snmpset on a shell :

snmpset  -v2c -m +ALL localhost .1.3.6.1.4.1.39106.2.1 i 111

outputs :

Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: TEST-MIB::testVar

I tried as well with :
snmpset -v2c -m +ALL localhost .1.3.6.1.4.1.39106.2.1.0 i 111

and as root, but with no success

But when I do a snmptranslate, I can see that the MIB is parsed correctly :

    snmptranslate -Td  1.3.6.1.4.1.39106.2.1 
    TEST-MIB::testVar
   testVar OBJECT-TYPE
      -- FROM   TEST-MIB
      SYNTAX    Integer32
      MAX-ACCESS    read-write
      STATUS    current
      DESCRIPTION   "just for testing"
    ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) test(39106) testResearch(2) 1 }

is it a bug? A known issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:08:16+00:00Added an answer on May 27, 2026 at 4:08 pm

    It sounds like you’re trying to build your own SNMP Agent.

    By the looks of things you’ve created your own MIB OID’s correctly but nothing is responding to the new OID when you query the SNMP host.

    Have a read of this: http://docs.oracle.com/cd/E13192_01/manager/mgr20/pguide/buildag.htm and see if it addresses your problem q:)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to understand a bit more about the wider picture of
I have been trying to understand the way ActionScript's events are implemented, but I'm
For last 48 hours, I have been trying to understand Multithreading and Socket Programming
I have been trying to create a chat bubble for about a month now...
I have been trying to understand OpenGL ES 2.0 on the iPhone for quite
I have been trying to learn about resources and styles, I want to create
I have been trying to follow the few tutorials on how to create a
I have been trying to understand and get something working with dependency properties. I
I've been evaluating HTML5 audio on iOS 4 and have been trying to understand
I have posted a bit here related to a project I have been trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.