Go to main content

Oracle® ILOM Protocol Management Reference for SNMP and IPMI Firmware Release 3.2.x

Exit Print View

Updated: January 2017
 
 

snmptrapd Command

snmptrapd is an SNMP application that receives and logs SNMP trap and inform messages. Before your system can receive such messages, you must configure the trap daemon to listen for these messages.

To configure a trap daemon:

  1. Configure an SNMP trap destination.

    The following example shows how to use the snmpset command to configure an snmptrapd daemon:

    % snmpset  SNMP_agent ilomCtrlAlertType.1 i 2 ilomCtrlAlertSeverity.1 i 2 
    ilomCtrlAlertDestinationIP.1 a dest_ipaddress ilomCtrlAlertDestinationPort.1 i 
    port_number ilomCtrlAlertSNMPCommunityOrUsername.1 s private 
    ilomCtrlAlertSNMPVersion.1 i 2
    SUN-ILOM-CONTROL-MIB::ilomCtrlAlertType.1 = INTEGER: snmptrap(2)
    SUN-ILOM-CONTROL-MIB::ilomCtrlAlertSeverity.1 = INTEGER: critical(2)
    SUN-ILOM-CONTROL-MIB::ilomCtrlAlertDestinationIP.1 = IpAddress: dest_ipaddress
    SUN-ILOM-CONTROL-MIB::ilomCtrlAlertDestinationPort.1 = INTEGER: port_number
    SUN-ILOM-CONTROL-MIB::ilomCtrlAlertSNMPCommunityOrUsername.1 = STRING: private
    SUN-ILOM-CONTROL-MIB::ilomCtrlAlertSNMPVersion.1 = INTEGER: v2c(2)
    
  2. Start the trap receiver application, snmptrapd.

  3. Generate a test trap to verify that traps are being sent by the agent (on the managed node) and received by the trap receiver (the management station).

    While the daemon is running, log in to the Oracle ILOM CLI on the host that is running the SNMP agent, and type the following command:

    -> set /SP/alertmgmt/rules/n testrule=true


    Note -  It is important to test the trap daemon to make sure it is configured properly.

    The following screen shows a sample output when a testalert trap is received at the management station:

    SUN-ILOM-CONTROL-MIB::ilom.103.2.1.20.0 = STRING: "This is a test trap"