cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1552
Views
0
Helpful
4
Replies

PIng EEM Script Not Working

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

 

4 Replies 4

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

 

Try increasing the maxrun time of you EEM policy.

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.

Daniel,

 

The maxrun worked.

 

Cheers mate.