05-15-2017 09:54 AM
Hi,
I am fairly new to eem scripting. Can anyone help with writing eem script for copying license file from tftp to ISR 4k flash and then install the same (possibly for multiple routers)?
05-17-2017 04:45 PM
I don't know the exact commands you'd do, but this is a very simple workflow on the surface. Something like this would get you started.
event manager applet install-license
event none
action 1.0 cli command "enable"
action 2.0 cli command "copy tftp://10.1.1.1/isr.lic flash:" pattern "destination"
action 2.1 cli command "isr.lic"
action 3.0 cli command "license install ..."
Then you would run this with "event manager run install-license"
05-25-2017 10:31 AM
Thank you for your reply. I got everything figured out except coyping license file from tftp to flash. There are multiple license files (for each router).
I want to run this eem for multiple routers without hardcoding the filename.
05-26-2017 01:52 PM
You'll have to provide more information and show how you would do each step manually on a couple of routers.
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