cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1073
Views
0
Helpful
1
Replies

ASA EEM applet not working with cli command including pipe (|)

pmarachian
Level 1
Level 1

Hi,

For security reasons (compliance tests), I try to automate some cli commands on an ASA 5520 running V. 9.6(1).

I made the following eem applet configuration :

event manager applet testcmd
 description test de commande avec pipe et etoile
 event none
 action 1 cli command "terminal pager 0"
 action 11 cli command "show version | include file"
 output file overwrite testcmd.txt

The output on disk0:/testcmd.txt shows me all version information, not only lines with "file" inside :

vpn/pri/act# more disk0:/testcmd.txt
Reason for log file generation:
event manager run
------------------ terminal pager 0 @ 2016/09/26 12:54:35 ------------------
------------------ show version | include file @ 2016/09/26 12:54:35 ------------------

Cisco Adaptive Security Appliance Software Version 9.6(1)
Device Manager Version 7.6(1)

Compiled on Fri 18-Mar-16 14:08 PDT by builders
System image file is "disk0:/asa961-smp-k8.bin"
Config file at boot was "startup-config"

vpn up 17 days 19 hours
failover cluster up 17 days 19 hours

Hardware: ASA5545, 12288 MB RAM, CPU Lynnfield 2659 MHz, 1 CPU (8 cores)
ASA: 6490 MB RAM, 1 CPU (1 core)
Internal ATA Compact Flash, 8192MB
BIOS Flash MX25L6445E @ 0xffbb0000, 8192KB

...

Is it a bug, limitation of eem implementation on ASA ?

Would it be possible to tell ASA to include | in the cli command ?

Thanks in advance for any help.

Pascal

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

Seems like a bug to me.  I don't recall seeing where this is a known limitation of ASA EEM.