Cisco Systems 3560 Manual Do Utilizador

Página de 1288
 
48-2
Catalyst 3560 Switch Software Configuration Guide
OL-8553-06
Chapter 48      Configuring Online Diagnostics
Configuring Health-Monitoring Diagnostics
Beginning in global configuration mode, use this command to schedule online diagnostics:
This example shows how to schedule diagnostic testing on a specific date and time for a specific switch:
Switch(config)# diagnostic schedule test 1,2,4-6 on january 3 2006 23:32
This example shows how to schedule diagnostic testing to occur weekly at a certain time for a specific 
switch:
Switch(config)# diagnostic schedule test 1,2,4-6 weekly friday 09:23
Configuring Health-Monitoring Diagnostics
You can configure health-monitoring diagnostic testing while the switch 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 a test failure, or to enable or disable an individual test. Use the no form of this 
command to disable testing. 
Beginning in global configuration mode, use these commands to configure health-monitoring 
diagnostics:
Use the no diagnostic monitor interval test {test-id | test-id-range} global configuration command to 
change the interval to the default value or to zero. Use the no diagnostic monitor syslog command to 
disable generation of syslog messages when a health-monitoring test fails. Use the diagnostic monitor 
threshold test
 {test_id | test_id_rangefailure count command to remove the failure threshold.
This example shows how to configure the specified test to run every 2 minutes:
Switch(config)# diagnostic monitor interval test 1 00:02:00 0 1
This example shows how to set the failure threshold for test monitoring on a switch:
Switch(config)# diagnostic monitor threshold test 1 failure count 50
This example shows how to enable the generation of a syslog message when any health monitoring test 
fails:
Switch(config)# diagnostic monitor syslog
Command
Purpose
diagnostic schedule test {test_id | test_id_range all basic 
non-disruptive} {daily hh:mm | on mm dd yyyy hh:mm} | 
weekly day_of_week hh:mm}
Schedule on-demand diagnostic tests for a specific date and 
time, how many times to run the test (iterations), and what 
action to take when errors are found. 
Command
Purpose
diagnostic monitor interval test {test_id | 
test_id_rangehour:mm:ss milliseconds day 
Configure the health-monitoring interval of the specified tests. By 
default, monitoring is disabled.
diagnostic monitor syslog 
Enable the generation of a syslog message for health-monitoring 
test failures. By default, syslog is disabled.
diagnostic monitor threshold test {test_id | 
test_id_rangefailure count count
Set the failure threshold for monitoring tests. By default, 
monitoring is disabled.