72
logging-events
[coldstart |
warmstart |
authfailure |
portlinkchange]
[level]
or
no logging-events
[coldstart |
warmstart |
authfailure |
portlinkchange]
Global
configuration
mode
Set the level of each logging
events.
Level 7
Switch(config)#
logging-events coldstart 3
Switch(config)#
no logging-events coldstart
Logging-host
[server]
or
no logging-host
[server]
Global
configuration
mode
Add or delete the remote server
address
Switch(config)#
logging-host 192.168.16.5
Switch(config)# no
logging-host 192.168.16.5
logging facility
[value]
or
no logging facility
Global
configuration
mode
Set system log facility
23
Switch(config)#
logging facility 19
Switch(config)# no logging
facility
logging trap
[value]
or
no logging trap
Global
configuration
mode
Set system log trap
7
Switch(config)#
logging trap 4
Switch(config)# no logging trap
4
clear logging-local
[flash | ram]
Global
configuration
mode
Clear system log buffer
Switch(config)#
clear logging-local flash
logging sendmail
{host-0|host-1}
[server]
or
no logging
Global
configuration
mode
Set the SMTP server address
Switch(config)#
logging sendmail host-0
192.168.16.5
Switch(config)# no logging