Discussion:
Can't load a MIB file
SMITH, RICHARD S (RICH), ATTLABS
2008-07-31 20:01:03 UTC
Permalink
Vendor MIB file comes to me with .mi2 extension. I can't get the MIB to
load into wireshark. I've tried various with the filename and
extension with no luck.

File name juniAaa.mi2

Partial file -

--
************************************************************************
*****
-- Juniper-AAA-MIB
--
-- Juniper Networks Enterprise MIB
-- Authentication/Authorization/Accounting MIB
--
-- Copyright (c) 1999 Redstone Communications, Inc.
-- Copyright (c) 1999, 2002 Unisphere Networks, Inc.
-- Copyright (c) 2002, 2004 Juniper Networks, Inc.
-- All Rights Reserved.
--
************************************************************************
*****

Juniper-AAA-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Integer32, IpAddress, Counter32,
Unsigned32,
Gauge32
FROM SNMPv2-SMI
TEXTUAL-CONVENTION, DisplayString, RowStatus, TruthValue
FROM SNMPv2-TC
MODULE-COMPLIANCE, OBJECT-GROUP
FROM SNMPv2-CONF
juniMibs
FROM Juniper-MIBs
JuniName, JuniInterfaceLocationType, JuniInterfaceLocationValue,
JuniVrfGroupName
FROM Juniper-TC
juniRouterIndex
FROM Juniper-ROUTER-MIB
Ipv6AddressPrefix, Ipv6AddressIfIdentifier, Ipv6Address
FROM IPV6-TC;

juniAaaMIB MODULE-IDENTITY
LAST-UPDATED "200507211210Z" -- 21-July-05 08:10 AM EDT
ORGANIZATION "Juniper Networks, Inc."
CONTACT-INFO
" Juniper Networks, Inc.
Postal: 10 Technology Park Drive
Westford, MA 01886-3146
USA
Tel: +1 978 589 5800
Email: mib-***@public.gmane.org"
DESCRIPTION
"The Authentication, Authorization and Accounting (AAA) MIB for
the
Juniper Networks enterprise."
-- Revision History
.

.

.

.



Any ideas what I need to modify to get it to load?
j.snelders-gV1cAGbgYeXz+
2008-08-01 04:43:26 UTC
Permalink
Is this a mather of using the OK_button in stead of the Apply_button?

Take a look at message "Add/delete SMI paths or modules" dd 20-07-2008.

Thanx
Joan
-- Oorspronkelijk bericht --
Date: Thu, 31 Jul 2008 16:01:03 -0400
Subject: [Wireshark-users] Can't load a MIB file
Vendor MIB file comes to me with .mi2 extension. I can't get the MIB to
load into wireshark. I've tried various with the filename and
extension with no luck.
File name juniAaa.mi2
Any ideas what I need to modify to get it to load?
SMITH, RICHARD S (RICH), ATTLABS
2008-07-31 14:43:52 UTC
Permalink
Vendor MIB file comes to me with .mi2 extension. I can't get the MIB to
load into wireshark. I've tried various with the filename and
extension with no luck.

File name juniAaa.mi2

Partial file -

--
************************************************************************
*****
-- Juniper-AAA-MIB
--
-- Juniper Networks Enterprise MIB
-- Authentication/Authorization/Accounting MIB
--
-- Copyright (c) 1999 Redstone Communications, Inc.
-- Copyright (c) 1999, 2002 Unisphere Networks, Inc.
-- Copyright (c) 2002, 2004 Juniper Networks, Inc.
-- All Rights Reserved.
--
************************************************************************
*****

Juniper-AAA-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Integer32, IpAddress, Counter32,
Unsigned32,
Gauge32
FROM SNMPv2-SMI
TEXTUAL-CONVENTION, DisplayString, RowStatus, TruthValue
FROM SNMPv2-TC
MODULE-COMPLIANCE, OBJECT-GROUP
FROM SNMPv2-CONF
juniMibs
FROM Juniper-MIBs
JuniName, JuniInterfaceLocationType, JuniInterfaceLocationValue,
JuniVrfGroupName
FROM Juniper-TC
juniRouterIndex
FROM Juniper-ROUTER-MIB
Ipv6AddressPrefix, Ipv6AddressIfIdentifier, Ipv6Address
FROM IPV6-TC;

juniAaaMIB MODULE-IDENTITY
LAST-UPDATED "200507211210Z" -- 21-July-05 08:10 AM EDT
ORGANIZATION "Juniper Networks, Inc."
CONTACT-INFO
" Juniper Networks, Inc.
Postal: 10 Technology Park Drive
Westford, MA 01886-3146
USA
Tel: +1 978 589 5800
Email: mib-***@public.gmane.org"
DESCRIPTION
"The Authentication, Authorization and Accounting (AAA) MIB for
the
Juniper Networks enterprise."
-- Revision History
.

