On 31 March 2011 07:48, akshata s harkantra <[email protected]> wrote: > I need to send a message or string using snmptrap command to the receiver end. > snmptrap -v 2c -c public "ipaddress" sysDescr.0
No. The OID that you send with snmptrap must be the OID of a *notification* object. (i.e. one defined using NOTIFICATION-TYPE) Something like SNMPv2-MIB::coldStart or IF-MIB::linkUp You can't send an arbitrary OID as the OID of the trap. You can *add* varbinds to the payload of the trap (starting with the list of objects defined in the MIB file, and adding any arbitrary varbinds after this list). But you do need to identify the notification first. See any book on SNMP for more details. Dave ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
