Friday, August 17, 2012

CISCO fabrics -MDS-3

CLI command modes :


Switch #

Exec mode :enables temporary changes to terminal settings ,perform basic tests,display system info.

Changes made in this mode are generally not saved across system resets.

Switch(config)#

configuration mode :enables configuration of features that affect the system as a whole .Chnages made on tis mode are saved acrosssystem resets.

To obtain a list of available commands use ?


NO form of commands :

Issue the no form of any commands to perform the following actions:

1.Undo wrongly issued command

2.Delete a created facility

 eg:delete a previouslt created zone.

eg: # no member pwwn 1:2:3:4:5
    # no zone name test vsan 1


 1. Turn the port on and give it a description:

SAN01# config t

Enter configuration commands, one per line.  End with CNTL/Z.

pacdcmdsa3(config)# interface fc4/30

pacdcmdsa3(config-if)# no shutdown

pacdcmdsa3(config-if)# switchport description deploy01

pacdcmdsa3(config-if)# exit

pacdcmdsa3(config)#

pacdcmdsa3# copy running startup

[########################################] 100%

2 .create VASN &Add the port to a vsan:

pacdcmdsa3# config t

Enter configuration commands, one per line.  End with CNTL/Z.

pacdcmdsa3(config)#vsan database

pacdcmdsa3(config-vsan-db)# vsan 10

pacdcmdsa3(config-vsan-db)# vsan 10 name test_vsan_10

pacdcmdsa3(config-vsan-db)#end

# show vsan 10




pacdcmdsa3# config t

Enter configuration commands, one per line.  End with CNTL/Z.

pacdcmdsa3(config)#vsan database

pacdcmdsa3(config-vsan-db)# vsan 10

pacdcmdsa3(config-vsan-db)# vsan 10 interface fc4/30

Traffic on fc4/30 may be impacted. Do you want to continue? (y/n) y

pacdcmdsa3(config-vsan-db)# exit

pacdcmdsa3(config)#

3 .Make pwwn alias:


pacdcmdsa3# config t

Enter configuration commands, one per line.  End with CNTL/Z.


pacdcmdsa3(config)# fcalias name deploy01 vsan 10


pacdcmdsa3(config-fcalias)# member pwwn 21:00:00:e0:8b:8f:e9:7e


pacdcmdsa3(config-fcalias)# exit

4 .Create the zone:

pacdcmdsa3# config t

Enter configuration commands, one per line.  End with CNTL/Z.


pacdcmdsa3(config)# zone name deploy01 vsan 10

pacdcmdsa3(config-zone)# member fcalias deploy01

pacdcmdsa3(config-zone)# member fcalias nsd05-r1

pacdcmdsa3(config-zone)# member fcalias nsd05-r2

pacdcmdsa3(config-zone)# exit

pacdcmdsa3(config)# exit

pacdcmdsa3#

View the zone:

pacdcmdsa3 # show zone name deploy01              

zone name deploy01 vsan 10
  fcalias name nsd05-r1 vsan 10
    pwwn 20:14:00:a0:b8:11:33:d0
 
  fcalias name nsd05-r2 vsan 10
    pwwn 20:24:00:a0:b8:11:33:d0
 
  fcalias name deploy01 vsan 10
    pwwn 21:00:00:e0:8b:8f:e9:7e


5 .Add the zone to a zoneset:

pacdcmdsa3# config t

Enter configuration commands, one per line.  End with CNTL/Z.

pacdcmdsa3(config)# zoneset name san01_prod10 vsan 10

pacdcmdsa3(config-zoneset)# member deploy01

pacdcmdsa3(config-zoneset)# exit

pacdcmdsa3(config)#

Check the zoneset name. Grab the name from the first line of output from:


pacdcmdsa3# show zoneset

zoneset name san01_prod10 vsan 10

6. Activate the zoneset


pacdcmdsa3# config t
Enter configuration commands, one per line.  End with CNTL/Z.

pacdcmdsa3(config)# zoneset activate name san01_prod10 vsan 10

Zoneset activation initiated. check zone status

pacdcmdsa3(config)# exit

pacdcmdsa3# copy running startup
[########################################] 100%

pacdcmdsa3#


7 .Add a user to the cisco mds with network-admin privileges.


pacdcmdsa3# config t

Enter configuration commands, one per line.  End with CNTL/Z.

pacdcmdsa3(config)# username username password password role network-admin

pacdcmdsa3(config)# snmp-server user username network-admin auth md5 password

pacdcmdsa3(config)# exit

pacdcmdsa3# copy running startup
[########################################] 100%

pacdcmdsa3#

8. When attaching symmetrix to your switches its best practice to hard set the ports to 4gb.


pacdcmdsa3(config-if)# int fc3/18

pacdcmdsa3(config-if)# switchport speed 4000

switchport speed auto

9. Rename Fibre Channel aliases using the fcalias rename command like this:

switch(config)# fcalias rename <old alias> <new alias> vsan 10

You can also rename zones:

switch(config)# zone rename <old zone name> <new zone name> vsan 10

And you can rename zonesets:

switch(config)# zoneset rename <old zoneset name> <new zoneset name> vsan 10

10. Search for  thread

switch# show zone | include server-name

pacdcmdsa3# show flogi database|include 21:00:00:24:ff:06:84:cb  (works like grep)

11. Set mode

mds-switch-1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
mds-switch-1(config)# interface fc 1/1
mds-switch-1(config-if)# switchport mode E
mds-switch-1(config-if)# end

12. configure domain ID :

 Configure the switch in  vsan 10 to request a preffered domain 3 and accept any value assigned by the principal switch.


mds-switch-1(config)# fcdomain domain 3 preffered vsan 10

configure the switch in vsan 10 accept only a specific value and moves the local interfaces in vsan 10 to an isolated state if the requested id is not granted.

mds-switch-1(config)# fcdomain domain 3 static vsan 10

Valid domain IDs are numbers between 1-239


13.Configure priority 25 for the local switch in VSAN 10

mds-switch-1(config)# fcdomain priority 25 vsan 10


14 name server statistics

show fcns statistics

15. Rename switch

   # config t
   # switchname newname
   # exit
   # show switchname

16. set speed auto for 3 interfaces

   # config t
   # interface fc1/1 ,fc1/2,fc1/3
   # switchport speed auto
   # no shutdown
   # exit


Important commands :

show interface fc 1/11
show interface description
show interface brief
show logging info
show logging last 10
show running-config diff
show startup-config
show tech-support brief
show version
show zoneset
show running-config
show license usage
show vsan membership
show environment fan
show environment temperature

Data gathering : show tech-support

To move up one level from config mode or config sub mode type exit

To move up directly to the exec mode type end



1 comment:

  1. Sometimes is becomes very hard to take appreciation for your hard work. But sometime only few technical point makes your work worthwhile. Suggestion under this blog is quite good.Cisco SG200

    ReplyDelete