Configuring the SNMP Subscriber for Fault Notification

Use the ALTER CELL or ALTER DBSERVER commands to configure SNMP trap destinations for Exadata servers.

  1. Configure the SNMP subscriber on each database server.
    1. Log in to the database server as the root user.
    2. Retrieve the current SNMP subscriber configuration for the server.
      # dbmcli -e list dbserver attributes snmpsubscriber

      If the SNMP subscriber has not been configured, the operating system prompt reappears without displaying any information.

    3. Modify the snmpSubscriber attribute for the server.

      If you want to add only a single SNMP subscriber for Oracle ASR, then enter a command similar to the following:

      # dbmcli -e alter dbserver snmpSubscriber="((host='asrm1.example.com',port=162,
      community=public,type=asr,fromIP='management_IP_addr',asrmPort=ASR_Mgr_http_or_https_port))"

      If you need to add multiple fault notification destinations, then specify multiple SNMP subscribers using a comma-delimited list. For example:

      # dbmcli -e alter dbserver snmpSubscriber="((host='asrm1.example.com',port=162,
      community=public,type=asr,fromIP='management_IP_addr',asrmPort=ASR_Mgr_http_or_https_port),
      (host='asrm2.example.com',port=162,community=public,type=asr,fromIP='management_IP_addr',
      asrmPort=ASR_Mgr_http_or_https_port))"

      Note:

      • If you want to use ASR in conjunction with SNMP v3, modify the command to specify type=v3asr along with a specific SNMP user. See Using Oracle ASR with SNMP v3.

      • To support automatic diagnostic package uploads, you must set fromIP on the database nodes to the value of the IP address of the management network interface.

      • By default, the specified snmpSubscriber value replaces any previous configured value. If the snmpSubscriber value is already configured, and you want to add to the list of SNMP targets, then use the += operator instead of =.

        For example:

        alter dbserver snmpSubscriber+="snmpSubscriber_value"
    4. Verify the SNMP subscriber attribute has been updated on the server.
      
      # dbmcli -e list dbserver attributes snmpsubscriber
  2. Configure the SNMP subscriber on each Oracle Exadata Storage Server.
    1. Log in to the storage server as celladmin, or an equivalent OS user.
    2. Retrieve the current SNMP subscriber configuration for the server.
      # cellcli -e list cell attributes snmpsubscriber

      If the SNMP subscriber has not been configured, the operating system prompt reappears without displaying any information.

    3. Modify the snmpSubscriber attribute for the server.

      If you want to add only a single SNMP subscriber for Oracle ASR, then enter a command similar to the following:

      # cellcli -e alter cell snmpSubscriber="((host='asrm1.example.com',port=162,
      community=public,type=asr,fromIP='management_IP_addr',asrmPort=ASR_Mgr_http_or_https_port))"

      If you need to add multiple fault notification destinations, then specify multiple SNMP subscribers using a comma-delimited list. For example:

      # cellcli -e alter cell snmpSubscriber="((host='asrm1.example.com',port=162,
      community=public,type=asr,fromIP='management_IP_addr',asrmPort=ASR_Mgr_http_or_https_port),
      (host='asrm2.example.com',port=162,community=public,type=asr,fromIP='management_IP_addr',
      asrmPort=ASR_Mgr_http_or_https_port))"

      Note:

      • If you want to use ASR in conjunction with SNMP v3, modify the command to specify type=v3asr along with a specific SNMP user. See Using Oracle ASR with SNMP v3.

      • To support automatic diagnostic package uploads, you must set fromIP on the database nodes to the value of the IP address of the management network interface.

      • By default, the specified snmpSubscriber value replaces any previous configured value. If the snmpSubscriber value is already configured, and you want to add to the list of SNMP targets, then use the += operator instead of =.

        For example:

        alter cell snmpSubscriber+="snmpSubscriber_value"
    4. Verify the SNMP subscriber attribute has been updated on the server.
      
      # cellcli -e list cell attributes snmpsubscriber

Alternatively, you can use the dcli utility to run each command on a specified group of servers.