Thanks for your reply. I have put my reply and further queries inline.
I have added the MIB file again with description
vsExTable OBJECT-TYPE
    SYNTAX     SEQUENCE OF VsExEntry
    MAX-ACCESS not-accessible
    STATUS     current
    DESCRIPTION
            "The table of Blades which are running on the BladeCenter"
    ::= { 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
            "The Blade number, which can go from value 
             1 to  maximum number of blades on the BladeCenter
             i.e. 10"
    ::= { vsExEntry 1 }

vsExID OBJECT-TYPE
    SYNTAX     OBJECT IDENTIFIER
    MAX-ACCESS read-only
    STATUS     current
    DESCRIPTION    
            "The Identifier for this blade"
    ::= { vsExEntry 2 }

vsExDescr OBJECT-TYPE
    SYNTAX     DisplayString
    MAX-ACCESS read-only
    STATUS     current
    DESCRIPTION
            "A short description of the Blade, which is of 
             form BladeID:ProcessorSpeed example being UT300R2U:300"
    ::= { vsExEntry 3 }

vsExUpTime OBJECT-TYPE
    SYNTAX     TimeStamp
    MAX-ACCESS read-only
    STATUS     current
    DESCRIPTION
            "The time in seconds since this blade is up and running"
    ::= { vsExEntry 4 }

END 


> 2009/9/2 Sharad Vasista <[email protected]>:
> > I have created a mib2c file for my Table using mib2c.create-dataset.conf
> 
> 
> > 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.
> 
> The point about the 'dataset' helper is that almost all of the processing
> is done by the helper chain handlers.   Values/rows are created via SET
> requests, and the individual values are supplied by the dataset helper
> itself.   There's rarely any need for the user-supplied handler to do anything
> (and most dataset-based implementations might well omit the MIB-specific
> handler altogether).
> 
> The downside is that working with individual column values is fairly
> cumbersome.   That's one of the reasons why the disman/mteEvent*
> code you mention has been superceded by the disman/event/*
> implementation - which uses 'mib2c.table_data.conf' instead.
> This still uses the helper handler to determine which row of the
> table is required, but processes the columns of this row within the
> MIB-specific handler.

Thank you, I shall look and try to understand how the processing 
takes place for GET works by regenerating mib2c files using 
mib2c.table_data.conf

As I understand, for my custom Table handler, I would need to
1. Iterate through each request
2. Switch based on the column 
3. Get the value for my table
4. Do a snmp_set_var_typed_value for that value.
(is there some step that I have missed to do ?)

> > 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.
> 
> The first question is - where will the data for this table come from?
> Presumably it won't be populated via SNMP SET requests (since the
> objects are defined as "read-only").   But you've deleted all of the
> descriptions, so it's impossible to tell what these objects might refer to.
> 
> Dave

This data comes in from the BladeCenter kernel, which is why I had mentioned 
read_only.
Query: If a new blade is added, how do I add a row for each new blade 
Currently we have a linked list thats appended with a new node. 
Does net snmp provide something by which a new linked list node results in a 
new row being added to the table .

Thanks N Regards
Sharad

_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009
------------------------------------------------------------------------------
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

Reply via email to