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

EEM problem

Hey, i made a small script with EM:

event manager applet backup

event cli pattern "write memory" sync no skip no

action 1.0 cli command "enable"

action 2.0 cli command "copy running ftp://username:passw@server"

But this isn't workin and if i enter command

show event manager policy penging, its shows that the policy is pending.

Is there something wrong with the script?

Or something else?

1 REPLY
Cisco Employee

Re: EEM problem

You can't really do this since the commands will be interactive. You might try this:

event manager applet backup

event cli pattern "write memory" sync no skip no

action 1.0 cli command "enable"

action 2.0 cli command "config t"

action 3.0 cli command "file prompt quiet"

action 4.0 cli command "end"

action 5.0 cli command "copy running ftp://username:passwd@server"

action 6.0 cli command "config t"

action 7.0 cli command "no file prompt quiet"

action 8.0 cli command "end"

In the future, use the Network Manager forum for EEM or TCL questions.

131
Views
0
Helpful
1
Replies
CreatePlease to create content