Skip to main content
日本語は機械翻訳による参考訳です。内容に矛盾や不一致があった場合には、英語の内容が優先されます。

廃止された ONTAP コマンドから EMS イベントマッピングを更新します

共同作成者

廃止されたONTAP コマンドセットを使用してEMSイベントマッピングが設定されている場合 (event destinationevent route`を使用するには、この手順 に従ってマッピングを更新する必要があります `event filterevent notification`および `event 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 notification destination をクリックします event destination エンドポイント(SMTP、SNMP、syslogなど)

    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. それぞれについて、手順1 ~ 5を繰り返します event destination が搭載されています event route マッピング:

    メモ 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.netapp.com (scspr2410142014.gdl.englab.netapp.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?: -