10-12-2023 03:00 AM
I tried to save running configuration on flash every month, after a while I would like to delete old files, but could not figure out how to do it.
For example, the file name is formated like "month-year-running.txt"(Oct-2022-running.txt), I would like to delete all the files created in last year. I can get year 2023 from show clock command and extract 2023 as a variable, I thought I can minus 1 to get 2022. It is pretty easy in programming language, but I could not achieve it using EEM.
Can anyone help to give me some hint on this?
10-12-2023 03:08 AM
Instead of saving the config in the flash, why not save the config somewhere else using TFTP?
10-12-2023 03:20 AM
Custmoer environment does not have TFTP.
10-12-2023 03:25 AM - edited 10-12-2023 03:32 AM
@cxu21 wrote:
Custmoer environment does not have TFTP.
Not an excuse.
Any small or cheap computing device, like a Raspberry Pi, can be a TFTP server. In Windows, a TFTP server is easy to install. In my first networking gig, I stole (yes, stole!) my employer's DL380 and used it as a TFTP server and authentication server. I found the server sitting in a rack not turned on. I spent several weeks trying to determine who the owner is. No one fessed up so it was "mine".
It is more dangerous having backup stored in a switch or router because if they fail, there goes the config.
10-12-2023 05:09 AM
if you saving the information in flash, if the device dead -(ask customer what is the option to replace device ?)
or you can try using email to send that config over to admin email.
but suggest to have backup server always. (our of the box to store the config files incrementally)
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