SNMP Subagent Programmer's Guide

Programming Tutorials
SNMP Subagent Programmer’s Guide—119728 2-59
Indexed Trap Generator
tblTrap OBJECT IDENTIFIER ::= { peer-demos 9 }
tblTrapCards OBJECT-TYPE
SYNTAX Gauge
ACCESS read-only
C_STRUCT master, FIELD card_count
STATUS mandatory
DESCRIPTION
"The tblTrapCards variable reports the number of cards
in the tblTrapTable."
::= { tblTrap 1 }
tblTrapPorts OBJECT-TYPE
SYNTAX Gauge
ACCESS read-only
C_STRUCT master, FIELD port_count
STATUS mandatory
DESCRIPTION
"The tblTrapPorts variable reports the maximum number
of ports held by any card in the tblTrapTable."
::= { tblTrap 2 }
tblTrapTable OBJECT-TYPE
SYNTAX SEQUENCE OF TableEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"The tblTrapTable table consists of entries, one for
each port of each card."
::= { tblTrap 3 }
tblTrapTableEntry OBJECT-TYPE
SYNTAX TableEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"Each tblTrapEntry holds the statistics for one port
on some card. These entries are indexed by card and
port number."
INDEX { cardNumber, portNumber }
C_NEXT_FUNC next_entry
::= { tblTrapTable 1 }
Example 2-12. Indexed Trap Generator MIB Definition (page 2 of 3)