MIB Compilation probelem

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
devsingh
Posts: 1
Joined: Thu Sep 01, 2005 6:55 am

MIB Compilation probelem

Post by devsingh »

Hi All,
I have written MIB file which is below but when I use mib2c copiler then it gives unknown object identifier . I tried like this

"mib2c -c mib2c.scalar.conf.atca910xMod"
where :: atca910xMod is the root node . I also tried snmptranslate command but it says same.
I loaded mib properly:
export MIBS=+atcaNPU
( Mib file name : atcaNPU.txt)
Please do let me know where is the mistake ... May me there is a problem in the MIB file.
--------------------------------------------------------------------------------------
See below Mib which I wrote---

TCANPU-MIB DEFINITIONS ::= BEGIN

IMPORTS
Counter32, Integer32,
OBJECT-TYPE, MODULE-IDENTITY, NOTIFICATION-TYPE,
OBJECT-IDENTITY, mib-2 , enterprises
FROM SNMPv2-SMI
TruthValue, TEXTUAL-CONVENTION
FROM SNMPv2-TC
OBJECT-GROUP, MODULE-COMPLIANCE, NOTIFICATION-GROUP
FROM SNMPv2-CONF;

atca910xMod MODULE-IDENTITY
LAST-UPDATED "0508240400Z" -- August 24,2005
ORGANIZATION "MOTOROLA Embedded Communications Computing Group"
CONTACT-INFO "MILAN R"
DESCRIPTION "Management Information for the ATCA-910x"

REVISION "0508240400Z" -- August 24, 2005
DESCRIPTION "Revision 1 of 910x MIB"

::= { enterprises 10 }

atca910xMgt OBJECT IDENTIFIER ::= { atca910xMod 90 }


-- textual conventions

Atca910xSpiInterfaceNumber ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "Enumeration Values which declare the downstream devices

behind the SPI-4.2 interfaces on the SPI-4.2 switch"

SYNTAX INTEGER {
npu-a(1),
npu-b(2),
rtm(3),
sem-a(4),
sem-b(5),
fabric(6)
}


ConnectionId ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "Unique Connection Id to represent a connection in the SPI-4.2
switch"
SYNTAX Integer32 ( 1..300)

Atca910xSpiPortNumber ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "The Input SPI-4.2 port number"
SYNTAX Integer32 (0..255)

Atca910xSpiXReg ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "The Format of a SPI-4.2 Register"
SYNTAX Counter32

Atca910xSpiOperatingMode ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "The Operating Mode of the SPI-4.2 Interface"
SYNTAX INTEGER {
multiPort(0),
clearMode(1)
}


atca910xFIMGroup
OBJECT IDENTIFIER ::= {atca910xMgt 1}
atca910xRTMGroup
OBJECT IDENTIFIER ::= {atca910xMgt 2}
atca910xSpiXGroup
OBJECT IDENTIFIER ::= {atca910xMgt 3}

atca910xVPD OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Vital Product Data"
::= { atca910xSpiXGroup 2 }


--
-- The Basic SPI-Switch Connection Table
--

spiConnTable OBJECT-TYPE
SYNTAX SEQUENCE OF SpiConnEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A list of the SPI-4.2 connections"
::= { atca910xSpiXGroup 3 }

spiConnEntry OBJECT-TYPE
SYNTAX SpiConnEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry containing management information applicable to a
particular interface."
INDEX { spiConnectionId }
::= { spiConnTable 1 }

SpiConnEntry ::=
SEQUENCE {
atca910xSpiConnectionId Integer32,
atca910xSpiInputInterface Atca910xSpiInterfaceNumber,
atca910xSpiInputPortNumber Integer32,
atca910xSpiOutputInterface Atca910xSpiInterfaceNumber,
atca910xSpiOutputPortNumber Atca910xSpiPortNumber

}

atca910xSpiConnectionId OBJECT-TYPE
SYNTAX ConnectionId
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"This connectionId is dynamic and assigned when the table is created."
::= { spiConnEntry 1 }

atca910xSpiInputInterface OBJECT-TYPE
SYNTAX Atca910xSpiInterfaceNumber
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The input SPI interface Number."
::= { spiConnEntry 2 }

atca910xSpiInputPortNumber OBJECT-TYPE
SYNTAX Atca910xSpiPortNumber
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The input SPI Port Number."
::= { spiConnEntry 3 }

atca910xSpiOutputInterface OBJECT-TYPE
SYNTAX Atca910xSpiInterfaceNumber
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The Output SPI interface Number."
::= { spiConnEntry 4 }

atca910xSpiOutputPortNumber OBJECT-TYPE
SYNTAX Atca910xSpiPortNumber
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The Output SPI Port Number."
::= { spiConnEntry 5 }


--
-- The SPI-4.2 Statistics table
--

