cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1297
Views
0
Helpful
3
Replies

EEM Script for license installation (multiple routers)

vishal-patil
Level 1
Level 1

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)?

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

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"

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.

You'll have to provide more information and show how you would do each step manually on a couple of routers.