Mail Notification for the Status

Summary

Executing the "mail notify status exec" command sends out a mail notification containing the internal status of the router to the designated mail address.

Notes

Compatible Models & Firmware Revisions

Model Revision
RTX5000 Rev.14.00.15 or later
FWX120 Rev.11.03.16 or later
RTX810 Rev.11.01.15 or later

Details

Mail notification target

In order to use the mail notification for the status, you need to specify the content to be notified using the "mail notify trigger status" command.
Executing the "mail notify status exec" command sends out a mail notification as specified by the "mail notify trigger status" command.

Notification content that can be specified using the command

The following table shows the notification content you can specify using the "mail notify trigger status" command:

Interface
(interface)
show status lan1 - N
show status wan1 (only for models that support WAN1)
show status bri1 (only for models that support BRI)
show status pp (*)
show arp
show ipv6 address
show ipv6 neighbor cache
show status tunnel (*)
Routing
(routing)
show ip route
show ipv6 route
show ip rip table
show ipv6 rip table
show status ospf database (only for models that support OSPF)
show status ospf neighbor (only for models that support OSPF)
show status ospf interface (only for models that support OSPF)
show status ospf virtual-link (only for models that support OSPF)
show status bgp neighbor (only for models that support BGP)
VPN
(vpn)
show ipsec sa (only for models that support IPsec)
show ipsec sa gateway (only for models that support IPsec)
show ipsec pptp (only for models that support PPTP)
NAT
(nat)
show nat descriptor address all
Firewall
(firewall)
show ip connection (only for models that support dynamic filter)
show ipv6 connection (only for models that support dynamic filter)
show status ip inbound filter (only for models that support policy filter)
show status ipv6 inbound filter (only for models that support policy filter)
show status ip policy filter (only for models that support policy filter)
show status ipv6 policy filter (only for models that support policy filter)
show status ip policy service (only for models that support policy filter)
show status ipv6 policy service (only for models that support policy filter)
show ip intrusion detection
Configuration and log
(config-log)
show environment
show config
show status boot list
show status boot all)
show status packet-buffer
show log

(*) Notified only when each interface is set to "enable."

Trigger detection

Notification content to be sent by the "mail notify status exec" command executed after the first trigger is detected and before the time specified by the "notify-wait-time" option of the "mail template" command is sent out collectively in a single mail.
In addition, if the "mail notify status exec" command that has the same template ID specified by the "mail notify trigger status" command is executed before the wait time specified by the "mail template" command ("notify-wait-time" option) elapses, all triggers detected in the period are notified as one mail.

GUI

This section describes the GUI of the FWX120.

1. Mail Notification: Main screen

Main screen

A selection menu is displayed on the "Configure content of notifications" section on the main screen. You can navigate to the "Mail Notification for the "Intrusion Detection System" settings screen from the menu. (Refer to the above image)

2. Mail Notification: Settings screen

Settings Screen

You can configure the mail server to be used for mail notification.
Configuration via the above image is equivalent to the following commands:

  • mail server name ID NAME
  • mail server smtp ID ADDRESS [port=PORT] [smtp-auth USERNAME PASSWORD [AUTH_PROTOCOL] [pop-before-smtp]
  • mail server pop ID ADDRESS [port=PORT] PROTOCOL USERNAME PASSWORD

3. Mail Notification for the Status

  • mail notify ID TEMPLATE_ID trigger status TYPE [TYPE [...]]
  • mail template TEMPLATE_ID SERVER_ID "From: ADDRESS" "To:ADDRESS" ["Subject: SUBJECT"] ["Date: DATE"] ["MIME-Version:VERSION"]
  • ["Content-Type:CONTENT_TYPE"] [notify-log=SW] [notify-wait-time=SEC]

Command

Refer to the Command Reference for "Triggered Mail Notification Function".

Settings Examples

Here, you configure the mail server, mail template, and notification content.
Once the configuration is complete, you can send out a mail notification by executing the "mail notify status exec" command.

mail server name 1 (Server name)
mail server smtp 1 (SMTP server address)
mail template 1 1 From:(Sender's mail address) To:(Destination mail address) Subject:(Mail subject)
mail notify 1 1 trigger status interface


Example)
Model:  FWX120
Revision:  Rev.11.03.16
Name:  yamaha-fwx120-00a0de111111
Time:  2016/11/25 13:55:12
Template ID:  1


----- Result of executing the "show status lan1" comma-nd -----
show status lan1
LAN1
Description:
IP Address:                     192.168.100.1/24
Ethernet Address:               00:a0:de:ad:fa:7d
Operation mode setting:         Type (Link status)
               PORT1:           Auto Negotiation (1000BASE-T Full Duplex)
               PORT2:           Auto Negotiation (Link Down)
               PORT3:           Auto Negotiation (Link Down)
               PORT4:           Auto Negotiation (Link Down)
Maximum Transmission Unit(MTU): 1500 octets
Promiscuous mode:               OFF
Transmitted:                    3 packets (180 octets)
  IPv4(all/fastpath):           0 packet / 0 packet
  IPv6(all/fastpath):           1 packet / 0 packet
Received:                       2 packets (138 octets)
  IPv4:                         0 packet
  IPv6:                         1 packet

----- Result of executing the "show status lan2" command -----
  :
----- Result of executing the "show status tunnel 1" command -----
show status tunnel 1
TUNNEL[1]:
Description:
  Interface type: IPsec
  Current status is Offline, never connected.

Return to Top