Monday, February 23, 2015

use "archive command" to save configuration of Cisco switches

use archive command to save configuration of Cisco switches

Hi Friends,

sometimes we worried about losing the configuration , while working on larger enterprise, we will have management and monitoring server which stores all the configurations however, sometime we may lose configuration which will be difficult situation to face in real time.

To avoid such kind of issues, we can use archive commands to take backup of the switch configuration whenever we typed write memory command.

i am using FTP server to archive the configuration. please type below commands

ip ftp username XXXXX
ip ftp password XXXX

archive
 log config
  logging enable
  notify syslog
  hidekeys
 path ftp://servername/Network_Backups_FTP/Access_Switch/admin_10.0.10.0/10.0.10.1_Backup_config
 write-memory
 time-period 10080


show archive

The maximum archive configurations allowed is 10.
The next archive file will be named ftp://servername/Network_Backups_FTP/Access_Switch/admin_10.0.10.0/10.0.10.1_Backup_config_-<timestamp>-2
 Archive #  Name
   1        :Error - Bad file number
   2        ftp://servername/Network_Backups_FTP/Access_Switch/admin_10.0.10.0/10.0.10.1_Backup_config <- Most Recent
   3
   4
   5
   6
   7
   8
   9
   10


Most probably 1 - you may face Bad file number error if any issue with configuration on FTP username or password or source interface or folder permission issues


Checklist if you face bad file number error

  •  please ensure username, password are correct by accessing FTP site through browser.


  • To change the source interface of the FTP, please issue below commands on configuration mode

                    ip ftp source-interface vlanXX
                    where xx vlan or interface IP address which having access to server
  • please ensure the username has read/write permission on the folder to create files. Best way to check - install filezilla client - logging with username and password , try to move or copy the files from your laptop.





Thanks for visiting my page..

i hope this information will help you.

Regards
Manoj



No comments: