$Date: 2023/07/06 20:30:28 $
mail notify status execコマンドを実行すると、設定したメールアドレスに対してルータの内部状態をメールで通知します。
機種 | リビジョン | GUI対応 |
---|---|---|
vRX VMware ESXi版 | すべてのリビジョン | × |
vRX Amazon EC2版 | × | |
RTX3510 | × | |
RTX1300 | ○ | |
RTX1220 | ○ | |
RTX830 | ○ | |
NVR510 | ○ | |
NVR700W | ○ | |
RTX1210 | ○ | |
RTX5000 | × | |
RTX3500 | × | |
FWX120 | × | |
RTX810 | × | |
NVR500 | × | |
RTX1200 | ○ | |
SRT100 | ○ |
状態メール通知を使用するためには、mail notify trigger statusコマンドで通知する内容を指定することが必要です。
mail notify status execコマンドを実行すると、mail notify trigger statusコマンドで指定した内容がメールで通知されます。
mail notify trigger statusコマンドで指定できる通知内容は、以下の表に基づきます。
インターフェース (interface) |
show status lan1〜N show status wan1 (WAN1対応機種のみ) show status bri1 (BRI対応機種のみ) show status pp (※) show arp show ipv6 address show ipv6 neighbor cache show status tunnel (※) |
ルーティング (routing) |
show ip route show ipv6 route show ip rip table show ipv6 rip table show status ospf database (OSPF対応機種のみ) show status ospf neighbor (OSPF対応機種のみ) show status ospf interface (OSPF対応機種のみ) show status ospf virtual-link (OSPF対応機種のみ) show status bgp neighbor (BGP対応機種のみ) |
VPN (vpn) |
show ipsec sa (IPsec対応機種のみ) show ipsec sa gateway (IPsec対応機種のみ) show status l2tp (L2TP対応機種のみ) show status pptp (PPTP対応機種のみ) |
NAT (nat) |
show nat descriptor address all |
ファイアウォール (firewall) |
show ip connection (動的フィルタ対応機種のみ) show ipv6 connection (動的フィルタ対応機種のみ) show status ip inbound filter (ポリシーフィルタ対応機種のみ) show status ipv6 inbound filter (ポリシーフィルタ対応機種のみ) show status ip policy filter (ポリシーフィルタ対応機種のみ) show status ipv6 policy filter (ポリシーフィルタ対応機種のみ) show status ip policy service (ポリシーフィルタ対応機種のみ) show status ipv6 policy service (ポリシーフィルタ対応機種のみ) show ip intrusion detection |
設定内容・ログ (config-log) |
show environment show config show status boot (SRT100) show status boot list (SRT100以外) show status boot all (SRT100以外) show status packet-buffer show log |
(※)各インターフェースがenableに設定されている場合のみ、通知対象となります。
最初のトリガを検出してから、mail templateコマンドのnotify-wait-timeオプションで指定した時間内に実行されたmail notify status execコマンドの通知内容については、一通のメールにまとめて通知されます。
また、mail templateコマンドで設定した待機時間(notify-wait-timeオプション)内に、mail notify trigger status コマンドで同じテンプレートIDを指定しているmail notify status execコマンドを実行した場合は、その期間内に検出した全てのトリガが同一のメールで通知されます。
1. メール通知機能 メイン画面
2. メール通知機能 設定画面
メール通知機能で使用するメールサーバーを設定します。(GUIのポート番号対応はRev.10.00.27以降)
上図で設定されるコマンドは以下。
3. 状態メール通知機能 設定画面
状態メール通知機能の通知内容を設定します。
上図で設定されるコマンドは以下。
GUIから通知内容を設定すると、notify-wait-timeオプションは1秒で設定されます。
4. 状態メール通知機能 手動実行画面
トップページの全体情報に「レポートの作成」画面が表示されるので、"作成"ボタンを押すと、状態メール通知の手動実行画面に移動します。
状態メール通知の設定がある場合は、"管理者にメールで送信する"が表示されます。
実行画面で"管理者にメールで送信する"を選択して、"実行"ボタンを押すとメールが送信されます。
前回のメール送信から10分以上経過しないと、メール送信は実行できません。
メールサーバー、メールテンプレートおよび通知内容の設定を行います。
設定が完了した後、mail notify status execコマンドを実行するとメールが通知されます。
mail server name 1 (サーバー名) mail server smtp 1 (SMTPサーバーのアドレス) mail template 1 1 From:(送信元メールアドレス) To:(送信先メールアドレス) Subject:(サブジェクト名) mail notify 1 1 trigger status interface 例) Model: SRT100 Revision: Rev.10.00.27 Name: yamaha-srt100-00a0de07fa8f Time: 2007/11/07 14:54:44 Template ID: 1 ----- "show status lan1" コマンドの実行結果 ----- show status lan1 LAN1 説明: イーサネットアドレス: 00:a1:b2:c3:d4:e5 動作モード設定: Type (Link status) PORT1: Auto Negotiation (Link Down) PORT2: Auto Negotiation (100BASE-TX Full Duplex) PORT3: Auto Negotiation (Link Down) PORT4: Auto Negotiation (Link Down) 最大パケット長(MTU): 1500 オクテット プロミスキャスモード: OFF 送信パケット: 1043 パケット(728290 オクテット) IPv4(全体/ファストパス): 1033 パケット / 26 パケット IPv6(全体/ファストパス): 1 パケット / 0 パケット 受信パケット: 1062 パケット(125947 オクテット) IPv4: 1026 パケット IPv6: 10 パケット 未サポートパケットの受信: 17 ----- "show status lan2" コマンドの実行結果 ----- : ----- "show status tunnel 1" コマンドの実行結果 ----- show status tunnel 1 TUNNEL[1]: 説明: インタフェースの種類: IPsec トンネルインタフェースは一度も接続されていません