Sun N1 System Manager 1.1 管理ガイド

Procedure通知を作成、テストする

手順
  1. N1 System Manager にログインします。

    詳細は、「N1 System Manager のコマンド行にアクセスする」を参照してください。

  2. 次のコマンドを入力します。


    N1-ok> create notification notification topic topic
    type type destination destination
    

    通知が作成されて有効になります。詳細および有効な項目については、『Sun N1 System Manager 1.1 コマンド行レファレンスマニュアル』「create notification」を参照してください。

  3. 次のコマンドを入力します。


    N1-ok> start notification notification test
    

    テスト用の通知メッセージが送信されます。詳細は、『Sun N1 System Manager 1.1 コマンド行レファレンスマニュアル』「start notification」を参照してください。


例 5–18 電子メール通知の作成

この例は、物理しきい値を超過したときに電子メールで送信する通知を作成する方法を示しています。この通知名を test2、送信先の電子メールアドレスを nobody@sun.com とします。


N1-ok> create notification test2 destination nobody@sun.com
topic EReport.Physical.ThresholdExceeded type email

通知が作成されtことを確認するために、show notification コマンドを使用します。


N1-ok> show notification
Name    Event Topic                         Destination       State
test2   EReport.Physical.ThresholdExceeded  nobody@sun.com     enabled 


例 5–19 SNMP 通知の作成

この例は、物理しきい値を超過したときに SNMP で送信する通知を作成する方法を示しています。この通知名を test23、送信先の SNMP アドレスを sun.com とします。


N1-ok> create notification test23 destination sun.com
topic EReport.Physical.ThresholdExceeded type snmp

通知が作成されtことを確認するために、show notification コマンドを使用します。


N1-ok> show notification
Name    Event Topic                         Destination  State
test23  EReport.Physical.ThresholdExceeded  sun.com     enabled