Cisco Flash File System – Cheat Sheet

This post contains examples of Cisco Flash File System commands.

Erase configuration

ap#write erase // Erase NV memory
ap#write default-config // Erase NV memory, IOS Environment Variables
reload

Bacukp startup and running configuration info FTP server

ap#copy nvram:startup-config ftp://cisco:ftpcisco@192.168.0.103/AP1200/ap-startup-06-12-2015
ap#copy system:running-config ftp://cisco:ftpcisco@192.168.0.103/AP1200/ap-run-06-12-2015

Examplary session

ap#show file systems
ap#cd flash:
ap#dir
ap#mkdir backup_conf

ap#copy nvram:startup-config flash:/backup_conf/startup_bak_01
ap#copy nvram:startup-config flash:/backup_conf/startup_bak_02
ap#copy nvram:startup-config flash:/backup_conf/startup_bak_03

ap#copy flash:/backup_conf/startup_bak_01 ftp://cisco:ftpcisco@192.168.0.103/AP1200/
ap#copy flash:/backup_conf/startup_bak_02 ftp://cisco:ftpcisco@192.168.0.103/AP1200/
ap#copy flash:/backup_conf/startup_bak_03 ftp://cisco:ftpcisco@192.168.0.103/AP1200/

ap#delete /recursive /force flash:backup_conf/
ap#mkdir backup_conf

ap#copy ftp://cisco:ftpcisco@192.168.0.103/AP1200/startup_bak_01 flash:/backup_conf/
ap#copy ftp://cisco:ftpcisco@192.168.0.103/AP1200/startup_bak_02 flash:/backup_conf/
ap#copy ftp://cisco:ftpcisco@192.168.0.103/AP1200/startup_bak_03 flash:/backup_conf/

ap#more flash:/backup_conf/startup_bak_01
ap#copy flash:/backup_conf/startup_bak_01 nvram:startup-config
ap#reload

Other examples

* Show available file systems
ap# show file systems

* Delete file
ap# delete myconfig

* Create tar file
ap# archive tar /create tftp:172.20.10.30/saved.tar flash:/new-configs

* Display the contents of the 'myfile.tar' file:
ap# archive tar /table flash:myfile.tar

* Display only the 'myfile.tar/html' directory:
ap# archive tar /table flash:myfile.tar/html

* Extracts just the new-configs directory from saved.tar into the root directory
ap# archive tar /xtract tftp://172.20.10.30/saved.tar flash:/new-configs

* Display the contents of a file
ap# more tftp://serverA/hampton/savedconfig

Sources:

1. Official Cisco IOS Software Configuration Guide for Cisco Aironet Access Points book.

Leave a Reply

Your email address will not be published. Required fields are marked *