MES1000, MES2000 Ethernet Switches
151
5.20
Alarm log, SYSLOG protocol
System logs allow to record device event history and manage occurred events in real time. Seven
types of events are logged: emergencies, alerts, critical and non-critical errors, warnings, notifications,
informational and debug messages.
Global configuration mode commands
Command line request in global configuration mode appears as follows:
console(config)#
Table 5.168 —Global configuration mode commands
Command
Value/Default value
Action
logging on
-/ registration is enabled
Enable debug and error message registration.
no logging on
Disable debug and error message registration.
When registration is disabled, debug and error
messages will be sent to the console.
logging host
{
ip_address|host
}
[port
port
] [severity
level
]
[facility
facility
]
[description
text
]
host: (1..158) characters
port: (1..65535)/514
level: (see Table 6.101)
facility: (local0..7)/ local7
text: (1..64) characters
Enable alarm and debug message transmission to the remote
SYSLOG server.
- ip_address
—SYSLOG server IPv4 or IPv6 address
-
host
—SYSLOG server network name
-
port
– port number to send a messages on the SYSLOG
protocol;
-
level
—importance level for messages sent to SYSLOG server
- facility
—service transmitted in messages
-
text
—SYSLOG server description
no logging host
{
ip_address|host
}
Remove the selected server from the list of utilized SYSLOG
servers.
logging console
level
level: (see Table
5.169
)
/'informational'.
Enable transmission of alarm and debug messages of the
selected importance level to the console.
no logging console
Disable transmission of alarm and debug messages to the
console.
logging buffered
[
severity-level
]
level: (see Table
5.169
)
The default value is
'informational'.
Enable transmission of alarm and debug messages of the
selected importance level to the internal buffer.
no logging buffered
Disable transmission of alarm and debug messages to the
internal buffer.
logging buffered size
size
(20..400)/200
Change the quantity of messages stored in the internal buffer.
New buffer size value will take effect after the device is
restarted.
no logging buffered size
Restore the default value.
logging file
level
level: (see Table 5.169)/
'errors'.
Enable transmission of alarm and debug messages of the
selected importance level to the log file.
no logging file
Disable transmission of alarm and debug messages to the file
log.
aaa logging login
-/enable
Store authentication, authorization and accounting (AAA)
events in the log.
no aaa logging login
Do not store authentication, authorization and accounting
(AAA) events in the log.
file-system logging {copy |
delete-rename}
Registration is enabled by
default.
Enable file system events registration.
-
copy
—registration of messages related to the file copy
operations
-
delete-rename
—registration of messages related to the file
delete and rename operations
no file-system logging
{copy | delete-rename}
Disable file system events registration.
management logging deny
Registration is enabled by
default.
Enable control access events registration.
no management logging
deny
Disable control access events registration.
logging aggregation on
-
Enable syslog message aggregation control.
no logging aggregation on
Disable syslog message aggregation.