AMX NXA-ENET24 Switch User Manual


 
CLI (Command Line Interface)
183
NXA-ENET24 - Software Management Guide
Event Logging Commands (Cont.)
Command Function
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
[no] logging facility type
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 mes-
sages or to store messages in the corresponding database.
Example:
Console(config)#logging facility 19
Console(config)#
logging trap
This command enables the
logging of system
messages to a remote
server, or limits the syslog
messages saved to a
remote server based on
severity.
Use this command without
a specified level to enable
remote logging.
Use the no form to disable
remote logging.
Syntax
logging trap [level]
no logging trap
level - One of the level arguments listed below. Messages sent include the
selected level up through level 0.
Default Setting:
Enabled
Level 7 - 0
Command Mode: Global Configuration
Command Usage:
Using this command with a specified level enables remote logging and sets the
minimum severity level to be saved.
Using this command without a specified level also enables remote logging, but
restores the minimum severity level to the default.
Example:
Console(config)#logging trap 4
Console(config)#
clear logging
This command clears
messages from the log
buffer.
Syntax
clear logging [flash | ram]
flash - Event history stored in flash memory (i.e., permanent memory).
ram - Event history stored in temporary RAM (i.e., memory flushed on power
reset).
Default Setting: Flash and RAM
Command Mode: Privileged Exec
Example:
Console#clear logging
Console#