Download - Mod2_CLI

Transcript
  • Command Line Interface

  • Configuration AccessFibre Channel FabricDirectConsole PortOut-of-bandEthernet Port Web/SNMP(Fabric Manager)Telnet/SSHVT100In-band(IP over FC)FC Port

  • Getting Help in CLI? is the key to everythingShows valid ranges, keywords, etc.MDS-3# show vsan ?VSAN id rangeMembershipShow membership informationUsageShow vsan usage in the systemCarriage return

    MDS-3(config-vsan-db)# vsan ?VSAN id range

  • Getting Help in CLI and Tab UsageTab character Use to complete a commandMDS-3(config-vsan-db)# vsan 1 ? interfaceAdd Interface to vsan interopTurn on interoperability mode loadbalancingConfigure loadbalancing scheme nameAssign a name to vsan suspendSuspend vsan Carriage ReturnMDS-3(config-vsan-db)# vsan 1 l(Press )!(becomes)MDS-3(config-vsan-db)# vsan 1 load-balancing

  • Other Convenient Featuresshow running-configMDS-3#Display the current configuration informationcopy running-config startup-configMDS-3#Save the current running configuration to stable storage for use when the switch is rebooted

  • Other Convenient Features (Cont.)endMDS-3-config#Exit any configuration mode; return to EXEC modeexitMDS-3(config)#Go up one layer in the menuUse the up arrow and down arrow keys to traverse the command history.

  • Role-Based Access ControlCan set up different roles with different rules for each role.Two pre-defined roles: network-operator Cannot configure the MDS; has access only to the show commands along with file system commands (dir, copy, etc.) and basic network utilities (ping, etc.) network-admin Has access to all the CLI commands and can setup 64 permission levels based on user roles and groups

  • Role-Based: Configuration itemsThere are 3 configuration items:MDS-3# config terminalMDS-3(config)# role name role2MDS-3(config-role)#MDS-3(config-role)# description non-admin groupMDS-3(config-role)# rule 1 permit debugMDS-3(config-role)# rule 2 permit clearMDS-3(config-role)# rule 3 permit show feature interface1. Role Name2. Description3. Rule

  • Creating UsersUsers configuration attributes username password password expiration role assignedMDS-3(config)# username user1 password cisco expire 2002-12-25 role no-configurationMDS-3(config)# username user2 password cisco role interface-config

  • Fibre Channel Interfaces

  • Fiber Channel Interfaces Overview Interface Modes in MDS Family Switches

  • FC Interfaces Trunk ModesTrunk Mode configuration:

  • FC Interfaces Name and BeaconInterface WWN: Each interface is assigned a unique WWN Interface FCID:In operational Up state, each interface is assigned an FCIDIn F mode, it is the FCID assigned to the attached N-portIn FL mode, it is the Loop Fabric Address (LFA) of the portInterface Beacon:If enabled, the Port LED keeps blinkingDoes not affect operation of the interface

  • Interface Management InfrastructureInterface Management Services Port Manager FLOGI Manager TL Port Manager SPAN Manager Port Channel Manager VSAN Interface Manager

  • Basic Fibre Channel Interface Configuration

  • FLOGI Enhancement: FC-ID Inter-Op ModeFC-ID consists of domain-area-port. Today, most switch vendors assign one complete area to an N port attached to an F port, thus limiting the maximum number of ports in the switch to be 255.FLOGI Manager intelligently assigns single FC-ID to an N-port attached to an F port in the switch:It provides a command to disable this feature, if required.MDS-3(config)# no fcinterop fcid-allocation (No,Flat,Auto)

  • FLOGI Manager CLITo display the FLOGI Database:MDS-3# show flogi database ? fcidFcid: enter the fcid to be matched interfaceInterface id: enter the interface id of the port vsanVsan id:Enter the vsan number. Carriage ReturnMDS-3# show flogi database vsan 1---------------------------------------------------------------------------INTERFACE VSAN FCID PORT NAME NODE NAME ---------------------------------------------------------------------------fc2/7 1 0x7a0100 21:00:00:e0:8b:08:20:21 20:00:00:e0:8b:08:20:21fc2/11 1 0x7a0000 21:00:00:e0:8b:07:ca:39 20:00:00:e0:8b:07:ca:39fc2/14 1 0x7a0200 50:06:04:82:c3:a0:98:53 50:06:04:82:c3:a0:98:53fc8/11 1 0x7a0201 50:06:04:82:c3:a0:98:43 50:06:04:82:c3:a0:98:43fc8/31 1 0x7a0202 50:06:04:82:c3:a0:98:42 50:06:04:82:c3:a0:98:42

  • Advanced Interface ConfigurationsConfiguration of BB-Credit and Max Receive Buffer Size:These values may be modified for each interface.Such configuration may be needed for specific network designs to optimize bandwidth utilization or interoperate with existing fabric.Configuration of FC Timers:Values for E_D_TOV, R_A_TOV used in ELP and FLOGI may be modified on a global basis (must be the same on all switches).Any modification does not affect the active ports (in Up state) and the changes take effect only for subsequent logins (ELP or FLOGI).Important: The following configurations should be done with extreme care. For most cases the default values should work fineMake such configurations before connecting to existing fabric

  • Interface Default Settings

    ParameterDefault

    Interface Administrative StateShutdownInterface modeAutoInterface speedAutoTrunk Allowed VSANs1-4093Switchport Trunk modeEnabled (On)Beacon modeDisabled (Off)Fibre Channel received buffer-to-buffer credit16 (Hardware Default)12 on 32 port cardFibre Channel receive buffer size2112

  • Interface StatesEach Interface has an associated administrative and operational state.

    Administrative State DescriptionUPNo shut command to enable the interfaceDownShut command to disable interface

    Operational State DescriptionUPInterface is transmitting and receiving traffic as desired: Administratively UP; Link Layer state is UP and interface initialization must be completedDownCannot transmit or receive data

    Administrative State Description

    Operational State Description

  • Interface FC Switchport Configuration SummaryMDS-3# config tMDS-3(config)# interface fc2/1MDS-3(config-if)# switchport ? beaconDisable/enable the beacon for an interface descriptionEnter description of maximum 80 characters encapConfigure encapsulation for the port fcrxbbcreditConfigure receive BB_credit for the port fcrxbufsizeConfigure receive buffer size for the port modeEnter the port mode speed Enter the port speed trunkConfigure trunking parameters on an interface

  • Interface Mode Configuring MDS-3(config-if)# switchport mode ? autoAutosense mode EE port mode FF port mode FLFL port mode FxFx port mode SDSD port mode TLTL port mode

    MDS-3(config-if)# switchport mode eMDS-3(config-if)# switchport mode sd

  • Interface Description Speed, BBcredits and RxbuffersMDS-3(config-if)# switchport description sample-configuration

    MDS-3(config-if)# switchport speed ? 1000 1000 Mbps speed 2000 2000 Mbps speed auto Autosense speed

    MDS-3(config-if)# switchport speed 1000

    MDS-3(config-if)# switchport fcrxbbcredit ? Enter receive BB_credit default Default receive BB_creditMDS-3(config-if)# switchport fcrxbbcredit 16MDS-3(config-if)# switchport fcrxbufsize ? Enter receive buffer sizeMDS-3(config-if)# switchport fcrxbufsize 2112

  • Interface Trunking Mode and Allowed VSANMDS-3(config-if)# switchport trunk ? allowedConfigure allowed list for interface(s) modeConfigure trunking mode

    MDS-3(config-if)# switchport trunk allowed ? vsanConfigure allowed list for interface(s)

    MDS-3(config-if)# switchport trunk allowed vsan 1updated trunking membership

    MDS-3(config-if)# switchport trunk mode ? autoAutosense trunking for an interface offDisable trunking for an interface onEnable trunking for an interface

    MDS-3(config-if)# switchport trunk mode on

  • Encapsulation, Enabling Interfaces and BeaconMDS-3(config-if)# switchport encap ? eisl EISL encapsulationMDS-3(config-if)# switchport encap eislMDS-3(config-if)# shutdownMDS-3(config-if)# no shutdownMDS-3(config-if)# switchport beaconMDS-3(config-if)# no switchport beaconMDS-3(config-if)#

  • show interface CommandNote: MDS-4# show interface command will show all the installed interfaces in the above format.MDS-4# show interface fc1/1fc1/1 is trunking Hardware is Fibre Channel Port WWN is 20:01:00:05:30:00:50:1e Peer port WWN is 20:41:00:05:30:00:23:de Admin port mode is E, trunk mode is on Port mode is TE Speed is 1 Gbps vsan is 1 Beacon is turned off FCID is 0x000000 Receive B2B Credit is 12 Trunk vsans (allowed active) (1) Trunk vsans (operational) (1) Trunk vsans (up) (1) Trunk vsans (isolated) () Trunk vsans (initializing) () Counter Values (current): 40 frames input, 3284 bytes, 0 discards 0 runts, 0 jabber, 0 too long, 0 too short 0 input errors, 0 CRC, 0 invalid transmission words 0 address id, 0 delimiter 0 EOF abort, 0 fragmented, 0 unknown class 40 frames output, 2544 bytes, 0 discards Received 1 OLS, 1 LRR, 1 NOS, 0 loop inits Transmitted 2 OLS, 1 LRR, 1 NOS, 0 loop inits Counter Values (5 minute averages): 0 frames input, 95 bytes, 0 discards 0 runts, 0 jabber, 0 too long, 0 too short 0 input errors, 0 CRC, 0 invalid transmission words 0 address id, 0 delimiter 0 EOF abort, 0 fragmented, 0 unknown class 0 frames output, 74 bytes, 0 discards Received 0 OLS, 0 LRR, 0 NOS, 0 loop inits Transmitted 0 OLS, 0 LRR, 0 NOS, 0 loop inits

  • show interface status CommandMDS-3# show interface status

    fc2/1 is trunking Port mode is TEfc2/2 is down (Fcot not present)fc2/3 is down (Fcot not present)fc2/4 is down (Fcot not present)fc2/5 is down (Link failure or not-connected)

    fc8/31 is up Port mode is Ffc8/32 is down (Fcot not present)sup-fc0 is upmgmt0 is up

  • More show interface CommandsMDS-3# show interface transceiverfc2/1 fcot is present name is IBM part number is IBM42P21SNY revision is AA20 serial number is 53P1487000ZPW vendor specific data (bytes 96-127) 0x49 0x42 0x4D 0x20 0x53 0x46 0x50 0x53 0x20 0x41 0x52 0x45 0x20 0x43 0x4C 0x41 0x53 0x53 0x20 0x31 0x20 0x4C 0x41 0x53 0x45 0x52 0x20 0x53 0x41 0x46 0x45 0x20 fc2/2 fcot not presentSome more show interface commands:MDS-3# show interface ? brief Show brief info of interface counters Show counters of interface status Show operational state of interface

  • Example: Configuring an F-PortThe interface fc2/2 is enabled in VSAN 2, mode F, speed 2GB/s :MDS-3# config tMDS-3(config)# vsan databaseMDS-3(config-vsan-db)# vsan 2 interface fc2/2MDS-3(config-vsan-db)# exitMDS-3(config)# interface fc2/2MDS-3(config-if)# switchport mode fMDS-3(config-if)# switchport speed 2000MDS-3(config-if)# no shutdown12345678

  • Example: Configuring an E-PortThe interface fc2/2 is enabled in VSAN 1, mode E, speed 2GB/s :MDS-3# config tMDS-3(config)# interface fc2/2MDS-3(config-if)# switchport mode eMDS-3(config-if)# switchport speed 2000MDS-3(config-if)# switchport trunk mode offMDS-3(config-if)# no shutdown123456

  • Example: Configuring a TE-PortThe interface fc2/2 is enabled in VSAN 2, mode trunking-E, speed 2GB/s :MDS-3# config tMDS-3(config)# interface fc2/2MDS-3(config-if)# switchport mode eMDS-3(config-if)# switchport speed 2000MDS-3(config-if)# switchport trunk mode onMDS-3(config-if)# switchport trunk allowed vsan 1updated trunking membershipMDS-3(config-if)# no shutdown1234568 7

  • FCping and FCtrace

  • Fibre Channel Ping Similar to ping in IP networks Used to verify connectivity Used to check congestion/latency MDS-3# fcping fcid 0x6f0002 vsan 128 bytes from 0x6f0002 time = 288 usec28 bytes from 0x6f0002 time = 4803 usec28 bytes from 0x6f0002 time = 5087 usec28 bytes from 0x6f0002 time = 4971 usec28 bytes from 0x6f0002 time = 5124 usec5 frames sent, 5 frames received, 0 timeoutsRound-trip min/avg/max = 288/4054/5124 usec

  • Fibre Channel TraceTraceSlightly different from Traceroute in IP networksChecks connectivity using RDLCan be used in fault isolationChecks both outbound and return pathsswitch# fctrace fcid 0x260000 Route present for : 0x260000 20:00:00:05:30:00:017:5e ; (0xfffcc1) Port No: 48 Latency: 9158 usec 20:00:00:05:30:00:33:de ; (0xfffc83) Port No: 104 Latency: 2153 usec 20:00:00:05:30:00:35:1e ; (0xfffc26) Port No: 107 Latency: 0 usec 20:00:00:05:30:00:35:1e ; (0xfffc26) Port No: 104 Latency: 2153 usec 20:00:00:05:30:00:33:de ; (0xfffc83) Port No: 112

  • Questions?


Top Related