Configure SNMP Trap Rule Destinations and Properties

Before You Begin

To configure the destinations to which the SNMP traps are sent, follow these steps:

  1. Log in to the Oracle ILOM CLI.
  2. To display the current settings of the alert rule, type the show command.

    For example:

    -> show /SP/alertmgmt/rules/1
    /SP/alertmgmt/rules/1
       Targets:
     
       Properties:
          type = snmptrap
          level = disable
          destination = 0.0.0.0
          destination_port = 0
          community_or_username = public
          testrule = (Cannot show property)
     
       Commands:
          cd 
          set
          show
    

    Note:

    When you test an alert notification rule, Oracle ILOM will send a test from all configured SNMP traps. Oracle ILOM does not have the ability to filter SNMP traps by destination.
  3. To show the /SP/alertmgmt/rules directory, type:

    -> cd /SP/alertmgmt/rules

    ->show

    For example:

    -> cd /SP/alertmgmt/rules
    -> show
    /SP/alertmgmt/rules 
      Targets:
        1
        2
        .
        .
        .
        15
      Properties:
     
      Commands:
          cd
          show
    

    Choose a rule (from targets 1 through 15) for which you would like to configure a destination for SNMP traps, and go to that directory.

    For example:

    -> cd 4

  4. SNMP user accounts managing with the CLI To change the rule properties, within that rule directory, type the set command.

    To change the rule properties, within that rule directory, type the set command.

    For example, to set a rule to send critical traps to a management client using SNMP v2c using a community name of “public”, enter:

    ->set type=snmptrap level=critical destination= IPaddress_of_snmp_management_station destination_port=port snmp_version=2c community_or_username=public