Sorry, I forgot to respond to all.
I see what you mean, and that's the way I want to do, but I don't really
understand how can I do.
I do that :
snmpwalk -v 2c -c public DestHost TrapEvenLogType
But then, how can I store the relevant index ?
Thank you,
François
2009/8/12 Dave Shield <[email protected]>
> 2009/8/12 François Dumont <[email protected]>:
> > But as you can see, this table contains the last 1000 traps. I would like
> to
> > get only the ones which trapEventLogType is "LinkUp" or "LinkDown". How
> can
> > I do that ?
>
> Walk the trapEventLogType column, and look for entries with the value
> 'LinkUp' or 'LinkDown'. (Whatever value those might happen to be).
>
> Then extract the relevant index value from the OID returned,
> and use this to retrieve the other columns of interest.
>
> Given how the table has been indexed, there's no real alternative.
>
> I'm also a little concerned that this table seems to be using an INTEGER
> to identify the traps being logged, since notifications are typically
> specified by an OID. A single integer value simply is not sufficient.
> But that's down to the people who designed this particular MIB.
>
> Dave
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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