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

EEM Hostname

hs08
VIP
VIP

I have successfully create EEM script to backup configuration to the TFTP but  for the file name i hardcode like this command

action 1.4 cli command "C9500-CR1"

Can we change the C9500-CR1 to getting value from the hostname automatically, so incase the hostname is changed so the filename also changed automatically.

1 Reply 1

Torbjørn
VIP
VIP

You can add an "action 1.4 info type routername" and then use the variable $_info_routername to reference the hostname.

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev