September 28

Remove a Provisioned Switch from a Cisco Switch Stack

To remove a switch from stack, the member number of the switch must be changed back to 1 and the provision info must be removed.

Otherwise, you might see error “..Switch can not be un-provisioned when it is physically present..”

switch# show switch                (determine the member number of the switch)

switch(config)#switch 2 renumber 1 (assume the switch is member 2)

Write mem

Reload

switch(config)#no switch 2 provision

Write mem

Reload

September 28

Upgrade Cisco 3750E IOS

First, configure an ip address at the switch so that it can communicate with tftp server

conf t

int vlan 1

ip address 192.168.0.254 255.255.255.0

  • Backup old ios  copy flash:  tftp:   (please note, the file name is case sensitive. the source ios file can be at flash:/c3750e-universalkg-mz.122-44.SE2/c3750-universalk9-mz.122-44.SE2.bin, use sh flash: command to see first)

  • Delete old ios files       delete  flash:c3750e-universalk9-mz.122-55.SE1.bin (old ios name)

or delete the old folder 

delete the old tar file (if there is one)wr

  • Copy new ios bin file copy tftp: flash:

or  if you have tar file  use this command: archive tar /xtract tftp://192.168.0.2/c3750aaaaaa.tar flash:        (replace 192.168.0.2 with your tftp server ip address)

Set boot image

conf t

boot system flash:/c3750-advipservicesk9-mz.122-25.SEE1/c3750-advipservicesk9-mz.122-25.SEE1.bin

Exit

write memory 

  • Confirm boot image  show boot
  • reload
Category: Cisco | LEAVE A COMMENT
September 27

Delete Cisco Switch Folder

use the delete [/force] [/recursive] [filesystem:]/file-url privileged EXEC command

/recursive  deleting a directory and all subdirectories and the files contained in it.

/force     suppress the prompting that confirms a deletion of each file in the directory.

example:

delete folder

delete file

 

 

Category: Cisco | LEAVE A COMMENT
September 27

Reset Cisco 3750E Switch to Factory Defaults

os 15.0

1 Connect to console

2 Boot up the switch

3 Hold the MODE button for about 20 sec, then release it.

4 When the terminal display the following prompt  switch:

5 Type flash_init

6 Type dir flash:

7 delete flash:config.text and vlan.dat if they exist

8 Type boot (reload)

One can also use the following command to erase the configuration  (however, if Vlans is configured, vlan.dat has to be deleted as VLANs are not saved in the NVRAM, but in the flash in a totally independent file named VLAN.dat, write erase will not delete Vlan.dat)

switch# write erase  (or erase starup-config)
Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK]
Erase of nvram: complete
switch#
switch# reload

Note:  private-config.text is used for the switch when it is booted outside of a cluster in standalone mode.

 

Category: Cisco | LEAVE A COMMENT