Friday 6 November 2015

HOW to clear HDD (Buffer I/O error on device sdb, logical block 0) errors ?

#dmesg

Buffer I/O error on device sdb, logical block 0
end_request: I/O error, dev sdb, sector 0
Buffer I/O error on device sdb, logical block 0
end_request: I/O error, dev sda, sector 0
end_request: I/O error, dev sdb, sector 0
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
end_request: I/O error, dev sda, sector 0


in fdisk -l sda& sdb devices are not found

#cd /sys/block/sdb/device
#echo 1 > delete

Thursday 5 November 2015

EMC STORAGE:TIME FINDER CLONING

CLONING DEVICES:-
Requirements:-
1)slect source and target devices
2)source & target devices size must be same may be differnt raids.
3)by using symclone we can perform clone operations.

==>create source and target files.
# more pairing_dev
432F    26DF
4337    26E7
433F    26EF
4347    26F7
434F    26FF
449F    2787
44A7    278F
44AF    2797
44B7    279F
===>first time take full copy of data.
# symclone -sid 3896 -f pairing_dev create -precopy -diff
Execute 'Create' operation for the 9 specified device(s)
in device file 'pairing_dev' (y/[n]) ? y
'Create' operation execution is in progress for the device list in
device file 'pairing_dev'. Please wait...
'Create' operation successfully executed for the device list
in device file 'pairing_dev'.
====>start copying
# symclone -sid 3896 -f pairing_dev activate
Execute 'Activate' operation for the 9 specified device(s)
in device file 'pairing_dev' (y/[n]) ? y
'Activate' operation execution is in progress for the device list in
device file 'pairing_dev'. Please wait...
'Activate' operation successfully executed for the device list
in device file 'pairing_dev'.
===>check device status
# symclone -sid 3896 -f pairing_dev query
Device File Name      : pairing_dev
Device's Symmetrix ID : 000290103896

         Source Device                   Target Device            State     Copy
--------------------------------- ---------------------------- ------------ ----
               Protected Modified                Modified
Logical   Sym  Tracks    Tracks   Logical   Sym  Tracks   CGDP SRC <=> TGT  (%)
--------------------------------- ---------------------------- ------------ ----
N/A       432F         0        0 N/A       26DF        0 X.X. Copied       100
N/A       4337         0        0 N/A       26E7        0 X.X. Copied       100
N/A       433F         0        0 N/A       26EF        0 X.X. Copied       100
N/A       4347         0        0 N/A       26F7        0 X.X. Copied       100
N/A       434F         0        0 N/A       26FF        0 X.X. Copied       100
N/A       449F         0        0 N/A       2787        0 X.X. Copied       100
N/A       44A7         0        0 N/A       278F        0 X.X. Copied       100
N/A       44AF         0        0 N/A       2797        0 X.X. Copied       100
N/A       44B7         0        0 N/A       279F        0 X.X. Copied       100
Total           -------- --------                --------
  Track(s)             0        0                       0
  MB(s)              0.0      0.0                     0.0
Legend:
(C): X = The background copy setting is active for this pair.
     . = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
     . = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
     . = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
     . = The pre-copy operation has not completed one cycle
====>terminate relation ship between devices.
# symclone -sid 3896 -f pairing_dev terminate
Execute 'Terminate' operation for the 9 specified device(s)
in device file 'pairing_dev' (y/[n]) ? y
'Terminate' operation execution is in progress for the device list in
device file 'pairing_dev'. Please wait...
'Terminate' operation successfully executed for the device list
in device file 'pairing_dev'.
===>check device status.
# symclone -sid 3896 -f pairing_dev query
The Source device and the Target device do not form a Copy session
Device file 'pairing_dev' does not have any devices that are Clone source devices

