Hi Dave,
*Thanks for your valuable feedback.*
*
*
* * I have worked on SNMP tutorial section i,e i compiled
agent/mibgroup/examples/notification.c with the SNMP agent. This will send
notification for every 30 sec.
I checked it is working.
I want to send multiple traps based on some condition(if condition
satisfies then only send the trap otherwise not). For each trap we need to
do packing of OIDs , variable bindings and sending trap, but this will
increase code size. *How can i handle this situation in smarter way so
that the code size can be reduced ?*
*Please suggest me on this.*
*
*
*Thanks in Advance*
*Prashant Nirni*
On 29 November 2011 15:04, prashant n <[email protected]> wrote:
> I want to print above textual OID's as numeric OID's. So what i need to
> change in the code notification.c
Nothing
SNMP works with numeric OIDs throughout.
How these are display/logged/etc is purely the concern of the
receiving application
> Please suggest me on this.
$ man snmptrapd
-O [abeEfnqQsStTuUvxX]
Specifies how MIB objects and other output should be
displayed.
See the section OUTPUT OPTIONS in the snmpcmd(1)
manual page for details.
Dave
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders