370
info-center format
Use
info-center format
to set the format of logs sent to a log host.
Use
undo info-center format
to restore the default.
Syntax
info-center format
{
unicom
|
cmcc
}
undo info-center format
Default
Logs are sent to a log host in standard format.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
unicom
: Specifies the
unicom
format.
cmcc
: Specifies the China Mobile Communications Corporation (
cmcc
) format.
Usage guidelines
Logs can be sent to a log host in standard,
unicom
, or
cmcc
format. For more information about log
formats, see
Network Management and Monitoring Configuration Guide.
Examples
# Set the log format to
unicom
for logs sent to log hosts.
<Sysname> system-view
[Sysname] info-center format unicom
info-center logbuffer
Use
info-center logbuffer
to configure log output to the log buffer.
Use
undo info-center logbuffer
to disable log output to the log buffer.
Syntax
info-center logbuffer
undo info-center logbuffer
Default
Logs are allowed to be output to the log buffer.
Views
System view
Predefined user roles
network-admin
mdc-admin