ONTAP 9.13

to English version

廃止されたONTAPコマンドを使用するEMSイベント マッピングの更新

現在のEMSイベント マッピングが廃止されたONTAPコマンド セット(event destinationevent route)を使用して設定されている場合は、次の手順に従って event filterevent notificationevent notification destination の各コマンド セットを使用するようにマッピングを更新する必要があります。

手順
  1. event destination show コマンドを使用して、システム内のすべてのイベント送信先を表示します。

    cluster-1::event*> destination show
                                                                             Hide
    Name             Mail Dest.        SNMP Dest.         Syslog Dest.       Params
    ---------------- ----------------- ------------------ ------------------ ------
    allevents        -                 -                  -                  false
    asup             -                 -                  -                  false
    criticals        -                 -                  -                  false
    pager            -                 -                  -                  false
    test             test@xyz.com      -                  -                  false
    traphost         -                 -                  -                  false
    6 entries were displayed.
  2. 送信先ごとに、event route show -destinations <destination name> コマンドを使用してマッピングされているイベントを表示します。

    cluster-1::event*> route show -destinations test
                                                                   Freq    Time
    Message                          Severity       Destinations   Threshd Threshd
    -------------------------------- -------------- -------------- ------- -------
    raid.aggr.autoGrow.abort         NOTICE         test           0       0
    raid.aggr.autoGrow.success       NOTICE         test           0       0
    raid.aggr.lock.conflict          INFORMATIONAL  test           0       0
    raid.aggr.log.CP.count           DEBUG          test           0       0
    4 entries were displayed.
  3. 該当するイベントのサブセットをすべて含む event filter を作成します。 たとえば、raid.aggr.* イベントのみを含めるには、フィルターを作成するときに message-name パラメーターにワイルドカードを指定します。単一のイベント用のフィルターも作成できます。

    イベント フィルターは50個まで作成できます。
    cluster-1::event*> filter create -filter-name test_events
    
    cluster-1::event*> filter rule add -filter-name test_events -type include -message-name raid.aggr.*
    
    cluster-1::event*> filter show -filter-name test_events
    Filter Name Rule     Rule      Message Name           SNMP Trap Type  Severity
                Position Type
    ----------- -------- --------- ---------------------- --------------- --------
    test_events
                1        include   raid.aggr.*            *               *
                2        exclude   *                      *               *
    2 entries were displayed.
  4. event destination エンドポイント(SMTP / SNMP / syslog)ごとに、event notification destination を作成します。

    cluster-1::event*> notification destination create -name dest1 -email test@xyz.com
    
    cluster-1::event*> notification destination show
    Name            Type        Destination
    --------------  ----------  ---------------------
    dest1           email       test@xyz.com (via "localhost" from "admin@localhost", configured in "event config")
    snmp-traphost   snmp        - (from "system snmp traphost")
    2 entries were displayed.
  5. イベント フィルターをイベント通知の送信先にマッピングして、イベント通知を作成します。

    cluster-1::event*> notification create -filter-name asup_events -destinations dest1
    
    cluster-1::event*> notification show
    ID   Filter Name                     Destinations
    ---- ------------------------------  -----------------
    1    default-trap-events             snmp-traphost
    2    asup_events                     dest1
    2 entries were displayed.
  6. event route マッピングが設定されている event destination ごとに、手順1~5を繰り返します。

    SNMPの送信先に転送するイベントは、イベント通知の snmp-traphost 送信先にマッピングする必要があります。SNMPトラップホストの送信先では、システムで設定されたSNMPトラップホストが使用されます。
    cluster-1::event*> system snmp traphost add 10.234.166.135
    
    cluster-1::event*> system snmp traphost show
            scspr2410142014.gdl.englab.fujitsu.com (scspr2410142014.gdl.englab.fujitsu.com) <10.234.166.135>    Community: public
    
    cluster-1::event*> notification destination show -name snmp-traphost
    
                    Destination Name: snmp-traphost
                 Type of Destination: snmp
                         Destination: 10.234.166.135 (from "system snmp traphost")
     Server CA Certificates Present?: -
       Client Certificate Issuing CA: -
    Client Certificate Serial Number: -
           Client Certificate Valid?: -
Top of Page