Table creation, adding and deleting rows
Sathish Babu <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Team, I have attached my private mib file with this mail for your reference. Would like to know how to add a new row or to delete a row from the table. This table is with in the snmp sub-agent for data access. Also please suggest me which conf file should use with mib2c to generate code for this table. -- Thanks & Regards, Sathish. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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
TMRND-SW-DEF-VLAN-MIB.txt
(text/plain, 1.6 KB)
TMRND-SW-DEF-VLAN-MIB DEFINITIONS ::= BEGIN
--
-- Top-level infrastructure of the TMRnD EPON project enterprise MIB tree
--
IMPORTS
MODULE-IDENTITY, tmSwVlan FROM TMRND-SW-DEF-MIB;
--
-- TMRnD enterprise-specific management objects
--
tmSwVlan0 OBJECT IDENTIFIER ::= { tmSwVlan 0 }
--
-- A subtree specifically designed for private testing purposes.
-- No "public" management objects should ever be defined within this tree.
--
tmSwVlanTable0 OBJECT-TYPE
SYNTAX SEQUENCE OF TmSwVlanEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An example table that implements a wrapper around the
/etc/hosts file on a machine using the iterator helper API."
::= { tmSwVlan0 0 }
tmSwVlanEntry OBJECT-TYPE
SYNTAX TmSwVlanEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A host name mapped to an ip address"
INDEX { vlanId }
::= { tmSwVlanTable0 1 }
TmSwVlanEntry ::= SEQUENCE {
vlanId INTEGER,
vlanpbmp INTEGER,
vlanupbmp INTEGER,
}
vlanId OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A vlan id of the switch."
::= { tmSwVlanEntry 1 }
vlanpbmp OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"The tagged port pbmp."
::= { tmSwVlanEntry 2 }
vlanupbmp OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"The untagged port pbmp."
::= { tmSwVlanEntry 3 }
END