55-5
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 12.2SX
OL-4266-08
Chapter 55 Configuring Generic Online Diagnostics
Running Online Diagnostic Tests
This example shows how to schedule diagnostic testing on a specific date and time for a specific port:
Router(config)#
diagnostic schedule module 1 test 1,2,5-9 port 3 on january 3 2003 23:32
Router(config)#
This example shows how to schedule diagnostic testing to occur daily at a certain time for a specific port:
Router(config)#
diagnostic schedule module 1 test 1,2,5-9 port 3 daily 12:34
Router(config)#
This example shows how to schedule diagnostic testing to occur weekly on a certain day for a specific port:
Router(config)#
diagnostic schedule module 1 test 1,2,5-9 port 3 weekly friday 09:23
Router(config)#
Configuring Health-Monitoring Diagnostics
You can configure health-monitoring diagnostic testing while the router is connected to a live network.
You can configure the execution interval for each health monitoring test, whether or not to generate a
system message upon test failure, or to enable or disable an individual test. Use the
no
form of this
command to disable testing.
To configure health monitoring diagnostic testing, perform this task:
This example shows how to configure the specified test to run every two minutes:
Router(config)#
diagnostic monitor interval module 1 test 1 min 2
Router(config)#
This example shows how to run the test if health monitoring has not previously been enabled:
Router(config)#
diagnostic monitor module 1 test 1
This example shows how to enable the generation of a syslog message when any health monitoring test
fails:
Router(config)#
diagnostic monitor syslog
Router(config)#
Running Online Diagnostic Tests
After you configure online diagnostics, you can start or stop diagnostic tests or display the test results.
You can also see which tests are configured and what diagnostic tests have already run.
These sections describe how to run online diagnostic tests after they have been configured:
•
Starting and Stopping Online Diagnostic Tests, page 55-6
•
Displaying Online Diagnostic Tests and Test Results, page 55-7
Command
Purpose
Step 1
Router(config)#
diagnostic monitor interval module
1
test
{
test_id
|
test_id_range
|
all
} [
hour
hh
]
[
min
mm
] [
second
ss
] [
millisec
ms
] [
day
day
]
Configures the health-monitoring interval of the specified
tests . The
no
form of this command will change the
interval to the default interval, or zero.
Step 2
Router(config)#[
no
]
diagnostic monitor
module 1
test
{
test_id
|
test_id_range
|
all
}
Enables or disables health-monitoring diagnostic tests.