.

.

.



Any ideas what I need to modify to get it to load?
SMITH, RICHARD S (RICH), ATTLABS
2008-08-01 13:14:44 UTC
Permalink
Looks like it partially was. Now instead of nothing happening on
restart and the MIB not being in the module list I get errors for the
files. I get 'module not readable' if I use the file name. Looking at
other files though I don't see a difference in the format that should be
causing a problem.

Rich

From: ***@xxxxxxxxxx <mailto:j.snelders-SZnqb8efeTSMjIEoe52W+***@public.gmane.org>
Date: Fri, 1 Aug 2008 06:43:26 +0200


Is this a mather of using the OK_button in stead of the Apply_button?

Take a look at message "Add/delete SMI paths or modules" dd 20-07-2008.

Thanx
Joan
-- Oorspronkelijk bericht --
Date: Thu, 31 Jul 2008 16:01:03 -0400
Subject: [Wireshark-users] Can't load a MIB file
Reply-To: Community support list for Wireshark
Vendor MIB file comes to me with .mi2 extension. I can't get the MIB
to
load into wireshark. I've tried various with the filename and
extension with no luck.
File name juniAaa.mi2
Any ideas what I need to modify to get it to load?
Andrew Hood
2008-08-01 13:15:47 UTC
Permalink
Post by SMITH, RICHARD S (RICH), ATTLABS
Vendor MIB file comes to me with .mi2 extension. I can't get the MIB to
load into wireshark. I've tried various with the filename and
extension with no luck.
It won't work if you don't have all the prerequisite MIBs, and they need
to be syntactically correct:

Juniper-AAA-MIB
+--SNMPv2-SMI [7 identifiers]
+--SNMPv2-TC [4 identifiers]
| +--SNMPv2-SMI [1 identifier]
+--SNMPv2-CONF [2 identifiers]
| +--SNMPv2-SMI [3 identifiers]
+--Juniper-MIBs [1 identifier]
| +--SNMPv2-SMI [1 identifier]
| +--Juniper-UNI-SMI [1 identifier]
| +--SNMPv2-SMI [3 identifiers]
+--Juniper-TC [5 identifiers]
| +--SNMPv2-SMI [4 identifiers]
| +--SNMPv2-TC [1 identifier]
| | +--SNMPv2-SMI [1 identifier]
| +--Juniper-MIBs [1 identifier]
| +--SNMPv2-SMI [1 identifier]
| +--Juniper-UNI-SMI [1 identifier]
| +--SNMPv2-SMI [3 identifiers]
+--Juniper-ROUTER-MIB [1 identifier]
| +--SNMPv2-SMI [4 identifiers]
| +--SNMPv2-TC [4 identifiers]
| | +--SNMPv2-SMI [1 identifier]
| +--SNMPv2-CONF [2 identifiers]
| | +--SNMPv2-SMI [3 identifiers]
| +--SNMP-FRAMEWORK-MIB [1 identifier]
| | +--SNMPv2-SMI [4 identifiers]
| | +--SNMPv2-TC [1 identifier]
| | | +--SNMPv2-SMI [1 identifier]
| | +--SNMPv2-CONF [2 identifiers]
| | +--SNMPv2-SMI [3 identifiers]
| +--Juniper-TC [1 identifier]
| | +--SNMPv2-SMI [4 identifiers]
| | +--SNMPv2-TC [1 identifier]
| | | +--SNMPv2-SMI [1 identifier]
| | +--Juniper-MIBs [1 identifier]
| | +--SNMPv2-SMI [1 identifier]
| | +--Juniper-UNI-SMI [1 identifier]
| | +--SNMPv2-SMI [3 identifiers]
| +-- [2 identifiers]
| +--Juniper-MIBs [1 identifier]
| +--SNMPv2-SMI [1 identifier]
| +--Juniper-UNI-SMI [1 identifier]
| +--SNMPv2-SMI [3 identifiers]
+--IPV6-TC [3 identifiers]
+--SNMPv2-SMI [1 identifier]
+--SNMPv2-TC [1 identifier]
+--SNMPv2-SMI [1 identifier]
--
There's no point in being grown up if you can't be childish sometimes.
-- Dr. Who
SMITH, RICHARD S (RICH), ATTLABS
2008-08-01 15:02:01 UTC
Permalink
Do I need to load each of the pre-requisite files or do they just need
to be in the MIBs folder? Do they need to be renamed to match the MIB
name .... i.e. juniAaa.mi2 becomes Juniper-AAA-MIB.mi2?

