Chapter 36 Logs

 

 

Table 142 logging Commands: E-mail Profile Settings (continued)

COMMAND

DESCRIPTION

[no] logging mail <1..2> {send-log-to send-

Sets the e-mail address for logs or alerts. The no

alerts-to} e_mail

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

Specifies what kind of information is logged for the

level {alert all}

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

Sets the e-mail schedule for the specified e-mail

hourly}

profile. The no command clears the schedule field.

logging mail <1..2> schedule daily hour

Sets a daily e-mail schedule for the specified e-mail

<0..23> minute <0..59>

profile.

logging mail <1..2> schedule weekly day day

Sets a weekly e-mail schedule for the specified e-

hour <0..23> minute <0..59>

mail profile.

 

day: sun mon tue wed thu fri sat

logging mail sending_now

Sends mail immediately, according to the current

 

settings.

36.1.4.1 E-mail Profile Command Examples

The following commands set up e-mail log 1.

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

 

245

NXC CLI Reference Guide