376
Views
System view
Predefined user roles
network-admin
network-operator
Parameters
module-name
: Specifies a log source module by its name, a case-insensitive string of 1 to 8
characters. To view the list of available log source modules, use the
info-center logging suppress
module
?
command.
mnemonic
{
all
|
mnemonic-value
}: Configures a mnemonic filter for log suppression.
•
all
: Suppresses output of all logs of the module.
•
mnemonic-value
: Suppresses output of logs with the specified mnemonic value. The
mnemonic-value
argument is a case-insensitive string of 1 to 32 characters, which must be the
complete value contained in the mnemonic field of the log message. Log suppression will fail if
a partial mnemonic value is specified.
Usage guidelines
You can configure log suppression rules to filter out the logs that you are not concerned with. A log
suppression rule suppresses output of all logs or only logs with a specific mnemonic value for a
module.
The device supports a maximum of 50 log suppression rules.
Examples
# Configure a log suppression rule to suppress output of logs with the
shell_login
mnemonic value
for the shell module.
<Sysname> system-view
[Sysname] info-center logging suppress module shell mnemonic shell_login
# Configure a log suppression rule to suppress output of all logs of the NETCONF module.
[Sysname] info-center logging suppress module netconf mnemonic all
# Delete the previously configured log suppression rule that suppresses output of logs with the
shell_login
mnemonic value for the shell module.
<Sysname> system-view
[Sysname] undo info-center logging suppress module shell mnemonic shell_login
# Delete the previously configured log suppression rule that suppresses output of all logs of the
NETCONF module.
[Sysname] undo info-center logging suppress module netconf mnemonic all
info-center loghost
Use
info-center loghost
to specify a log host and to configure output parameters.
Use
undo info-center loghost
to remove a log host.
Syntax
info-center
loghost
[
vpn-instance
vpn-instance-name
] {
hostname
|
ipv4-address
|
ipv6
ipv6-address
}
[
port
port-number
] [
facility
local-number
]
undo
info-center
loghost
[
vpn-instance
vpn-instance-name
] {
hostname
|
ipv4-address
|
ipv6
ipv6-address
}