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 #1804 background imageLoading...
Page #1804 background image
Example
The following example shows how to get the input from the local tty in a synchronous applet and store the
value
Device(config)# event manager applet action
Device(config-applet)# event none
Device(config-applet)# action label2 gets input
Device(config-applet)# action label3 syslog msg "Input entered was \"$input\""
Writing Input to the Active Console
When a synchronous policy is triggered, the related console is stored in the publish information specification.
The policy director will query this information in an event_reqinfo call, and store the given console information
for use by the action puts command.
The action puts command will write the string to the active console. A new line will be displayed unless the
nonewline keyword is specified. The output from the action puts command for a synchronous applet is
displayed directly to the console, bypassing the system logger. The output of the action puts command for
an asynchronous applet is directed to the system logger.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
event manager applet applet-name
4.
event none
5.
action label regexp string-pattern string-input [string-match [string-submatch1] [string-submatch2]
[string-submatch3]]
6.
action label puts [nonewline] string
7.
exit
8.
event manager run applet-name
DETAILED STEPS
PurposeCommand or Action
Enables privileged EXEC mode.enable
Step 1
Example:
Device> enable
Enter your password if prompted.
Enters global configuration mode.configure terminal
Example:
Device# configure terminal
Step 2
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1722
How to Write EEM Policies Using the Cisco IOS CLI

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