atca910xSpiStatsTable OBJECT-TYPE
SYNTAX SEQUENCE OF Atca910xSpiStatsEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A list of the SPI-4.2 Statistics Per Interface"
::= { atca910xSpiXGroup 5 }

atca910xSpiStatsEntry OBJECT-TYPE
SYNTAX Atca910xSpiStatsEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry containing SPI-4.2 statistics to a
particular interface."
INDEX { atca910xSpiInterfaceNumber }
::= { atca910xSpiStatsTable 1 }

Atca910xSpiStatsEntry ::=
SEQUENCE {
atca910xSpiInterfaceNumber Atca910xSpiInterfaceNumber,
atca910xSpiRxPktCounter Atca910xSpiXReg,
atca910xSpiRxPktErrCounter Atca910xSpiXReg,
atca910xSpiRxPktDataCounter Atca910xSpiXReg,
atca910xSpiTxPktCounter Atca910xSpiXReg,
atca910xSpiTxPktErrCounter Atca910xSpiXReg,
atca910xSpiTxPktDataCounter Atca910xSpiXReg,


}


atca910xSpiInterfaceNumber OBJECT-TYPE
SYNTAX Atca910xSpiInterfaceNumber
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The input SPI interface Number."
::= { atca910xSpiStatsEntry 1 }


atca910xSpiRxPktCounter OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The SPI Rx Packet Counter"
::= { atca910xSpiStatsEntry 2 }

atca910xSpiRxPktErrCounter OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The SPI Rx Packet Error Counter"
::= { atca910xSpiStatsEntry 3 }

atca910xSpiRxPktDataCounter OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The SPI Rx Packet Data Counter"
::= { atca910xSpiStatsEntry 4 }

atca910xSpiTxPktCounter OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The SPI Tx Packet Counter"
::= { atca910xSpiStatsEntry 5 }

atca910xSpiTxPktErrCounter OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The SPI Tx Packet Error Counter"
::= { atca910xSpiStatsEntry 6 }

atca910xSpiTxPktDataCounter OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The SPI Tx Packet Data Counter"
::= { atca910xSpiStatsEntry 7 }


--
-- The SPI-4.2 parameters information
--
atca910xSpiParametersTable OBJECT-TYPE
SYNTAX SEQUENCE OF Atca910xSpiParametersEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A list of the SPI-4.2 Parameters Per Interface"
::= { atca910xSpiXGroup 6 }

atca910xSpiParametersEntry OBJECT-TYPE
SYNTAX Atca910xSpiParametersEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry containing SPI-4.2 statistics to a
particular interface."
INDEX { atca910xSpiInterfaceNumber }
::= { atca910xSpiParametersTable 1 }

Atca910xSpiParametersEntry ::=
SEQUENCE {
atca910xSpiInterfaceNumber Atca910xSpiInterfaceNumber,
atca910xSpiRxCalLength Atca910xSpiXReg,
atca910xSpiRxCalMultiplicity Atca910xSpiXReg,
atca910xSpiTxCalLength Atca910xSpiXReg,
atca910xSpiTxCalMultiplicity Atca910xSpiXReg,
atca910xSpiRxOperatingMode Atca910xSpiOperatingMode,
atca910xSpiTxOperatingMode Atca910xSpiOperatingMode

}

atca910xSpiInterfaceNumber OBJECT-TYPE
SYNTAX Atca910xSpiInterfaceNumber
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The input SPI interface Number."
::= { atca910xSpiParametersEntry 1 }

atca910xSpiRxCalLength OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The SPI Calendar length for this interface"
::= { atca910xSpiParametersEntry 2 }

atca910xSpiRxCalMultiplicity OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The SPI Rx Packet Length Multiplicity"
::= { atca910xSpiParametersEntry 3 }


atca910xSpiTxCalLength OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The SPI Calendar length for this interface"
::= { atca910xSpiParametersEntry 4 }

atca910xSpiTxCalMultiplicity OBJECT-TYPE
SYNTAX Atca910xSpiXReg
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The SPI Tx Calendar Length Multiplicity"
::= { atca910xSpiParametersEntry 5 }

atca910xSpiRxOperatingMode OBJECT-TYPE
SYNTAX Atca910xSpiOperatingMode
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The Present Operational Mode of the Rx Interface of SPI-4.2 Interface"
::= { atca910xSpiParametersEntry 6}


atca910xSpiTxOperatingMode OBJECT-TYPE
SYNTAX Atca910xSpiOperatingMode
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The Present Operational Mode of the Tx Interface of SPI-4.2 Interface"
::= { atca910xSpiParametersEntry 7}








-- Trap Definitions









END
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Since cacti/cactid does not use MIBs, this really shouldn't be a problem. One should always use the full OID when writing scripts for Cacti.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests