03-29-2015 10:05 AM
Hello Community,
Can someone please let me know why the following script with ping size 1000 and repeat 1000 won't work, however ping 100 and size 100 will work.
event manager applet test11
event none
action 010 cli command "enable"
action 020 cli command "ping 10.1.20.110 repeat 100 size 100"
action 030 file open diagresult flash:diagresult a+
action 040 file write diagresult "$_cli_result"
action 050 file close diagresult
!
As you can see from the image the above EEM script will work, however the following EEM script won't work
event manager applet test12
event none
action 010 cli command "enable"
action 020 cli command "ping 10.1.20.110 repeat 1000 size 1000"
action 030 file open diagresult flash:diagresult a+
action 040 file write diagresult "$_cli_result"
action 050 file close diagresult
!
You're help will be greatly appreciated.
Cheers
Carlton
cpatte7372
03-29-2015 02:07 PM
Community,
I debugged the EEM and I think I understand the problem .... Its because of the following:
DEBUG(cli_lib) : : CTL : cli_close called.
Is there a way to keep the CTL : cli_open called.
?
Cheers
03-29-2015 05:47 PM
Try increasing the maxrun time of you EEM policy.
03-30-2015 01:25 AM
Hi Daniel,
Thanks for getting back to me.
Its been while since I configured EEM. Can you please remind me how to increase the maxrun policy?
Cheers mate.
03-30-2015 08:03 AM
Daniel,
The maxrun worked.
Cheers mate.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide