Den 03-03-2014 06:30, Mohan Gorai skrev: > But the actual output is like below. >> Host: ****hostname*** (UDP: [xx.xx.xx.xx]:xxx) >> DISMAN-EVENT-MIB::sysUpTimeInstance 13:0:54:35.94 >> SNMPv2-MIB::snmpTrapOID.0 >> SNMPv2-SMI::enterprises.42.99999.0.99 >> SNMPv2-SMI::enterprises.42.99999.1 "TestTrap" >> SNMP-COMMUNITY-MIB::snmpTrapAddress.0 xx.xx.xx.xx >> SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 "public" >> SNMPv2-MIB::snmpTrapEnterprise.0 SNMPv2-SMI::enterprises.42.99999
This is actually the contents of a mail sent by traptoemail. The data passed to traptoemail would have been ****hostname*** UDP: [xx.xx.xx.xx]:xxx DISMAN-EVENT-MIB::sysUpTimeInstance 13:0:54:35.94 SNMPv2-MIB::snmpTrapOID.0 SNMPv2-SMI::enterprises.42.99999.0.99 et.c. The format is configurable, using the "format execute string" config directive, the default being "format execute %B\n%b\n%V\n%v\n" (but if you change that, you should probably use something else than traptoemail to process it) But there seems to need some docs for the format directive :-( /Niels -- Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders