391
GOLD commands
diagnostic event-log size
Use
diagnostic event-log size
to configure the maximum number of GOLD log entries.
Use
undo diagnostic event-log size
to restore the default.
Syntax
diagnostic event-log size
number
undo diagnostic event-log size
Default
GOLD can save up to 512 log entries.
Views
System view
Predefined user roles
network-admin
Parameters
number
: Specifies the maximum number of log entries, in the range of 0 to 1024.
Usage guidelines
If you specify a number smaller than the number of existing log entries, the system automatically
deletes the oldest excess entries.
When the number of GOLD log entries exceeds the configured log buffer size, the system
automatically deletes the oldest excess entries.
Examples
# Configure the maximum number of log entries as
600
.
<Sysname> system-view
[Sysname] diagnostic event-log size 600
diagnostic monitor enable
Use
diagnostic monitor enable
to enable monitoring diagnostics.
Use
undo diagnostic monitor enable
to disable monitoring diagnostics.
Syntax
In standalone mode:
diagnostic monitor enable
slot
slot-number-list
[
test
test-name
]
undo diagnostic monitor enable slot
slot-number-list
[
test
test-name
]
In IRF mode:
diagnostic monitor enable chassis
chassis-number
slot
slot-number-list
[
test
test-name
]
undo diagnostic monitor enable chassis
chassis-number
slot
slot-number-list
[
test
test-name
]