Re: How to generate code from top of mib using mib2c

Sharad Chandra <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization NIKSUN
Message-ID <[email protected]>
 ,---- [Sharad Chandra wrote:]
| Hi ,
|

| OB1
|
| |-----------------------OB2
| |                         ---Table1
| |                        --- Table2
| |-----------------OB3
| |
| |                  |-----------OB4
| |                  |
| |                  |              |-----Table3
| |                  |              |-----Table4
| |                  |
| |                  |--------OB5
|
| Or similar
| So i want mib2c to generate code at OB1.
| OB => object indentifier
| Table => object type # it has table entry and column name
`----

I need some help How to create Makefile and subagent file if i created the 
code using m2c.iterator.conf m2c.container.conf or m2c.iterator_access.conf.

One thing i find following lines in iterator.conf

@if "$cache" ne "" @
/* Example cache handling - set up linked list from a suitable file */
int
${i}_load( netsnmp_cache *cache, void *vmagic ) {
    FILE *fp;

but mib2c is not generating _load function. how to generate it, I tried to 
find it in man mib2c but failed to ans myself. what is this parameter $cache?

It will be very helpful if you tell some tutorial other than ifTable 
implementation or detail or the code flow at least where program goes to 
create and update tables.

--

Thanks in advance.
Sharad Chandra

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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.