Está en la página 1de 6

Show Commands

Command

Description

show clock

To display the system date and time and verify the


time zone configuration, use the show
clock command.

show environment

To display all environment-related switch


information (status of chassis clock,fan modules,
power supply modules etc.

show fcalias

To display the member name information in a


Fibre Channel alias (fcalias),

show interface brief

shows the status of the ports on the switch

show interface
counters

port errors and details of transmission

show interface
counters brief

port transmission details in brief

show interface
transceiver

shows details of the sfps used on the ports of the


switch

show running-config

show the details of the switch, ports , firmware ,


etc

show interface
mgmt0

To display the details of the management console

show vsanxX

To display details of a VSAN

show module

To display details of the switching module

show interface fcx/x


capabilities

To details of the matrix support for that port

show port-resources
module x

To check port resources like bb credits , rate mode


, bandwidth for ports on a 24/48 bit module

show interface trunk


vsan x-x
To checkpervsan information on trunk ports
show vsan
membership
interface fcx/x x

To check the vsan membership on port level for an


interface

show vsan x
membership

To check the ports that are part of a vsan

show version

To display the version of system software that is

currently running on the switch, use the show


version command.
show vsan

To display information about configured VSAN

show vsan usage

To check the vsans created and available vsan ids


to be created

show wwn

To display the status of the WWN configuration

show zone

To display zone information

show zoneset

To display the configured zone sets

show zoneset active


vsan xx

To display the active zoneset for a particular vsan

show flogi

To list all the FLOGI sessions through all interfaces


across all VSANs

show hardware

To display switch hardware inventory details,

show port-channel

Use the show port-channel command to view


information about existing PortChannel
configurations.

show running-config

To display the running configuration file

show startup-config

To display the startup configuration file

show switchname

To display the switch network name, use the show


switchname command.

show tech-support

To display information useful to technical support


when reporting a problem

show user-account

To display configured information about user


accounts

show fc-tunnel

To display configured Fibre Channel tunnel


information

Configuration Commands
Command

Description

configtinterfacefcx/xshutdown / no
shutdowncopy running-configstartupconfig

This CLI sequence will


disable/enable a port on the
switch and saves the
configuration

configtinterfacefcx/xswitchport

This command sequence put

description emcsaninfocopy runningconfigstartup-config

a decription for a switch


port(here putting description
as emcsaninfo) and saves
the configuration

configtinterfacefcx/xswitchportfcrxbbcred
it xx/defaultcopy running-configstartupconfig

This will Assign a bbcredits


to a switch port and saves
the configuration

Configt interface mgmt0


ipaddress xx.xx.xx.xx 255.255.255.255
no shutdown
ip default-gateway 1.1.2.3
copy running-configstartup-config

This will Set ip address for


the management
interface,set default gateway
and save the configuration

configtvsandatabasenovsan XX

to delete a Vsan , cannot


delete default vsan

configtinterfacevsanxxshutdown / no
shutdown

This step will isable or


enable a vsan XX

configtinterfacefcx/xswitchport speed
1000/2000/4000/auto/auto max xxxx

This will used to set port


speed

configtinterface fc x/xswitchport ratemode dedicated/shared

This will used for configuring


rate mode of a switch port

configtinterface fc x/xchannel-group
x/auto

Steps to add a port to a port


channel

configtinterface fc x/xswitchport mode


e/f/fl/n

Steps to manually set the


port type on a switch

configttrunk protocol enable

Steps to enable trunk


protocol on a swith (default)

configtinterface fc x/xswitchport trunk


mode on/off/auto

Steps to enable/disable trunk


on a port level

configtinterface fc x/xswitchport trunk


allowed vsan x-x/xswitchport trunk
allowed vsan add x

Steps to configure an
allowed list of vsans to
communicate through that
port (TE PORT) and allows to
add a specific vsan to the
allowed list of vsans

configtfcdomain restart vsanxfcdomain


restart disruptive vsan x

Steps to forcefully
reconfigure without affecting
traffic and force vsan to
configure with data traffic

affected
configtvsandatabasevsan x

Steps to create a new vsan


(default)

configtvsandatabasenovsan x

Steps to delete a vsan

configtvsandatabasevsanxvsan x name
abcvsan x suspend
no vsan x suspend
end

Steps to create a vsan ,then


assign a name. Steps to
suspend a vsan and
unsuspend it

configtvsandatabasevsanxvsan x
interface fcx/x

Steps to create a vsan and


add a port on interface into a
vsan

configtvsandatabasevsanxnovsan x
interface fcx/x

Steps to remove a port on an


interface from a vsan

configtvsandatabasevsanxnovsan x
interface fcx/x

Steps to remove a port on an


interface from a vsan

How to do zoning using Cisco CLI commands


Now we will discuss about the steps to configure zone using CLI
commands.Cisco zoning parts include below main steps.

Below are the steps involved in doing zoning using Cisco CLI commands
No
Command
Description
1

Config t

Enter into Configuration Mode

sanswitch1(config)# fcalias
name emcsaninfo_fcaliasvsan 2

Create a new fcalias called


emcsaninfo_fcalias under vsan 2

sanswitch1(config-fcalias)#
member
pwwnxx:xx:xx:xx:xx:xx:xx:xx

Configures alias members based


on the specified port WWN type
and
value(pWWNxx:xx:xx:xx:xx:xx:xx:
xx)

sanswitch1(config-fcalias)# exit

Existing from fc alias


configuration(Repeat 1 to 4 for
creating additional fc alias)

sanswitch1(config)# zone name


emcsaninfo_zonevsan 2

creating zone called


emcsaninfo_zone under vsan 2

sanswitch1(config-zone)#
member fcalias
emcsaninfo_fcaliassanswitch1(co
nfig-zone)# member fcalias
emcsaninfo_fcalias1

addingfcaliasemcsaninfo_fcalias
as a member of zone
emcsaninfo_zone(add your host fc
alias as well as storage alias into
the same zone. Here I assume
fcalias is the hostalias and
fcalias1 as storage alias)

sanswitch1(config-zone)# exit

exit from zone config mode

sanswitch1(config)# exit

exit from config mode

sanswitch1# show zone name


emcsaninfo_zone

To display the created zone


emcsaninfo_zone

sanswitch1#show zoneset active


10 vsan xx

This will display the current active


zoneset

11 sanswitch1# config t

Enter into Configuration Mode

sanswitch1(config)# zoneset
12 name SAN_EMCSANINFO_Active

Enter into active zoneset


configuration Mode

sanswitch1(config-zoneset)#
13 member emcsaninfo_zone

adding zone emcsaninfo_zone


into the active
zonesetSAN_EMCSANINFO_Active

14 sanswitch1(config-zoneset)# exit

Exit from zoneset configuration

sanswitch1(config)# zoneset
activate
Activate the
15 SAN_EMCSANINFO_Activevsan 10 zonsetSAN_EMCSANINFO_Active
17 sanswitch1(config)# exit

exit from config mode

sanswitch1# copy running


18 startup

Copying running configuration to


startup configuration

También podría gustarte