Showing posts with label Cisco switches. Show all posts
Showing posts with label Cisco switches. Show all posts

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



Replacing Faulty Switch on Stack

Replacing Faulty Switch on Stack

Hi Friends,
i would like to provide you simple and easy method to replace the faulty switch on Stack without restarting all the switch.


Step 1: logging to stack switch ( Only Master switch accessible), and issue the command show switch

Switch#show switch
Switch/Stack Mac Address : 0000.0001.0001   
                                           H/W   Current
Switch#  Role   Mac Address     Priority Version  State
----------------------------------------------------------
*1       Master 0000.0001.0001    15     0       Ready              
 2       Member 0000.0001.0002     10     0       Ready              
 3       Member 0000.0001.0003     5      0       Ready              
 4       Member 0000.0001.0004     4      0       Ready

Please ensure priority must be high for Master switch. By default, all the switch will have priority 1.

Step 2 : Identity the switch to be replaced

Step 3 : unpack the new Switch , identify model and IOS version must be same replaced switch on that slot.

Step 4 : Note the stack port cable ( backside of the switch) must be connected to same port was connected.

Step 5:  power off faulty switch . this example assume Switch 4 is faulty. login to master switch , Type same command # show switch

Switch#show switch
Switch/Stack Mac Address : 0000.0001.0001   
                                           H/W   Current
Switch#  Role   Mac Address     Priority Version  State
----------------------------------------------------------
*1       Master 0000.0001.0001    15     0       Ready              
 2       Member 0000.0001.0002     10     0       Ready              
 3       Member 0000.0001.0003     5      0       Ready              
 4       Member 0000.0001.0004     4      0       removed

Step 6 : replace the faulty switch with new.

Step 7 : login to master switch , issue same command show switch
Switch#  Role   Mac Address     Priority Version  State
----------------------------------------------------------
*1       Master 0000.0001.0001    15     0       Ready              
 2       Member 0000.0001.0002     10     0       Ready              
 3       Member 0000.0001.0003     5      0       Ready              
 4       Member 0000.0001.0005    1     0       Ready

Switch priority will be shown as 1, it is best practice to change the priority to other value.

Switch#conf t
switch(conf)#switch 4 priority 4

switch has been successfully replaced


Regards,
Manoj









Tuesday, September 9, 2014

How to run Plink software to automate configuration on bulk cisco switches and routers devices.

Hi Friends,
are you struggling and getting bore to apply same configuration on almost 1000 devices.....then this tips for you .....

Download plink software

go to command prompt

plink ssh ip_address -l username -pw password < config.txt >> sample.txt

copy these commands in notepad, change the file extension .bat and edit with text file.
once all the IP address entered on the .bat file
open command prompt -> run the .bat file.