Hi,
That I know but I want to send some description of error messages along with snmp trap pdu. Is it possible to send such type of error descrption with snmp trap ? How NMS will identify that this is the error snmp trap pdu ?
Jigar.
Dave Shield <[EMAIL PROTECTED]> wrote:
On Thu, 2005-07-28 at 05:22 -0700, jigar contractor wrote:
> I want to send some of information along with snmp trap command to the
> trap listener. How would I add description to snmp trap PDU so that I
> can send it to trap listener.
By adding one or more varbinds to the end of the standard varbind list.
For example - the snmptrap command given in the tutorial
(http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html) is:
snmptrap -v 1 -c public host TRAP-TEST-MIB::demotraps
localhost 6 17 ''
SNMPv2-MIB::sysLocation.0 s "Just here"
This is the *minimum* payload that must be send with this trap.
But it's perfectly OK to add other varbinds as well:
snmptrap -v 1 -c public host TRAP-TEST-MIB::demotraps
localhost 6 17 ''
SNMPv2-MIB::sysLocation.0 s "Just here"
SNMPv2-MIB::sysContact.0 s "Dave"
Dave
Start your day with Yahoo! - make it your home page
