Having trouble with getting enterprise MIB correct

Paul Thornton <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I've created a MIB for our organisation, but am having difficulty
properly hooking it into the enterprises tree (for want of a better
description).

Basically, I can't refer to anything by name, and when a trap is
received, the details are shown numerically.

I based what I was doing on the Cisco SMI MIB, theirs works and mine
doesn't but I can't see why - I'm sure its something glaringly obvious
but I'm missing it totally.

I have the following at the top of the MIB:

PRT-MIB DEFINITIONS ::= BEGIN

IMPORTS
    MODULE-IDENTITY, OBJECT-TYPE, Counter32, Gauge32, Counter64,
    Integer32, TimeTicks, mib-2, enterprises,
    NOTIFICATION-TYPE                        FROM SNMPv2-SMI
    TEXTUAL-CONVENTION, DisplayString,
    PhysAddress, TruthValue, RowStatus,
    TimeStamp, AutonomousType, TestAndIncr   FROM SNMPv2-TC
    MODULE-COMPLIANCE, OBJECT-GROUP,
    NOTIFICATION-GROUP                       FROM SNMPv2-CONF
    snmpTraps                                FROM SNMPv2-MIB;


prt MODULE-IDENTITY
    LAST-UPDATED "201108221300Z"
    ORGANIZATION "PRT Systems Limited, UK"
    CONTACT-INFO "[email protected]"
    DESCRIPTION "The PRT MIB version 1.05"
    ::= { enterprises 21042 }


However, if I try:
snmptranslate -Oaf -mALL .iso.org.dod.internet.private.enterprises.21042
I just get:
.iso.org.dod.internet.private.enterprises.21042
back - no translation.

The mib file is in /usr/local/share/snmp/mibs with all of the others
(this is a FreeBSD machine) and when I run snmptranslate -DALL I see in
the debug that it seems to load my MIB:

parse-mibs: Checking file: /usr/local/share/snmp/mibs/PRT-MIB.txt...
trace: new_module(): parse.c, 4248:
parse-mibs:   Module 39 PRT-MIB is in /usr/local/share/snmp/mibs/PRT-MIB.txt

As a check, if I try:
snmptranslate -Oaf -mALL .iso.org.dod.internet.private.enterprises.9
it does work as expected:
.iso.org.dod.internet.private.enterprises.cisco

What's the best way to troubleshoot this?

Many thanks,

Paul.




------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.