I am looking for the IOS upgrade feature of Cirrus and have not been able to find it. Any help please.
To push an IOS image to a network device:
There's also a script in the content zone that works really well.
This doesn't work for us. Immediately after the line -
copy tftp flash
- it comes back with this:
Address or name of remote host []??Host name or address not specified%Error parsing filename (Unknown error 0)
and then the script inputs the IP address. Of course by then it is too late.
We are using .bin files, not .tar so the archive command in all the other scripts posted doesn't work. I read a bit in the Admin Guide scripting section about the script variables but am confused. Any help appreciated. Thanks!
I always specify it on one line. For example:
copy tftp://1.1.1.1/file.bin flash:file.bin
That way you don't have to deal with answering the prompts.
On another note, I always use ftp or http instead of tftp now. Tftp is a lot slower compared to ftp or http, especially over a WAN.
I can't get anything to work. TFTP or FTP. I'm running Orion NCM 5.0.
If I use TFTP and the script in the manual. I get a tftp error on the Solar Winds TFTP server ( i downloaded the latest version of TFTP today)
Here is the error message: binary, GET Interrupted by client, received error packet with code: 0 and message session terminated. I don't get this error if I manually tftp from the same router using the same TFTP servrer. I've tried this on three routers. no luck.
Someone suggested FTP. I excecute a FTP script that works manually from the command line.
copy ftp://Username:password@10.10.10.10//netdocs/routerconfigs/c2800nm-advipservicesk9-mz.124-22.T.bin flash:c2800nm-advipservicesk9-mz.124-22.T.bin
Doesn't work, no errors. It's like the execute script engine is not waiting long enough for the FTP to begin. It takes almost 2 minutes for the FTP download to start when I start it manually on the router. Could the script engine be timing out, and exiting out of the session before the file transfers begin.
Any help is appreciated
If it takes 2 minutes for the FTP download to start, then yes, the script could be timing out. Are you running the script using a job or manually? Also, can you post the session trace of the execute script operation? Go to File > Settings > Session Tracing to enable. You'll find the session trace in your NCM install folder under session traces.
Chris,
I posted on this exact same topic over a month ago in regards to downloading software over slow links and I never received a response. After I set the debug logs it showed that Orion NCM was waiting for the router to respond (waiting for the prompt or maybe the # on the router) and then timed out. I asked if there was a way to script a pause or change the global setting for timeout and never remember getting a response other than "let me look into this".
On T1 links speeds, it sometimes takes me 5-15 minutes, depending on traffic, to push images to end devices. During this time (depending on the device), sometimes there is console response (such as a "!" or "." character) and sometimes it's just blank spaces because the devices is decompressing a tarball and it may take 3-5 minutes to do that... All this time there is no "Router#" prompt displayed on the screen for you to poll to see if it is ready for the next command. Also be advised that FTP connection speed varies based by device. I have routers that connect to our FTP immediately but Catalyst 3750 series switches that stall for a a minute or too before starting downloads. Welcome to the Cisco IOS beast...
NCM needs a way on a script by script basis to set a "Global Timeout" value and either a "Wait x seconds" or "Wait until <text snippet>" option.
Regardless, we need a solution for this soon. For my company, one of the main reasons we bought NCM was for the scripting piece coupled with software updates... If I am missing something, please let me know.
Matt
@jonchill
Do you think you could provide the location of this script that works really well?