An unsuccessful iOS upgrade for the Cisco 2960S switch

Source: Internet
Author: User
Tags file copy

Company a device, Ws-c2960s-24ts-l, is the Cisco 24 Port 1000M Two layer Exchange Yang, the use of iOS version of 12.2 (UNIVERSALK9-M) iOS software, the company recently installed some digital cameras, The monitoring host and a billiard-type monitoring to the machine, the interface of the transmission rate is much larger than the rate of ordinary office, the following is the rate of the two interfaces I copied.


G1/0/3 (Monitoring host interface)


5 minute input rate 2087000 bits/sec, 4065 packets/sec

5 minute output rate 45545000 bits/sec, 4065 packets/sec



G1/0/13 (monitor ball machine interface, Hoi hong 130W pixels)

5 minute input rate 2823000 bits/sec, 279 packets/sec

5 minute output rate 146000 bits/sec, 281 packets/sec


Found high CPU occupancy, and is 5 seconds to occupy 17%, 5 minutes occupy often more than 50%, in order to solve the problem of high CPU utilization, decided to upgrade the machine

See the upgrade method for iOS in tar format, there are two types of

Method One: switch#archive tar/xtrat tftp://tftp server IP address/c3750-ipservicesk9-tar.150-2.se2.tar Flash:


Method Two: Archive download-sw/leave-old-sw/reload Tftp://192.168.12.65/c2960s-universalk9-tar.150-2.se6.tar flash:/

First of all, I'm using a little insurance method that will download this iOS to the switch flash: And do not delete the original flash, after the download is complete reboot



Method Two also has the option to overwrite the original iOS, but it is not recommended. As a general rule, now Flash can fully accommodate two iOS packages no problem


And then I'm going to look at my sad upgrade process

First, just Cisco's account can download my machine's iOS, I downloaded the latest 15.2.2ae1, using the method to pour it into the flash. But the machine didn't restart, and I knocked on the reload.

Second, the next waiting, full of thought will not be a problem, because my 2960 hundred M machine has been tested to upgrade to 15.0 of iOS. Waiting for five minutes or not, to the computer room to view, only see the left row of the first light, and then the console light there, manual power off and restart, or the network does not pass

Three, to find a notebook, serial connection, found that the system went in, enable mode can also go in, but is unable to view flash, the configuration file does not take effect, and then can not do some configuration. It's a cup!

Four, the previous old method is in the IP environment copy tffp:/flash:/, will be the bin file copy in the past upgrade, in addition to the hundred m upgrade tar file to 15.0, so some don't know how to do

Five, the bit mode power off restart, into the minimum system mode, note, not the hint of rommon> seems to be a switch: or how?

Six, see here only Flash_init and boot these two commands.

Seven, Flash_init, for this I understand wrong, thought that after initialization, equivalent to flash lattice disk, this is doomed to four hours of overtime, in fact, this command should tell us to flash mounted, in the smallest system mode can view Flash, And I thought it was formatted, and then, after typing the command, you can look at some other commands, such as Dir. I was in that 15.0 system when the show flash can not use, thinking that flash damage, no way, had to use Xmodem to send packets,

Copy Xmodem:flash:image_filename.bin

(In the middle, use an alternate 100m2960 to restore the original backup configuration to the past, which is good for regular backups)

Eight, the next use of CRT software, using Xmodem to transfer files, really slow

Nine, back to the dormitory waiting for the process, see online someone said can set the baud rate to 115200 set Buad 115200, no error, but the computer's serial port set to this rate, the direct crash, get two times, died two times, Re-use 9600 of the rate to get 15.0 se6, send files, speed less than 1K

Ten, go back to the dorm to sleep and think about why, began to think that the iOS version is called AE1, as if to see support SSH, think this version is specifically for the Enterprise Edition

Xi. the next day back to the office, iOS is ready

12, restart, the results show that the same as 15.2.2AE1, at the time of the boot will show invalid license and other information, and the usual system startup is different. And then those commands won't work. The teeth are itching to hate. Think you're not going to get the 12.2 back again, do you?

13, restart again, press mode, enter the minimum system mode switch:, type Flash_init. General thinking, should flash is not damaged, and iOS has been in, but the only possible reason is that this machine does not support upgrading to 15.0 of the system.

And then hit another one? (there is no typing load_help do not remember), suddenly see there is a very familiar command dir, you can see the flash inside the file, and the original iOS is still in, the new iOS is also in, the original 12.2 of the iOS path copied down. Direct boot flash:/The original iOS path/file name, entered the original system, configuration is also in.

14, use TFTP, and then use copy tftp:/flash:/to copy a 12.2 (SE2) of iOS to Flash:

Then use the boot system path to set the boot iOS to 58 for this iOS


At this point, the system has been upgraded to 12.2 (SE2) system and has not been upgraded to 15.0.


Summarize:

