Configuring On-Demand Online Diagnostics - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

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:
{
Command
Switch# diagnostic ondemand
{iteration iteration_count} |
{action-on-error {continue | stop}
[error_count]}
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:
Command
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}}
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)#
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
71-2
Purpose
Configures on-demand diagnostic tests to run, how many
times to run (iterations), and what action to take when errors
are found.
Purpose
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.
Chapter 71
Performing Diagnostics
OL_28731-01

Advertisement

Table of Contents
loading

Table of Contents