Thanks

-----Original Message-----
From: wireshark-users-bounces-IZ8446WsY0/***@public.gmane.org
[mailto:wireshark-users-bounces-IZ8446WsY0/***@public.gmane.org] On Behalf Of Andrew Hood
Sent: Friday, August 01, 2008 9:16 AM
To: Community support list for Wireshark
Subject: Re: [Wireshark-users] Can't load a MIB file
Post by SMITH, RICHARD S (RICH), ATTLABS
Vendor MIB file comes to me with .mi2 extension. I can't get the MIB to
load into wireshark. I've tried various with the filename and
extension with no luck.
It won't work if you don't have all the prerequisite MIBs, and they need
to be syntactically correct:

Juniper-AAA-MIB
+--SNMPv2-SMI [7 identifiers]
+--SNMPv2-TC [4 identifiers]
| +--SNMPv2-SMI [1 identifier]
+--SNMPv2-CONF [2 identifiers]
| +--SNMPv2-SMI [3 identifiers]
+--Juniper-MIBs [1 identifier]
| +--SNMPv2-SMI [1 identifier]
| +--Juniper-UNI-SMI [1 identifier]
| +--SNMPv2-SMI [3 identifiers]
+--Juniper-TC [5 identifiers]
| +--SNMPv2-SMI [4 identifiers]
| +--SNMPv2-TC [1 identifier]
| | +--SNMPv2-SMI [1 identifier]
| +--Juniper-MIBs [1 identifier]
| +--SNMPv2-SMI [1 identifier]
| +--Juniper-UNI-SMI [1 identifier]
| +--SNMPv2-SMI [3 identifiers]
+--Juniper-ROUTER-MIB [1 identifier]
| +--SNMPv2-SMI [4 identifiers]
| +--SNMPv2-TC [4 identifiers]
| | +--SNMPv2-SMI [1 identifier]
| +--SNMPv2-CONF [2 identifiers]
| | +--SNMPv2-SMI [3 identifiers]
| +--SNMP-FRAMEWORK-MIB [1 identifier]
| | +--SNMPv2-SMI [4 identifiers]
| | +--SNMPv2-TC [1 identifier]
| | | +--SNMPv2-SMI [1 identifier]
| | +--SNMPv2-CONF [2 identifiers]
| | +--SNMPv2-SMI [3 identifiers]
| +--Juniper-TC [1 identifier]
| | +--SNMPv2-SMI [4 identifiers]
| | +--SNMPv2-TC [1 identifier]
| | | +--SNMPv2-SMI [1 identifier]
| | +--Juniper-MIBs [1 identifier]
| | +--SNMPv2-SMI [1 identifier]
| | +--Juniper-UNI-SMI [1 identifier]
| | +--SNMPv2-SMI [3 identifiers]
| +-- [2 identifiers]
| +--Juniper-MIBs [1 identifier]
| +--SNMPv2-SMI [1 identifier]
| +--Juniper-UNI-SMI [1 identifier]
| +--SNMPv2-SMI [3 identifiers]
+--IPV6-TC [3 identifiers]
+--SNMPv2-SMI [1 identifier]
+--SNMPv2-TC [1 identifier]
+--SNMPv2-SMI [1 identifier]
--
There's no point in being grown up if you can't be childish sometimes.
-- Dr. Who
Andrew Hood
2008-08-02 11:27:21 UTC
Permalink
Post by SMITH, RICHARD S (RICH), ATTLABS
Do I need to load each of the pre-requisite files or do they just need
to be in the MIBs folder? Do they need to be renamed to match the MIB
name .... i.e. juniAaa.mi2 becomes Juniper-AAA-MIB.mi2?
Answered in the oposite order.

1) Filenames must match the MIB name from the "DEFINITIONS ::= BEGIN"
line. Any one of:

Juniper-AAA-MIB
Juniper-AAA-MIB.my
Juniper-AAA-MIB.smiv1
Juniper-AAA-MIB.smiv2
Juniper-AAA-MIB.sming
Juniper-AAA-MIB.mib
Juniper-AAA-MIB.txt

would all work. If you complied your own version of libsmi.so (or
smi.dll on Winblows) you could add ".mi2" to the list of extensions in
lib/data.c

2) Pre-requisites only need to be in the MIBs folder. The parser will
load any pre-requisites, which must also have filenames that follow the
rules in 1). I haven't gone through the MIB loader code in Wireshark to
determine if the objects in pre-requisiste modules are available for
disection.
--
There's no point in being grown up if you can't be childish sometimes.
-- Dr. Who
Continue reading on narkive:
Loading...