1. If you want to upgrade, you can use method one and method two, method one is to extract the tar package into flash, but not apply, method two is to keep the original iOS upgrade, and restart

2. You can also unzip the tar package, copy the bin file inside the Flash

3. Be sure to back up the configuration file to local before upgrading

4. Take a photo of the directory in Flash, record the tablet, and then clear the original boot path, using the show boot command

5. If you use DOWNLOAD-SW/LEAVEOLDSW this command, the original iOS will be retained, although access to the new system does not support the production environment configuration, but can use the Boot system command, you can directly use the boot System This command is set to the original iOS boot, and will not delay a lot of time

6. In the switch: This minimal system set the boot path, the first time can be restarted to your original iOS, but into the original iOS, still need to use the Boot sytem command to specify your iOS path, so that the next time you restart the use of your expected iOS boot

7. No doubt, although Cisco's backplane is much lower than Huawei's, but according to my results, an interface input 2Mbps, input 45Mbps absolutely no problem, will not lose packets or other


Results: After upgrading the system to 12.2 (58), the original CPU occupancy rate has been resolved, it seems that the software bug. Now using normal, CPU utilization 13%




Because of the process, not recorded, so can not map, but I believe you should be able to follow my process and summarize the problem of iOS upgrade, please see the Cisco Manual. That's the best way.

See online methods are the original old method, special will this file share out, hope to help the new friends, another will be the Cisco manual inside the upgrade method paste as follows







Switch software can be corrupted during a upgrade, by downloading the wrong file to the switch, and

By deleting the image file. Of these cases, the switch does not pass the power-on self-test (POST),

And there is no connectivity.

This procedure uses the Xmodem Protocol to recover from a corrupt or wrong image file. There is many

Software packages the Xmodem Protocol, and this procedure are largely dependent on the

Emulation software that is using.

This recovery procedure requires, which you had physical access to the switch.

Step 1 from your PC, download the software image tar file (Image_filename.tar) from cisco.com.

The Cisco IOS image is stored as a bin file with a directory in the tar file. For information about locating

The software image files on cisco.com, see the release notes.

Step 2 Extract The bin file from the tar file.

If you is using Windows, use a zip program that can read a tar file. Use the ZIP program to navigate

To and extract the bin file.

If you are using UNIX, follow these steps:

1. Display the contents of the tar file by using the TAR-TVF <image_filename.tar> UNIX command.

unix-1% TAR-TVF Image_filename.tar

2. Locate the bin file, and extract it by using the TAR-XVF <image_filename.tar>

<image_filename.bin> UNIX command.

unix-1% TAR-XVF Image_filename.tar Image_filename.bin

x c2960-lanbase-mz.122-25.fx/c2960-lanbase-mz.122-25.fx.bin, 2928176 bytes, 5720

Tape Blocks

3. Verify that the bin file is extracted by using the ls-l <image_filename.bin> UNIX command.

unix-1% ls-l Image_filename.bin

-rw-r--r--1 Boba 2928176 Apr 21 12:01

C2960-lanbase-mz.122-25.fx/c2960-lanbase-mz.122-25.fx.bin

Step 3 Connect your PC with terminal-emulation software supporting the Xmodem Protocol to the switch

Console port.

Step 4 Set The line speed on the emulation software to 9600 baud.

Step 5 Unplug the switch power cord.

Step 6 Press the Mode button and at the same time, reconnect the power cord to the switch.

You can release the Mode button a second or both after the LED above Port 1 goes off. Several lines of

Information about the software appear along with instructions:

39-3

Catalyst 2960 and 2960-s switches software Configuration Guide, Release 15.0 (1) SE

Ol-26520-01

Chapter Troubleshooting

Recovering from a Lost or forgotten Password

The system has been interrupted prior to initializing the Flash file system. The following

Commands would initialize the Flash file system, and finish loading the operating system

software#

Flash_init

Load_helper

Boot

Step 7 Initialize The Flash file system:

Switch:flash_init

Step 8 If You had set the console port speed to anything other than 9600, it has been reset to that particular

Speed. Change the emulation software line speed to match that of the switch console port.

Step 9 Load any helper files:

Switch:load_helper

Step Start the file transfer by using the Xmodem Protocol.

Switch:copy Xmodem:flash:image_filename.bin

Step after the Xmodem request appears, with the appropriate command on the Terminal-emulation software to

Start the transfer and to copy the software image into flash memory.

Step Boot The newly downloaded Cisco IOS image.

Switch:boot Flash:image_filename.bin

Step Archive DOWNLOAD-SW Privileged EXEC command to download the software image to the switch

or to the switch stack.

Step Reload Privileged EXEC command to restart the switch and to verify that the new software image

is operating properly.

Step Delete The Flash:image_filename.bin file from the switch.


This article is from the "Divine Policy" blog, please be sure to keep this source http://liu008qing.blog.51cto.com/151315/1603700

An unsuccessful iOS upgrade for the Cisco 2960S switch

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.