
我正在嘗試升級我的 3COM 交換器韌體。我正在按照這些連結上的說明進行操作:
http://alextakacs.blogspot.com/2011/06/upgrading-firmware-on-3com-4500-switch.html http://mymcp.blogspot.com/2010/02/upgrading-firmware-on-3com-4500-switch.html
tftp
但是我在執行命令時遇到錯誤
<4500>tftp 192.168.0.41 put flash:/3comoscfg.cfg
我得到的錯誤是這樣的:
File will be transferred in binary mode.
Sending file to remote tftp server. Please wait...
Can't find source file .
以及命令的輸出dir
:
<4500>dir
Directory of unit1>flash:/
1 -rw- 5195 Feb 04 2007 13:21:21 3comoscfg.def
2 (*) -rw- 4228223 Apr 02 2000 00:18:31 s3n03_03_02s168p19.app
3 -rw- 195022 Apr 02 2000 00:19:06 s3o04_06.btm
4 -rw- 995524 Apr 02 2000 00:19:40 s3p04_04.web
5 (*) -rw- 4815 Apr 02 2000 04:37:25 3comoscfg.cfg
為什麼我會收到此錯誤?
答案1
錯誤發生在我的 TFTP 伺服器上。我更改了文件中的以下行/etc/xinetd.d/tftp
:
server_args = -s /var/tftpboot/
對此:
server_args = -c -s /var/tftpboot/
問題就解決了。缺少 -c 選項允許在 TFTP 伺服器上建立新檔案。
答案2
您應該能夠僅指定
tftp 192.168.0.41 put 3comoscfg.cfg
命令解析器可能會被阻塞:/
或不期望絕對路徑。您的命令列在其他方面與我在隨機 3com 託管交換器上提供的文件中給出的範例相同,無論其價值如何。
您也可以嘗試指定目標檔案名稱作為最後一個參數:
tftp 192.168.0.41 put 3comoscfg.cfg someswitch-backup.cfg
如果這可行,而第一個不行,這看起來像是個錯誤,但這是可能的。