Help required for Custom Table Handler

Sharad Vasista <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Request direction towards any implementation in net snmp 5.4.1 which implements the custom handler for 
GET/ SET.
----------------------------------------------------------
My MIB table.

vsExTable OBJECT-TYPE
    SYNTAX     SEQUENCE OF VsExEntry
    MAX-ACCESS not-accessible
    STATUS     current
    DESCRIPTION
            "................"
    ::= { vsexample 3 }

vsExEntry OBJECT-TYPE
    SYNTAX     VsExEntry
    MAX-ACCESS not-accessible
    STATUS     current
    DESCRIPTION
            ".................."
    INDEX      { vsExIndex }
    ::= { vsExTable 1 }

VsExEntry ::= SEQUENCE {
    vsExIndex     INTEGER,
    vsExID        OBJECT IDENTIFIER,
    vsExDescr     DisplayString,
    vsExUpTime    TimeStamp
}

vsExIndex OBJECT-TYPE
    SYNTAX     INTEGER (1..2147483647)
    MAX-ACCESS not-accessible
    STATUS     current
    DESCRIPTION
            "....................."
    ::= { vsExEntry 1 }

vsExID OBJECT-TYPE
    SYNTAX     OBJECT IDENTIFIER
    MAX-ACCESS read-only
    STATUS     current
    DESCRIPTION    
            "..................."
    ::= { vsExEntry 2 }

vsExDescr OBJECT-TYPE
    SYNTAX     DisplayString
    MAX-ACCESS read-only
    STATUS     current
    DESCRIPTION
            "................."
    ::= { vsExEntry 3 }

vsExUpTime OBJECT-TYPE
    SYNTAX     TimeStamp
    MAX-ACCESS read-only
    STATUS     current
    DESCRIPTION
            "......................"
    ::= { vsExEntry 4 }

END
--------------------------------------------------------------------
I have created a mib2c file for my Table using mib2c.create-dataset.conf

The C file has a function "netsnmp_table_set_multi_add_default_row".
Now grepped for "netsnmp_table_set_multi_add_default_row" within "agent" directory and found a couple of examples

agent/mibgroup/disman/mteEventTable.c
agent/mibgroup/disman/mteEventNotificationTable.c

Here the mib2c created function netsnmp_table_set_multi_add_default_row(...) is present, as well as a handler  named mteEvent*Table_handler(.....)
But there is no implementation , just a return value as "return SNMP_ERR_NOERROR;" within the handler definition body.
------------------------------------------------------------------------------------------------------------------------------------------------------------
Searched further and came across this in the netSnmp wiki
 
agent/mibgroup/examples/netSnmpHostsTable.c

Here a version seems to have been implemented using  iterate.conf

How do I map this to the mib2c file created using mib2c.create-dataset.conf . Basically I want to implement the custom handler for GET/ SET. 



_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.