Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Execute Hidden/Undocumented CLI Commands

Hello,

I am running into an issue running some undocumented/hidden CLI commands via the EEM Applet.

I guess this is due to the fact that the Applet checks whether the CLI Command exists and the command is "hidden" .

Is there a way to disable CLI Command Check or possiby enable hidden commands specifically?

Best regards,

Tim

 

EDIT:


Specifically it is concerning show list in the following Applet:

 

event manager applet memory_outputs

event timer cron cron-entry "* */4 * * *" 

action 010 cli command "enable"

action 020 cli command "terminal exec prompt timestamp"

action 030 cli command "show processes memory sorted | redirect tftp://10.10.10.20/show_process_cpu_sorted$_event_pub_sec"

action 040 wait 10

action 050 cli command "show memory alloc totals | redirect tftp://10.10.10.20/show_memory_alloc_totals$_event_pub_sec"

action 060 wait 10

action 070 cli command "show list | redirect tftp://10.10.10.20/show_list$_event_pub_sec"

action 080 wait 10

action 090 cli command "end"

 

But it seems show list is not executed due to the default maxrun of 20 seconds. I have not had the chance to confirm this...

 

 

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Yeah, you definitely need to

Yeah, you definitely need to add "maxrun 50" (or higher) for this applet.  Note: you can execute any CLI command via EEM that you can manually.  EEM uses the same VTY infrastructure for executing CLI commands.

1 REPLY
Cisco Employee

Yeah, you definitely need to

Yeah, you definitely need to add "maxrun 50" (or higher) for this applet.  Note: you can execute any CLI command via EEM that you can manually.  EEM uses the same VTY infrastructure for executing CLI commands.

542
Views
5
Helpful
1
Replies
CreatePlease login to create content