====================================[[[[[[ OR]]]]]]]=====================================
1)Create symmetrix disk groups.
2)add devices in these disk groups.
3)perform clone operations.
==>to create symdg
#symdg create testdg
#cat sourceluns
26DF
26E7
26EF
26F7
26FF
2787
278F
2797
279F
==>to add devices to symdg
# for i in `cat sourceluns`; do echo $i; symld -g testdg add dev $i; done
===>to see symdg status
# symdg show testdg
Group Name:  testdg
    Group Type                                   : REGULAR
    Device Group in GNS                          : No
    Valid                                        : Yes
    Symmetrix ID                                 : 000290103896
    Group Creation Time                          : Thu Dec 20 13:49:12 2012
    Vendor ID                                    : EMC Corp
    Application ID                               : SYMCLI
    Number of STD Devices in Group               :    9
    Number of Associated GK's                    :    0
    Number of Locally-associated BCV's           :    0
    Number of Locally-associated VDEV's          :    0
    Number of Locally-associated TGT's           :    0
    Number of Remotely-associated VDEV's(STD RDF):    0
    Number of Remotely-associated BCV's (STD RDF):    0
    Number of Remotely-associated TGT's(TGT RDF) :    0
    Number of Remotely-associated BCV's (BCV RDF):    0
    Number of Remotely-assoc'd RBCV's (RBCV RDF) :    0
    Number of Remotely-assoc'd BCV's (Hop-2 BCV) :    0
    Number of Remotely-assoc'd VDEV's(Hop-2 VDEV):    0
    Number of Remotely-assoc'd TGT's (Hop-2 TGT) :    0
    Number of Composite Groups                   :    0
    Composite Group Names                        : N/A
    Standard (STD) Devices (9):
        {
        ----------------------------------------------------------------------------------
                                                      Sym  Device                     Cap
        LdevName              PdevName                Dev  Config        Att. Sts     (MB)
        ----------------------------------------------------------------------------------
        DEV001                N/A                     26DF RAID-5        (M)  RW     69713
        DEV002                N/A                     26E7 RAID-5        (M)  RW     69713
        DEV003                N/A                     26EF RAID-5        (M)  RW     69713
        DEV004                N/A                     26F7 RAID-5        (M)  RW     69713
        DEV005                N/A                     26FF RAID-5        (M)  RW     69713
        DEV006                N/A                     2787 RAID-5        (M)  RW     69713
        DEV007                N/A                     278F RAID-5        (M)  RW     69713
        DEV008                N/A                     2797 RAID-5        (M)  RW     69713
        DEV009                N/A                     279F RAID-5        (M)  RW     69713
        }
==>to remove luns from symdg
#cat luns_remove
DEV001
DEV002
DEV003
DEV004
DEV005
DEV006
DEV007
DEV008
DEV009
#for i in `cat luns_remove`; do echo $i; symld -g testdg remove dev $i; done
==>to remove symdg
# symdg  delete  testdg -force

CISCO SWITCH ADMIN PART-1 (MDS 9148 switch firmware up gradation/administration)


FIRMWARE UPGRADATION OF CISCO MDS 9148 SWITCH

# ssh admin@(IP OF SWITCH)
Password:
Cisco Nexus Operating System (NX-OS) Software

1)To show vesion
EDGESWITCH# show version

Software
  BIOS:      version 1.0.18
  loader:    version N/A
  kickstart: version 5.0(1a)
  system:    version 5.0(1a)
  BIOS compile time:       01/07/10
  kickstart image file is: bootflash:/m9100-s3ek9-kickstart-mz.5.0.1a.bin
  kickstart compile time:  12/25/2020 12:00:00 [02/21/2010 20:09:44]
  system image file is:    bootflash:/m9100-s3ek9-mz.5.0.1a.bin
  system compile time:     2/2/2010 17:00:00 [02/21/2010 23:13:41]

Hardware
  cisco MDS 9148 FC (1 Slot) Chassis ("1/2/4/8 Gbps FC/Supervisor-3")
  Motorola, e500v2  with 1036308 kB of memory.
  Processor Board ID JAF1642ANFC
  Device name: IDC1-SW05
  bootflash:    1000944 kB
Kernel uptime is 0 day(s), 2 hour(s), 29 minute(s), 4 second(s)
Last reset
  Reason: Unknown
  System version: 5.0(1a)
  Service:
EDGESWITCH# dir bootflash:
        950    Oct 21 23:04:07 2012  license_AMS16350858_15.lic
      16384    Oct 21 22:59:21 2012  lost+found/
   18693120    Oct 21 23:00:58 2012  m9100-s3ek9-kickstart-mz.5.0.1a.bin
   73579433    Oct 21 23:03:36 2012  m9100-s3ek9-mz.5.0.1a.bin
       2085    Oct 11 06:06:04 2013  mts.log
