Add in another line:
action 2.0 puts "$_cli_result"
See additional examples:
http://blog.ine.com/2010/01/18/eem-demystified-part-1/
http://blog.ine.com/2010/03/24/eem-revenge-of-the-applets/
Regards,
Marvin Greenlee
----- Original Message -----
From: "Rich Collins" <nilsi2002_at_gmail.com>
Sent: Sat, June 19, 2010 16:47
Subject:Re: EEM
I tried running "R1#debug event manager action cli"
and I could see it executing but not sure where the output is being
redirected to.
R1#event manager run YYY
R1#
*Mar 1 01:43:00.891: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : CTL :
cli_open called.
*Mar 1 01:43:00.899: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT : R1>
*Mar 1 01:43:00.899: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : IN :
R1>show version
*Mar 1 01:43:00.955: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
Cisco IOS Software, 3700 Software (C3725-ADVENTERPRISEK9-M), Version
12.4(15)T7, RELEASE SOFTWARE (fc3)
*Mar 1 01:43:00.955: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
Technical Support: http://www.cisco.com/techsupport
*Mar 1 01:43:00.955: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
Copyright (c) 1986-2008 by Cisco Systems, Inc.
*Mar 1 01:43:00.955: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
Compiled Wed 13-Aug-08 21:36 by prod_rel_team
*Mar 1 01:43:00.955: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
*Mar 1 01:43:00.955: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
ROM: ROMMON Emulation Microcode
*Mar 1 01:43:00.955: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
ROM: 3700 Software (C3725-ADVENTERPRISEK9-M), Version 12.4(15)T7,
RELEASE SOFTWARE (fc3)
*Mar 1 01:43:00.955: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
*Mar 1 01:43:00.959: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT : R1
uptime is 1 hour, 43 minutes
*Mar 1 01:43:00.963: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
System returned to ROM by unknown reload cause - suspect
boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19
*Mar 1 01:43:00.963: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
System image file is "tftp://255.255.255.255/unknown"
*Mar 1 01:43:00.963: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
*Mar 1 01:43:00.963: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
*Mar 1 01:43:00.963: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
This product contains cryptographic features and is subject to United
*Mar 1 01:43:00.963: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
States and local country laws governing import, export, transfer and
*Mar 1 01:43:00.963: %HA_EM-6-LOG: YYY : DEBUG(cli_lib) : : OUT :
use. Delivery of Cisco cryptographic products does not imply
On Sat, Jun 19, 2010 at 4:40 PM, Adrian Brayton <abrayton_at_gmail.com> wrote:
> After you enter into the EEM configuration portion, what options do you
have when
you enter a ?
>
> Sent from my iPad
>
> On Jun 19, 2010, at 4:04 PM, Jack <ccie.unnumbered_at_gmail.com> wrote:
>
>> my router and IOS version: Cisco IOS Software, 2800 Software
(C2800NM-ADVENTERPRISEK9-M), Version 12.4(25)
>> 1. I cannot do anything beyond none in the "event none sync yes" line.
>> 2. the following does not execute:
>>
>> event manager applet yyy
>> event none
>> action 1.1 cli command "show version"
>> !
>> Router#event man run yyy
>>
>>
>>
>> Please help!
>> Jack
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Sat Jun 19 2010 - 17:02:23 ART
This archive was generated by hypermail 2.2.0 : Sun Aug 01 2010 - 09:11:37 ART