EasyManuals Logo

Cisco Catalyst 2960 Series User Manual

Cisco Catalyst 2960 Series
2288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1883 background imageLoading...
Page #1883 background image
# This file is generated by the "pkg_mkIndex" command
# and sourced either when an application starts up or
# by a "package unknown" script. It invokes the
# "package ifneeded" command to set up package-related
# information so that packages will be loaded automatically
# in response to "package require" commands. When this
# script is sourced, the variable $dir must contain the
# full path name of this file's directory.
package ifneeded xmlrpc 0.3 [list source [file join $dir xmlrpc.tcl]]
Step 4
Copy the Tcl library files from Creating an EEM User Tcl Package Index and the pkgIndex file from Creating an EEM
User Tcl Package Index to the directory used for storing user library files on the target device.
Step 5
Copy a user-defined EEM policy file written in Tcl to the directory used for storing user-defined EEM policies on the
target device. The directory can be the same directory used in Creating an EEM User Tcl Package Index.
The directory for storing user-defined EEM policies can be the same directory used in Creating an EEM User Tcl Package
Index. The following example user-defined EEM policy can be used to test the Tcl package support in EEM.
packagetest.tcl
Example:
::cisco::eem::event_register_none maxrun 1000000.000
#
# test if xmlrpc available
#
#
# Namespace imports
#
namespace import ::cisco::eem::*
namespace import ::cisco::lib::*
#
package require xmlrpc
puts "Did you get an error?"
Step 6
enable
Enables privileged EXEC mode. Enter your password if prompted.
Example:
Device> enable
Step 7
configure terminal
Enables global configuration mode.
Example:
Device# configure terminal
Step 8
event manager directory user library path
Use this command to specify the EEM user library directory; this is the directory to which the files in Creating an EEM
User Tcl Package Index were copied.
Example:
Device(config)# event manager directory user library disk2:/eem_library
Step 9
event manager directory user policy path
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1801
How to Write Embedded Event Manager Policies Using Tcl

Table of Contents

Other manuals for Cisco Catalyst 2960 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco Catalyst 2960 Series and is the answer not in the manual?

Cisco Catalyst 2960 Series Specifications

General IconGeneral
LayerLayer 2
Power over Ethernet (PoE)Available on some models
RAM128 MB
Flash Memory32 MB
MAC Address Table Size8000
Operating Temperature0°C to 45°C (32 to 113°F)
Ports24 or 48 x 10/100/1000

Related product manuals