Usage for bootflash://sup-local
  143601664 bytes used
  533508096 bytes free
  677109760 bytes total
2)copy Firmware files (m9100-s3ek9-mz.6.2.3.bin & m9100-s3ek9-kickstart-mz.6.2.3.bin)
EDGESWITCH# copy ftp://<SERVERIP>/tmp/nos/9148/m9100-s3ek9-mz.6.2.3.bin  bootflash:
Enter username: sap
Password:

EDGESWITCH# dir bootflash:
        950    Oct 21 23:04:07 2012  license_AMS16350858_15.lic
      16384    Oct 21 22:59:21 2012  lost+found/
   18693120    Oct 21 23:00:58 2012  m9100-s3ek9-kickstart-mz.5.0.1a.bin
   19984384    Oct 11 08:36:34 2013  m9100-s3ek9-kickstart-mz.6.2.3.bin
   73579433    Oct 21 23:03:36 2012  m9100-s3ek9-mz.5.0.1a.bin
   73345328    Oct 11 08:37:10 2013  m9100-s3ek9-mz.6.2.3.bin
       2085    Oct 11 06:06:04 2013  mts.log
Usage for bootflash://sup-local
  237035520 bytes used
  440074240 bytes free
  677109760 bytes total


3)upgrade switches

# install all kickstart bootflash:m9100-s3ek9-kickstart-mz.6.2.3.bin system bootflash:m9100-s3ek9-mz.6.2.3.bin

