Alcatel Carrier Internetworking Solutions omniswitch Switch User Manual


 
Managing System Files Application Examples for File Management
OmniSwitch 6600 Family Switch Management Guide March 2005 page 2-29
Application Examples for File Management
The following sections give detailed examples of managing files and directories on the switch.
Transferring a File to the Switch Using FTP
In this example, the user is adding the AVLAN security feature to the switch. To do this the user must
load the Hsecu.img image file onto the switch and then register the file using the CLI install command.
The following steps describe how to transfer the file from the user workstation to the switch using an FTP
client on the workstation.
1 Load the Hsecu.img file onto a workstation that contains an FTP client.
You will normally receive the file from the Internet, via Email, or on CD media. Place the file on your
workstation where it can be easily downloaded.
2 Run the FTP client software on your workstation.
Most workstations have an FTP client installed. Refer to your manufacturer’s instructions for details on
running the FTP application.
3 Log in to the switch from your FTP client.
Where the FTP client asks for Name, enter the IP address of your switch. Where the FTP client asks for
User ID, enter “admin”. Where the FTP client asks for Password, enter “switch” or your custom config-
ured password.
4 Transfer the file from the workstation to the switch using the FTP client.
If you have a GUI FTP client, select the Hsecu.img file on your desktop and click the download button. If
you have a text only FTP client, use the FTP “put” command to move the file from your desktop to the
switch. In either case, you must specify a binary file transfer because the Hsecu.img file is a binary file.
Once the transfer is complete, the file will appear in the switch’s /flash/working directory.
5 Close the FTP session with the switch.
6 To verify that the Hsecu.img file is in the /flash/working directory on the switch. Log onto the switch
and list the files in the /flash/working directory.
-> ls /flash/working
Listing Directory /flash/working:
drw 2048 Aug 4 10:45 ./
drw 2048 Aug 5 14:05 ../
-rw 670979 Aug 5 14:44 Hsecu.img
-rw 2877570 Aug 4 10:33 Hbase.img
-rw 217119 Aug 4 10:33 Hdiag.img
-rw 727663 Aug 4 10:33 Heni.img
-rw 236713 Aug 4 10:34 Hqos.img
-rw 5519 Aug 4 10:34 Hrelease.img
-rw 467850 Aug 4 10:34 Hrout.img
-rw 880 Sep 31 13:05 boot.cfg
This list verifies that the file is located on the switch in the /flash/working directory.
7 Execute the install command to register the security file Hsecu.img. The following will display: