This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

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

    Then:

    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

    Execute

     

    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

    dir

    then execute