mib - Is it possible to send table in SNMP Trap? -


i'm using net-snmp library (c/c++) write snmp trap sender. basic object types, it's quite simple add object trap:

 snmp_varlist_add_variable(notification_vars, mibname, length, mibtype, mibvalue, len); 

where 'mibname' being oid, 'mibvalue' value string , 'mibtype' asn type. now, how indexed table? there support this? how add rows elements trap?

or there simpler alternatives this?

it bad practice send entire snmp table within snmp trap. snmp tables pretty big in terms of number of oid instances. problem snmp uses udp transport protocol. snmp allows pdus sized mtu of network. buffer should big largest anticipated packet, should correspond mtu, if possible. example, ethernet allows 1500 byte frame payloads.

so pdu max size 10 varbinds in average.

the common use case scenario here send out snmp trap notifying user has changed/happened. user need fetch data table using get-next/get-bulk upon trap reception details of event.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -