Go to main content

Oracle® VM Server for SPARC 3.6 Management Information Base User's Guide

Exit Print View

Updated: August 2018
 
 

How to Receive Traps

  • Start the SNMP trap daemon utility.

    For information about the output format options, see the snmptrapd(8) 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.