Editing
Switch Control
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Upgrading Software for the 2950/2955 with the CMS image (.tar file) == In this example, the software on a 2950 is upgraded from version 12.1(12c)EA1 to version 121-13.EA1 with the CMS image (.tar file). The procedure is the same for a 2955. Issue the show version command to view the current version of software that you run. Here is a sample command output: <pre>2950#sh ver Cisco Internetwork Operating System Software IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(12c)EA1, RELEASE SOFTWARE (fc1) !--- The current software version is 12.1(12c)EA1.</pre> Go to the LAN Switching Software section of the [http://tools.cisco.com/support/downloads/go/Redirect.x?mdfid=268438038 Downloads] ( registered customers only) page. Select Catalyst 2950 software and locate the image you want to download. Note the size of the image in bytes. This example uses the c2950-i6q4l2-mz.121-13.EA1.tar file. The image size is 4877312 bytes, or approximately 5 MB. Download the image you want. Issue the dir flash: command on the 2950/2955 to verify how much free memory you have for the upgrade. Here is a sample command output: <pre>2950#dir flash: Directory of flash:/ 2 -rwx 2774747 Mar 01 1993 17:52:14 c2950-i6q4l2-mz.121-12c.EA1.bin 21 -rwx 2665985 Mar 01 1993 18:02:04 c2950-i6q4l2-mz.121-11.EA1a.bin !--- Two images are installed. 4 -rwx 916 Mar 01 1993 03:31:05 vlan.dat 22 -rwx 312 Mar 01 1993 18:03:19 env_vars 7 drwx 832 Mar 01 1993 17:53:20 html !--- output suppressed --- !--- Notice the d in the permissions, which indicates that html is a !--- directory that contains the CMS files extracted from the .tar image !--- during the upgrade. 7741440 bytes total (578048 bytes free) !--- There is less than 1 MB of free memory in Flash, which is not enough !--- for the upgrade. Delete one of the old IOS images (.bin files). 2950#</pre> Issue the delete command to remove one of the old IOS images in order to make room for the upgrade. Here is a sample command output: <pre>2950#delete flash:c2950-i6q4l2-mz.121-11.EA1a.bin Delete filename [c2950-i6q4l2-mz.121-11.EA1a.bin]? Delete flash:c2950-i6q4l2-mz.121-11.EA1a.bin? [confirm] 2950# 2950#dir flash: Directory of flash:/ 2 -rwx 2774747 Mar 01 1993 17:52:14 c2950-i6q4l2-mz.121-12c.EA1.bin !--- You can leave one old image as a backup if you prefer. 4 -rwx 916 Mar 01 1993 03:31:05 vlan.dat 22 -rwx 312 Mar 01 1993 18:03:19 env_vars 7 drwx 832 Mar 01 1993 17:53:20 html !--- output suppressed --- 7741440 bytes total (3244544 bytes free) !--- Even though you freed up additional memory there is still not !--- enough free memory for the upgrade. Delete the files in the !--- html directory. 2950#</pre> The html directory is where the CMS files are extracted from the .tar image and installed during the upgrade. Issue the dir html command to view these files. Here is a sample command output: <pre>2950#dir html Directory of flash:/html/ 3 -rwx 4010 Mar 01 1993 17:52:14 homepage.htm 5 -rwx 1392 Mar 01 1993 17:52:14 not_supported.html 8 -rwx 9448 Mar 01 1993 17:52:15 common.js 9 -rwx 22152 Mar 01 1993 17:52:15 cms_splash.gif 10 -rwx 1211 Mar 01 1993 17:52:15 cms_13.html 11 -rwx 2823 Mar 01 1993 17:52:15 cluster.html !--- output suppressed --- !--- These are the files used by the CMS software.</pre> Issue the delete flash:html/* command to delete all of these files before the upgrade. Here is a sample command output: Note: Deletion of these files disables access to the HTML pages during the upgrade. After the upgrade, access becomes available again. <pre>2950#delete flash:html/* Delete filename [html/*]? !--- Press ENTER or RETURN for each file. Delete flash:html/homepage.htm? [confirm] Delete flash:html/not_supported.html? [confirm] Delete flash:html/common.js? [confirm] Delete flash:html/cms_splash.gif? [confirm] Delete flash:html/cms_13.html? [confirm] Delete flash:html/cluster.html? [confirm] !--- output suppressed --- 2950#dir flash: Directory of flash:/ 2 -rwx 2774747 Mar 01 1993 17:52:14 c2950-i6q4l2-mz.121-12c.EA1.bin 4 -rwx 916 Mar 01 1993 03:31:05 vlan.dat 22 -rwx 312 Mar 01 1993 18:03:19 env_vars 7 drwx 0 Mar 01 1993 01:13:31 html !--- output suppressed --- 7741440 bytes total (4960256 bytes free) !--- There is now enough room to proceed with the upgrade.</pre> Issue the archive tar command to copy over the .tar file and extract all the files. The full command syntax is archive tar /xtract tftp://<tftp server ip>/<filename> flash:. Here is a sample command output: Note: If you want to upgrade from a release earlier than 12.1(6)EA2 on a 2950, issue the tar command instead of the archive tar command. <pre>2950#archive tar /xtract tftp://20.20.20.2/c2950-i6q4l2-tar.121-13.EA1.tar flash: Loading c2950-i6q4l2-tar.121-13.EA1.tar from 20.20.20.2 (via Vlan1): ! !--- The IOS image(.bin file) is being extracted into the flash: directory. extracting c2950-i6q4l2-mz.121-13.EA1.bin (2888547 bytes)!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! html/ (directory) !--- The CMS files are extracted into the html directory. extracting html/homepage.htm (3994 bytes)! extracting html/not_supported.html (1392 bytes) extracting html/common.js (9529 bytes)!! extracting html/cms_splash.gif (22152 bytes)!!!!! extracting html/cms_13.html (1211 bytes) extracting html/cluster.html (2823 bytes)! extracting html/Redirect.jar (4195 bytes)! extracting html/mono_disc.sgz (15899 bytes)!!! extracting html/CMS.sgz (1344455 bytes)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! extracting html/images.sgz (86918 bytes)!!!!!!!!!!!!!!!!! extracting html/help.sgz (287994 bytes)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!! extracting html/CiscoChartPanel.sgz (135599 bytes)!!!!!!!!!!!!!!!!!!!!!! extracting html/cms_boot.jar (58864 bytes)!!!!!!!!!!!! extracting info (109 bytes) extracting info.ver (109 bytes) [OK - 4877312 bytes] !--- The archive tar operation completed successfully. 2950# 2950#verify flash:c2950-i6q4l2-mz.121-13.EA1.bin Verified flash:c2950-i6q4l2-tar.121-13.EA1.bin !--- Issue the verify command to verify the IOS image checksum. 2950# 2950#dir flash: Directory of flash:/ 2 -rwx 2774747 Mar 01 1993 17:52:14 c2950-i6q4l2-mz.121-12c.EA1.bin 3 -rwx 2888547 Mar 01 1993 02:00:32 c2950-i6q4l2-mz.121-13.EA1.bin !--- The new IOS image has been extracted and installed in flash:. 4 -rwx 916 Mar 01 1993 03:31:05 vlan.dat 22 -rwx 312 Mar 01 1993 18:03:19 env_vars 7 drwx 832 Mar 01 1993 02:03:41 html !--- output suppressed --- 7741440 bytes total (93184 bytes free) 2950# 2950#dir html Directory of flash:/html/ 5 -rwx 3994 Mar 01 1993 02:00:32 homepage.htm 6 -rwx 1392 Mar 01 1993 02:00:32 not_supported.html 8 -rwx 9529 Mar 01 1993 02:00:32 common.js 9 -rwx 22152 Mar 01 1993 02:00:33 cms_splash.gif 10 -rwx 1211 Mar 01 1993 02:00:33 cms_13.html !--- output suppressed --- !--- The new CMS files have been extracted and installed.</pre> Set a boot system statement so the new image boots on the next reload. Here is a sample command output: <pre>2950#conf t 2950(config)#boot system flash:c2950-i6q4l2-mz.121-13.EA1.bin 2950(config)#end 2950# 2950#sh boot BOOT path-list: flash:c2950-i6q4l2-mz.121-13.EA1.bin !--- output suppressed --- !--- The boot system statement does not show up in the config. !--- Issue the show boot command to verify whether the !--- new image boots on the next reload of the switch.</pre> You can set a boot system statement to boot a specific backup image if the new image fails for some reason. Otherwise, the 2950/2955 automatically attempts to boot the next valid image in the event of a failure. Here is a sample command output to configure a boot system statement for multiple images: <pre>2950#conf t Enter configuration commands, one per line. End with CNTL/Z. 2950(config)#boot system flash: c2950-i6q4l2-mz.121-13.EA1.bin;c2950-i6q4l2-mz.121-12c.EA1.bin !--- A semi-colon separates the two images - primary and backup. 2950(config)#end 2950# 2950#sh boot BOOT path-list: flash: c2950-i6q4l2-mz.121-13.EA1.bin;c2950-i6q4l2-mz.121-12c.EA1.bin !--- output suppressed --- !--- The boot system statement does not show up in the config. !--- Issue the show boot command to verify whether the new image !--- boots on the next reload of the switch.</pre> Issue the wr mem command to save your changes and reload the switch. Here is a sample command output: <pre>2950#wr mem Building configuration... [OK] 2950#reload Proceed with reload? [confirm] !--- Press RETURN or ENTER. 02:53:37: Bootstrap Emulator called with code 45 02:53:37: %SYS-5-RELOAD: Reload requested !--- Press RETURN or ENTER.</pre> Verify you run the new image with the show version command. Here is a sample command output: <pre>2950#sh ver Cisco Internetwork Operating System Software IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(13)EA1, RELEASE SOFTWARE !--- You now run the new software. (fc1) Copyright (c) 1986-2003 by cisco Systems, Inc. !--- output suppressed --- System image file is "flash:c2950-i6q4l2-mz.121-13.EA1.bin" cisco WS-C2950-24 (RC32300) processor (revision G0) with 20839K bytes of memory. Processor board ID FHK0650X0QY Last reset from system-reset Running Standard Image !--- output suppressed --- !--- You run the SI feature set. If this model of switch !--- can run the EI, you see Running Enhanced Image.</pre> This completes the upgrade procedure for a 2950 through the CMS image (.tar file).
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information