10-12
Cisco ONS 15530 Configuration Guide and Command Reference
78-14227-01, Cisco IOS Release 12.1(10)EV2
Chapter10 Managing Your Cisco ONS 15530 System
Updating System Images
Copying System Images to the Cisco ONS 15530You can copy the system image to the CiscoONS 15530 using either TFTP, FTP, or RCP. If the system
you used to download the system image from Cisco.com does not function as a TFTP, FTP, or RCP
server, you must first copy the file to an intermediate server that provides those services to your system.
Note Before copying the system image from the server to the system, check the size of the file to make
sure you have enough room for it on the Flash memory device. On UNIX file systems, use the ls -la
command from the directory where the file is stored to display the file size.
Note Be sure that you have a properly formatted the CompactFla sh card be fo re b eginni ng thi s pr oced ure .
To copy the system image from a TFTP server to the Flash memory, initiate a Telnet session or console
connection to the system and perform the following steps in privileged EXEC m ode:
Example
The following example shows how to delete a file from the CompactFlash card and copy a new system
image to it using TFTP:
Switch# dir disk0:
Directory of disk0:/
1 -rw- 2538248 Dec 05 2001 01:42:30 ons15530-i-mz.121-7a.EY2.bin
20578304 bytes total (18040056 bytes free)
Switch# delete disk0:ons15530-i-mz.121-7a.EY2.bin
Delete filename [ons15530-i-mz.121-7a.EY2.bin]? y
Delete disk0:ons15530-i-mz.121-7a.EY2 [confirm] y
Command Purpose
Step1 Switch# dir {bootflash: | disk0:
| sby-disk0: | sby-bootflash:}Displays the contents and available space on the Flash memory
device. If there is not enough free space to copy the new system
image, perform Step 2 and Step 4. Otherwise, proceed to Step5.
Step2 Switch# delete {bootflash: |
disk0: | sby-disk0: |
sby-bootflash:}filename
Marks a file as deleted. If you have older system images stored on
the file system, we recommend that you delete the oldest one and
leave a newer one in case you need to revert.
Step3 Switch# squeeze {bootflash: |
sby-bootflash:}Recovers the space used by the files marked as deleted on onboard
Flash memory. This command is not necessary for CompactFlash
cards.
Step4 Switch# copy tftp: {bootflash: |
disk0: | sby-disk0: |
sby-bootflash:}
Initiates a TFTP session to copy the system image from the TFTP
server. The system prompts you for a TFTP server name and
filename.
Step5 Switch# dir {bootflash: | disk0:
| sby-disk0: | sby-bootflash:}Displays the contents of the file system. This step confirms that the
file was copied as expected.