Deleting old IOS file from Cisco 2960x switch using a Orion Script

What would be the script to delete old IOS file from Cisco 2960x switch flash.

Following is the command which I run manually on each switch to make space and would like to process it through Orion script as we got 100+ devices.

delete flash:c2960x-universalk9-mz.152-7.E4.bin

  • Are you creating your own change template or using our out of the box firmware upgrade wizard/process?

  • As long as the command would be the same one each device and you are removing the same FW file

    If I am not mistaken the command would be issued from the Priv Exec (hostname #)

    As long as NCM is able to log into the device, get to the priv exec level, and the User set up in NCM has the permission level to execute this command


    In the Configuration Management Page

    Select the nodes you want to run this command on

    Select Execute Script

    add the command to the script

    delete flash:c2960x-universalk9-mz.152-7.E4.bin



    NCM would run the command against each device selected

    Also if you wanted to verify the bin file was removed

    you may tack on the command  dir or show flash

    like so:

    delete flash:c2960x-universalk9-mz.152-7.E4.bin


    then execute