393
In IRF mode:
diagnostic monitor interval chassis
chassis-number
slot
slot-number-list
[
test
test-name
]
time
time
undo diagnostic monitor interval chassis
chassis-number
slot
slot-number-list
[
test
test-name
]
Default
The default execution interval varies by monitoring diagnostic test. To view the execution interval of
diagnostic tests, use the
display diagnostic content
command.
Views
System view
Predefined user roles
network-admin
Parameters
slot
slot-number-list
: Specifies a space-separated list of up to seven slot number items. Each item
specifies a card by its slot number or a range of cards in the form of
start-slot-number
to
end-slot-number
. (In standalone mode.)
chassis
chassis-number
slot
slot-number-list
: Specifies cards on an IRF member device. The
chassis-number
argument represents the member ID of the IRF member device. The
slot-number-list
argument specifies a space-separated list of up to seven slot number items. An item
specifies a card by its slot number, a range of cards in the form of
start-slot-number
to
end-slot-number
, by its virtual slot number. The end slot number must be equal to or greater than the
start slot number. (In IRF mode.)
test
test-name
: Specifies a test by its name, a case-insensitive string of 1 to 31 characters. If you do
not specify this option, the command applies to all monitoring diagnostic tests on the specified cards.
time
: Sets an execution interval in the form of
hh:mm:ss
. The value range for the
hh
argument is 0 to
23. The value range for the
mm
and
ss
arguments is both 0 to 59. If you specify only the
hh
argument,
you can omit the
mm
and
ss
segments. If you specify only the
hh
and
mm
arguments, you can omit
the
ss
segment. For example, to specify 01:00:00, you can enter 1.
Usage guidelines
Use this command to configure the interval at which the system automatically executes enabled
monitoring diagnostic tests.
The configured interval cannot be smaller than the minimum execution interval of the tests. Use the
display diagnostic content verbose
command to view the minimum execution interval of the tests.
Examples
# (In standalone mode.) Set the execution interval to 1 minute for test
HGMonitor
on card 1.
<Sysname> system-view.
[Sysname] diagnostic monitor interval slot 1 test HGMonitor time 00:01:00
# (In IRF mode.) Set the execution interval to 1 minute for test
HGMonitor
on card 1 of IRF member
device 2.
<Sysname> system-view
[Sysname] diagnostic monitor interval chassis 2 slot 1 test HGMonitor time 00:01:00
Related commands
diagnostic monitor enable
display diagnostic content