09-23-2022 01:21 AM
Hi there,
I am working on a script to create config output which will be redirected to a remote tftp server. How can I ask the switch to create the config output by using its env variable such as
switch1#show running-config | redirect tftp://......//{{hostname}}.cfg?
Thanks
09-23-2022 02:31 AM
what script you using - is this from inside switch or out of the box. then you need store variable of hostname and backup the config using that hostname, since you already know the device you logged in with hostname, so parse that information from script.
or you can use EEM Script to autobackup to TFTP.
https://www.balajibandi.com/?s=EEM
09-26-2022 12:43 PM
Thanks BB. EEM is what I will try.
Regards,
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