beautypg.com

Outputting logs to a log host, Outputting logs to the log buffer – H3C Technologies H3C S6300 Series Switches User Manual

Page 92

background image

79

Step Command

Remarks

8.

(Optional.) Set the lowest level
of logs that can be output to

the monitor terminal.

terminal logging level severity

The default setting is 6
(informational).

Outputting logs to a log host

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable the information
center.

info-center enable

By default, the information center is
enabled.

3.

Configure an output rule
for outputting logs to a

log host.

info-center source { module-name |
default } { console | monitor |

logbuffer | logfile | loghost } { deny

| level severity }

For information about default output
rules, see "

Default output rules for

logs

."

4.

(Optional.) Specify the
source IP address for

output logs.

info-center loghost source
interface-type interface-number

By default, the source IP address of
output log information is the primary IP

address of the matching route's egress
interface.

5.

(Optional.) Specify the

format for logs sent to a
log host.

info-center format { unicom | cmcc }

By default, logs are sent in H3C format
to a log host.

6.

(Optional.) Configure

the timestamp format.

info-center timestamp loghost { date
| iso | no-year-date
[ with-timezone ] | none }

By default, the timestamp format is
date.
The with-timezone keyword is
available in Release 2311P03 and

later versions.

7.

Specify a log host and
configure related

parameters.

info-center loghost { loghost | ipv6
loghost } [ port port-number ]

[ facility local-number ]

By default, no log host or related
parameters are specified.
The value of the port-number argument
must be the same as the value

configured on the log host. Otherwise,

the log host cannot receive logs.

Outputting logs to the log buffer

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable the information center. info-center enable

By default, the information center is
enabled.

3.

Enable log output to the log
buffer.

info-center logbuffer

By default, log output to the log
buffer is enabled.