On 20 Dec 2007 06:21:08 -0000, vishal_nitr <[EMAIL PROTECTED]> wrote:
> Hi Dave,
> Sorry to say but I didn't get what exactly you are trying to say.
> Can you explain more on it.
You say that you want to send a trap containing table objects.
This typically means that when something happens related to
(say) the second entry of a table, then the trap should include
varbinds taken from the second row of that table.
The template code generated by mib2c cannot handle this.
All it has to work with is the MIB definitions, which say that
the trap should contain particular column objects. It can't
know that it should send values from the second row of the table
rather than the third row, etc.
The simplest way to handle this is to tweak the "send_my_trap()"
routine, so that it takes information about which row is required.
So instead of
int send_my_trap( void ) { ... }
you'd have
int send_my_trap( int index ) { .... }
and then use this index parameter when setting up the contents
of the trap. You can also do something similar to pass in the
values of the variables, if necessary.
Dave
-------------------------------------------------------------------------
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://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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