management app doesn't agree with agentgen OIDs
Robert Olivier
robert.olivier____rjomanagement.com
Fri Oct 27 05:35:13 CEST 2000
I a MIB modules containing a table as follows:
iTAPITransactionStatsTable OBJECT-TYPE
SYNTAX SEQUENCE OF TiTAPITransactionStatsSequence
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "transaction stats table"
::= {iGatewayTransactionStats 1 }
iTAPITransactionStatsEntry OBJECT-TYPE
SYNTAX TiTAPITransactionStatsSequence
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Entry containing information on a particular iTAPI transaction
type. Cannot be created or deleted"
INDEX { transactionIndex }
::= { iTAPITransactionStatsTable 1 }
TiTAPITransactionStatsSequence ::= SEQUENCE {
transactionIndex Integer32,
transactionType DisplayString,
countTotal Counter32,
countTimedOutBase24 Counter32,
countTimedOutDB Counter32,
countBICRejected Counter32,
countSinceStartTime Counter32,
avgDuration Gauge32,
maxDuration Gauge32,
minDuration Gauge32
}
transactionIndex OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "the row index of the iTAPI transaction type"
::= { iTAPITransactionStatsEntry 1 }
transactionType OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION "the text label of the iTAPI transaction type"
::= { iTAPITransactionStatsEntry 2 }
and so on for the other variables.
Agentgen emitted this header file excerpt:
#define oidITAPITransactionStatsTable "1.3.6.1.4.1.9999.1.5.1"
#define oidITAPITransactionStatsEntry "1.3.6.1.4.1.9999.1.5.1.1.0"
<<<<<<<< keep note
#define oidTransactionIndex "1.3.6.1.4.1.9999.1.5.1.1.1"
#define colTransactionIndex "1"
#define oidTransactionType "1.3.6.1.4.1.9999.1.5.1.1.2"
#define colTransactionType "2"
#define oidCountTotal "1.3.6.1.4.1.9999.1.5.1.1.3"
#define colCountTotal "3"
#define oidCountTimedOutBase24 "1.3.6.1.4.1.9999.1.5.1.1.4"
#define colCountTimedOutBase24 "4"
#define oidCountTimedOutDB "1.3.6.1.4.1.9999.1.5.1.1.5"
#define colCountTimedOutDB "5"
#define oidCountBICRejected "1.3.6.1.4.1.9999.1.5.1.1.6"
#define colCountBICRejected "6"
#define oidCountSinceStartTime "1.3.6.1.4.1.9999.1.5.1.1.7"
#define colCountSinceStartTime "7"
#define oidAvgDuration "1.3.6.1.4.1.9999.1.5.1.1.8"
#define colAvgDuration "8"
#define oidMaxDuration "1.3.6.1.4.1.9999.1.5.1.1.9"
#define colMaxDuration "9"
#define oidMinDuration "1.3.6.1.4.1.9999.1.5.1.1.10"
#define colMinDuration "10"
snmpWalk saw the following:
1.3.6.1.4.1.9999.1.5.1.1.0.1.1 = 0
1.3.6.1.4.1.9999.1.5.1.1.0.1.2 = 1
1.3.6.1.4.1.9999.1.5.1.1.0.1.3 = 2
1.3.6.1.4.1.9999.1.5.1.1.0.1.4 = 3
1.3.6.1.4.1.9999.1.5.1.1.0.1.5 = 4
1.3.6.1.4.1.9999.1.5.1.1.0.1.6 = 5
1.3.6.1.4.1.9999.1.5.1.1.0.1.7 = 6
1.3.6.1.4.1.9999.1.5.1.1.0.1.8 = 7
1.3.6.1.4.1.9999.1.5.1.1.0.1.9 = 8
1.3.6.1.4.1.9999.1.5.1.1.0.1.10 = 9
1.3.6.1.4.1.9999.1.5.1.1.0.2.1 = Activate
1.3.6.1.4.1.9999.1.5.1.1.0.2.2 = BalanceInquiry
1.3.6.1.4.1.9999.1.5.1.1.0.2.3 = CsrAccountInfo
note --------------------^
My management app, having compiled the same MIB that generated this code,
does not agree that the 0 should be there and of course refuses to show me
the table. If I edit the header file to remove the extra 0 in #define
oidITAPITransactionStatsEntry all problems go away and I can see the data
in the management app.
Is this likely a problem in my mib or a poor management app or a bug in
agentgen?
Robert Olivier
President
RJO Management, Inc.
More information about the AGENTPP
mailing list