> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of waji
> Sent: Wednesday, September 12, 2007 2:59 AM
> i need the information how to create the C code for the mib
> as under using MIB2c i had used the mib2c option but it dont
> show me the code for DrainTable under the Source table how
> can i get a code for a table under table.
*BZZZZT*
Sorry, but you can't do that. A MIB table contains only a series of
discrete items. If you want to associate N drain entries with each source
entry, there are two ways to go about it.
If the drains are unique to the source:
+--Source(3)
|
+--SourceTable(1)
| |
| +--SourceEntry(1)
| | Index: SourceID
| |
| +-- -R-- Integer32 SourceID(1)
| | Range: 0..1000
| +-- -R-- Integer32 ConfigID(2)
| Range: 0..1000
|
+--DrainTable(2)
|
+--DrainEntry(1)
| Index: SourceID, DrainID
|
+-- -R-- Integer32 SourceID(1)
| Range: 0..1000
+-- -R-- Integer32 DrainID(2)
| Range: 0..1000
+-- -R-- Integer32 ConfigID(3)
Range: 0..1000
If the drains can be applied to multiple sources:
+--Source(3)
|
+--SourceTable(1)
| |
| +--SourceEntry(1)
| | Index: SourceID
| |
| +-- -R-- Integer32 SourceID(1)
| | Range: 0..1000
| +-- -R-- Integer32 ConfigID(2)
| Range: 0..1000
|
+--DrainTable(2)
| |
| +--DrainEntry(1)
| | Index: DrainID
| |
| +-- -R-- Integer32 ID(1)
| | Range: 0..1000
| +-- -R-- Integer32 ConfigID(2)
| Range: 0..1000
|
+--SourceDrainMappingTable(3)
|
+--SourceDrainMappingEntry(1)
| Index: SourceID, DrainID
|
+-- -R-- Integer32 SourceID(1)
| Range: 0..1000
+-- -R-- Integer32 DrainID(2)
Range: 0..1000
HTH,
Mike
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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