Consolidated Platform Configuration Guide, Cisco Ios Release 15.2(4)E (Catalyst 2960-X Switches - Cisco Catalyst 2960 series Configuration Manual

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

ap_perf_test_base_cpu.tcl Sample Policy
The following sample policy measures the CPU performance of EEM policies.
::cisco::eem::event_register_appl sub_system 798 type 9999
#----------------------------------
# EEM policy used for measuring the cpu performance of EEM policies.
#
# July 2005, Cisco EEM team
#
# Copyright (c) 2005, 2006 by cisco Systems, Inc.
# All rights reserved.
#------------------
###
### Input arguments:
###
### arg1 $iter
###
### The following EEM environment variables are used:
###
### _perf_iterations (mandatory) - number of iterations over which we
###
### Example:
### event manager environment _perf_iterations 100
###
### _perf_cmd1 (optional)
###
###
### Example:
### event manager environment _perf_cmd1 enable
###
### _perf_cmd2 (optional)
###
to be executed as part of the
###
###
###
be defined.
### Example:
### event manager environment _perf_cmd2 show ver
###
### _perf_cmd3 (optional)
###
###
###
###
### Example:
### event manager environment _perf_cmd3 show int counters protocol status
###
### Description:
###
Iterate through _perf_iterations of this policy.
###
It is up to the user to calculate the average
###
execution time based on the system timestamps.
###
Optional commands _perf_cmd1,
###
_perf_cmd2 and _perf_cmd3 are executed if defined.
###
###
A value of 100 is a good starting point.
###
### Outputs:
###
Console output.
###
### Usage example:
###
>conf t
###
>service timestamps debug datetime msec
###
>event manager environment _perf_iterations 100
###
>event manager policy ap_perf_base_cpu.tcl
###
>event manager policy no_perf_test_init.tcl
###
>end
###
2d19h: %SYS-5-CONFIG_I: Configured from console by console
###
>event manager run no_perf_test_init.tcl
###
###
Oct 16 14:57:17.284: %SYS-5-CONFIG_I: Configured from console by console
###
>event manager run no_perf_test_init.tcl
###

Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)

Configuration Examples for Writing Embedded Event Manager Policies Using Tcl
- current iteration count
will run our measurement.
- optional non interactive cli command
to be executed as part of the
measurement test.
- optional non interactive cli command
measurement test.
To use _perf_cmd2, _perf_cmd1 MUST
- optional non interactive cli command
to be executed as part of the
measurement test.
To use _perf_cmd3, _perf_cmd1 MUST
be defined.
1813

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents