【文章內(nèi)容簡(jiǎn)介】
dhcp506,744 KB total (241,808 KB free) 如果Free空間大于65000KB,說(shuō)明空間足夠。 2. 刪除多余文件如果剩余空間小于升級(jí)目標(biāo)版本系統(tǒng)軟件的大小,需要?jiǎng)h除無(wú)用文件。系統(tǒng)軟件大包(以“.cc”結(jié)束),config文件(以“.cfg”或“.zip”結(jié)束)、License文件(以“.dat”結(jié)束)、Web文件(以“.web”結(jié)束)、補(bǔ)丁文件(以“.pat”結(jié)束)請(qǐng)?jiān)诖_認(rèn)沒(méi)有使用后再刪除。在用戶視圖下執(zhí)行如下命令刪除主用主控板和備用主控板CF卡上多余的文件。使用delete命令刪除的文件將被保存到回收站中,可以使用undelete命令恢復(fù)回收站中的文件,保存到回收站中的文件仍然會(huì)占用cfcard空間。reset recyclebin命令將刪除回收站中的所有文件,這些文件將永久刪除,不能恢復(fù)?;蛘呤褂胐elete /unreserved命令徹底刪除文件,該命令的作用等于先執(zhí)行delete命令再執(zhí)行reset recyclebin命令。 刪除當(dāng)前Master主控板CF卡上的多余文件。Quidway delete cfcard:/Delete cfcard:/?[Y/N]:y Info: Deleting file cfcard:/...succeeded. 刪除當(dāng)前Slave主控板CF卡上的多余文件。Quidway delete slavecfcard:/Delete slavecfcard:/?[Y/N]:y Info: Deleting file slavecfcard:/...succeeded.刪除到回收站中的文件可以使用下面命令恢復(fù)。Quidway undelete cfcard:/Undelete cfcard:/?[Y/N]:y %Undeleted file cfcard:/.執(zhí)行下面命令徹底刪除回收站中的無(wú)用文件。Quidway reset recyclebin cfcard:/Quidway reset recyclebin slavecfcard:/結(jié)束 升級(jí)操作升級(jí)操作的流程如表25所示。表25 升級(jí)操作流程序號(hào)步驟命令行具體操作參考1備份重要文件后,將新的系統(tǒng)軟件、License文件和配置文件加載到主控板中,如果存在備用主控板,需要copy到備用主控板 加載2檢查文件加載是否加載成功dir 檢查是否加載成功3設(shè)置設(shè)備下次啟動(dòng)時(shí)的系統(tǒng)軟件和配置文件,如果存在備用主控板,需要同時(shí)設(shè)置startup systemsoftwarestartup systemsoftware slaveboardstartup savedconfiguration 設(shè)置系統(tǒng)軟件4檢查下次啟動(dòng)時(shí)的系統(tǒng)軟件和配置文件是否設(shè)置正確display startup 設(shè)置系統(tǒng)軟件5檢查一下文件的CRC是否正確check startup crc next 設(shè)置系統(tǒng)軟件6重啟設(shè)備reboot 重新啟動(dòng)設(shè)備7驗(yàn)證升級(jí)是否成功display startupcheck versiondisplay devicedisplay currentconfiguration 驗(yàn)證升級(jí)是否成功 加載新版本需要的文件。加載系統(tǒng)軟件有如下方式:l S9300作為TFTP Client加載系統(tǒng)軟件l S9300作為FTP Server加載系統(tǒng)軟件l S9300作為FTP Client加載系統(tǒng)軟件l 從啟動(dòng)菜單加載系統(tǒng)軟件推薦使用前三種方式加載系統(tǒng)軟件,只有當(dāng)S9300設(shè)備無(wú)法正常啟動(dòng)時(shí)才需要使用啟動(dòng)菜單加載系統(tǒng)軟件的方式。建議升級(jí)前使用命令terminal monitor打開(kāi)終端顯示信息中心發(fā)送的調(diào)試/日志/告警信息功能。方法一:S9300作為TFTP Client TFTP Server程序由用戶自己購(gòu)買、安裝,S9300不附帶此軟件。TFTP Server程序建議使用TFTP32。1. 設(shè)置TFTP服務(wù)器將PC作為TFTP服務(wù)器,在PC上運(yùn)行TFTP Server程序并進(jìn)行相應(yīng)設(shè)置,其中:l 工作目錄(Current Directory)設(shè)置為待加載系統(tǒng)軟件存放的路徑,可點(diǎn)擊Browse來(lái)更改。l 服務(wù)器接口(Server interface)則填寫TFTP服務(wù)器的IP地址,一般系統(tǒng)會(huì)自動(dòng)填上去。要確保備份過(guò)程中TFTP的應(yīng)用程序不能關(guān)閉。2. 備份系統(tǒng)軟件、配置文件和補(bǔ)丁文件到TFTP服務(wù)器上備份之前先看一下要備份的文件大小,備份結(jié)束后比較一下傳輸大小、備份到服務(wù)器上的文件大小,確認(rèn)備份成功。Quidway dir *.ccDirectory of cfcard:/ Idx Attr Size(Byte) Date Time FileName 0 rw 59,455,925 Nov 04 2010 19:43:18 506,744 KB total (240,784 KB free) Quidway dir *.zipDirectory of cfcard:/ Idx Attr Size(Byte) Date Time FileName 0 rw 589 Nov 04 2010 20:55:54 506,744 KB total (240,720 KB free)Quidway dir *.patDirectory of cfcard:/ Idx Attr Size(Byte) Date Time FileName 0 rw 333,436 Jan 29 2010 16:54:40 506,744 KB total (240,656 KB free)在S9300通過(guò)執(zhí)行以下命令進(jìn)行備份,。Quidway tftp put Info: Transfer file in binary mode. Uploading the file to the remote TFTP server. Please wait...| TFTP: Uploading the file successfully. 27455925 bytes send in 91 seconds.Quidway tftp put Info: Transfer file in binary mode. Uploading the file to the remote TFTP server. Please wait.../ TFTP: Uploading the file successfully. 589 bytes send in second.Quidway tftp put s9300v100r003sph003ba Info: Transfer file in binary mode. Uploading the file to the remote TFTP server. Please wait...\ TFTP: Uploading the file successfully. 333436 bytes send in 1 second.3. 從服務(wù)器獲取新版本的系統(tǒng)軟件Quidway tftp get Info: Transfer file in binary mode. Downloading the file from the remote TFTP server. Please wait.../TFTP: Downloading the file successfully. 52749606 bytes received in 372 seconds.出現(xiàn)“Downloading the file successfully”,則說(shuō)明系統(tǒng)軟件加載成功。4. 從服務(wù)器獲取License文件Quidway tftp get Info: Transfer file in binary mode. Downloading the file from the remote TFTP server. Please wait...\ TFTP: Downloading the file successfully. 1748 bytes received in 1 second.5. (可選)從服務(wù)器獲取新的配置文件如果版本升級(jí)時(shí),不需要更新配置文件,則跳過(guò)這一步。Quidway tftp get Info: Transfer file in binary mode. Downloading the file from the remote TFTP server. Please wait.../ TFTP: Downloading the file successfully. 2757 bytes received in 1 second.結(jié)束方法二:S9300作為FTP ServerFTP Client程序由用戶自己購(gòu)買、安裝,S9300不附帶此軟件。1. 將S9300設(shè)置為FTP Server配置S9300作為FTP Server,假設(shè)Ethernet0/0/,F(xiàn)TP用戶名為S9300,密碼為123456,F(xiàn)TP工作目錄是cfcard:/。Quidway systemview[Quidway] ftp server enableInfo: Succeeded in starting the FTP server. [Quidway] aaa[Quidwayaaa] localuser S9300 password simple 123456info: A new user added[Quidwayaaa] localuser S9300 ftpdirectory cfcard:[Quidwayaaa] localuser S9300 servicetype ftp通常S9300的各種配置文件都在CF卡,所以FTP工作目錄一般都寫為cfcard:/。這個(gè)目錄一定要正確填寫,因?yàn)楦夸洘o(wú)法改動(dòng)。2. 備份系統(tǒng)軟件、配置文件和補(bǔ)丁文件。可以通過(guò)以下兩種方式登錄到FTP服務(wù)器(即S9300)完成備份:l 通過(guò)任何FTP Client程序登錄到S9300,備份文件到FTP Client。其中作為FTP服務(wù)器的S9300的IP地址和工作目錄見(jiàn)FTP登錄界面的Address部分,可用此程序把工作目錄下需要備份的文件拷到PC的某目錄下,如圖中的D:\ftp。l 在操作終端上使用命令行登錄到S9300,備份文件到FTP Client。注意登錄時(shí)的目錄應(yīng)使用本機(jī)上升級(jí)程序所在的目錄及FTP工作目錄,假設(shè)為D:\ftp。在Windows XP系統(tǒng)中,可以按照如下步驟啟動(dòng)FTP 程序:? 在PC機(jī)上,選擇“開(kāi)始”“運(yùn)行”。? 輸入cmd。? 在彈出的界面輸入d:? 輸入cd ftp,進(jìn)入FTP視圖。C:\Documents and Settings\Administratord:D:\cd ftpD:\ftp ftp Connected to . 220 FTP service ready. User(:(none)):S9300 輸入用戶名331 Password required for s9300.Password: 輸入密碼123456,回車,密碼不顯示在屏幕。230 User logged in. ftp binary200 Type set to I. ftp get 200 Port mand okay. 150 Opening BINARY mo