138
Syslog Configuration
Local Mode
Switch(config)# log syslog local
Server Mode
Switch(config)# log syslog remote 192.168.2.200
Both
Switch(config)# log syslog local
Switch(config)# log syslog remote 192.168.2.200
Disable
Switch(config)# no log syslog local
SMTP Configuration
SMTP Enable
Switch(config)# smtp-server enable email-alert
SMTP Email Alert set enable ok.
Sender mail
Switch(config)# smtp-server server
192.168.20.200
ACCOUNT SMTP server mail account, ex:
Switch(config)# smtp-server server
192.168.20.200 [email protected]
SMTP Email Alert set Server: 192.168.20.200,
Account: [email protected] ok.
Receiver mail
Switch(config)# smtp-server receipt 1
SMTP Email Alert set receipt 1:
Authentication
with username and
password
Switch(config)# smtp-server authentication
username admin password admin
SMTP Email Alert set authentication Username:
admin, Password: admin
Note: You can assign string to username and
password.
Disable SMTP
Switch(config)# no smtp-server enable
email-alert
SMTP Email Alert set disable ok.
Disable
Authentication
Switch(config)# no smtp-server authentication
SMTP Email Alert set Authentication disable ok.
Dispaly
Switch# sh smtp-server
SMTP Email Alert is Enabled
Server: 192.168.20.200, Account:
Authentication: Enabled