Cisco 3750/2950 IOS Upgrade(using SCP) NCM Template

This template is used to upgrade the IOS on 3750s using a .tar file.  It will delete the old IOS file (.tar or .bin) if there is not enough space in flash.  It will set the boot statements and reload the device after a successful upgrade.  You will be able to view the status in Script Results when it is complete.  This uses the SFTP/SCP server on your SolarWinds server.  If you are using an external SCP/SFTP/TFTP server, use this one:  3750_IOS_Upgrade_ext_server.ncm-template  You will need to set this up first.  I also am mapping to a folder on the server (\Cisco\3750\).  You can modify the script for your environment.  You can also change scp to something else like tftp if you like.  It's good for multiple devices.  It will work for 2900 switches too.  It's been working for me.  Saves a lot of time.  You MUST use a .tar file for your new IOS.  If the old IOS was upgraded from a .tar file, there is no need to put the old IOS file name in the field for it.  You can put a space in that field.  This upgrade will look for and cleanup the directory structure for the .tar file upgrade.  It will delete the .bin file (in flash:   Not in the subdirectory) that is put into the OLD File name field.

If you download this, please rate it or comment on this, so I know what is needed and how this is working for you.

  • Here you go.  Try this one and let me know if it is what you are looking for.

    3750/2950 IOS Upgrade using tftp NCM template

  • I believe this will do what you are looking for.  During execution of this, you have to enter the old image filename into the variable section.  You just have to modify everything referencing scp for tftp. Change the following:

    string @CommandLine = 'archive download-sw /imageonly /allow-feature-upgrade /overwrite /reload scp://' + @SCPname + ':' + @SCPpassword + '@' + @SolarWindsIP + '/Cisco/3750/' + @NEW_IOS_FILENAME


    string @CommandLine = 'archive download-sw /imageonly /allow-feature-upgrade /overwrite /reload tftp://' + @SolarWindsIP + '/Cisco/3750/' + @NEW_IOS_FILENAME

    This should work for a TFTP server with no password.  Then delete all of the following:


      SCP username


      Enter the SCP Server username.

      Example: scpuser


      SCP Password


      Enter the SCP password. Password is case sensitive.

    I'll post up a TFTP upgrade script for this that has this done.

  • FormerMember
    FormerMember over 8 years ago

    A Standard delete Option will be great. I am searching for a script which first delete some unused Images and then Transfer the new Image by tftp.

  • If you download this, please rate it or comment on this, so I know what is needed and how this is working for you