Saturday, March 11, 2017

Expect script to connect to the switches

Credits to the owner.

Original link reference:

https://supportforums.cisco.com/discussion/11553001/script-automate-tasks
http://www.corecoding.com/cisco-expect-script_c32.html

Thursday, March 9, 2017

MDS switch migrations

MDS switch migration from 9148 switches to 9396 switches


1) Verify configuration on old switches

      show run
      show port-channel database
      show flogi database
      show interface brief

2)  Take backup from Fabric Interconnects
 
3)   Log into old MDS switch A / B side

4)  Turn off port-channel on MDS switch

     config t
     interface port-channel 11
     np interface po 11

5)  Once port-channel interface is turned off, remove the cables from old switch, and Connect cables to old MDS switches

       Configure port-channel on New MDS switches
     
        config t
        interface fc1/1
        switchport description
        port-license acquire
        channel-group <> force
        no shutdown

        repeat the config on remaining ports

         Interface port-channel<>
         Channel mode active
         switchport mode F
         switchport description <>
         switchport rate-mode dedicated
 
        Add ports to portchannel

        config t
        interface po <>
        interface fc 1/1-8


Once connections are enabled,  Disable the port channel  on Other side of switch and enable the port channel.


Repeat the same config on the B side




Additional commands:

disable port-channel
no interface port-channel <>

config t
inteface fc1/15
channel-group 15
no channel-group 15