RE: need help

This is a discussion on RE: need help within the SNMP Users forums, part of the Networking and Network Related category; > From: net-snmp-users-bounces@lists.sourceforge.net > [mailto:net-snmp-users-bounces@lists.sourceforge.net] On > ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-13-2007
Mike Ayers
 
Posts: n/a
Default RE: need help


> From: net-snmp-users-bounces@lists.sourceforge.net
> [mailto:net-snmp-users-bounces@lists.sourceforge.net] 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0