cancel
Showing results for 
Search instead for 
Did you mean: 

3850 NCM script problems

We are looking to upgrade our switches through NCM. Here is the current script with the following complications.

en

copy tftp flash:

(IP SolarWinds server)

(file name) *example cat3k_caa-universa1k9.SPA.03.06.06.E.152-2.E6.bin*

(file name) *example cat3k_caa-universa1k9.SPA.03.06.06.E.152-2.E6.bin*

software install file flash:(file name)

yes

yes

The files copy to the device but will not reload. Any ideas/solution?

Thanks for your help, Ben

0 Kudos
12 Replies

Re: 3850 NCM script problems

I had a similar issue with our HP switches doing software upgrades.  Some models would reload, but most would not.  I tested the script manually on a switch and it worked just fine.  My work around was to setup a second job to reload the switches.  By itself, the reload job worked fine.  So I staggered the reload times about 15 minutes after the first job to allow it to complete, especially when upgrading large amounts of switches.

As to getting it working in 1 script, I regret not being able to get this working as of now.

0 Kudos
jeff.stewart
Level 15

Re: 3850 NCM script problems

Which version of NCM are you using?  Are you using the new Firmware Upgrade Wizard or your own script?

Jeff

tyler.peterson

0 Kudos
rschroeder
Level 21

Re: 3850 NCM script problems

Could it be an issue of timing?  If NCM sends the script out as fast as it can, but the switch takes considerable time copying via tftp, I can imagine the NCM script timing out and failing to reload.  Would the solution be to have two jobs, one to copy the new image over, and the second job being the reload of the switch--which would be timed 30 minutes after the first job ran?

I successfully tested the new NCM GUI/scripted IOS switch & router upgrade, and while (apparently) SW has removed my shared notes and papers, you can read about the 7.6 Cisco IOS Upgrade features in NCM here:  https://thwack.solarwinds.com/community/solarwinds-community/product-blog/blog/2017/03/07/ncm-76-sne...

The NCM script should literally be configured to duplicate every step you'd use to upgrade a switch or router manually from the CLI.  If the above ideas don't help, I'd go through the process manually once, carefully documenting every step of the upgrade.  I'd use the same user credentials that NCM uses, too, when I SSH into the network device to prepare it and to upgrade it.

Then the documented steps should be entered into NCM as a scripted job to execute, and saved for using again in the future.  Then I'd start off the job and troubleshoot the steps to see where it fails.  Some ideas (which you may have already considered):

  • Does NCM have the appropriate rights to do all the steps?  If if can move the file successfully, but doesn't have admin privileges to reboot the switch, you've found the problem.
  • Is the correct file name & location referenced every time?
  • Is the tftp server enabled?
  • Does the tftp server have the correct path to the IOS code to be uploaded?
  • Is there sufficient space on the switch for the new code?
  • Is there a different option to use instead of tftp (e.g.: sftp or scp)?  Tftp may not be your most efficient/reliable/successful protocol to use--especially for larger files or across a WAN with higher latency.
  • How long does it take to complete the tftp process and unpack / prep the file on the switch to be ready for the reload command?  Is it so long that something (NCM or the switch) times out, and the next command is either aborted by NCM, or issued to the switch and ignored because the switch isn't ready for it?
  • Does your "software install file flash" command include removing the boot parameter and installing the new one?
  • Ensure the switch is using TACACS, then track the exact commands NCM uses to execute the reload.  AAA should show you if your NCM user account has the right Authentication and Authorization to do the job, and the Accounting function of TACACS will reveal the timing of each command, and whether NCM has the rights to do the reload. Maybe you'll find out that the reload commands are issued prior to the file completely being transferred and the switch is not ready for new commands to be received.
0 Kudos
jkump
Level 15

Re: 3850 NCM script problems

With my 3850 stacks the couple of times that I have used SolarWinds to automate the process I did the software install using the tftp: on the command line.  That way I reduced my steps to just three steps

software install file tftp://_server_/name_of_ios_file on-reboot

reload

yes

Re: 3850 NCM script problems

I'm using NCM version 7.5.  I'm not using the F/W upgrade wizard, but my own script.   I don't remember seeing the wizard, but even then it's probably only for Cisco iOS devices.  We use ProCurve switches so I don't think it would work.  I should check anyway...

0 Kudos

Re: 3850 NCM script problems

well, I am currently in the process of upgrading SW to current 12.1 NPM and 7.6 NCM. I had to stop mid-install to accommodate the switch upgrade. This was done on NCM 7.5.

0 Kudos

Re: 3850 NCM script problems

Yea, I thought of creating a second job. It would probably do the trick but with minimal switches for this environment, it becomes faster to connect CLI and upgrade them that way. Network connection for the download of tftp across is relatively slow.

0 Kudos

Re: 3850 NCM script problems

NCM 7.5 and this is my own script.

Ben

0 Kudos

Re: 3850 NCM script problems

Is there a setting to add time for the script to complete? Either from the SW configuration or inside the script itself?

Thanks for the help! Ben

0 Kudos