C
HAPTER
24
| System Management Commands
Event Logging
– 610 –
EVENT LOGGING
This section describes commands used to configure event logging on the
switch.
logging facility This command sets the facility type for remote logging of syslog messages.
Use the no form to return the type to the default.
SYNTAX
logging facility type
no logging facility
type - A number that indicates the facility used by the syslog server
to dispatch log messages to an appropriate service. (Range: 16-23)
DEFAULT SETTING
23
COMMAND MODE
Global Configuration
COMMAND USAGE
The command specifies the facility type tag sent in syslog messages. (See
RFC 3164.) This type has no effect on the kind of messages reported by
the switch. However, it may be used by the syslog server to sort messages
or to store messages in the corresponding database.
EXAMPLE
Console(config)#logging facility 19
Console(config)#
Table 39: Event Logging Commands
Command Function Mode
logging facility Sets the facility type for remote logging of syslog
messages
GC
logging history Limits syslog messages saved to switch memory
based on severity
GC
logging host Adds a syslog server host IP address that will receive
logging messages
GC
logging on Controls logging of error messages GC
logging trap Limits syslog messages saved to a remote server
based on severity
GC
clear log Clears messages from the logging buffer PE
show log Displays log messages PE
show logging Displays the state of logging PE