Hi,

Can anybody explain to me the correct way of setting and retrieving details
for  a specific row in a mib table.

For example, I want to create a shared object to manage a table which holds
rows of data relating to counter values produced by a mail server.

Row 1 would hold status counters, such as total number of messages delivered
Row 2 would contain performance counters such as total number of messages
delivered in the last 10 seconds.

I want to be able to use snmpget to access just the performance counters
(i.e. all entries in the performance row), and also to access a specific
column value in that row.

So, lets say I define two entry objects in my table:


        razorgateSmtpStatusCountersEntry        OBJECT-TYPE
                SYNTAX          RazorgateSmtpCountersEntry
                MAX-ACCESS      not-accessible
                STATUS          current
                DESCRIPTION     "row holding values of status counters"
                INDEX           {  razorgateTableIndex  }
                ::=  { razorgateSmtpCountersTable 1 }


        razorgateSmtpPerformanceCountersEntry   OBJECT-TYPE
                SYNTAX          RazorgateSmtpCountersEntry
                MAX-ACCESS      not-accessible
                STATUS          current
                DESCRIPTION     "Row to hold values of performance counters"
                INDEX           {  razorgateTableIndex  }
                ::=  { razorgateSmtpCountersTable 2 }


So, the way we index rows in the table is by the razorgateTableIndex field.



For simplicity lets say my top level oid is 1.2.3

If I want to access the smtpdCountersTable I would use 1.2.3.1

If I wanted to access the first row in this table is it just a case of
using:

1.2.3.1.1

?

How then to I access a particular value in the first row, lets say total
number of messages delivered?

If I wanted to use names instead of numbers, how do I refer to a row in a
table?  What name matches the index value?

Lastly, when loading my data into the table in the data access functions of
my shared object, how do I distinguish between the individual rows in the
table.  In other words, if I get a get request for just the status counters
how do I decide that this should go in row 1 of the table.

Thanks,

Tim




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to