cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4467
Views
0
Helpful
1
Replies

Using variables in EEM

Stv_666
Level 1
Level 1

Hi,

 

How can I use variables in EEM aplets ? I tried this method:

 

action 1.0 cli "copy bootflash:/$(SWITCHNAME)_$(TIMESTAMP).cfg"

 

but it actually takes the values from variables before putting int config mode. So when I enter this command I have this in running config:

 

action 1.0 cli copy bootflash:/s-sdc-core-2_2017-11-20-14.51.22.cfg

 

and from obvious reasons it's not what I ment :)

 

Thanks for all help !

 

BR

1 Accepted Solution

Accepted Solutions

Hi @Stv_666

 

  I have found this blog here and might help you:

 

https://bestpathconsulting.com/2015/using-variables-in-eem-applets/

 

 

-If I helped you somehow, please, rate it as useful.-

View solution in original post

1 Reply 1

Hi @Stv_666

 

  I have found this blog here and might help you:

 

https://bestpathconsulting.com/2015/using-variables-in-eem-applets/

 

 

-If I helped you somehow, please, rate it as useful.-