User's Manual
Chapter 36 Logs
NXC CLI Reference Guide
245
36.1.4.1 E-mail Profile Command Examples
The following commands set up e-mail log 1.
[no] logging mail <1..2> {send-log-to | send-
alerts-to} e_mail
Sets the e-mail address for logs or alerts. The no
command clears the specified field.
e_mail: You can use up to 63 alphanumeric
characters, underscores (_), or dashes (-), and you
must use the @ character.
[no] logging mail <1..2> subject subject Sets the subject line when the NXC mails to the
specified e-mail profile. The
no command clears
this field.
subject: You can use up to 60 alphanumeric
characters, underscores (_), dashes (-), or
!@#$%*()+=;:’,./ characters.
[no] logging mail <1..2> category module_name
level {alert | all}
Specifies what kind of information is logged for the
specified category. The
no command disables
logging for the specified category.
[no] logging mail <1..2> from e_mail Sets the e-mail address from which the outgoing e-
mail is delivered. The
no command clears this
field.
[no] logging mail <1..2> schedule {full |
hourly}
Sets the e-mail schedule for the specified e-mail
profile. The
no command clears the schedule field.
logging mail <1..2> schedule daily hour
<0..23> minute <0..59>
Sets a daily e-mail schedule for the specified e-mail
profile.
logging mail <1..2> schedule weekly day day
hour <0..23> minute <0..59>
Sets a weekly e-mail schedule for the specified e-
mail profile.
day: sun | mon | tue | wed | thu | fri | sat
logging mail sending_now Sends mail immediately, according to the current
settings.
Table 142 logging Commands: E-mail Profile Settings (continued)
COMMAND DESCRIPTION
Router# configure terminal
Router(config)# logging mail 1 address mail.zyxel.com.tw
Router(config)# logging mail 1 subject AAA
Router(config)# logging mail 1 authentication username lachang.li password
XXXXXX
Router(config)# logging mail 1 send-log-to lachang.li@zyxel.com.tw
Router(config)# logging mail 1 send-alerts-to lachang.li@zyxel.com.tw
Router(config)# logging mail 1 from lachang.li@zyxel.com.tw
Router(config)# logging mail 1 schedule weekly day mon hour 3 minute 3
Router(config)# logging mail 1