Josh Houston (Customer) asked a question.

Configuration Management - Cisco 9000 series firmware upgrade

Has anyone had success with upgrading Cisco 9000 series switching with a script? I'm working on upgrading Cisco 9200 and cannot seem to get the right syntax with the y/n questions. I tried to run "install remove inactive" but it wouldn't accept a prompt of y. I have moved on from that now and trying to run "install add file %filepatch% activate commit" and it runs in my script but errors. I cannot tell whats happening. If i try to run the command on the switch, it states that another install is actively running. If you look at "show install summary" it shows my firmware as I - Inactive.


  • Mike Rockwell (Progress Software)

    What errors are you getting? What commands are you using?

  • Josh Houston (Customer)

    I was able to successfully complete a firmware update using this command "install add file %filelocation% activate commit prompt-level none". I have another command that verifies the md5 hash too but all that appears to be working. I'm trying to incorporate using "install remove inactive" to clean up files before copying but the script won't get passed the prompt "Do you want to remove the above files? [y/n]". I have tried the following to try and answer the prompt but the script errors out at that line item. If you look at the output it, it stays at the prompt.

     

    {/Do you want to remove the above files? [y/n]/, "y"}

    @write y

    @write ${LoginTerminator}