Verifying image bootflash:/m9100-s3ek9-kickstart-mz.6.2.3.bin for boot variable "kickstart".
[####################] 100% -- SUCCESS
Verifying image bootflash:/m9100-s3ek9-mz.6.2.3.bin for boot variable "system".
[####################] 100% -- SUCCESS
Verifying image type.
[####################] 100% -- SUCCESS
Extracting "system" version from image bootflash:/m9100-s3ek9-mz.6.2.3.bin.
[####################] 100% -- SUCCESS
Extracting "kickstart" version from image bootflash:/m9100-s3ek9-kickstart-mz.6.2.3.bin.
[####################] 100% -- SUCCESS
Extracting "bios" version from image bootflash:/m9100-s3ek9-mz.6.2.3.bin.
[#                   ]   0%                                                    [####################] 100% -- SUCCESS
Performing Compact Flash and TCAM sanity test.
[####################] 100% -- SUCCESS
Performing module support checks.                                              [####################] 100% -- SUCCESS
Notifying services about system upgrade.                                       [####################] 100% -- SUCCESS

Compatibility check is done:
Module  bootable          Impact  Install-type  Reason
------  --------  --------------  ------------  ------
     1       yes  non-disruptive         reset

Images will be upgraded according to following table:
Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
------  ----------  ----------------------------------------  --------------------  ------------
     1      system                                   5.0(1a)                6.2(3)           yes
     1   kickstart                                   5.0(1a)                6.2(3)           yes
     1        bios     v1.0.18(01/07/10):  v1.0.18(01/07/10)     v1.0.19(02/01/10)           yes

Do you want to continue with the installation (y/n)?  [n]

EDGESWITCH# install all kickstart bootflash:m9100-s3ek9-kickstart-mz.6.2.3.bin system bootflash:m9100-s3ek9-mz.6.2.3.bin
Verifying image bootflash:/m9100-s3ek9-kickstart-mz.6.2.3.bin for boot variable "kickstart".
[####################] 100% -- SUCCESS
Verifying image bootflash:/m9100-s3ek9-mz.6.2.3.bin for boot variable "system".
[####################] 100% -- SUCCESS
Verifying image type.
[####################] 100% -- SUCCESS
Extracting "system" version from image bootflash:/m9100-s3ek9-mz.6.2.3.bin.
[####################] 100% -- SUCCESS
Extracting "kickstart" version from image bootflash:/m9100-s3ek9-kickstart-mz.6.2.3.bin.
[####################] 100% -- SUCCESS
Extracting "bios" version from image bootflash:/m9100-s3ek9-mz.6.2.3.bin.
[####################] 100% -- SUCCESS
Performing Compact Flash and TCAM sanity test.
[####################] 100% -- SUCCESS
Performing module support checks.                                              [####################] 100% -- SUCCESS
Notifying services about system upgrade.                                       [####################] 100% -- SUCCESS

Compatibility check is done:
Module  bootable          Impact  Install-type  Reason
------  --------  --------------  ------------  ------
     1       yes  non-disruptive         reset

Images will be upgraded according to following table:
Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
------  ----------  ----------------------------------------  --------------------  ------------
     1      system                                   5.0(1a)                6.2(3)           yes
     1   kickstart                                   5.0(1a)                6.2(3)           yes
     1        bios     v1.0.18(01/07/10):  v1.0.18(01/07/10)     v1.0.19(02/01/10)           yes

Do you want to continue with the installation (y/n)?  [n] y
Install is in progress, please wait.
Performing runtime checks.                                                     [####################] 100% -- SUCCESS
Notifying services about the upgrade.                                          [####################] 100% -- SUCCESS
Setting boot variables.
[####################] 100% -- SUCCESS
Performing configuration copy.
[####################] 100% -- SUCCESS
Module 1: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Upgrade can no longer be aborted, any failure will result in a disruptive upgrade.
Freeing memory in the file system.                                             [####################] 100% -- SUCCESS
Loading images into memory.                                                    [####################] 100% -- SUCCESS
Saving linecard runtime state.                                                 [####################] 100% -- SUCCESS
Saving supervisor runtime state.                                               [####################] 100% -- SUCCESS
Saving mts state.                                                              [####################] 100% -- SUCCESS
Rebooting the switch to proceed with the upgrade.

# ssh admin@xx.xx.xx.xx

Password:
EDGESWITCH# show version

Software
  BIOS:      version 1.0.19
  loader:    version N/A
  kickstart: version 6.2(3)
  system:    version 6.2(3)
  BIOS compile time:       02/01/10
  kickstart image file is: bootflash:///m9100-s3ek9-kickstart-mz.6.2.3.bin
  kickstart compile time:  7/10/2013 2:00:00 [07/31/2013 10:05:08]
  system image file is:    bootflash:///m9100-s3ek9-mz.6.2.3.bin
  system compile time:     7/10/2013 2:00:00 [07/31/2013 11:15:29]

Hardware
  cisco MDS 9148 FC (1 Slot) Chassis ("1/2/4/8 Gbps FC/Supervisor-3")
  Motorola, e500v2  with 1036300 kB of memory.
  Processor Board ID JAF1642ANFC
  Device name: IDC1-SW05
  bootflash:    1000944 kB
Kernel uptime is 0 day(s), 0 hour(s), 2 minute(s), 44 second(s)
Last reset at 431992 usecs after  Fri Oct 11 08:45:32 2013
  Reason: Reset due to upgrade
  System version: 5.0(1a)
  Service:
IDC1-SW05#
IDC1-SW05# reload
This command will reboot the system. (y/n)?  [n] y
Read from remote host 10.128.38.55: Connection reset by peer
Connection to 10.128.38.55 closed.
sap@P072XSTRMG # ssh admin@xx.xx.xx.xx
Could not create directory '/home/sap/.ssh'.
The authenticity of host '10.128.38.55 (10.128.38.55)' can't be established.
RSA key fingerprint is a8:ab:9b:b0:39:a8:15:03:c2:ee:76:73:96:09:14:4f.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/sap/.ssh/known_hosts).
User Access Verification
Password:
Cisco Nexus Operating System (NX-OS) Software
Copyright (c) 2002-2013, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at

IDC1-SW05#
IDC1-SW05# show version
Cisco Nexus Operating System (NX-OS) Software
Copyright (c) 2002-2013, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained herein are owned by
other third parties and are used and distributed under license.
Some parts of this software are covered under the GNU Public
License. A copy of the license is available at
Software
  BIOS:      version 1.0.19
  loader:    version N/A
  kickstart: version 6.2(3)
  system:    version 6.2(3)
  BIOS compile time:       02/01/10
  kickstart image file is: bootflash:///m9100-s3ek9-kickstart-mz.6.2.3.bin
  kickstart compile time:  7/10/2013 2:00:00 [07/31/2013 10:05:08]
  system image file is:    bootflash:///m9100-s3ek9-mz.6.2.3.bin
  system compile time:     7/10/2013 2:00:00 [07/31/2013 11:15:29]

Hardware
  cisco MDS 9148 FC (1 Slot) Chassis ("1/2/4/8 Gbps FC/Supervisor-3")
  Motorola, e500v2  with 1036300 kB of memory.
  Processor Board ID JAF1642ANFC
  Device name: IDC1-SW05
  bootflash:    1000944 kB
Kernel uptime is 0 day(s), 0 hour(s), 2 minute(s), 7 second(s)
Last reset at 856438 usecs after  Fri Oct 11 08:49:19 2013
  Reason: Reset Requested by CLI command reload
  System version: 6.2(3)
  Service:


===============
1.To SHOW MODULE:-
IDC1-CSW02# show module
Mod  Ports  Module-Type                         Model              Status
---  -----  ----------------------------------- ------------------ ----------
1    32     1/2/4/8/10 Gbps Advanced FC Module  DS-X9232-256K9     ok
2    32     1/2/4/8/10 Gbps Advanced FC Module  DS-X9232-256K9     ok
3    32     1/2/4/8/10 Gbps Advanced FC Module  DS-X9232-256K9     ok
4    32     1/2/4/8/10 Gbps Advanced FC Module  DS-X9232-256K9     ok
7    0      Supervisor/Fabric-2a                DS-X9530-SF2AK9    active *
8    0      Supervisor/Fabric-2a                DS-X9530-SF2AK9    ha-standby
Mod  Sw              Hw      World-Wide-Name(s) (WWN)
---  --------------  ------  --------------------------------------------------
1    6.2(3)          1.1     20:01:54:7f:ee:af:95:40 to 20:20:54:7f:ee:af:95:40
2    6.2(3)          1.1     20:41:54:7f:ee:af:95:40 to 20:60:54:7f:ee:af:95:40
3    6.2(3)          1.1     20:81:54:7f:ee:af:95:40 to 20:a0:54:7f:ee:af:95:40
4    6.2(3)          1.1     20:c1:54:7f:ee:af:95:40 to 20:e0:54:7f:ee:af:95:40
7    6.2(3)          1.4     --
8    6.2(3)          1.4     --

Mod  MAC-Address(es)                         Serial-Num
---  --------------------------------------  ----------
1    68-ef-bd-a8-da-dc to 68-ef-bd-a8-da-df  JAF1723AABS
2    68-ef-bd-a8-db-44 to 68-ef-bd-a8-db-47  JAF1723AADD
3    68-ef-bd-a8-db-38 to 68-ef-bd-a8-db-3b  JAF1723AACA
4    68-ef-bd-a8-da-a0 to 68-ef-bd-a8-da-a3  JAF1723AABA
7    c8-9c-1d-41-d3-3c to c8-9c-1d-41-d3-3f  JAF1722BFSF
8    c8-9c-1d-41-d3-2c to c8-9c-1d-41-d3-2f  JAF1723ACAK
Xbar Ports  Module-Type                         Model              Status
---  -----  ----------------------------------- ------------------ ----------
1    0      Fabric Module 3                     DS-13SLT-FAB3      ok
2    0      Fabric Module 3                     DS-13SLT-FAB3      ok
Xbar Sw              Hw      World-Wide-Name(s) (WWN)
---  --------------  ------  --------------------------------------------------
1    NA              1.4     --
2    NA              1.4     --

Xbar MAC-Address(es)                         Serial-Num
---  --------------------------------------  ----------
1    NA                                      JAF1721ANEA
2    NA                                      JAF1721ANGN
* this terminal session

edge switch:-
IDC1-SW06# show module
Mod  Ports  Module-Type                         Model              Status
---  -----  ----------------------------------- ------------------ ----------
1    48     1/2/4/8 Gbps FC/Supervisor-3        DS-C9148-K9-SUP    active *
Mod  Sw              Hw      World-Wide-Name(s) (WWN)
---  --------------  ------  --------------------------------------------------
1    6.2(3)          1.1     20:01:54:7f:ee:b8:08:d8 to 20:30:54:7f:ee:b8:08:d8

Mod  MAC-Address(es)                         Serial-Num
---  --------------------------------------  ----------
1    30-f7-0d-c9-8b-c8 to 30-f7-0d-c9-8b-cb  JAF1642ANJH
* this terminal session

===========================================
2)To see the interface information
IDC1-CSW02(config)# show interface
fc1/1 is up
    Hardware is Fibre Channel, SFP is short wave laser w/o OFC (SN)
    Port WWN is 20:01:54:7f:ee:af:95:40
    Admin port mode is FX, trunk mode is on
    snmp link state traps are enabled
    Port mode is F, FCID is 0x090000
    Port vsan is 20
    Speed is 8 Gbps
    Rate mode is shared
    Transmit B2B Credit is 20
    Receive B2B Credit is 32
    Receive data field Size is 2112
    Beacon is turned off
    5 minutes input rate 4314112 bits/sec,539264 bytes/sec, 266 frames/sec
    5 minutes output rate 24544 bits/sec,3068 bytes/sec, 59 frames/sec
      128838407 frames input,164820321624 bytes
        0 discards,0 errors
        0 invalid CRC/FCS,0 unknown class
        0 too long,0 too short
      420867885 frames output,810133110612 bytes
        0 discards,0 errors
      0 input OLS,0  LRR,0 NOS,0 loop inits
      1 output OLS,1 LRR, 0 NOS, 1 loop inits
      32 receive B2B credit remaining
      20 transmit B2B credit remaining
      20 low priority transmit B2B credit remaining
    Interface last changed at Fri Nov 15 09:47:29 2013
    Last clearing of "show interface" counters  :never
similarly it shows all switch ports
=============================================================
3)to show all switch interfaces information breafly
IDC1-CSW02(config)# show interface brief
-------------------------------------------------------------------------------
Interface  Vsan   Admin  Admin   Status       SFP    Oper  Oper   Port
                  Mode   Trunk                       Mode  Speed  Channel
                         Mode                              (Gbps)
-------------------------------------------------------------------------------
fc1/1      20     FX     on      up           swl   F      8      --
fc1/2      20     FX     on      up           swl   F      8      --
fc1/3      20     FX     on      up           swl   F      8      --
fc1/4      20     FX     on      up           swl   F      8      --
fc1/5      20     FX     on      up           swl   F      8      --
fc1/6      20     FX     on      up           swl   F      8      --
fc1/7      20     auto   on      trunking     swl   TE     8      --
;
;
;
fc1/12     20     FX     on      notConnected swl    --    --     --
;
;
fc1/23     20     auto   on      trunking     swl   TE     8      --
fc1/24     20     auto   on      trunking     swl   TE     8      --
;
;
fc4/23     20     auto   on      trunking     swl   TE     8      --
fc4/24     20     auto   on      trunking     swl   TE     8      --
fc4/25     20     FX     on      up           swl   F      8      --
fc4/26     20     FX     on      notConnected swl    --    --     --
fc4/27     20     FX     on      up           swl   F      8      --
fc4/28     20     FX     on      notConnected swl    --    --     --
fc4/29     20     FX     on      up           swl   F      8      --
fc4/30     20     FX     on      notConnected swl    --    --     --
fc4/31     20     FX     on      up           swl   F      8      --
fc4/32     20     FX     on      notConnected swl    --    --     --
-------------------------------------------------------------------------------
Interface                Status                            Speed
                                                           (Gbps)
-------------------------------------------------------------------------------
sup-fc0                  up                                1
-------------------------------------------------------------------------------
Interface               Status     IP Address         Speed     MTU
-------------------------------------------------------------------------------
mgmt0                    up         10.128.38.50/27    1 Gbps   1500

========================================================

4)to show version of switch
IDC1-CSW02(config)# show version

Software
  BIOS:      version 1.0.10
  loader:    version N/A
  kickstart: version 6.2(3)
  system:    version 6.2(3)
  BIOS compile time:       01/08/09
  kickstart image file is: bootflash:///m9500-sf2ek9-kickstart-mz.6.2.3.bin
  kickstart compile time:  7/10/2013 2:00:00 [07/31/2013 10:05:06]
  system image file is:    bootflash:///m9500-sf2ek9-mz.6.2.3.bin
  system compile time:     7/10/2013 2:00:00 [07/31/2013 11:31:55]

Hardware
  cisco MDS 9513 (13 Slot) Chassis ("Supervisor/Fabric-2a")
  Motorola, 7447A, altivec  with 2071288 kB of memory.
  Processor Board ID JAF1722BFSF
  Device name: IDC1-CSW02
  bootflash:    1000944 kB
  slot0:              0 kB (expansion flash)
Kernel uptime is 14 day(s), 0 hour(s), 25 minute(s), 57 second(s)
Last reset at 232586 usecs after  Fri Nov 15 09:41:51 2013
  Reason: Reset Requested by CLI command reload
  System version: 6.2(3)
  Service:
plugin
  Core Plugin


5)How to change switch port speed
IDC1-CSW02(config)# interface fc3/15
IDC1-CSW02(config-if)# show interface fc3/15
fc3/15 is up
    Hardware is Fibre Channel, SFP is short wave laser w/o OFC (SN)
    Port WWN is 20:8f:54:7f:ee:af:95:40
    Admin port mode is FX, trunk mode is on
    snmp link state traps are enabled
    Port mode is F, FCID is 0x0904a0
    Port vsan is 20
    Speed is 8 Gbps
    Rate mode is shared
    Transmit B2B Credit is 20
    Receive B2B Credit is 32
    Receive data field Size is 2112
    Beacon is turned off
    5 minutes input rate 0 bits/sec,0 bytes/sec, 0 frames/sec
    5 minutes output rate 0 bits/sec,0 bytes/sec, 0 frames/sec
      13 frames input,1132 bytes
        0 discards,0 errors
        0 invalid CRC/FCS,0 unknown class
        0 too long,0 too short
      13 frames output,896 bytes
        0 discards,0 errors
      0 input OLS,0  LRR,0 NOS,0 loop inits
      1 output OLS,1 LRR, 0 NOS, 1 loop inits
      32 receive B2B credit remaining
      20 transmit B2B credit remaining
      20 low priority transmit B2B credit remaining
    Interface last changed at Fri Nov 15 09:47:32 2013
    Last clearing of "show interface" counters  :never
IDC1-CSW02(config-if)# show interface fc3/15 brief
-------------------------------------------------------------------------------
Interface  Vsan   Admin  Admin   Status       SFP    Oper  Oper   Port
                  Mode   Trunk                       Mode  Speed  Channel
                         Mode                              (Gbps)
-------------------------------------------------------------------------------
fc3/15     20     FX     on      up           swl   F      8      --
IDC1-CSW02(config-if)# switchport speed 4000
IDC1-CSW02(config-if)# show interface fc3/15 brief
-------------------------------------------------------------------------------
Interface  Vsan   Admin  Admin   Status       SFP    Oper  Oper   Port
                  Mode   Trunk                       Mode  Speed  Channel
                         Mode                              (Gbps)
-------------------------------------------------------------------------------
fc3/15     20     FX     on      up           swl   F      4      --
IDC1-CSW02(config-if)# switchport speed auto
IDC1-CSW02(config-if)# show interface fc3/15 brief
-------------------------------------------------------------------------------
Interface  Vsan   Admin  Admin   Status       SFP    Oper  Oper   Port
                  Mode   Trunk                       Mode  Speed  Channel
                         Mode                              (Gbps)
-------------------------------------------------------------------------------
fc3/15     20     FX     on      up           swl   F      8      --


6)PORT MODES
  FC port have only one mode at a time
  16 prot blade/slot default mode is AUTO
  32 port blade/slot default mode is FX
modes:-
i)E  --> used for expansion of fabric i.e one end of ISL
ii)F --> used for host/san i.e end devices
iii)N --> for end devices side
iv)FL --> for loop devices
v)Fx  --> for
vi)G  -->generic port
vii)SD 
iix)St
ix)TL
x)U