Use the
no
form of this command to disable testing.
By default, health monitoring is disabled, but the Switch generates a syslog message when a test fails.
Follow these steps to configure and enable the health-monitoring diagnostic tests:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
diagnostic monitor interval switch number test
{
name
|
test-id
|
test-id-range
|
all
}
hh:mm:ss milliseconds
day
4.
diagnostic monitor syslog
5.
diagnostic monitor threshold switch number test
{
name
|
test-id
|
test-id-range
|
all
}
failure count count
6.
diagnostic monitor switch number test
{
name
|
test-id
|
test-id-range
|
all
}
7.
end
8.
show running-config
9.
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode. Enter your password if prompted.
enable
Step 1
Example:
Switch>
enable
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 2
Configures the health-monitoring interval of the specified tests.
diagnostic monitor interval switch number
test
{
name
|
test-id
|
test-id-range
|
all
}
hh:mm:ss milliseconds day
Step 3
The
switch number
keyword is supported only on stacking switches.
When specifying the tests, use one of these parameters:
Example:
Switch(config)#
diagnostic monitor
•
name
—
Name of the test that appears in the
show diagnostic content
command output.
interval switch 2 test 1 12:30:00 750
5
•
test-id
—
ID number of the test that appears in the
show diagnostic
content
command output.
•
test-id-range
—
ID numbers of the tests that appear in the
show
diagnostic content
command output.
•
all
—
All of the diagnostic tests.
When specifying the interval, set these parameters:
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1616
How to Configure Online Diagnostics
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......