- New and Changed Information
- Preface
- A Commands
- Advanced Services Modules Commands
- B Commands
- C Commands
- Caching Services Module Commands
- CLI Overview
- D Commands
- Debug Commands
- E Commands
- F Commands
- G Commands
- H Commands
- I Commands
- J Commands
- K Commands
- L Commands
- M Commands
- N Commands
- O Commands
- P Commands
- Q Commands
- R Commands
- S Commands
- Show Commands
- T Commands
- U Commands
- V Commands
- W Commands
- Z Commands
- match
- match address
- mcast root
- member (fcalias configuration submode)
- member (ivr zone configuration)
- member (zone configuration and zoneset-zone configuration submode)
- member (zoneset configuration submode)
- metric (iSLB initiator configuration)
- mkdir
- mode
- modem connect line
- monitor counter (port-monitor configuration mode)
- monitor counter (port-group-monitor configuration mode)
- monitor counter tx-slowport-count
- monitor counter tx-slowport-oper-delay
- monitor counter txwait
- monitor session
- move
- mutual-chap username (iSCSI initiator configuration and iSLB initiator configuration)
M Commands
The commands in this chapter apply to the Cisco MDS 9000 Family of multilayer directors and fabric switches. All commands are shown here in alphabetical order regardless of command mode. See “About the CLI Command Modes” section to determine the appropriate mode for each command.
match
To configure QoS class map match criteria, use the match command in class map configuration submode. Remove QoS class map match criteria, use the no form of the command.
match { any | destination-address fc-id [ mask address-mask ] | destination-device-alias name | destination-wwn wwn-id | input-interface fc slot / port | source-address fc-id [ mask address-mask ] | source-device-alias name | source-wwn wwn-id }
no match { any | destination-address fc-id [ mask address-mask ] | destination-device-alias name | destination-wwn wwn-id | input-interface fc slot / port | source-address fc-id [ mask address-mask ] | source-device-alias name | source-wwn wwn-id }
Syntax Description
Defaults
Command Modes
Class map configuration submode.
Command History
|
|
Added the destination-device-alias and source-device-alias options. |
Usage Guidelines
You can access this command only if you enable the QoS data traffic feature using the qos enable command.
Examples
The following example creates a class map called MyClass1 and places you in the class map configuration submode to match any (default) criteria specified for this class:
The following example specifies a destination address match for frames with the specified destination FCID:
The following example specifies a source address and mask match for frames with the specified source FCID. Mask refers to a single or entire area of FCIDs:
The following example specifies a destination WWN to match frames:
The following example specifies a source WWN to match frames:
The following example specifies a source interface to match frames:
The following example removes a match based on the specified source interface:
Related Commands
|
|
---|---|
match address
To configure match addresses in an IPsec crypto map with an access control list (ACL), use the match address command in IPsec crypto map configuration submode. To not match addresses, use the no form of the command.
Syntax Description
Defaults
Command Modes
IPsec crypto map configuration submode.
Command History
|
|
Usage Guidelines
To use this command, the IKE protocol must be enabled using the crypto ike enable command.
Examples
The following example shows how to match addresses in an IPsec crypto map with an ACL:
Related Commands
|
|
---|---|
mcast root
To configure the multicast feature, use the mcast root command in configuration mode. To revert to the default, use the no form of the command.
mcast root { lowest | principal } vsan vsan-id
no mcast root { lowest | principal } vsan vsan-id
Syntax Description
Defaults
Command Modes
Command History
|
|
Usage Guidelines
Examples
The following example shows how to configure the multicast root VSAN:
Related Commands
|
|
---|---|
member (fcalias configuration submode)
To add a member name to an Fibre Channel alias on a VSAN, use the member command in fcalias configuration submode. To remove a member name from an FC alias, use the no form of the command.
member { device-alias aliasname [ lun lun-id ] | domain-id domain-id [ lun lun-id ] | fcid fc-id [ lun lun-id ] | fwwn fwwn-id | interface fc slot / port [ domain-id domain-id | swwn swwn-id ] | ip-address ipv4|ipv6 | pwwn pwwn-id [ lun lun-id ] | symbolic-nodename nodename }
no member { device-alias aliasname [ lun lun-id ] | domain-id domain-id [ lun lun-id ] | fcid fc-id [ lun lun-id ] | fwwn fwwn-id | interface fc slot / port [ domain-id domain-id | swwn swwn-id ] | ip-address ipv4|ipv6 | pwwn pwwn-id [ lun lun-id ] | symbolic-nodename nodename }
Syntax Description
Defaults
Command Modes
Fcalias configuration submode.
Command History
|
|
---|---|
Usage Guidelines
Examples
The following example shows how to add a member to an FC alias called samplealias:
The following example defines an IPv6 address for the member:
The following example shows how to delete the specified member:
Related Commands
|
|
---|---|
member (ivr zone configuration)
To add a member name to an Inter-VSAN Routing (IVR) zone, use the member command in IVR zone configuration submode. To remove a member name from an fcalias, use the no form of the command.
member { device-alias aliasname { lun lun-id vsan vsan-id autonomous-fabric-id afid | vsan vsan-id autonomous-fabric-id afid} | pwwn pwwn-id { lun lun-id vsan vsan-id autonomous-fabric-id afid | vsan vsan-id autonomous-fabric-id afid} }
no member { device-alias aliasname { lun lun-id vsan vsan-id autonomous-fabric-id afid | vsan vsan-id autonomous-fabric-id afid} | pwwn pwwn-id { lun lun-id vsan vsan-id autonomous-fabric-id afid | vsan vsan-id autonomous-fabric-id afid} }
Syntax Description
Defaults
Command Modes
IVR zone configuration submode.
Command History
|
|
---|---|
Usage Guidelines
You can configure an IVR zone member based on the specified pWWN and LUN value or, based on the specified pWWN, LUN value, and AFID.
Note The CLI interprets the LUN identifier value as a hexadecimal value whether or not the 0x prefix is included.
Examples
The following example shows how to configures an IVR zone member based on the device alias VSAN, and the AFID:
The following example shows how to configures an IVR zone member based on the pWWN, VSAN, and the AFID:
Related Commands
|
|
---|---|
member (zone configuration and zoneset-zone configuration submode)
To add a member name to a Fibre Channel zone set zone member, use the member command in zone set zone configuration submode. To remove a member name from a zone set zones, use the no form of the command.
member { device-alias aliasname both initiator target [ lun lun-id ] | domain-id domain-id port-number port | fcalias alias-name [ lun lun-id ] | fcid fc-id [ lun lun-id ] | fwwn fwwn-id |
interface fc slot / port [ domain-id domain-id | swwn swwn-id ] | ip-address ipv4|ipv6 |
pwwn pwwn-id [ lun lun-id ] | symbolic-nodename nodename }
no member { device-alias aliasname both initiator target [ lun lun-id ] | domain-id domain-id port-number port | fcid fc-id [ lun lun-id ] | fwwn fwwn-id | interface fc slot / port [ domain-id domain-id | swwn swwn-id ] | ip-address ipv4|ipv6 | pwwn pwwn-id [ lun lun-id ] |
symbolic-nodename nodename }
Syntax Description
Defaults
This command can be used in both zone configuration submode and zoneset-zone configuration submode.
Command Modes
Zone set zone configuration submode and zoneset-zone configuration submode.
Command History
|
|
---|---|
Added the keywords both, initiator, target to the syntax description. |
|
Usage Guidelines
Create a zone set zone member only if you need to add member to a zone from the zone set prompt.
Examples
The following example shows how to enter the device type as target:
The following example shows how to add a member to a zone called zs1 on VSAN 1:
The following example shows how to add a zone to a zoneset called Zoneset1 on VSAN 1:
The following example shows how to assign an iSCSI IPv6 address-based membership into a zone:
switch(config-zoneset-zone)# member ipv6-address 2001:0DB8:800:200C::417A
The following example shows how to delete the specified device from a zone:
Related Commands
|
|
---|---|
member (zoneset configuration submode)
To configure zone set zone members, use the member command in zone set configuration submode. To remove a zone set member, use the no form of the command.
Syntax Description
Defaults
Command Modes
Zone set configuration submode.
Command History
|
|
Usage Guidelines
Examples
The following example shows how to add a member zone to a zone set:
Related Commands
|
|
---|---|
metric (iSLB initiator configuration)
To assign a load-balancing metric for an iSLB initiator, use the metric command in iSLB initiator configuration submode. To revert to the default load-balancing metric, use the no form of the command.
Syntax Description
Specifies a load-balancing metric. The range is 10 to 10000. |
Defaults
Command Modes
iSLB initiator configuration submode.
Command History
|
|
Usage Guidelines
You can assign a load metric to each initiator for weighted load balancing. The load calculated is based on the number of initiators on a given iSCSI interface. This feature accommodates initiators with different bandwidth requirements. For example, you could assign a higher load metric to a database server than to a web server. Weighted load balancing also accommodates initiators with different link speeds.
Examples
The following example specifies a load-balancing metric for the iSLB initiator:
The following example reverts to the default load-balancing metric:
Related Commands
mkdir
To create a directory in the flash file system, use the mkdir command in EXEC mode.
Syntax Description
Defaults
Command Modes
Command History
|
|
Usage Guidelines
This command is only valid on Class C flash file systems.
You can specify whether to create the directory on bootflash:, slot0, or volatile:. If you do not specify the device, the switch creates the directory on the current directory.
Examples
The following example creates a directory called test in the slot0: directory:
The following example creates a directory called test at the current directory level. If the current directory is slot0:mydir, this command creates a directory called slot0:mydir/test.
Related Commands
|
|
---|---|
mode
To configure the ESP mode, use the mode command. To delete the ESP mode, use the no form of the command.
Syntax Description
Defaults
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
The following example shows how to configure the GCM mode for the interface:
The following example shows how to configure the GMAC mode for the interface:
Related Commands
|
|
---|---|
modem connect line
To enable a modem connection when the switch is already in operation, use the modem connect line command in EXEC mode.
modem connect line { com1 | console }
Syntax Description
Defaults
Command Modes
Command History
|
|
Usage Guidelines
If the switch is already in operation when the modem is connected, issue this command to notify the software that a modem is going to be added.
You must issue the modem connect line command before setting the user-input string for initialization.
Examples
The following example announces a modem connection from the line console:
The following example announces a modem connection from the COM1 port:
monitor counter (port-monitor configuration mode)
To configure monitoring of a specific counter within a Port Monitor policy, use the monitor counter command. To remove polling functionality for a specific counter within Port Monitor policy, use the no form of the command.
monitor counter { credit-loss-reco | err-pkt-from-port | err-pkt-from-xbar | err-pkt-to-xbar | invalid-crc | invalid-words | link-loss | lr-rx | lr-tx | rx-datarate | signal-loss | state-change | sync-loss | timeout-discards | tx-credit-not-available | tx-datarate | tx-discards | tx-slowport-count | tx-slowport-oper-delay | txwait }
no monitor counter {all | credit-loss-reco | err-pkt-from-port | err-pkt-from-xbar | err-pkt-to-xbar | invalid-crc | invalid-words | link-loss | lr-rx | lr-tx | rx-datarate | signal-loss | state-change | sync-loss | timeout-discards | tx-credit-not-available | tx-datarate | tx-discards | tx-slowport-count | tx-slowport-oper-delay | txwait }
Syntax Description
Defaults
All counters applicable to the switch except for err-pkt-from-port, err-pkt-to-xbar, err-pkt-from-xbar, and state-change are monitored by default.
Command Modes
Configuration Port Monitor mode.
Command History
|
|
---|---|
Added the tx-slowport-count, tx-slowport-oper-delay, and txwait keywords. |
|
Added err-pkt-from-port, err-pkt-from-xbar, err-pkt-to-xbar keywords. |
|
Usage Guidelines
- When the no monitor counter command is used in the config-port-monitor mode, it turns-off the monitoring of that specific counter (or all counters) in the given policy.
This command is available in port-monitor-configuration mode. - It is recommended not to have a port guard action set to the state-change counter when an interface state is changed from down state to up state.
Examples
The following example shows how to configure the credit loss recovery counter within a Port Monitor policy:
The following example shows how to configure the state-change counter:
Related Commands
|
|
---|---|
Configure individual counters in a port-monitor policy to use non-default values. |
|
monitor counter (port-group-monitor configuration mode)
To configure monitoring of a specific counter within a Port Group Monitor policy, use the monitor counter command. To remove polling functionality for a specific counter within Port Group Monitor policy, use the no form of the command.
monitor counter {rx-performance | tx-performance} poll-interval interval {delta} rising-threshold rising threshold falling-threshold low threshold
no monitor counter{ rx-performance | tx-performance} poll-interval interval {delta} rising-threshold rising threshold falling-threshold low threshold
Syntax Description
Displays poll interval in seconds. The range is from 0 to 2147483647. |
|
Sets numerical upper threshold limit. The range is from 0 to 100. |
|
Sets numerical low threshold limit. The range is from 0 to 100. |
Defaults
Command Modes
Configuration Port Group Monitor mode.
Command History
|
|
---|---|
Usage Guidelines
When the no monitor counter command is used in the config-port-group-monitor mode, it turns-off the monitoring of that specific counter in the given policy.
Examples
The following example shows how to configure monitoring of a specific counter within a Port Group Monitor policy:
The following example shows how to turn off the monitoring of a specific counter in the given policy:
Admin status : Not Active
Counter Threshold Interval %ge Rising Threshold %ge Falling Threshold portguard
------- --------- -------- -------------------- ---------------------- ------
RX Performance Delta 60 80 20 Yes
TX Performance Delta 60 80 20 No
------------------------------------------------------------------------
Related Commands
|
|
---|---|
monitor counter tx-slowport-count
To configure monitoring of the tx-slowport-count counter, use the monitor counter tx-slowport-count command. To remove monitoring of tx-slowport-count, use the no form of the command.
monitor counter tx-slowport-count
no monitor counter tx-slowport-count
Syntax Description
Defaults
Command Modes
Configuration Port Group Monitor mode.
Command History
|
|
---|---|
Examples
The following example shows how to configure monitoring of the tx-slowport-count counter within a Port Monitor policy:
The following example shows how to turn off monitoring of the tx-slowport-count counter within a Port Monitor policy:
Related Commands
|
|
---|---|
monitor counter tx-slowport-oper-delay
To configure monitoring of the tx-slowport-oper-delay counter, use the monitor counter tx-slowport-oper-delay command. To remove monitoring of tx-slowport-count, use the no form of the command.
monitor counter tx-slowport-oper-delay
no monitor counter tx-slowport-oper-delay
Syntax Description
Defaults
Command Modes
Configuration Port Group Monitor mode.
Command History
|
|
---|---|
Examples
The following example shows how to configure monitoring of the tx-slowport-oper-delay counter within a Port Monitor policy:
The following example shows how to turn off monitoring of the tx-slowport-oper-delay counter within a Port Monitor policy:
Related Commands
|
|
---|---|
monitor counter txwait
To configure monitoring of the txwait counter, use the no monitor counter txwait command. To remove monitoring of txwait, use the no form of the command.
Syntax Description
Defaults
Command Modes
Configuration Port Group Monitor mode.
Command History
|
|
---|---|
Examples
The following example shows how to configure monitoring of the txwait counter within a Port Monitor policy:
The following example shows how to turn off monitoring of the txwait counter within a Port Monitor policy:
Related Commands
|
|
---|---|
monitor session
To configure a SPAN session, use the monitor session command. To remove a configured SPAN feature or revert it to factory defaults, use the no form of the command.
monitor session { session-id }
no span session { session-id }
Syntax Description
Defaults
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
The following example shows how to configure a local SPAN session in RX mode:
The following example shows how to delete a local SPAN session in RX mode:
The following example shows how to configure a local SPAN with port-channel as source in tx mode:
Related Commandsa
|
|
---|---|
move
To remove a file from the source file and place it in the destination file, use the move command in EXEC mode.
move {bootflash: | slot0: | volatile:} [ directory /] filename {bootflash: | slot0: | volatile:} [ directory /] filename
Syntax Description
Source or destination location for internal bootflash memory. |
|
Source or destination location for the CompactFlash memory or PCMCIA card. |
|
(Optional) Specifies the name of the file to move or create. |
Defaults
Command Modes
Command History
|
|
Usage Guidelines
If you do not specify the directory name in the command line, the switch prompts you for it.
Examples
The following example moves the file called samplefile from the slot0 directory to the mystorage directory:
Related Commands
|
|
---|---|
mutual-chap username (iSCSI initiator configuration and iSLB initiator configuration)
To assign a username for the initiator’s challenge, use the mutual-chap username command in iSCSI initiator configuration submode. To remove the username, use the no form of the command.
mutual-chap username username password {0 cleartext-password | 7 encrypted-password | password }
no mutual-chap username username password {0 cleartext-password | 7 encrypted-password | password }
Syntax Description
Specifies a password for the username. The maximum size is 32. |
Defaults
Command Modes
iSCSI initiator configuration submode.
iSLB initiator configuration submode.
Command History
|
|
Usage Guidelines
The iSLB initiator can authenticate the Cisco MDS switch’s initiator target during the iSCSI login phase. This authentication requires the user to configure a username and password for the switch to present to the iSLB initiator. The provided password is used to calculate a CHAP response to a CHAP challenge sent to the IPS port by the initiator.
Examples
The following example shows how to configure a username, password type, and password for an iSCSI initiator challenge (mutual CHAP):
The following example assigns a username and password to the initiator’s challenge for an iSLB initiator:
The following example removes the username and password from the initiator’s challenge for an iSLB initiator: