For information about the output format options, see the snmptrapd(1M) man page.
The snmptrapd utility is an SNMP application that receives and logs SNMP TRAP messages. For example, the following snmptrapd command shows that a new domain was created (ldomTrapDesc = Ldom Created) with a name of ldg2 (ldomName = ldg2).
# /usr/sbin/snmptrapd -f -Le -F \ "TRAP from %B on %m/%l/%y at %h:%j:%k Enterprise=%N Type=%w SubType=%q\n with Varbinds: %v\nSecurity info:%P\n\n" localhost:162 NET-SNMP version 5.4.1 TRAP from localhost on 6/27/2012 at 12:13:48 Enterprise=SUN-LDOM-MIB::ldomMIBTraps Type=6 SubType=SUN-LDOM-MIB::ldomCreate with Varbinds: SUN-LDOM-MIB::ldomIndexNotif = INTEGER: 3 SUN-LDOM-MIB::ldomName = STRING: ldg2 SUN-LDOM-MIB::ldomTrapDesc = STRING: Ldom Created Security info:TRAP, SNMP v1, community public
Note that the –F option argument string is broken on to two lines for readability purposes.