Applies to: NS-5GT, NS-5XP, NS-5XT, NS-25, NS-50, NS-204, NS-208, NS-5200, and NS-5400
Web User Interface (WebUI)
Command Line Interface (CLI)
As an alternative to using the WebUI method covered above, you can use the CLI method, instead, by typing the commands below:
set admin mail server-name smtp_server
smtp_server is either the name or IP address of the SMTP server that the firewall should use for sending out email.
Example: The following command specifies a SMTP server at IP address 10.1.10.10:
set admin mail server-name 10.1.10.10
set admin mail mail-addr1 email-address-1
Example: The following command configures the email address email@example.com to receive alerts and traffic logs.
set admin mail mail-addr1 firstname.lastname@example.org
set admin mail mail-addr2 email-address-2
Example: The following command configures the email address email@example.com, as well as the first specified email address, to receive alerts and traffic logs.
set admin mail mail-addr2 firstname.lastname@example.org
set admin mail alert
This command enables email notification for alarms. It has the same effect as checking the "Enable E-mail Notification for Alarms" field using the WebUI.
set admin mail traffic-log
This command generates a log of network traffic handled by the NetScreen device. The traffic log can contain a maximum of 4,096 entries. The NetScreen device sends a copy of the log file to each specified e-mail address This happens when the log is full, or every 24 hours, depending upon which occurs first.
As an example, the following commands could be used to achieve the same effect as the WebUI configuration method.
ns5gt-> set admin mail server-name mail.example.com ns5gt-> set admin mail mail-addr1 email@example.com ns5gt-> set admin mail mail-addr2 firstname.lastname@example.org ns5gt-> set admin mail alert ns5gt-> set admin mail traffic-log
Note: There must be at least one policy that has logging enabled for the NetScreen device to send out traffic log email.
If you wish to use TFTP to obtain the traffic log, see Send NetScreen Traffic Log to a TFTP Server.
Created: May 20, 2009