80-2
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 80 Performing Diagnostics
Configuring On-Demand Online Diagnostics
You can run on-demand online diagnostic tests from the CLI. You can set the execution action to either
stop or continue the test when a failure is detected, or to stop the test after a specific number of failures
occur with the failure count setting. The iteration setting allows you to configure a test to run multiple
times.
To schedule online diagnostics, perform this task:
{
This example shows how to set the on-demand testing iteration count:
Switch#
diagnostic ondemand iterations 3
Switch#
This example shows how to set the execution action when an error is detected:
Switch#
diagnostic ondemand action-on-error continue 2
Switch#
Scheduling Online Diagnostics
You can schedule online diagnostics to run at a designated time of day or on a daily, weekly, or monthly
basis. You can schedule tests to run only once or to repeat at an interval. Use the
no
form of this
command to remove the scheduling.
To configure online diagnostics, perform this task:
This example shows how to schedule diagnostic testing on a specific date and time for a specific port on
module 6:
Switch(config)#
diagnostic schedule module 6 test 2 port 3 on may 23 2009 23:32
Switch(config)#
This example shows how to schedule diagnostic testing to occur daily:
Switch(config)#
diagnostic schedule module 6 test 2 port 3 daily 12:34
Switch(config)#
This example shows how to schedule diagnostic testing to occur weekly:
Switch(config)#
diagnostic schedule module 6 test 2 port 3 weekly friday 09:23
Switch(config)#
Command
Purpose
Switch#
diagnostic ondemand
{
iteration
iteration_count
}
|
{
action-on-error
{
continue
|
stop
}
[
error_count
]}
Configures on-demand diagnostic tests to run, how many
times to run (iterations), and what action to take when errors
are found.
Command
Purpose
Switch(config)#
diagnostic
schedule module
number
test
{
test_id
|
test_id_range
|
all
}
[
port
{
num
|
num_range
| all
}
{
on
mm dd yyyy hh:mm
}
|
{
daily
hh:mm
}
| {
weekly
day_of_week hh:mm
}}
Schedules on-demand diagnostic tests on the specified
module for a specific date and time, how many times to run
(iterations), and what action to take when errors are found.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...