Hello,
We are upgrading software on our Cisco CGR-2010 and its internal switch module GRWIC-D-ES-2S-8PC
The CGR-2010 works great as it only relies on a bin file.
The GRWIC-D-ES-2S-8PC uses a tar file for upgrades in order to make sure the FPGA is also updated. The TAR extracts into a folder and the bin file is inside of the folder along with other supporting files.
adelaide.sc01#dir | inc grwic
8 drwx 512 Sep 23 2021 10:51:35 -05:00 grwicdes-lanbasek9-mz.152-4.EA9a
adelaide.sc01#dir flash:/grwicdes-lanbasek9-mz.152-4.EA9a
Directory of flash:/grwicdes-lanbasek9-mz.152-4.EA9a/
9 drwx 2560 Sep 23 2021 10:39:31 -05:00 html
192 -rwx 2235252 Sep 23 2021 10:40:13 -05:00 fpga
193 -rwx 18110482 Sep 23 2021 10:41:22 -05:00 grwicdes-lanbasek9-mz.152-4.EA9a.bin
194 -rwx 371 Sep 23 2021 10:51:35 -05:00 info
63092736 bytes total (41172992 bytes free)
Solarwinds searches the show version to determine the existing image path and finds:
adelaide.sc01#sh ver | inc System image
System image file is "flash:/grwicdes-lanbasek9-mz.152-4.EA9a/grwicdes-lanbasek9-mz.152-4.EA9a.bin"
So when it goes to delete the file it does free up most of the space by deleting the bin file but is not able to delete the folder. I want to rely on solarwinds detecting what version is running but alter the variable to only contain the directory: (flash:/grwicdes-lanbasek9-mz.152-4.EA9a)
I would then change the delete line to: delete /force /recursive {altered ${ExistingImagePath} }
Can anyone help with how to alter this variable in the firmware upgrade template or a different solution to ensure that all the old software files are cleaned up and not just the largest bin file. Important is it must autodetect the path to be deleted.