Anda di halaman 1dari 6

Show Commands Command show clock Description To display the system date and time and verify the

time zone configuration, use the show clock command. To display all environment-related switch information (status of chassis clock, fan modules, power supply modules etc. To display the member name information in a Fibre Channel alias (fcalias), shows the status of the ports on the switch port errors and details of transmission

show environment

show fcalias show interface brief show interface counters show interface counters brief show interface transceiver show running-config show interface mgmt0 show vsan xX show module show interface fcx/x capabilities show port-resources module x show interface trunk vsan x-x show vsan membership interface fcx/x x show vsan x membership

port transmission details in brief

shows details of the sfps used on the ports of the switch show the details of the switch, ports , firmware , etc To display the details of the management console To display details of a VSAN To display details of the switching module

To details of the matrix support for that port To check port resources like bb credits , rate mode , bandwidth for ports on a 24/48 bit module

To checkper vsan information on trunk ports

To check the vsan membership on port level for an interface

To check the ports that are part of a vsan To display the version of system software that is currently running on the switch, use the show version command.

show version

show vsan

To display information about configured VSAN To check the vsans created and available vsan ids to be created To display the status of the WWN configuration To display zone information To display the configured zone sets

show vsan usage show wwn show zone show zoneset show zoneset active vsan xx

To display the active zoneset for a particular vsan To list all the FLOGI sessions through all interfaces across all VSANs To display switch hardware inventory details, Use the show port-channel command to view information about existing PortChannel configurations. To display the running configuration file To display the startup configuration file To display the switch network name, use the show switchname command. To display information useful to technical support when reporting a problem To display configured information about user accounts To display configured Fibre Channel tunnel information

show flogi show hardware

show port-channel show running-config show startup-config

show switchname

show tech-support show user-account show fc-tunnel Configuration Commands Command

Description This CLI sequence will disable/enable a port on the switch and saves the configuration This command sequence put a decription for a switch port(here putting description as emcsaninfo) and saves the configuration

config tinterface fcx/xshutdown / no shutdowncopy running-config startupconfig config tinterface fcx/xswitchport description emcsaninfocopy running-config startup-config

config tinterface fcx/xswitchport fcrxbbcredit xx/defaultcopy running-config startup-config config tinterface mgmt0ipaddress xx.xx.xx.xx 255.255.255.255no shutdownip default-gateway 1.1.2.3 copy running-config startup-config config tvsan databaseno vsan XX config tinterface vsan xxshutdown / no shutdown config tinterface fcx/xswitchport speed 1000/2000/4000/auto/auto max xxxx config tinterface fc x/xswitchport ratemode dedicated/shared config tinterface fc x/xchannel-group x/auto config tinterface fc x/xswitchport mode e/f/fl/n

This will Assign a bbcredits to a switch port and saves the configuration

This will Set ip address for the management interface,set default gateway and save the configuration to delete a Vsan , cannot delete default vsan

This step will isable or enable a vsan XX

This will used to set port speed This will used for configuring rate mode of a switch port

Steps to add a port to a port channel Steps to manually set the port type on a switch Steps to enable trunk protocol on a swith (default) Steps to enable/disable trunk on a port level 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 Steps to forcefully reconfigure without affecting traffic and force vsan to configure with data traffic affected Steps to create a new vsan (default) Steps to delete a vsan Steps to create a vsan ,then assign a name.

config ttrunk protocol enable config tinterface fc x/xswitchport trunk mode on/off/auto

config tinterface fc x/xswitchport trunk allowed vsan x-x/xswitchport trunk allowed vsan add x

config tfcdomain restart vsan xfcdomain restart disruptive vsan x config tvsan databasevsan x config tvsan databaseno vsan x config tvsan databasevsan xvsan x name

abcvsan x suspend no vsan x suspend end config tvsan databasevsan xvsan x interface fcx/x config tvsan databasevsan xno vsan x interface fcx/x config tvsan databasevsan xno vsan x interface fcx/x How to do zoning using Cisco CLI commands

Steps to suspend a vsan and unsuspend it

Steps to create a vsan and add a port on interface into a vsan Steps to remove a port on an interface from a vsan Steps to remove a port on an interface from a vsan

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 sanswitch1(config)# fcalias name emcsaninfo_fcalias vsan 2 Enter into Configuration Mode Create a new fcalias called emcsaninfo_fcalias under vsan 2

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

Configures alias members based on the specified port WWN type and value(pWWN xx:xx:xx:xx:xx:xx:xx:xx) Existing from fc alias configuration(Repeat 1 to 4 for creating additional fc alias) creating zone called emcsaninfo_zone under vsan 2 adding fcalias emcsaninfo_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) exit from zone config mode exit from config mode To display the created zone emcsaninfo_zone This will display the current active zoneset Enter into Configuration Mode Enter into active zoneset configuration Mode adding zone emcsaninfo_zone into the active zoneset SAN_EMCSANINFO_Active Exit from zoneset configuration Activate the zonset SAN_EMCSANINFO_Active exit from config mode Copying running configuration to startup configuration

sanswitch1(config-fcalias)# exit sanswitch1(config)# zone name emcsaninfo_zone vsan 2

6 7 8

sanswitch1(config-zone)# member fcalias emcsaninfo_fcaliassanswitch1(configzone)# member fcalias emcsaninfo_fcalias1 sanswitch1(config-zone)# exit sanswitch1(config)# exit sanswitch1# show zone name emcsaninfo_zone

10 11

sanswitch1#show zoneset active vsan xx sanswitch1# config t sanswitch1(config)# zoneset name SAN_EMCSANINFO_Active

12

13 14

sanswitch1(config-zoneset)# member emcsaninfo_zone sanswitch1(config-zoneset)# exit sanswitch1(config)# zoneset activate SAN_EMCSANINFO_Active vsan 10 sanswitch1(config)# exit

15 17

18

sanswitch1# copy running startup

Anda mungkin juga menyukai