[Network] Cisco Flash檔案管理

在思科交換機管理檔案作刪除會常用到 ‘ delete ‘ 或  ‘ rmdir ‘

* delete > 針對檔案

* rmdir > 針對空目錄無任何檔案

若針對目前含有檔案要刪除則可以使用如下指令
#delete /recursive /force flash:/c2960-lanbasek9-tar.150-2.SE11

PS:
/recursive : 刪除資料夾及其底下檔案
/force : 不提示強制作動


Reference :
mini鵝的天地 – [Cisco] 刪除Flash中資料夾

[Network] Cisco C2960G-48TC-L IOS upgrade procedure

step01. check current version
# shoe version 或 show boot

step02. check file use state
# shoe flash: 或 dir flash:

step03. temporary Switch IP
> enable
#configure terminal
#interface vlan 1
#ip address 192.168.1.100 255.255.255.0
#no shutdown

step04. client ping switch IP is OK
> ping 192.168.1.100

step05. double check file system free space enough , if not , please delete current IOS
<僅CLI就更新.bin>
# delete c2960-lanbasek9-mz.122-58.SE2.bin
# copy tftp: flash:
<含GUI方式需用.tar更新>
# archive tar /xtract tftp://x.x.x.x/c2960-lanbasek9-tar.122-55.SE12.tar flash:

step06.
# verify flash:c2960-lanbasek9-mz.122-58.SE2.bin

step07 setup next boot IOS
#configure terminal
# boot system flash:c2950-i6k2l2q4-mz.121-22.EA13.bin
or
# boot system flash:/c2960-lanbasek9-tar.122-55.SE12/c2960-lanbasek9-tar.122-55.SE12.bin

step08. save
# write memory 或 copy running-config startup-config

step09. reboot
# reload

step10. final check version
# show version 或 show boot


Reference:
1.CCIE or Null! – Using the CLI to install and IOS in .tar format.
2.CiscoZine – How to upgrade a Cisco stack
3.Original Cisco Factory upgrade website
4.51CTO博客 – 一次不成功的思科2960S交换机的IOS升级