Cisco mds9000 Fundamentals Config Guide 8x
Cisco mds9000 Fundamentals Config Guide 8x
Cisco mds9000 Fundamentals Config Guide 8x
8.x
Americas Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 527-0883
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS,
INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH
THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY,
CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version of
the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS" WITH ALL FAULTS.
CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT
LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS
HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network
topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional
and coincidental.
All printed copies and duplicate soft copies of this document are considered uncontrolled. See the current online version for the latest version.
Cisco has more than 200 offices worldwide. Addresses and phone numbers are listed on the Cisco website at www.cisco.com/go/offices.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL:
https://www.cisco.com/c/en/us/about/legal/trademarks.html. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a
partnership relationship between Cisco and any other company. (1721R)
© 2021 Cisco Systems, Inc. All rights reserved.
CONTENTS
Change Summary 1
CHAPTER 2 Overview 3
Software Compatibility 3
Modular Software Design 3
Serviceability 3
Switched Port Analyzer 4
Call Home 4
Online Diagnostics 4
Embedded Event Manager 4
Consistency Checker 4
Manageability 6
Simple Network Management Protocol 6
NTP 7
Licensing 8
Quality of Service 9
Context-Sensitive Help 52
Information About Device File Systems, Directories, Files, and External Storage Devices 97
File Systems 97
Directories 98
Files 98
Working with External Storage Devices 99
Audience
This guide is for experienced network administrators who are responsible for configuring and maintaining
the Cisco MDS 9000 Family of multilayer directors and fabric switches.
Document Conventions
Note As part of our constant endeavor to remodel our documents to meet our customers' requirements, we have
modified the manner in which we document configuration tasks. As a result of this, you may find a deviation
in the style used to describe these tasks, with the newly included sections of the document following the new
format.
Convention Description
bold Bold text indicates the commands and keywords that you enter literally
as shown.
Italic Italic text indicates arguments for which the user supplies the values.
Convention Description
{x | y} Braces enclosing keywords or arguments separated by a vertical bar
indicate a required choice.
variable Indicates a variable for which you supply values, in context where italics
cannot be used.
string A nonquoted set of characters. Do not use quotation marks around the
string or the string will include the quotation marks.
Convention Description
screen font Terminal sessions and information the switch displays are in screen font.
boldface screen font Information you must enter is in boldface screen font.
italic screen font Arguments for which you supply values are in italic screen font.
Note Means reader take note. Notes contain helpful suggestions or references to material not covered in the manual.
Caution Means reader be careful. In this situation, you might do something that could result in equipment damage or
loss of data.
Related Documentation
The documentation set for the Cisco MDS 9000 Series includes the following documents. To find a document
online, use the Cisco MDS NX-OS Documentation Locator at:
http://www.cisco.com/en/US/docs/storage/san_switches/mds9000/roadmaps/doclocater.htm
Cisco DCNM documentation is available at the following URL:
http://www.cisco.com/en/US/products/ps9369/tsd_products_support_series_home.html
Release Notes
• Cisco MDS 9000 Series Release Notes for Cisco MDS NX-OS Releases
• Cisco MDS 9000 Series Release Notes for MDS SAN-OS Releases
• Cisco MDS 9000 Series Release Notes for Storage Services Interface Images
• Cisco MDS 9000 Series Release Notes for Cisco MDS 9000 EPLD Images
• Cisco Data Center Network Manager Release Notes
Compatibility Information
• Cisco Data Center Interoperability Support Matrix
• Cisco MDS 9000 NX-OS Hardware and Software Compatibility Information and Feature Lists
• Cisco MDS NX-OS Release Compatibility Matrix for Storage Service Interface Images
• Cisco MDS 9000 Series Switch-to-Switch Interoperability Configuration Guide
• Cisco MDS NX-OS Release Compatibility Matrix for IBM SAN Volume Controller Software for Cisco
MDS 9000
Hardware Installation
• Cisco MDS 9700 Director Hardware Installation Guide
• Cisco MDS 9500 Series Hardware Installation Guide
• Cisco MDS 9250i Multiservice Switch Hardware Installation Guide
• Cisco MDS 9200 Series Hardware Installation Guide
Cisco NX-OS
• Cisco MDS 9000 Series NX-OS Fundamentals Configuration Guide
• Cisco MDS 9000 Series NX-OS Licensing Guide
• Cisco MDS 9000 Series NX-OS System Management Configuration Guide
• Cisco MDS 9000 Series NX-OS Interfaces Configuration Guide
Command-Line Interface
Cisco MDS 9000 Series Command Reference
• To find warranty information for a specific product or product family, access Cisco Warranty Finder.
Change Summary
The following table summarizes the new and changed information in this document, and provides information
about the releases in which each feature is supported.
Note that your software release might not support all the features described in this document. For the latest
caveats and feature information, see the Bug Search Tool at https://tools.cisco.com/bugsearch/, and the release
notes document pertaining to your software release.
Software Compatibility
The Cisco NX-OS software interoperates with Cisco products that run any variant of the Cisco IOS software.
The Cisco NX-OS software also interoperates with any networking operating system that conforms to the
IEEE and RFC compliance standards.
Serviceability
The Cisco NX-OS software has serviceability functions that allow the device to respond to network trends
and events. These features help you with network planning and improving response times.
Call Home
The Call Home feature continuously monitors hardware and software components to provide e-mail-based
notification of critical system events. A versatile range of message formats is available for optimal compatibility
with pager services, standard e-mail, and XML-based automated parsing applications. It offers alert grouping
capabilities and customizable destination profiles.You can use this feature, for example, to directly page a
network support engineer, send an e-mail message to a network operations center (NOC), and employ Cisco
AutoNotify services to directly generate a case with the Cisco Technical Assistance Center (TAC). For more
information about Call Home, see the Cisco Nexus 7000 Series NX-OS System Management Configuration
Guide.
Online Diagnostics
Cisco generic online diagnostics (GOLD) verify that hardware and internal data paths are operating as designed.
Boot-time diagnostics, continuous monitoring, and on-demand and scheduled tests are part of the Cisco GOLD
feature set. GOLD allows rapid fault isolation and continuous system monitoring. For information about
configuring GOLD, see the Cisco Nexus 7000 Series NX-OS System Management Configuration Guide.
Consistency Checker
Overview
This section describes how to use the Consistency Checker feature.
The Consistency Checker feature is a tool to assist troubleshooting a switch. It can be used to validate various
internal tables that are distributed between processes and modules. Using such programmatic algorithms
remove human error from checking large and complex tables manually; thereby, quickly confirming the status
of the tables and reducing the mean time to resolve such issues.
The Consistency Checker commands are used to validate software and hardware table states. The result is
displayed as pass or fail. A failure result causes detailed information about the detected inconsistencies to be
logged for further investigation.
Each Consistency Checker command may take several minutes to execute depending on the size of the
configuration and number of modules in the switch. The check may fail if any of the tables under assessment
change state during the check. Checks do not differentiate if the failure is due to normal changes, such as
zoning changes, port flaps, or genuine errors. Thus, it is important to verify that a failure was not caused by
normal events that occurred during the check. Rerun the failed check several times over a period of minutes
to confirm if the failure is persistent. Persistent failure means that the detailed failure information does not
change. If a persistent failure is found, contact your vendor for further analysis.
Currently, this feature only supports on-demand execution of commands; they are not run automatically by
the system.
The Consistency Checker feature supports verification of table consistency for the following features:
Cisco NX-OS Release 8.4(1)
• Access control list (ACL) Tables
• Forwarding information base (FIB) Tables
• Persistent Storage Service (PSS)
ACL Tables
The ACL Consistency Checker verifies the programming consistency between software and hardware for
ACL tables including the following checks:
• Hardware and software synchronization: This validation checks if entries present in the hardware table
is same as in the software table and vice versa. This check flags errors if there is a mismatch in the entries
between the two tables or if the error is present in one of the tables.
• Hardware and software duplicate entries check: This validation compares entries in the hardware and
software tables to find any duplicate entries and flags them as errors.
Use the show consistency-checker acl-table-status [module number] command to run the ACL Consistency
Checker. The ACL Consistency Checker is not run automatically or periodically by the system.
FIB Tables
The FIB Consistency Checker verifies the programming consistency between software and hardware entries
for Fibre Channel forwarding and adjacency tables. If there is an inconsistency, the CLI prints the mismatch
entries between the hardware and software entries of the forwarding and adjacency tables.
Use the show consistency-checker fib-table-status [module number] command to run the FIB Consistency
Checker. The FIB Consistency Checker is not run automatically or periodically by the system.
Persistent Storage Service (PSS)
The PSS Consistency Checker verifies the consistency between run-time and cached configuration data for
the following features:
• Spanning Tree
• Certain ingress and egress forwarding parameters for interfaces (ELTM)
• Interface state (ETHPM)
• VLAN information (Vlan-manager)
Use the show consistency-checker pss command to run the PSS Consistency Checker. The PSS Consistency
Checker is not run automatically or periodically by the system.
Guidelines and Limitations
• The Consistency Checker feature is supported only on the following hardware:
• Cisco MDS 9132T 32-Gbps 32-Port Fibre Channel Switch
• If there is a configuration change or a table state change in the environment while a Consistency Checker
is running, it is possible to trigger false positives. In cases where false positives may be a concern, it is
recommended to run multiple iterations of that Consistency Checker.
• When you execute the show consistency-checker acl-table-status command, ensure that there are no
background activities that can result in addition, deletion, or modification of existing ACL TCAM entries.
The ACL Consistency Checker may take some time to complete.
• Before you run the show consistency-checker acl-table-status command, ensure that SAN Analytics
port sampling is not enabled to prevent false positive results. The SAN Analytics feature itself does not
cause false positive results.
• When you execute the show consistency-checker fib-table-status command, ensure that no routes are
added, deleted, or updated while the Consistency Checker is still running. The FIB Consistency Checker
may take some time to complete.
• In Cisco MDS NX-OS Release 8.4(1), the PSS Consistency Checker is supported only on an active
supervisor.
Manageability
This section describes the manageability features in the Cisco NX-OS software.
This figure shows the tools for configuring the Cisco NX-OS software.
CLI
With the CLI, you can type commands at the switch prompt, and the commands are executed when you press
the Enter key. The CLI parser provides command help, command completion, and keyboard sequences that
allow you to access previously executed commands from the buffer history.
Continue reading this document for more information on configuring the Cisco MDS switch using the CLI.
NTP
In a large enterprise network, having one time standard for all network devices is critical for management
reporting and event logging functions when trying to correlate interacting events logged across multiple
devices. Many enterprise customers with extremely mission-critical networks maintain their own stratum-1
NTP source.
Time synchronization occurs when several frames are exchanged between clients and servers. The switches
in client mode know the address of one or more NTP servers. The servers act as the time source and receive
client synchronization requests.
By configuring an IP address as a peer, the Cisco NX-OS device will obtain and provide time as required.
The peer is capable of providing time on its own and is capable of having a server configured. If both of these
instances point to different time servers, your NTP service is more reliable. Even if the active server link is
lost, you can still maintain the correct time due to the presence of the peer.
If an active server fails, a configured peer helps in providing the NTP time. To ensure backup support if the
active server fails, provide a direct NTP server association and configure a peer.
If you only configure a peer, the most accurate peer takes on the role of the NTP server and the other peer
acts as a peer. Both devices end at the correct time if they have the correct time source or if they point to the
correct NTP source.
Not even a server down time will affect well-configured switches in the network. This figure displays a
network with two NTP stratum 2 servers and two switches.
• Stratum-2 Server-2
• IPv4 address-10.10.10.9
Licensing
The Cisco NX-OS software licensing feature allows you to access premium features on the device after you
install the appropriate license for that feature. Any feature not included in a license package is bundled with
the Cisco NX-OS software and is provided to you at no extra charge.
You must purchase and install a license for each device.
Note can enable a feature without installing its license. The Cisco NX-OS software gives you a grace period that
allows you to try a feature before purchasing its license. You must install the Advanced Services license
package to enable the Cisco TrustSec feature.
For detailed information about Cisco NX-OS software licensing, see the Cisco NX-OS Licensing Guide.
Quality of Service
The Cisco NX-OS software supports quality of service (QoS) functions for classification, marking, queuing,
policing, and scheduling. Modular QoS CLI (MQC) supports all QoS features. You can use MQC to provide
uniform configurations across various Cisco platforms. For more information, see the Cisco Nexus 7000 Series
NX-OS Quality of Service Configuration Guide.
This figure shows how to enter and exit the setup script.
You use the setup utility mainly for configuring the system initially, when no configuration is present. However,
you can use the setup utility at any time for basic device configuration. The setup utility keeps the configured
values when you skip steps in the script. For example, if you have already configured the mgmt0 interface,
the setup utility does not change that configuration if you skip that step. However, if there is a default value
for the step, the setup utility changes to the configuration using that default, not the configured value. Be sure
to carefully check the configuration changes before you save the configuration.
Note Be sure to configure the IPv4 route, the default network IPv4 address, and the default gateway IPv4 address
to enable SNMP access. If you enable IPv4 routing, the device uses the IPv4 route and the default network
IPv4 address. If IPv4 routing is disabled, the device uses the default gateway IPv4 address.
Note You can configure both in-band and out-of-band configuration together by entering Yes in both Step 12c and
Step 12d in the following procedure.
Step 1 Power on the switch. Switches in the Cisco MDS 9000 Family boot automatically.
Step 2 Enter yes (yes is the default) to enable secure password standard.
Note You can also enable secure password standard using the password strength-check command. A secure
password should contain characters from at least three of the classes: lower case letters, upper case letters,
digits, and special characters.
Tip If a password is trivial (short, easy-to-decipher), your password configuration is rejected. Be sure to configure
a strong password as shown in the sample configuration. Passwords are case-sensitive.
This setup utility will guide you through the basic configuration of
the system. Setup configures only enough connectivity for management
of the system.
Would you like to enter the basic configuration dialog (yes/no): yes
The setup utility guides you through the basic configuration process. Press Ctrl-C at any prompt to end the configuration
process.
Step 5 Enter yes (no is the default) if you do not wish to create additional accounts.
While configuring your initial setup, you can create an additional user account (in the network-admin role) besides the
administrator's account.
Note User login IDs must contain non-numeric characters.
Step 8 Enter yes (yes is the default) at the configuration prompt to configure out-of-band management.
Step 9 Enter yes (yes is the default) to configure the default gateway.
Step 10 Enter yes (no is the default) to configure advanced IP options such as in-band management, static routes, default
network, DNS, and domain name.
Note Be sure to configure the IP route, the default network IP address, and the default gateway IP address to
enable SNMP access. If IP routing is enabled, the switch uses the IP route and the default network IP
address. If IP routing is disabled, the switch uses the default gateway IP address.
e) Enter yes (yes is the default) to configure the DNS IPv4 address.
f) Enter yes (no is the default) to skip the default domain name configuration.
Step 11 Enter yes (yes is the default) to enable the SSH service.
Type the SSH key you would like to generate (dsa/rsa)? rsa
Step 12 Enter yes (no is the default) to disable the Telnet service.
Step 13 Enter yes (yes is the default) to configure congestion or no_credit drop for FC interfaces.
Configure congestion or no_credit drop for fc interfaces? (yes/no) [q/quit] to quit [y]:yes
Step 15 Enter a value from 100 to 1000 (d is the default) to calculate the number of milliseconds for congestion or no_credit
drop.
Enter number of milliseconds for congestion/no_credit drop[100 - 1000] or [d/default] for default:100
Step 17 Enter yes (no is the default) to configure the NTP server.
Step 18 Enter shut (shut is the default) to configure the default switch port interface to the shut (disabled) state.
Note The management Ethernet interface is not shut down at this point. Only the Fibre Channel, iSCSI, FCIP, and
Gigabit Ethernet interfaces are shut down.
Step 19 Enter on (off is the default) to configure the switch port trunk mode.
Step 20 Enter yes (yes is the default) to configure the switchport mode F.
Step 21 Enter on (off is the default) to configure the PortChannel auto-create state.
Step 22 Enter permit (deny is the default) to deny a default zone policy configuration.
Step 23 Enter yes (no is the default) to disable a full zone set distribution.
Overrides the switch-wide default for the full zone set distribution feature.
You see the new configuration. Review and edit the configuration that you have just entered.
Note If you are executing the setup script after issuing a write erase command, you must explicitly change the
default zone policy to permit for VSAN 1 after finishing the script using the following commands:
Step 24 Enter enhanced (basic is the default) to configure default-zone mode as enhanced.
Note If you are executing the setup script after issuing a write erase command, you must explicitly change the
default zoning mode to enhanced for VSAN 1 after finishing the script using the following commands:
Step 25 Enter no (no is the default) if you are satisfied with the configuration.
Step 26 Enter yes (yes is default) to use and save this configuration.
Caution If you do not save the configuration at this point, none of your changes are updated the next time the switch
is rebooted. Type yes to save the new configuration. This ensures that the kickstart and system images are
also automatically configured.
Note You can configure both in-band and out-of-band configuration together by entering Yes in both Step 10c and
Step 10d in the following procedure.
SUMMARY STEPS
1. Power on the switch. Switches in the Cisco MDS 9000 Family boot automatically.
2. Enter the new password for the administrator.
3. Enter yes to enter the setup mode.
4. Enter yes (yes is the default) to enable secure password standard
5. Enter no (no is the default) if you do not wish to create additional accounts.
6. Configure the read-only or read-write SNMP community string.
7. Enter a name for the switch.
8. Enter no (yes is the default) at the configuration prompt to configure out-of-band management.
9. Enter yes (yes is the default) to configure the default gateway.
10. Enter yes (no is the default) to configure advanced IP options such as in-band management, static
routes, default network, DNS, and domain name.
11. Enter no (no is the default) to disable the Telnet service.
12. Enter yes (yes is the default) to enable the SSH service.
13. Enter the SSH key type.
14. Enter the number of key bits within the specified range.
15. Enter no (no is the default) to configure the NTP server.
16. Enter shut (shut is the default) to configure the default switch port interface to the shut (disabled)
state.
17. Enter auto (off is the default) to configure the switch port trunk mode.
18. Enter yes (yes is the default) to configure the switchport mode F.
19. Enter off (off is the default) to configure the PortChannel auto-create state.
20. Enter deny (deny is the default) to deny a default zone policy configuration.
21. Enter no (no is the default) to disable a full zone set distribution.
22. Enter enhanced (basic is the default) to configure default-zone mode as enhanced.
23. Enter no (no is the default) if you are satisfied with the configuration.
24. Enter yes (yes is default) to use and save this configuration.
DETAILED STEPS
Step 1 Power on the switch. Switches in the Cisco MDS 9000 Family boot automatically.
Step 2 Enter the new password for the administrator.
Tip If a password is trivial (short, easy-to-decipher), your password configuration is rejected. Be sure to configure
a strong password as shown in the sample configuration. Passwords are case-sensitive.
This setup utility will guide you through the basic configuration of
the system. Setup configures only enough connectivity for management
of the system.
Would you like to enter the basic configuration dialog (yes/no): yes
The setup utility guides you through the basic configuration process. Press Ctrl-C at any prompt to end the configuration
process.
Step 4 Enter yes (yes is the default) to enable secure password standard
Note You can also enable secure password standard using the password strength-check command. A secure
password should contain characters from at least three of the classes: lower case letters, upper case letters,
digits, and special characters.
Step 5 Enter no (no is the default) if you do not wish to create additional accounts.
b) Enter yes (no is the default) to avoid configuring the read-write SNMP community string.
Note The switch name is limited to 32 alphanumeric characters. The default is switch.
Step 8 Enter no (yes is the default) at the configuration prompt to configure out-of-band management.
Step 9 Enter yes (yes is the default) to configure the default gateway.
Step 10 Enter yes (no is the default) to configure advanced IP options such as in-band management, static routes, default
network, DNS, and domain name.
a) Enter yes (no is the default) at the in-band management configuration prompt.
f) Enter no (no is the default) to skip the default domain name configuration.
Step 12 Enter yes (yes is the default) to enable the SSH service.
Type the SSH key you would like to generate (dsa/rsa)? rsa
Step 14 Enter the number of key bits within the specified range.
Step 16 Enter shut (shut is the default) to configure the default switch port interface to the shut (disabled) state.
Note The management Ethernet interface is not shut down at this point. Only the Fibre Channel, iSCSI, FCIP, and
Gigabit Ethernet interfaces are shut down.
Step 17 Enter auto (off is the default) to configure the switch port trunk mode.
Step 18 Enter yes (yes is the default) to configure the switchport mode F.
Step 19 Enter off (off is the default) to configure the PortChannel auto-create state.
Step 20 Enter deny (deny is the default) to deny a default zone policy configuration.
Step 21 Enter no (no is the default) to disable a full zone set distribution.
Disables the switch-wide default for the full zone set distribution feature.
You see the new configuration. Review and edit the configuration that you have just entered.
Note If you are executing the setup script after issuing a write erase command, you must explicitly change the
default zone policy to permit for VSAN 1 after finishing the script using the following commands:
Step 22 Enter enhanced (basic is the default) to configure default-zone mode as enhanced.
Note If you are executing the setup script after issuing a write erase command, you must explicitly change the
default zone policy to permit for VSAN 1 after finishing the script using the following commands:
Step 23 Enter no (no is the default) if you are satisfied with the configuration.
interface vsan1
ip address ip_address subnet_mask
no shutdownip default-gateway default_gateway
no telnet server disable
ssh key rsa 2048 forcessh server enablesystem default switchport shutdown
system default switchport trunk mode
autosystem default switchport mode F
no zone default-zone permit vsan 1-4093
no zoneset distribute full vsan 1-4093
system default zone mode enhanced
Would you like to edit the configuration? (yes/no) [n]: n
Step 24 Enter yes (yes is default) to use and save this configuration.
Caution If you do not save the configuration at this point, none of your changes are updated the next time the switch
is rebooted. Type yes to save the new configuration. This ensures that the kickstart and system images are
also automatically configured.
Where to Go Next
To become more familiar with the CLI, continue to .
Note DHCP information is used during the POAP process only when POAP fails via USB because of the following
reasons:
• USB is not present.
• Script is not present or script is present with incorrect names.
• Script execution fails.
Note POAP is not supported through Cisco Data Center Network Management
(DCNM).
Using USB
Follow these guidelines when copying software images, the configuration file, and the configuration script
into a USB when setting up the network environment for POAP:
• The POAP configuration script on the USB should be titled poap_script.tcl.
• The configuration file with the name conf_<serialnum>.cfg must be present in the USB. To obtain
the serial number of the switch, run the show sprom backplane 1 command:
switch# show sprom backplane 1
DISPLAY backplane sprom contents:
Common block:
• The names of the software images copied to the USB should have standard names and must match the
names specified in the POAP script.
For example, to boot up a Cisco MDS 9148s switch with the m9100-s5ek9-kickstart-mz.7.3.0.D1.0.159.bin
and m9100-s5ek9-mz.7.3.0.D1.0.159.bin images, ensure that the POAP configuration script (poap_script.tcl
) has the following information:
• set m9148s_image_version 7.3.0.D1.0.159
• set m9148s_kickstart_image_src [format m9100-s5ek9-kickstart-mz.%s.bin $m9148s_image_version]
• set m9148s_system_image_src [format m9100-s5ek9-mz.%s.bin $m9148s_image_version]
Note • Only FAT32 USB is supported. (The file system on the USB should be FAT32). For both Cisco MDS
9700 and 9500 series switches, POAP is supported only on USB 1 Port.
• Both the software images and the configuration files should be present in the USB. If no configuration
is required, create an empty file named conf_serialnumber.cfg. When the configuration file is empty, the
switch reloads the images twice from the USB.
Step 1 Deploy a TFTP server to host the configuration script, software images, and configuration files.
Step 2 Deploy a DHCP server.
Step 3 Configure the following parameters in the DHCP server:
• Interface address
• Gateway address
• TFTP server's IP address
• Boot file name
The following example of dhcpd.conf on Linux, with bootfile name, TFTP server, and script file name:
option vlan-id code 132 = unsigned integer 32 ;
subnet 10.105.188.0 netmask 255.255.255.0 {
max-lease-time 7200;
class "cisco MDS" {
match if substring(option vendor-class-identifier, 0, 15) = "cisco MDS - tcl";
option bootfile-name "poap_script.tcl";
option subnet-mask 255.255.255.0;
option domain-name "cisco.com";
}
option routers 10.105.188.1;
option tftp-server-name "10.105.188.159";
}
Step 4 T obtain the serial number of the switch, execute the show sprom backplane 1 command.
Step 5 Create a separate directory for each switch in the base directory of the TFTP server. The name of each directory should
be the same as the serial number of the switch. Creating a separate directory for each switch enables you to have separate
software images or configuration files for different switches.
Note The base directory should contain the software images (kickstart and system images) and the server-list.cfg
file. The file names of the software images should match poap_script.tcl and device-recipe.cfg.
In the newly created directory for each switch, maintain the device-recipe.cfg and the conf_SN.cfg file.
(ReplaceSN with the exact serial number of the corresponding switch.)
Note You can download all the sample files for the POAP process from the following link:
https://software.cisco.com/download/release.html?mdfid=283453013&softwareid=282088132&release=6.2(11)&relind=AVAILABLE&rellifecycle=&reltype=latest
Note Ensure that you select the correct version of the Cisco MDS NX-OS release before downloading the sample
files.
5. Post-installation reload
Within these phases, other processes and decision points occur. The following illustration shows a POAP
process flow:
See Setting Up the Network Environment to use POAP, on page 29 for more information on the POAP
process.
Figure 5: The POAP Process
Note No user intervention is required for POAP to continue. The prompt that asks if you want to terminate POAP
remains available until the POAP process is complete.
If you exit the POAP mode, you enter a script. If you continue in the POAP mode, all the front-panel interfaces
are set up in the default configuration.
The DHCP discover message also solicits the following options from the DHCP server:
• TFTP server name or TFTP server address—The DHCP server relays the TFTP server name or TFTP
server address to the DHCP client, which uses this information to contact the TFTP server to obtain the
script file.
• Bootfile name—The DHCP server relays the bootfile name to the DHCP client. The bootfile name
includes the complete path to the bootfile on the TFTP server. The DHCP client uses this information
to download the script file.
When multiple DHCP offers that meet the requirement are received, an offer is randomly chosen. The device
completes the DHCP negotiation (request and acknowledgment) with the selected DHCP server, and the
DHCP server assigns an IP address to the switch. If a failure occurs in any of the subsequent steps in the
POAP process, the IP address is released back to the DHCP server.
If none of the DHCP offers meet the requirements, the switch does not complete the DHCP negotiation (request
and acknowledgment), and no IP address is assigned. However, the POAP process is not terminated because
the switch reverts to the USB phase.
Step 3 (Optional) To exit POAP mode and enter the normal interactive setup script, enter y (yes).
The switch boots, and the POAP process begins.
What to do next
Verify the configuration.
Command Purpose
For detailed information about these commands, see the Cisco MDS 9000 Family Command Reference.
Note In normal operation, usernames are case sensitive. However, when you are connected to the device through
its console port, you can enter a login username in all uppercase letters regardless of how the username was
defined. As long as you provide the correct password, the device logs you in.
Command Modes
This section describes command modes in the Cisco NX-OS CLI.
SUMMARY STEPS
1. configure terminal
DETAILED STEPS
SUMMARY STEPS
1. configure terminal
2. interface type number
DETAILED STEPS
Step 2 interface type number Specifies the interface that you want to configure.
Example: The CLI places you into interface configuration mode for
switch(config)# interface ethernet 2/2 switch(config-if)# the specified interface.
Note The CLI prompt changes to indicate that you are
in interface configuration mode.
SUMMARY STEPS
1. configure terminal
2. interface type number.subint
DETAILED STEPS
EXEC From the login prompt, enter To exit to the login prompt, use
switch#
your username and password. the exit command.
Global From EXEC mode, use the To exit to EXEC mode, use the
switch(config)#
configuration configure terminal command. end or exit command or press
Ctrl-Z.
Special Characters
This table lists the characters that have special meaning in Cisco NX-OS text strings and should be used only
in regular expressions or other special contexts.
Character Description
% Percent
... Ellipsis
| Vertical bar
[] Brackets
{} Braces
Keystroke Shortcuts
This table lists command key combinations that can be used in both EXEC and configuration modes.
Keystokes Description
Keystokes Description
Ctrl-B Moves the cursor one character to the left. When you enter a command that extends beyond
a single line, you can press the Left Arrow or Ctrl-B keys repeatedly to scroll back toward
the system prompt and verify the beginning of the command entry, or you can press the
Ctrl-A key combination.
Ctrl-G Exits to the previous command mode without removing the command string.
Ctrl-K Deletes all characters from the cursor to the end of the command line.
Ctrl-T Transposes the character under the cursor with the character located to the right of the
cursor. The cursor is then moved one character to the right.
Ctrl-U Deletes all characters from the cursor to the beginning of the command line.
Ctrl-V Removes any special meaning for the following keystroke. For example, press Ctrl-V
before entering a question mark (?) in a regular expression.
Ctrl-Y Recalls the most recent entry in the buffer (press keys simultaneously).
Keystokes Description
Right arrow key Moves your cursor through the command string, either forward or backward, allowing you
to edit the current command.
Left arrow key
Tab Completes the word for you after you enter the first characters of the word and then press
the Tab key. All options that match are presented.
Use tabs to complete the following items:
• Command names
• Scheme names in the file system
• Server names in the file system
• Filenames in the file system
Example:
switch(config)# c<Tab>
callhome class-map clock cts
cdp cli control-plane
switch(config)# cl<Tab>
class-map cli clock
switch(config)# cla<Tab>
switch(config)# class-map
Example:
switch# cd bootflash:<Tab>
bootflash: bootflash://sup-1/
bootflash:/// bootflash://sup-2/
bootflash://module-5/ bootflash://sup-active/
bootflash://module-6/ bootflash://sup-local/
Example:
switch# cd bootflash://mo<Tab>
bootflash://module-5/ bootflash://module-6/cv
switch# cd bootflash://module-
Abbreviating Commands
You can abbreviate commands and keywords by entering the first few characters of a command. The
abbreviation must include sufficient characters to make it unique from other commands or keywords. If you
are having trouble entering a command, check the system prompt and enter the question mark (?) for a list of
available commands. You might be in the wrong command mode or using incorrect syntax.
Command Abbreviation
When you use the command completion feature the CLI displays the full command name. The CLI does not
execute the command until you press the Return or Enter key. This feature allows you to modify the command
if the full command was not what you intended by the abbreviation. If you enter a set of characters that could
indicate more than one command, a list of matching commands displays.
For example, entering co<Tab> lists all commands available in EXEC mode beginning with co:
switch# co<Tab>
configure copy
switch# co
Note that the characters you entered appear at the prompt again to allow you to complete the command entry.
SUMMARY STEPS
1. where detail
DETAILED STEPS
This example shows how to revert to the default value for a feature:
switch# configure terminal
switch(config)# banner motd #Welcome to the switch#
switch(config)# show banner motd
Welcome to the switch
This example shows how to use the no form of a command in EXEC mode:
switch# cli var name testinterface ethernet1/2
switch# show cli variables
SWITCHNAME="switch"
TIMESTAMP="2009-05-12-13.43.13"
testinterface="ethernet1/2"
Note The TIMESTAMP variable name is case sensitive. All letters must be uppercase.
SUMMARY STEPS
1. cli var name variable-name variable-text
2. (Optional) show cli variables
DETAILED STEPS
Step 2 (Optional) show cli variables Displays the CLI variable configuration.
Example:
switch# show cli variables
SUMMARY STEPS
1. configure terminal
2. cli var name variable-name variable-text
3. exit
4. (Optional) show cli variables
5. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 cli var name variable-name variable-text Configures the CLI persistent variable. The variable name
is a case-sensitive, alphanumeric string and must begin with
Example:
an alphabetic character. The maximum length is 31
characters.
Step 4 (Optional) show cli variables Displays the CLI variable configuration.
Example:
switch# show cli variables
Step 5 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config startup-config
Command Aliases
This section provides information about command aliases.
• You can use command aliases for show command searching and filtering.
SUMMARY STEPS
1. configure terminal
2. cli alias name alias-name alias-text
3. exit
4. (Optional) alias
5. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 cli alias name alias-name alias-text Configures the command alias. The alias name is an
alphanumeric string that is not case sensitive and must begin
Example:
with an alphabetic character. The maximum length is 30
switch(config)# cli alias name ethint interface characters.
ethernet
Step 5 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch# copy running-config startup-config
SUMMARY STEPS
1. terminal alias [persist] alias-name command -string
DETAILED STEPS
Command Scripts
This section describes how you can create scripts of commands to perform multiple tasks.
Note You cannot create the script files at the CLI prompt. You can create the script file on a remote device and
copy it to the bootflash:, slot0:, or volatile: directory on the Cisco NX-OS device.
SUMMARY STEPS
1. run-script [bootflash: | slot0: | volatile:]filename
DETAILED STEPS
This table lists the formatting options that you can insert in the text.
Formatting Description
Option
\c Removes the new line character at the end of the text string.
SUMMARY STEPS
1. echo [backslash-interpret] [text]
DETAILED STEPS
SUMMARY STEPS
1. sleep seconds
DETAILED STEPS
Context-Sensitive Help
The Cisco NX-OS software provides context-sensitive help in the CLI. You can use a question mark (?) at
any point in a command to list the valid input options.
CLI uses the caret (^) symbol to isolate input errors. The ^ symbol appears at the point in the command string
where you have entered an incorrect command, keyword, or argument.
This table shows example outputs of context sensitive help.
switch# clock set 13:32:00 ? Displays the additional arguments for the clock set
<1-31> Day of the month
command.
switch# clock set 13:32:00
Special Characters
You can also use other keyboard characters (such as ! or ~) as single-character patterns, but certain keyboard
characters have special meanings when used in regular expressions.
This table lists the keyboard characters that have special meanings.
_ Matches a comma (,), left brace ({), right brace (}), left parenthesis ( ( ), right parenthesis
(underscore) ( ) ), the beginning of the string, the end of the string, or a space.
To use these special characters as single-character patterns, remove the special meaning by preceding each
character with a backslash (\). This example contains single-character patterns that match a dollar sign ($),
an underscore (_), and a plus sign (+), respectively:
\$ \_ \+
Multiple-Character Patterns
You can also specify a pattern that contains multiple characters by joining letters, digits, or keyboard characters
that do not have special meanings. For example, a4% is a multiple-character regular expression.
With multiple-character patterns, the order is important. The regular expression a4% matches the character a
followed by a 4 followed by a percent sign (%). If the string does not have a4%, in that order, pattern matching
fails. The multiple-character regular expression a. (the character a followed by a period) uses the special
meaning of the period character to match the letter a followed by any single character. With this example, the
strings ab, a!, or a2 are all valid matches for the regular expression.
You can remove the special meaning of a special character by inserting a backslash before it. For example,
when the expression a\. is used in the command syntax, only the string a. will be matched.
Anchoring
You can match a regular expression pattern against the beginning or the end of the string by anchoring these
regular expressions to a portion of the string using the special characters.
This table lists the special characters that you can use for anchoring.
Character Description
For example, the regular expression ^con matches any string that starts with con, and sole$ matches any
string that ends with sole.
Note The ^ symbol can also be used to indicate the logical function "not" when used in a bracketed range. For
example, the expression [^abcd] indicates a range that matches any single letter, as long as it is not a, b, c,
or d.
begin string Starts displaying at the line that contains the text that
matches the search string. The search string is case
Example:
sensitive.
show version | begin Hardware
cut [-d character] {-b | -c | -f | -s} Displays only part of the output lines. You can display
a number of bytes (-b), characters (-vcut [-d
Example:
character] {-b | -c | -f | -s}), or fields (-f). You can
show file testoutput | cut -b 1-10 also use the -d keyword to define a field delimiter
other than the tag character default. The -s keyword
suppresses the display of the lines that do not contain
the delimiter.
exclude string Displays all lines that do not include the search string.
The search string is case sensitive.
Example:
show interface brief | exclude down
head [lines lines] Displays the beginning of the output for the number
of lines specified. The default number of lines is 10.
Example:
show logging logfile | head lines 50
include string Displays all lines that include the search string. The
search string is case sensitive.
Example:
show interface brief | include up
last [lines] Displays the end of the output for the number of lines
specified. The default number of lines is 10.
Example:
show logging logfile | last 50
sscp SSH-connection-name filename Redirects the output using streaming secure copy
(sscp) to a named SSH connection. You can create
Example:
the SSH named connection using the ssh name
show version | sscp MyConnection command.
show_version_output
diff Utility
You can compare the output from a show command with the output from the previous invocation of that
command.
diff-clean [all-session] [all-users]
This table describes the keywords for the diff utility.
Keyword Description
all-sessions Removes diff temporary files from all sessions (past
and present sessions) of the current user.
all-users Removes diff temporary files from all sessions (past
and present sessions) of all users.
The Cisco NX-OS software creates temporary files for the most current output for a show command for all
current and previous users sessions. You can remove these temporary files using the diff-clean command.
diff-clean [all-sessions | all-users]
By default, the diff-clean command removes the temporary files for the current user's active session. The
all-sessions keyword removes temporary files for all past and present sessions for the current user. The
all-users keyword removes temporary files for all past and present sessions for the all users.
Parameter Description
line-number Specifies to display the line number before each matched line.
next lines Specifies the number of lines to display after a matched line. The default is 0. The range is
from 1 to 999.
prev lines Specifies the number of lines to display before a matched line. The default is 0. The range is
from 1 to 999.
Parameter Description
less Utility
You can use the less utility to display the contents of the show command output one screen at a time. You
can enter less commands at the : prompt. To display all less commands you can use, enter h at the : prompt.
sed Utility
You can use the Stream Editor (sed) utility to filter and manipulate the show command output as follows:
sed command
The command argument contains sed utility commands.
sort Utility
You can use the sort utility to filter show command output.
The sort utility syntax is as follows:
sort [-M] [-b] [-d] [-f] [-g] [-i] [-k field-number[.char-position][ordering]] [-n] [-r] [-t delimiter] [-u]
This table describes the sort utility parameters.
Parameter Description
-M Sorts by month.
Parameter Description
sscp Utility
You can use the Streamed Secure Copy Protocol (sscp) to redirect the show command output to a file on a
remote server.
sscp connection-name destination-file
Note You must create a Secure Shell (SSH) connection before using the sscp command.
You can create an SSH connection by using the ssh name command. Password is specified only once at the
time of creation of the ssh-primary-connection. So, you do not have to enter the password again. SSH server
should support the cat command. If the SSH server is running on a Windows system, you must copy the
cat.exe file from the binutils of GNU into the Windows path. The sscp command is used at the end of the pipe
(|).
This command does not require a license.
The following example shows how to copy show command output to a remote server using sscp:
WARNING!!!
READ THIS BEFORE ATTEMPTING TO LOGON
[email protected]'s password:
switch# show version | sscp mybox /users/admin/sscp_output
Commands Description
[lines]<space> Displays output lines for either the specified number of lines or the current screen
size.
[lines]z Displays output lines for either the specified number of lines or the current screen
size. If you use the lines argument, that value becomes the new default screen
size.
[lines]<return> Displays output lines for either the specified number of lines or the current default
number of lines. The initial default is 1 line. If you use the optional lines argument,
that value becomes the new default number of lines to display for this command.
[lines]d or Scrolls through output lines for either the specified number of lines or the current
[lines]Ctrl+shift+D default number of lines. The initial default is 11 lines. If you use the optional lines
argument, that value becomes the new default number of lines to display for this
command.
[lines]s Skips forward in the output for either the specified number of lines or the current
default number of lines and displays a screen of lines. The default is 1 line.
[lines]f Skips forward in the output for either the specified number of screens or the
current default number of screens and displays a screen of lines. The default is 1
screen.
[count]/expression Skips to the line that matches the regular expression and displays a screen of
output lines. Use the optional count argument to search for lines with multiple
occurrences of the expression. This command sets the current regular expression
that you can use in other commands.
[count]n Skips to the next line that matches the current regular expression and displays a
screen of output lines. Use the optional count argument to skip past matches.
Recalling a Command
You can recall a command in the command history to optionally modify and enter again.
This example shows how to recall a command and reenter it:
You can also use the Ctrl-P and Ctrl-N keystroke shortcuts to recall commands.
SUMMARY STEPS
1. [no] terminal edit-mode vi [persist]
DETAILED STEPS
The example shows how to display only the commands in the command history without the command number
and timestamp:
SUMMARY STEPS
1. [no] terminal dont-ask [persist]
DETAILED STEPS
SUMMARY STEPS
1. terminal color [evening] [persist]
DETAILED STEPS
This example shows how to filter module information on the supervisor module session:
Hardware
bootflash: 0 blocks (block size 512b)
loader>
For information on how to load the Cisco NX-OS software from the <loader> prompt, see the Cisco Nexus
troubleshooting guide for your device.
Auto-Negotiation is turned on
Input flow-control is off, output flow-control is off
Auto-mdix is turned on
Switchport monitor is off
Last clearing of "show interface" counters never
5 minute input rate 0 bytes/sec, 0 packets/sec
5 minute output rate 0 bytes/sec, 0 packets/sec
L3 in Switched:
ucast: 0 pkts, 0 bytes - mcast: 0 pkts, 0 bytes
L3 out Switched:
ucast: 0 pkts, 0 bytes - mcast: 0 pkts, 0 bytes
Rx
0 input packets 0 unicast packets 0 multicast packets
0 broadcast packets 0 jumbo packets 0 storm suppression packets
0 bytes
Tx
0 output packets 0 multicast packets
0 broadcast packets 0 jumbo packets
0 bytes
0 input error 0 short frame 0 watchdog
0 no buffer 0 runt 0 CRC 0 ecc
0 overrun 0 underrun 0 ignored 0 bad etype drop
0 bad proto drop 0 if down drop 0 input with dribble
0 input discard
0 output error 0 collision 0 deferred
0 late collision 0 lost carrier 0 no carrier
0 babble
0 Rx pause 0 Tx pause 0 reset
`configure terminal`
`interface ethernet 2/1`
`no shutdown`
`end`
`show interface ethernet 2/1 `
Ethernet2/1 is down (Link not connected)
Hardware is 10/100/1000 Ethernet, address is 0019.076c.4dac (bia 0019.076c.4dac)
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA
Port mode is trunk
auto-duplex, auto-speed
Beacon is turned off
Auto-Negotiation is turned on
Input flow-control is off, output flow-control is off
Auto-mdix is turned on
Switchport monitor is off
Last clearing of "show interface" counters 1d26.2uh
5 minute input rate 0 bytes/sec, 0 packets/sec
5 minute output rate 0 bytes/sec, 0 packets/sec
Rx
0 input packets 0 unicast packets 0 multicast packets
0 broadcast packets 0 jumbo packets 0 storm suppression packets
0 bytes
Tx
0 output packets 0 multicast packets
0 broadcast packets 0 jumbo packets
0 bytes
0 input error 0 short frame 0 watchdog
0 no buffer 0 runt 0 CRC 0 ecc
0 overrun 0 underrun 0 ignored 0 bad etype drop
0 bad proto drop 0 if down drop 0 input with dribble
0 input discard
0 output error 0 collision 0 deferred
0 late collision 0 lost carrier 0 no carrier
0 babble
0 Rx pause 0 Tx pause 0 reset
WARNING!!!
READ THIS BEFORE ATTEMPTING TO LOGON
[email protected]'s password:
switch# show version | sscp MyConnection show_version_output
switch#
Console Port
The console port is an asynchronous serial port that allows you to connect to the device for initial configuration
through a standard RS-232 port with an RJ-45 connector. Any device connected to this port must be capable
of asynchronous transmission. You can configure the following parameters for the console port:
Data bits
Specifies the number of bits in an 8-bit byte that is used for data.
COM1 Port
A COM1 port is an RS-232 port with a DB-9 interface that enables you to connect to an external serial
communication device such as a modem. You can configure the following parameters for the COM1 port:
Data bits
Specifies the number of bits in an 8-bit byte that is used for data.
Hardware flowcontrol
Enables the flow-control hardware.
Parity
Specifies the odd or even parity for error detection.
Speed
Specifies the transmission speed for the connection.
Stop bits
Specifies the stop bits for an asynchronous line.
Configure your terminal emulator with 9600 baud, 8 data bits, 1 stop bit, and no parity.
Virtual Terminals
You can use virtual terminal lines to connect to your Cisco NX-OS device. Secure Shell (SSH) and Telnet
create virtual terminal sessions. You can configure an inactive session timeout and a maximum sessions limit
for virtual terminals.
Modem Support
You can connect a modem to the COM1 or console ports only on the supervisor 1 module. The following
modems were tested on devices running the Cisco NX-OS software:
• MultiTech MT2834BA (http://www.multitech.com/en_us/support/families/multimodemii/)
• Hayes Accura V.92 (http://www.zoom.com/products/dial_up_external_serial.html#hayes)
Note Do not connect a modem when the device is booting. Only connect the modem when the device is powered
up.
The Cisco NX-OS software has the default initialization string (ATE0Q1&D2&C1S0=1\015) to detect
connected modems. The default string is defined as follows:
AT
Attention
E0 (required)
No echo
Q1
Result code on
&D2
Normal data terminal ready (DTR) option
&C1
Enable tracking the state of the data carrier
S0=1
Pick up after one ring
\015 (required)
Carriage return in octal
SUMMARY STEPS
1. configure terminal
2. line console
3. databits bits
4. exec-timeout minutes
5. parity {even | none | odd}
6. speed {300 | 1200 | 2400 | 4800 | 9600 | 38400 | 57600 | 115200}
7. stopbits {1 | 2}
8. exit
9. (Optional) show line console
10. (Optional) copy running-config startup-config
DETAILED STEPS
Step 3 databits bits Configures the number of data bits per byte. The range is
from 5 to 8. The default is 8.
Example:
switch(config-console)# databits 7
Step 4 exec-timeout minutes Configures the timeout for an inactive session. The range
is from 0 to 525600 minutes (8760 hours). A value of 0
Example:
minutes disables the session timeout. The default is 30
switch(config-console)# exec-timeout 30 minutes.
Step 5 parity {even | none | odd} Configures the parity. The default is none.
Example:
switch(config-console)# parity even
Step 6 speed {300 | 1200 | 2400 | 4800 | 9600 | 38400 | 57600 | Configures the transmit and receive speed. The default is
115200} 9600.
Example:
switch(config-console)# speed 115200
Step 10 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config startup-config
SUMMARY STEPS
1. configure terminal
2. line com1
3. databits bits
4. flowcontrol hardware
5. parity {even | none | odd}
6. speed {300 | 1200 | 2400 | 4800 | 9600 | 38400 | 57600 | 115200}
7. stopbits {1 | 2}
8. exit
9. (Optional) show line com1
10. (Optional) copy running-config startup-config
DETAILED STEPS
Step 3 databits bits Configures the number of data bits per byte. The range is
from 5 to 8. The default is 8.
Example:
switch(config-com1)# databits 7
Step 5 parity {even | none | odd} Configures the parity. The default is none.
Example:
switch(config-com1)# parity even
Step 6 speed {300 | 1200 | 2400 | 4800 | 9600 | 38400 | 57600 | Configures the transmit and receive speed. The default is
115200} 9600.
Example:
switch(config-com1)# speed 115200
Step 9 (Optional) show line com1 Displays the COM1 port settings.
Example:
switch(config)# show line com1
Step 10 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config startup-config
SUMMARY STEPS
1. configure terminal
2. line vty
3. • exec-timeout minutes
• absolute-timeout minutes
4. exit
5. (Optional) show running-config all | begin vty
6. (Optional) copy running-config startup-config
DETAILED STEPS
Step 3 • exec-timeout minutes Configures the inactive session timeout. The range is from
0 to 525600 minutes (8760 hours). A value of 0 minutes
• absolute-timeout minutes
disables the timeout. The default value is 30.
Example:
Sets a timeout interval on a virtual terminal (vty) line. The
switch(config-line)# exec-timeout 30 range is from 0 to 10000.
Example: The absolute-timeout command terminates the connection
switch(config-line)# absolute-timeout 30 after the specified time period has elapsed, regardless of
whether the connection is being used at the time of
termination. You can specify an absolute-timeout value for
each port. The user is given 20 seconds notice before the
session is terminated. You can use this command along with
the logout-warning command, which notifies the user of
an impending logout.
Step 5 (Optional) show running-config all | begin vty Displays the virtual terminal configuration.
Example:
switch(config)# show running-config all | begin
vty
Step 6 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config startup-config
SUMMARY STEPS
1. configure terminal
2. line vty
3. session-limit sessions
4. exit
5. (Optional) show running-config all | being vty
6. (Optional) copy running-config startup-config
DETAILED STEPS
Step 3 session-limit sessions Configures the maximum number of virtual sessions for
the Cisco NX-OS device. The range is from 1 to 60. The
Example:
default is 32.
switch(config-line)# session-limit 10
Step 5 (Optional) show running-config all | being vty Displays the virtual terminal configuration.
Example:
switch(config)# show running-config all | begin
vty
Step 6 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config startup-config
SUMMARY STEPS
1. configure terminal
2. Enter one of the following commands:
3. modem in
4. exit
5. (Optional) show line
6. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 Enter one of the following commands: Enters COM1 configuration mode or console configuration
Command Purpose mode.
Example:
switch# line com1
switch(config-com1)#
Step 5 (Optional) show line Displays the console and COM1 settings.
Example:
switch(config)# show line
Step 6 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config startup-config
SUMMARY STEPS
1. configure terminal
2. Enter one of the following commands:
3. modem init-string default
4. exit
5. (Optional) show line
6. (Optional) copy running-config startup-config
DETAILED STEPS
Step 3 modem init-string default Writes the default initialization string to the modem.
Example:
switch(config-com1)# modem init-string default
Step 5 (Optional) show line Displays the COM1 and console settings.
Example:
switch(config)# show line
Step 6 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config startup-config
SUMMARY STEPS
1. configure terminal
2. Enter one of the following commands:
3. modem set-string user-input string
4. modem init-string user-input
5. exit
6. (Optional) show line
7. (Optional) copy running-config startup-config
DETAILED STEPS
Example:
switch# line com1
switch(config-com1)#
Step 3 modem set-string user-input string Sets the user-specified initialization string for the COM1
or console port. The initialization string is alphanumeric
Example:
and case sensitive, can contain special characters, and has
switch(config-com1)# modem set-string a maximum of 100 characters.
user-input ATE0Q1&D2&C1S0=3\015
Note You must first set the user-input string before
initializing the string.
Step 4 modem init-string user-input Writes the user-specified initialization string to the modem
connected to the COM1 or console port.
Example:
switch(config-com1)# modem init-string
user-input
Step 6 (Optional) show line Displays the COM1 and console settings.
Example:
switch(config)# show line
Step 7 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
SUMMARY STEPS
1. modem connect line {com1 | console}
DETAILED STEPS
Related Topics
Enabling a Modem Connection, on page 77
SUMMARY STEPS
1. (Optional) show users
2. clear line name
DETAILED STEPS
Step 2 clear line name Clears a terminal session on a specific line. The line name
is case sensitive.
Example:
switch# clear line pts/0
Command Purpose
show running-config [all] Displays the user account configuration in the running configuration. The all
keyword displays the default values for the user accounts.
For detailed information about the fields in the output from these commands, see the Cisco Nexus command
reference guide for your device.
Parameters Default
Parameters Default
Device Hostname
You can change the device hostname displayed in the command prompt from the default (switch) to another
character string. When you give the device a unique hostname, you can easily identify the device from the
command-line interface (CLI) prompt.
Interface
Note If the management 10/100 Ethernet port (mgmt0) interface of the Cisco MDS 9700 Series switches has a
preconfigured /0 IPv6 address that cannot be removed, use the write erase boot command to clear the complete
configuration of the device and reload it. Perform this process before commissioning the device into production
as this process is disruptive to user traffic if it is applied to the active supervisor of a system. Ensure an active
console connection to the supervisor as this process will remove the IPv4 address of the mgmt0 interface.
The management interface allows multiple simultaneous Telnet or SNMP sessions. You can remotely configure
the device through the management interface (mgmt0), but first you must configure some IP parameters so
that the switch is reachable. You can manually configure the management interface from the CLI. You can
configure the mgmt 0 interface with either IPv4 address parameters or an IPv6 address.
On devices with dual supervisor modules, a single IP address is used to manage the switch. The active
supervisor module's mgmt0 interface uses this IP address. The mgmt0 interface on the standby supervisor
module remains in an inactive state and cannot be accessed until a switchover happens. After a switchover,
the mgmt0 interface on the standby supervisor module becomes active and assumes the same IP address as
the previously active supervisor module.
The management port (mgmt0) is autosensing and operates in full duplex mode at a speed of 10/100/1000
Mbps. Autosensing supports both the speed and the duplex mode.
Default Gateway
Figure 7: Default Gateway
The supervisor module sends IP packets with unresolved destination IPv4 addresses to the default gateway.
Message-of-the-Day Banner
The message-of-the-day (MOTD) banner displays before the user login prompt on the device. This message
can contain any information that you want to display for users of the device.
Device Clock
If you do not synchronize your device with a valid outside timing mechanism, such as an NTP clock source,
you can manually set the clock time when your device boots.
User Sessions
You can display the active user session on your device. You can also send messages to the user sessions. For
more information about managing user sessions and accounts, see the Cisco Nexus security configuration
guide for your device.
Note For information on connecting a terminal to the supervisor module console port, refer to the Cisco MDS 9200
Series Hardware Installation Guide or the Cisco MDS 9500 Series Hardware Installation Guide.
Note The Cisco NX-OS software allows a maximum of 16 sessions on any switch in the Cisco MDS 9500 Series
or the Cisco MDS 9200 Series.
SUMMARY STEPS
1. configure terminal
2. {hostname | switchname} name
3. exit
4. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 {hostname | switchname} name Changes the device hostname. The name argument is
alphanumeric, case sensitive, and has a maximum length
Example:
of 63 characters. The default name is switch.
Using the hostname command:
Note The switchname command performs the same
switch(config)# hostname Engineering1 function as the hostname command.
Engineering1(config)#
Step 4 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
Engineering2# copy running-config startup-config
Note You only need to configure the mgmt0 interface on the active supervisor module. When a supervisor module
switchover occurs, the new active supervisor module uses the same configuration for the mgmt0 interface.
SUMMARY STEPS
1. configure terminal
2. interface mgmt 0
3. ip address {ipv4-address subnet-mask | ipv6-address}
4. exit
5. (Optional) show interface mgmt 0
6. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 interface mgmt 0 Specifies the mgmt0 inteface and enters the interface
configuration mode.
Example:
switch(config)# interface mgmt 0
switch(config-if)#
Step 3 ip address {ipv4-address subnet-mask | ipv6-address} Configures the IPv4 or IPv6 address on the mgmt 0
interface.
Example:
switch(config-if)# ip address 1.1.1.0 255.255.255.0
Step 5 (Optional) show interface mgmt 0 Dispalys the mgmt 0 interface information.
Example:
switch(config)# show interface mgmt 0
Step 6 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
SUMMARY STEPS
1. configure terminal
2. ip default gateway ipv4-address
3. (Optional) show ip route
4. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 ip default gateway ipv4-address Configures the IPv4 address for the default gateway.
Example:
switch(config)# ip default-gateway 172.16.1.1
Step 4 (Optional) copy running-config startup-config Configures the IPv4 or IPv6 address on the mgmt 0
interface.
Example:
switch(config)# copy running-config
startup-config
SUMMARY STEPS
1. configure terminal
2. banner motd delimiting-character message delimiting-character
3. exit
4. (Optional) show banner motd
5. (Optional) copy running-config startup-config
DETAILED STEPS
Step 4 (Optional) show banner motd Displays the configured MOTD banner.
Example:
switch# show banner motd
Step 5 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch# copy running-config startup-config
SUMMARY STEPS
1. configure terminal
2. clock timezone zone-name offset-hours offset-minutes
3. exit
4. (Optional) show clock
5. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 clock timezone zone-name offset-hours offset-minutes Configures the time zone. The zone-name argument is a
3-character string for the time zone acronym (for example,
Example:
PST or EST). The offset-hours argument is the offset from
switch(config)# clock timezone EST -5 0 the UTC and the range is from –23 to 23 hours. The range
for the offset-minutes argument is from 0 to 59 minutes.
Step 4 (Optional) show clock Displays the time and time zone.
Example:
switch# show clock
Step 5 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch# copy running-config startup-config
SUMMARY STEPS
1. configure terminal
2. clock summer-time zone-name start-week start-day start-month start-time end-week end-day end-month
end-time offset-minutes
3. exit
4. (Optional) show clock detail
5. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 clock summer-time zone-name start-week start-day Configures summer time or daylight saving time.
start-month start-time end-week end-day end-month
The zone-name argument is a three character string for the
end-time offset-minutes
time zone acronym (for example, PST and EST).
Example:
The values for the start-day and end-day arguments are
switch(config)# clock summer-time PDT Monday, Tuesday, Wednesday, Thursday, Friday,
1 Sunday March 02:00 1 Sunday
November 02:00 60 Saturday, and Sunday.
Step 4 (Optional) show clock detail Displays the configured MOTD banner.
Example:
switch(config)# show clock detail
Step 5 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch# copy running-config startup-config
SUMMARY STEPS
1. clock set time day month year
2. (Optional) show clock
DETAILED STEPS
Related Topics
Configuring the Time Zone, on page 91
Managing Users
You can display information about users logged into the device and send messages to those users.
SUMMARY STEPS
1. show users
DETAILED STEPS
SUMMARY STEPS
1. (Optional) show users
2. send [session line] message-text
DETAILED STEPS
SUMMARY STEPS
1. configure terminal
2. [no] feature telnet
3. (Optional) show telnet server
4. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 [no] feature telnet Enables the Telnet server connection. Use the no form of
the command to disable the Telnet server connection. The
Example:
default is disabled.
switch(config)# feature telnet
Step 3 (Optional) show telnet server Displays the Telnet server configuration.
Example:
switch(config)# show telnet server
Step 4 (Optional) copy running-config startup-config Copies the running configuration to the starutup
configuration.
Example:
switch(config)# copy running-config
startup-config
Command Purpose
Command Purpose
For detailed information about the fields in the output from these commands, see the Cisco Nexus command
reference for your device.
Parameters Default
File Systems
This topic provides information about the file system components supported on a Cisco MDS device. (The
syntax for specifying a local file system is filesystem:[//modules/]. )
This table describes the file system components that you can use on a Cisco MDS device.
Directories
You can create directories on bootflash: and external flash memory (slot0:, usb1:, and usb2:). You can create,
store, and access files from directories.
Files
You can create and access files from bootflash:, volatile:, slot0:, usb1:, and usb2: file systems. You can only
access files from the system: file system. Use the debug: file system to store the debug log files specified
using the debug logfile command.
You can download files, such as system image files, from remote servers using FTP, Secure Copy Protocol
(SCP), Secure File Transfer Protocol (SFTP), and TFTP. You can also copy files from an external server to
your device because your device can act as an SCP server.
Note You can format an external flash device to erase its contents and restore the device to its factory-shipped state.
For information about recovering corrupted bootflash using formatting, see the .
• To unmount a USB drive from a Cisco MDS device, run the following command:
unmount {usb1: | usb2:}
Example:
switch# unmount usb1:
1
Platform PCMCIA USB
Cisco MDS 9700 No hardware Cisco MDS NX-OS Enabled Enabled No hardware
Series Multilayer port Release 6.2(1) port
Director
Cisco MDS 9500 Enabled Cisco MDS NX-OS No hardware port Enabled Enabled
Series Multilayer Release 6.2(1)
Director
Cisco MDS No hardware Cisco MDS NX-OS No hardware port Enabled No hardware
9396S 16G port Release 6.2(13) port
Multilayer Fabric
Switch
Cisco MDS 9250i No hardware Cisco MDS NX-OS No hardware port Enabled No hardware
Multiservice port Release 6.2(15) port
Fabric Switch
Cisco MDS No hardware Cisco MDS NX-OS No hardware port Enabled No hardware
9148S 16G port Release 6.2(15) port
Multilayer Fabric
Switch
Note The file system, module, and directory names are case sensitive.
Creating a Directory
You can create directories in the bootflash: and flash device file systems.
Note • The file system, module, and directory names are case sensitive.
• The filesystem argument is case sensitive. The directory argument is alphanumeric, case sensitive, and
can have a maximum of 64 characters.
Deleting a Directory
You can remove directories from the file systems on a Cisco MDS device.
Note • Ensure that the directory is empty before you delete it. If the directory is not empty, you must delete all
the files before you delete the directory.
• The file system and directory names are case sensitive.
Note The file system, module, and directory names are case sensitive.
To move a file from one directory to another directory, run the following command:
move [filesystem:[//module/][directory /] | directory/]source-filename {{filesystem:[//module/][directory /] |
directory/}[target-filename] | target-filename}
Example:
switch# move test old_tests/test1
Note The target-filename argument is alphanumeric, case sensitive, and can have a maximum of 64 characters. If
the target-filename argument is not specified, the filename defaults to the source-filename argument value.
Caution When you try to move a file from one directory to another, if a file with the same name already exists in the
destination directory, that file is overwritten by the moved file.
Copying a File
You can make copies of files, either within the same directory or in another directory.
Note • Use the dir command to ensure that enough space is available in the target file system. If enough space
is not available, use the delete command to remove the files that are no longer required.
• The file system, module, and directory names are case sensitive.
Note • The source-filename argument is alphanumeric, case sensitive, and can have a maximum of 64 characters.
If the target-filename argument is not specified, the filename defaults to the source-filename argument
value.
• The copy command supports FTP, SCP, SFTP, TFTP, and HTTP protocols.
Deleting a File
Caution If you specify a directory, the delete command deletes the entire directory and all of its contents.
Note The file system name, directory name, and source-filename argument are case sensitive.
Note The file system and directory names are case sensitive.
Note The file that has be uncompressed must have the .gz suffix. After the file is
uncompressed, it does not have the .gz suffix.
• To display the contents of the current directory, run the following command:
dir [filesystem :[//module/][directory]]
Example:
switch# dir bootflash:
Note The default number of lines is 10. The range is from 0 to 80 lines.
Finding Files
You can find files that have names begining with a specific character string in the current working directory
and its subdirectories.
To find all the files beginning with the filename prefix in the default directory and in its subdirectories, run
the following command:
find filename-prefix
Example:
switch# find bgp_script
• Uncompressed
Note The filename is alphanumeric, not case sensitive, and can have a maximum of 240 characters.
To create an archive file and add files to it, run the following command:
tar create {bootflash: | volatile:}archive-filename [absolute] [bz2-compress] [gz-compress] [remove]
[uncompressed] [verbose] filename-list
This example shows how to create a gzip compressed archive file:
switch# tar create bootflash:config-archive gz-compress bootflash:config-file
The absolute keyword specifies that the leading backslash characters (\) should not be removed from the
names of the files added to the archive file. By default, the leading backslash characters are removed.
The bz2-compress, gz-compress, and uncompressed keywords determine the compression utility to use
when files are added or later appended to the archive, and the decompression utility to use when extracting
the files. If you do not specify an extension for the archive file, the default extensions are as follows:
• For bz2-compress, the extension is .tar.bz2.
• For gz-compress, the extension is .tar.gz.
• For uncompressed, the extension is .tar.
The remove keyword specifies that the software should delete the files from the file system after adding them
to the archive. By default, the files are not deleted.
The verbose keyword specifies that the software should list the files as they are added to the archive. By
default, the files are listed as they are added.
The absolute keyword specifies that the leading backslash characters (\) should not be removed from the
names of the files added to the archive file. By default, the leading backslash characters are removed.
The remove keyword specifies that the software should delete the files from the file system after adding them
to the archive. By default, the files are not deleted.
The verbose keyword specifies that the software should list the files as they are added to the archive. By
default, the files are listed as they are added.
To extract files from an existing archive file, run the following command:
tar extract {bootflash: | volatile:}archive-filename [keep-old] [screen] [to {bootflash: |
volatile:}[/directory-name]] [verbose]
Example:
switch# tar extract bootflash:config-archive.tar.gz
The keep-old keyword indicates that the software should not overwrite files with the same name as the files
being extracted.
The screen keyword specifies that the software should display the contents of the extracted files to the terminal
screen.
The to keyword specifies the target file system. You can include a directory name. The directory name is
alphanumeric, case sensitive, and can have a maximum of 240 characters.
The verbose keyword specifies that the software should display the names of the files as they are extracted.
To display the file names in an archive file, run the following command:
tar list {bootflash: | volatile:}archive-filename
Example:
SUMMARY STEPS
1. (Optional) show running-config
2. copy running-config startup-config
DETAILED STEPS
Step 2 copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch# copy running-config startup-config
SUMMARY STEPS
1. copy running-config scheme://server/[url /]filename
2. copy startup-config scheme://server/[url /]filename
DETAILED STEPS
Step 2 copy startup-config scheme://server/[url /]filename Copies the startup-configuration file to a remote server.
Example: For the scheme argument, you can enter tftp:, ftp:, scp:,
switch# copy startup-config or sftp:. The server argument is the address or name of the
tftp://10.10.1.1/sw1-start-config.bak remote server, and the url argument is the path to the source
file on the remote server.
The server, url, and filename arguments are case sensitive.
Example
SUMMARY STEPS
1. copy scheme://server/[url/]filename running-config
2. (Optional) show running-config
3. (Optional) copy running-config startup-config
4. (Optional) show startup-config
DETAILED STEPS
Step 3 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch# copy running-config startup-config
Related Topics
Copying Files
Caution This procedure disrupts all traffic on the Cisco NX-OS device.
SUMMARY STEPS
1. write erase
2. reload
3. copy scheme://server/[url /]filename running-config
4. copy running-config startup-config
DETAILED STEPS
Step 3 copy scheme://server/[url /]filename running-config Downloads the running configuration file from a remote
server.
Example:
switch# copy tftp://10.10.1.1/my-config For the scheme argument, you can enter tftp:, ftp:, scp:,
running-config or sftp:. The server argument is the address or name of the
remote server, and the url argument is the path to the source
file on the remote server.
The server, url, and filename arguments are case sensitive.
Step 4 copy running-config startup-config Saves the running configuration file to the startup
configuration file.
Example:
switch# copy running-config
startup-config
Related Topics
Copying Files
SUMMARY STEPS
1. (Optional) dir {slot0: | usb1: | usb2:}[directory/]
2. copy running-config {slot0: | usb1: | usb2:}[directory/]filename
3. copy startup-config {slot0: | usb1: | usb2:}[directory/]filename
DETAILED STEPS
Step 2 copy running-config {slot0: | usb1: | Copies the running configuration to an external flash
usb2:}[directory/]filename memory device. The filename argument is case sensitive.
Example:
switch# copy running-config
slot0:dsn-running-config.cfg
Step 3 copy startup-config {slot0: | usb1: | Copies the startup configuration to an external flash memory
usb2:}[directory/]filename device. The filename argument is case sensitive.
Example:
switch# copy startup-config
slot0:dsn-startup-config.cfg
Related Topics
Copying Files
SUMMARY STEPS
1. (Optional) dir {slot0: | usb1: | usb2:}[directory/]
2. copy {slot0: | usb1: | usb2:}[directory/]filename running-config
3. (Optional) show running-config
4. (Optional) copy running-config startup-config
5. (Optional) show startup-config
DETAILED STEPS
Step 2 copy {slot0: | usb1: | usb2:}[directory/]filename Copies the running configuration from an external flash
running-config memory device. The filename argument is case sensitive.
Example:
switch# copy slot0:dsn-config.cfg running-config
Step 4 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch# copy running-config startup-config
Related Topics
Copying Files
SUMMARY STEPS
1. (Optional) dir {slot0: | usb1: | usb2:}[directory/]
2. copy {slot0: | usb1: | usb2:}[directory /]filename startup-config
3. (Optional) show startup-config
DETAILED STEPS
Step 2 copy {slot0: | usb1: | usb2:}[directory /]filename Copies the startup configuration from an external flash
startup-config memory device. The filename argument is case sensitive.
Example:
switch# copy slot0:dsn-config.cfg startup-config
Related Topics
Copying Files
SUMMARY STEPS
1. copy running-config [filesystem:][directory/] | [directory/]filename
2. copy startup-config [filesystem:][directory/] | [directory/]filename
DETAILED STEPS
Step 2 copy startup-config [filesystem:][directory/] | Copies the startup-configuration file to internal memory.
[directory/]filename
The filesystem, directory, and filename arguments are case
Example: sensitive.
switch# copy startup-config
bootflash:sw1-start-config.bak
Related Topics
Copying Files
Note Each time that you enter a copy running-config startup-config command, a binary file is created and the
ASCII file is updated. A valid binary configuration file reduces the overall boot time significantly. A binary
file cannot be uploaded, but its contents can be used to overwrite the existing startup configuration. The write
erase command clears the binary file.
SUMMARY STEPS
1. write erase
2. reload
3. copy configuration_file running-configuration
4. copy running-config startup-config
DETAILED STEPS
Step 3 copy configuration_file running-configuration Copies a previously saved configuration file to the running
configuration.
Example:
switch# copy bootflash:start-config.bak Note The configuration_file filename argument is case
running-configuration sensitive.
Step 4 copy running-config startup-config Copies the running configuration to the start-up
configuration.
Example:
switch# copy running-config startup-config
Note You can only remove the configuration for an empty slot in the chassis.
SUMMARY STEPS
1. (Optional) show hardware
2. purge module slot running-config
3. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 purge module slot running-config Removes the configuration for a missing module from the
running configuration.
Example:
switch# purge module 3 running-config
Step 3 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch# copy running-config startup-config
Erasing a Configuration
You can erase the configuration on your device to return to the factory defaults.
You can erase the following configuration files saved in the persistent memory on the device:
• Startup
• Boot
• Debug
The write erase command erases the entire startup configuration, except for the following:
• Boot variable definitions
• The IPv4 configuration on the mgmt0 interface, including the following:
• Address
• Subnet mask
SUMMARY STEPS
1. write erase boot
2. reload
3. write erase
4. write erase boot
5. reload
DETAILED STEPS
Step 4 write erase boot Erases the boot variable definitions and the IPv4
configuration on the management interface.
Example:
Command Purpose
Command Purpose
For detailed information about the fields in the output from these commands, see the Cisco Nexus command
reference for your device.
This example shows how to back up the startup configuration to the TFTP server (ASCII file):
switch# copy startup-config tftp://172.16.10.100/my-config
This example shows how to back up the running configuration to the bootflash: file system (ASCII file):
switch# copy running-config bootflash:my-config
Note By default, the reload command reloads the device from a binary version of the startup configuration.
Beginning with Cisco NX-OS 6.2(2), you can use the reload ascii command to copy an ASCII version of the
configuration to the start up configuration when reloading the device.
3. Copy the previously saved configuration file to the running configuration with the copy configuration_file
running-configuration command.
4. Copy the running configuration to the start-up configuration with the copy running-config startup-config
command.
CDP Overview
The Cisco Discovery Protocol (CDP) is an advertisement protocol used by Cisco devices to advertise itself
to other Cisco devices in the same network. CDP runs on the data link layer and is independent of Layer 3
protocols. Cisco devices that receive the CDP packets cache the information to make it accessible through
the CLI and SNMP.
The Cisco NX-OS software supports CDP on the management Ethernet (mgmt0) interface on the supervisor
module and the Gigabit Ethernet interfaces on the IP Storage Services (IPS) and 14/2-port Multiprotocol
Services (MPS-14/2) modules. The CDP daemon is restartable and switchable. The running and startup
configurations are available across restarts and switchovers.
CDP version 1 (v1) and version 2 (v2) are supported in Cisco MDS 9000 Family switches. CDP packets with
any other version number are silently discarded when received.
When the interface link is established, CDP is enabled by default and three CDP packets are sent at 1-second
intervals. Following this action, the CDP frames are sent at the globally configured refresh interval.
Configuring CDP
This section describes how to configure CDP.
SUMMARY STEPS
1. configure terminal
2. cdp enable
3. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 cdp enable Enables the CDP feature on the entire device. This is
enabled by default .
Example:
switch(config)# cdp enable
SUMMARY STEPS
1. configure terminal
2. interface interface-type slot/port
3. cdp enable
4. (Optional) show cdp interface interface-type slot/port
5. (Optional) copy running-config startup-config
DETAILED STEPS
Step 3 cdp enable Enables CDP on this interface. This is enabled by default.
Example:
switch(config-if)# cdp enable
Step 4 (Optional) show cdp interface interface-type slot/port Displays CDP information for an interface.
Example:
switch(config-if)# show cdp interface ethernet 1/2
Command Purpose
cdp advertise {v1 | v2} Sets the CDP version supported by the device. The default is
v2.
Example:
switch(config)# cdp advertise v1
Command Purpose
cdp format device-id {mac-address | Sets the CDP device ID. The options are as follows:
serial-number | system-name}
• mac-address—MAC address of the chassis.
• serial-number—Chassis serial number or Organizationally
Example: Unique Identifier (OUI).
switch(config)# cdp format device-id
mac-address • system-name—System name or fully qualified domain
name (FQDN).
cdp holdtime seconds Sets the time that CDP holds onto neighbor information before
discarding it. The range is from 10 to 255 seconds. The default
is 180 seconds.
Example:
switch(config)# cdp holdtime 150
cdp timer seconds Sets the refresh time when CDP sends advertisements to
neighbors. The range is from 5 to 254 seconds. The default is
60 seconds.
Example:
switch(config)# cdp timer 50
Command Purpose
show cdp all Displays all interfaces that have CDP enabled.
show cdp entry {all | name entry-name} Displays the CDP database entries.
show cdp interface interface-type slot/port Displays the CDP interface status.
show cdp neighbors {device-id | interface Displays the CDP neighbor status.
interface-type slot/port} [detail]
show cdp traffic interface interface-type slot/port Displays the CDP traffic statistics on an interface.
Use the clear cdp table command to clear neighboring CDP entries for all interfaces. You can issue this
command for a specified interface or for all interfaces (management and Gigabit Ethernet interfaces).
Parameters Default
NTP
In a large enterprise network, having one time standard for all network devices is critical for management
reporting and event logging functions when trying to correlate interacting events logged across multiple
devices. Many enterprise customers with extremely mission-critical networks maintain their own stratum-1
NTP source.
Time synchronization occurs when several frames are exchanged between clients and servers. The switches
in client mode know the address of one or more NTP servers. The servers act as the time source and receive
client synchronization requests.
By configuring an IP address as a peer, the Cisco NX-OS device will obtain and provide time as required.
The peer is capable of providing time on its own and is capable of having a server configured. If both of these
instances point to different time servers, your NTP service is more reliable. Even if the active server link is
lost, you can still maintain the correct time due to the presence of the peer.
If an active server fails, a configured peer helps in providing the NTP time. To ensure backup support if the
active server fails, provide a direct NTP server association and configure a peer.
If you only configure a peer, the most accurate peer takes on the role of the NTP server and the other peer
acts as a peer. Both devices end at the correct time if they have the correct time source or if they point to the
correct NTP source.
Figure 8: NTP Peer and Server Association
Not even a server down time will affect well-configured switches in the network. This figure displays a
network with two NTP stratum 2 servers and two switches.
• Stratum-2 Server-2
• IPv4 address-10.10.10.9
Configuring NTP
This section describes how to configure NTP.
Enabling NTP
To enable NTP on a switch:
Disabling NTP
To disable NTP on a switch:
Step 3 Specify one or more keys that a time source must provide in its NTP packets in order for the device to synchronize to it:
switch(config)# ntp trusted-key id
The range for key id is from 1 to 65535.
What to do next
Enabling Authentication of Temporary, Symmetric, Broadcast, or Multicast NTP Associations, on page 130.
Step 2 Enable NTP authentication of packets from new temporary, symmetric, broadcast, or multicast associations with remote
network hosts (this does not authenticate peer associations that are created using the ntp server or ntp peer commands.):
switch# ntp authenticate
Step 2 Disable NTP authentication of packets from new temporary, symmetric, broadcast, or multicast associations with remote
network hosts (this does not authenticate peer associations that are created using the ntp server or ntp peer commands.):
switch(config)# no ntp authenticate
NTP authentication is disabled by default.
switch(config)# ntp server {ip-address | ipv6-address | dns-name} [key id] [prefer] [maxpoll interval] [minpoll interval]
You can specify multiple server associations.
Use the key keyword to enable authentication with the named server using the specified key. The range for the id argument
is from 1 to 65535.
Use the prefer keyword to make this server the preferred NTP server for the device.
Use the maxpoll and minpoll keywords to configure the maximum and minimum intervals in which to poll a server. The
range for the interval is from 4 to 16 seconds, and the default values are 6 for maxpoll and 4 for minpoll.
Note If you configure a key to be used while communicating with the NTP server, make sure that the key exists as
a trusted key on the device.
Step 2 Enable the processing of control mode and private mode packets:
switch(config)# ntp allow {private | control [rate-limit seconds]}
The default time duration is 3 seconds, which means that a control mode packet is processed or responded every 3 seconds.
Range is from 1 to 65535.
Step 2 Disable the processing of control mode and private mode packets:
switch(config)# no ntp allow {private | control [rate-limit seconds]}
Step 2 Override the default source address of NTP packets sent from the switch:
switch(config)# ntp source-interface {ethernet slot/port.sub-interface | mgmt number | port-channel number}
Only a single ntp source-interface command can be specified. All NTP packets sent through all interfaces will use the
address specified by this command as the source address.
Resynchronizing NTP
If the NTP client on a switch has lost synchronization with servers or peers, you may need to restart the NTP
client. This will restart the synchronization process with all NTP servers and peers configured on the local
switch. To check the status of NTP servers and clients, see the Troubleshooting NTP.
To restart the NTP client on the switch, perform the following steps:
Retry synchronization:
switch# ntp sync-retry
Note Only NTP server and peer configuration is distributed through CFS.
Step 2 Distribute the pending NTP configuration to an NTP CFS enabled peers in the fabric:
switch(config)# ntp commit
Step 2 Terminate and unlock the existing NTP CFS distribution session on a switch:
switch(config)# ntp abort
Verifying NTP
Use the following commands to verify NTP:
This example shows how to verify if NTP is enabled:
version 8.2(1)
logging level ntp 6
ntp peer 192.168.12.34
ntp server 192.168.86.42
ntp authentication-key 1 md5 fewhg12345 7
ntp logging
This example shows the uncommitted (pending) NTP configuration for the current session:
This example shows the difference between the pending CFS database and the current NTP configuration:
This example shows if the time stamp check is enabled using the time-stamp command:
Troubleshooting NTP
Use the following information for troubleshooting NTP:
This example shows the NTP CFS status:
This example shows how to verify to which switches NTP configuration changes will be distributed to:
Scope : Physical-fc-ip
-------------------------------------------------------------------------
Switch WWN IP Address
-------------------------------------------------------------------------
20:00:8c:60:4f:0d:2b:b0 192.168.12.34 [Local]
[switch1]
20:00:8c:60:4f:0d:32:d0 192.168.56.78 [Merged]
[switch2.mydomain.com]
This example shows the difference between show ntp pending peers and show ntp pending-diff commands.
The outputs are similar when adding NTP servers or peers.
Caution Only the server and peer commands are distributed to the NTP peer switches. Other parameters such as
enabling authentication and configuring authentication keys must be configured on each switch.
Continuing the example on switch1, the outputs differ when deleting servers or peers:
This example shows the status of a peer. Information about each peer is displayed in the table, one peer per
line. The first character of each line is a status flag. A legend above the table shows the meaning of this flag.
NTP servers and peers that are in synchronization and used for local time updates have an equal (=) flag.
There must be at least one device with this flag for the time on the local switch to be updated. Passive peers
are peers that are currently unsynchronized. This means the local switch will not use time updates from these
peers. The remote column shows the source IP address of the peer. The accuracy of the peer's source clock,
or stratum, is shown in the st column. The higher the stratum value, the lower the accuracy of the peer's clock
source, 16 being the lowest accuracy. The polling interval, in seconds, is shown in the poll column. The
reachability field in the reach column is a circular bit map of the last 8 transactions with that peer, '1' indicating
success and '0' indicating failure, the most recent transaction in the lowest significant bit. This peer has not
lost any of the last 6 poll messages. The round trip time between the local switch and peer, in seconds, is
shown in the delay column.
This example shows the detailed NTP information for a single server or peer.
The time last received parameter will return to zero each time frame is received from that server or peer.
Consequently, this parameter will steadily increment if the peer is unreachable or not sending to the local
switch NTP client.
This example shows the counters maintained by the local NTP client on the switch:
This example displays how to enable the processing of private mode packets:
This example displays how to enable the processing of control mode packets with a rate-limit of 10 seconds:
This example enables logging of NTP messages to syslog and changes the syslog logging threshold to
'information':
NTP Disabled
NAME: "Slot 33", DESCR: "MDS 9710 (10 Slot) Chassis Power Supply"
PID: DS-CAC97-3KW , VID: V01 , SN: DTM1649022W
NAME: "Slot 34", DESCR: "MDS 9710 (10 Slot) Chassis Power Supply"
PID: DS-CAC97-3KW , VID: V01 , SN: DTM16490239
NAME: "Slot 35", DESCR: "MDS 9710 (10 Slot) Chassis Power Supply"
PID: DS-CAC97-3KW , VID: V01 , SN: DTM164602ZP
NAME: "Slot 40", DESCR: "MDS 9710 (10 Slot) Chassis Power Supply"
PID: DS-CAC97-3KW , VID: V01 , SN: DTM164602XH
NAME: "Slot 41", DESCR: "MDS 9710 (10 Slot) Chassis Fan Module"
PID: DS-C9710-FAN , VID: V00 , SN: JAF1647ADCN
NAME: "Slot 42", DESCR: "MDS 9710 (10 Slot) Chassis Fan Module"
PID: DS-C9710-FAN , VID: V00 , SN: JAF1647ACHH
NAME: "Slot 43", DESCR: "MDS 9710 (10 Slot) Chassis Fan Module"
PID: DS-C9710-FAN , VID: V00 , SN: JAF1647ADCE
Use the show hardware command to display switch hardware inventory details. The following example
shows the show hardware command output:
Software
BIOS: version 3.1.0
Hardware
cisco MDS 9710 (10 Slot) Chassis ("Supervisor Module-3")
Intel(R) Xeon(R) CPU C5528 @ 2.13GHz with 8167228 kb of memory.
Processor Board ID JAE17360E6B
plugin
Core Plugin, Ethernet Plugin
--------------------------------
Switch hardware ID information
--------------------------------
Switch is booted up
Switch type is : MDS 9710 (10 Slot) Chassis
Model number is DS-C9710
H/W version is 0.2
Part Number is 73-14586-02
Part Revision is 02
Manufacture Date is Year 16 Week 47
Serial number is JAF1647AQTL
CLEI code is 0
--------------------------------
Chassis has 10 Module slots and 6 Fabric slots
--------------------------------
Module1 empty
Module2 powered-dn
Module type is : 2/4/8/10/16 Gbps Advanced FC Module
0 submodules are present
Model number is DS-X9448-768K9
H/W version is 1.3
Part Number is 73-15110-04
Part Revision is A0
Manufacture Date is Year 19 Week 20
Serial number is JAE192008U7
CLEI code is CMUIAHUCAC
.
.
.
Module10 ok
Module type is : 1/10 Gbps Ethernet Module
0 submodules are present
Xbar1 ok
Module type is : Fabric card module
0 submodules are present
Model number is DS-X9710-FAB1
H/W version is 1.2
Part Number is 73-15234-02
Part Revision is C0
Manufacture Date is Year 18 Week 4
Serial number is JAE18040A1N
CLEI code is CMUCAD1BA
.
.
.
Xbar6 powered-dn
Module type is : Fabric card module
0 submodules are present
Model number is DS-X9710-FAB1
H/W version is 1.0
Part Number is 73-100994-01
Part Revision is 03
Manufacture Date is Year 19 Week 50
Serial number is JAE19500864
CLEI code is CLEI987656
---------------------------------------
Chassis has 8 PowerSupply Slots
---------------------------------------
PS1 ok
Power supply type is: 3000.00W 220v AC
Model number is DS-CAC97-3KW
H/W version is 1.0
Part Number is 341-0428-01
Part Revision is A0
Manufacture Date is Year 16 Week 49
Serial number is DTM1649022W
CLEI code is CMUPABRCAA
.
.
.
PS8 ok
Power supply type is: 3000.00W 220v AC
Model number is DS-CAC97-3KW
H/W version is 1.0
Part Number is 341-0428-01
Part Revision is A0
Manufacture Date is Year 16 Week 46
Serial number is DTM164602XH
CLEI code is CMUPABRCAA
----------------------------------
Chassis has 3 Fan slots
----------------------------------
Fan1(sys_fan1) ok
Model number is DS-C9710-FAN
Fan2(sys_fan2) ok
Model number is DS-C9710-FAN
H/W version is 0.2
Part Number is 73-15236-02
Part Revision is 02
Manufacture Date is Year 16 Week 47
Serial number is JAF1647ACHH
CLEI code is
Fan3(sys_fan3) ok
Model number is DS-C9710-FAN
H/W version is 0.2
Part Number is 73-15236-02
Part Revision is 02
Manufacture Date is Year 16 Week 47
Serial number is JAF1647ADCE
CLEI code is
Note If you are installing a new license, use the show license host-id command to obtain the switch serial number.
For more information, see the Cisco MDS 9000 Series NX-OS Software Licensing Guide.
Note In a Cisco MDS 9700 Series switch, power usage is reserved for both supervisors regardless of whether one
or both supervisor modules are present.
Power Supply:
Voltage: 50 Volts
Power Actual Total
Supply Model Output Capacity Status
------- ------------------- ----------- ----------- --------------
1 DS-CAC97-3KW 549 W 3000 W Ok
2 DS-CAC97-3KW 535 W 3000 W Ok
3 DS-CAC97-3KW 539 W 3000 W Ok
4 DS-CAC97-3KW 535 W 3000 W Ok
5 ------------ 0 W 0 W Absent
6 ------------ 0 W 0 W Absent
7 ------------ 0 W 0 W Absent
8 ------------ 0 W 0 W Absent
Actual Power
Module Model Draw Allocated Status
------- ------------------- ----------- ----------- --------------
2 DS-X9448-768K9 N/A 0 W Powered-Dn
3 DS-X9648-1536K9 265 W 750 W Powered-Up
5 DS-X97-SF1-K9 113 W 190 W Powered-Up
6 DS-X97-SF1-K9 106 W 190 W Powered-Up
7 DS-X9334-K9 441 W 480 W Powered-Up
8 DS-X9648-1536K9 252 W 750 W Powered-Up
10 DS-X9848-480K9 363 W 500 W Powered-Up
Xb1 DS-X9710-FAB1 95 W 150 W Powered-Up
For more information on the power supply modes supported on your switch, see the Hardware Installation
Guide corresponding to your switch.
Note • Some Cisco MDS switches support DC and high-voltage DC (HVDC) power supplies. HVDC power
supplies support 440 V (higher voltage), whereas DC power supplies support up to 110 or 220 V. Also,
HVDC power supplies are efficient in transmitting power over a long distance.
• The Cisco MDS 9250i switch has three power supplies whose power supply mode is configured to N+1
mode. Cisco MDS 9250i switch can also be operated with only two power supplies when 1+1 grid
redundancy is required. All the other Cisco MDS 9000 switches (excluding Directors) have a
nonconfigurable power supply mode set to 1+1 grid redundancy.
A Cisco MDS 9700 Series switch ships with enough power supplies to power a fully populated chassis in the
grid-redundant (N+N) mode. For example, depending on your switch's configuration, Cisco MDS 9710 switch
may ship with six power supplies, by default, and can power a fully populated chassis in the grid-redundant
power-configuration (N+N) mode. All the power supplies are always powering the chassis. However, for
managing, reporting, and budgeting the power supplies, Cisco MDS NX-OS supports various configurable
power supply modes. One of the features of the power supply modes is to make assumptions, especially in
grid configuration, to identify power supplies that are connected to grid A and grid B power whips. For
information on connecting power supplies, see the "Product Overview" section in the Cisco MDS 9700 Series
Hardware Installation Guide.
The following table provides information about the power supply bays with respect to grid configurations:
Cisco MDS 9718 PSU1, PSU2, PSU5, PSU6, PSU9, PSU3, PSU4, PSU7, PSU8, PSU11,
PSU10, PSU13, PSU14 PSU12, PSU15, PSU16
Cisco MDS 9710 PSU1, PSU2, PSU5, PSU6 PSU3, PSU4, PSU7, PSU8
The following is a list of power supply modes supported on Cisco MDS switches:
Note Changing between power modes is non disruptive and is possible only if there is enough power available in
the target mode. If enough power is not available, MDS NX-OS rejects the command with “Insufficient
capacity” message.
• Ps-redundant mode—The default power supply mode is the ps-redundant mode, which is equivalent to
the N+1 redundant mode because this mode is flexible enough to cover the deployments in the most
diverse environments. In this mode, N functioning power supplies are used for budgeting, alerting,
reporting, and monitoring, and one power supply is used as reserve. The total available power is the sum
of capacities of the N power supplies.
In the ps-redundant mode, there is no restriction for the placement of power supplies in the chassis slots.
The power supplies need not be placed in grid A or grid B as recommended. Even if the power supplies
are placed as recommended in grid A or grid B, MDS NX-OS will not support budgeting, alerting,
reporting, and monitoring as per a grid configuration because of the N+1 redundancy mode.
• insrc-redundant mode—If a grid (N+N) mode is required in a chassis for proper budgeting, alerting,
reporting, and monitoring purposes, power supplies must be configured, as shown in Table 20:
ps-redundant Mode, on page 153 and then the ps-redundant mode should be changed to the insrc-redundant
mode.
After the insrc-redundant mode is configured, and if a power supply fails, the power supply mode is
changed to combined (nonredundant) mode in relation to the least-populated grid.
When the insrc-redundant mode is configured and a grid fails, the insrc-redundant mode is disabled until
the grid is back online. In the meantime, the operational power supply mode is changed to combined
(nonredundant) mode and power is used from all the power supplies for budgeting, alerting, reporting,
and monitoring.
• Redundant mode—Redundant mode is a combination of grid (N+N) and ps-redundant (N+1) modes. If
the MDS NX-OS power supply mode is set to redundant mode and if there are an equal number of
functioning power supplies in each grid location (grid A and grid B), the operational power supply mode
is set to the grid (insrc-redundant) mode. If a grid fails, the operational power supply mode is changed
to ps-redundant (N+1) mode. The ps-redundant mode is different from the insrc-redundant mode because
a grid failure in insrc-redundant mode defaults to combined (nonredundant) mode.
When configured in redundant mode and if a power supply fails, the power supply mode is changed to
combined (nonredundant) mode in relation to the least-populated grid.
Note When the insrc-redundant or redundant mode is configured, the grid power supply
with an unbalanced configuration (that is, 2+4, and so on) results in the power
supply mode to change to combined (nonredundant) operational mode and
insufficient power may be budgeted. We recommend that you do not use a grid
power supply with an unbalanced configuration when the insrc-redundant or
redundant mode is configured.
• Combined (nonredundant) mode—This has no restrictions on how external power sources are connected
to a Cisco MDS 9710 switch. The power that is available to the switch is the sum of all the working
power supplies in the chassis. You can change from other power modes to the combined mode without
disrupting the traffic.
The following table provides information about moving from combined (nonredundant) mode to other power
supply modes:
Table 24: Moving from Combined (Nonredundant) Mode to Other Power Supply Modes
1 3000 3000 3000 3000 3000 3000 6500 Combined NA 18000 Combined
mode.
3000 3000 3000 3000 3000 3000 6500 NA Redundant 9000 The new
or insrc- capacity
has
redundant
changed
to
redundant
mode.
2 3000 3000 3000 3000 3000 Off 6500 Combined NA 15000 Combined
mode.
3 3000 3000 3000 3000 3000 Off 5500 Combined NA 15000 Combined
mode.
3000 3000 3000 3000 3000 Off 5500 NA Redundant 6000 The new
or insrc- capacity
has
redundant
changed
to
redundant
mode.
4 3000 3000 3000 3000 3000 Off 6500 Combined NA 15000 Combined
mode.
3000 3000 3000 3000 3000 Off 6500 NA Ps- 12000 The new
capacity
redundant
has
changed
to
ps-redundant
mode.
SUMMARY STEPS
1. configure terminal
2. power redundancy-mode {combined | insrc-redundant | ps-redundant |redundant}
3. (Optional) show environment power
4. (Optional) copy running-config startup-config
DETAILED STEPS
Step 2 power redundancy-mode {combined | insrc-redundant Configures the power supply mode. The default is
| ps-redundant |redundant} redundant.
Example:
switch(config)# power redundancy-mode combined
Step 3 (Optional) show environment power Displays the power mode configuration.
Example:
switch(config)# show environment power
Step 4 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config
startup-config
Note A threshold value of –127 indicates that no thresholds are configured or applicable.
• Minor threshold—When a minor threshold is exceeded, a minor alarm occurs and the following action
is taken for all four sensors:
• System messages are displayed.
• Call Home alerts are sent (if configured).
• SNMP notifications are sent (if configured).
• Major threshold—When a major threshold is exceeded, a major alarm occurs and the following action
is taken:
• For sensors 1 and 3 (outlet and onboard sensors):
System messages are displayed.
Call Home alerts are sent (if configured).
SNMP notifications are sent (if configured).
• For sensor 2 (intake sensor):
If the threshold is exceeded in a switching module, only that module is shut down.
If the threshold is exceeded in an active supervisor module with HA-standby or standby present,
only that supervisor module is shut down and the standby supervisor module takes over.
If you do not have a standby supervisor module in your switch, you have an interval of 2 minutes
to decrease the temperature. During this interval the software monitors the temperature every five
(5) seconds and continuously sends system messages as configured.
Tip To realize the benefits of these built-in automatic sensors on any switch in the
Cisco MDS 9700 Series, we highly recommend that you install dual supervisor
modules. If you are using a Cisco MDS 9000 Series switch without dual supervisor
modules, we recommend that you immediately replace the fan module if even
one fan is not working.
Note If one or more fans fail within a fan module, the Fan Status LED turns red. A fan failure could lead to
temperature alarms if not corrected immediately.
The fan status is continuously monitored by the Cisco MDS NX-OS software. In case of a fan failure, the
following action is taken:
• System messages are displayed.
• Call Home alerts are sent (if configured).
• SNMP notifications are sent (if configured).
Use the show environment fan command to display the fan module status.
This example shows the chassis fan information.
switch# show environment fan
Fan:
------------------------------------------------------
Fan Model Hw Status
------------------------------------------------------
Fan1(sys_fan1) DS-C9710-FAN 0.2 Ok
Fan2(sys_fan2) DS-C9710-FAN 0.2 Ok
Fan3(sys_fan3) DS-C9710-FAN 0.2 Ok
Fan_in_PS1 -- -- Ok
Fan_in_PS2 -- -- Ok
Fan_in_PS3 -- -- Ok
Fan_in_PS4 -- -- Absent
Fan_in_PS5 -- -- Absent
Fan_in_PS6 -- -- Absent
Fan_in_PS7 -- -- Absent
Fan_in_PS8 -- -- Ok
Fan Zone Speed %(Hex): Zone 1: 40.78(0x68)
The possible Status field values for a fan module on the Cisco MDS 9700 Series switches are as follows:
• If the fan module is operating properly, the status is ok.
• If the fan is physically absent, the status is absent.
• If the fan is physically present but not working properly, the status is failure.
Actual Power
Module Model Draw Allocated Status
------- ------------------- ----------- ----------- --------------
2 DS-X9448-768K9 N/A 0 W Powered-Dn
3 DS-X9648-1536K9 265 W 350 W Powered-Up
5 DS-X97-SF1-K9 107 W 190 W Powered-Up
6 DS-X97-SF1-K9 106 W 190 W Powered-Up
7 DS-X9334-K9 441 W 480 W Powered-Up
8 DS-X9648-1536K9 252 W 750 W Powered-Up
10 DS-X9848-480K9 363 W 500 W Powered-Up
Xb1 DS-X9710-FAB1 95 W 150 W Powered-Up
Xb2 DS-X9710-FAB1 94 W 150 W Powered-Up
Xb3 DS-X9710-FAB1 91 W 150 W Powered-Up
Xb DS-X9710-FAB1 N/A 150 W Powered-Dn
fan1 DS-C9710-FAN 45 W 600 W Powered-Up
fan2 DS-C9710-FAN 45 W 600 W Powered-Up
fan3 DS-C9710-FAN 50 W 600 W Powered-Up
Clock:
----------------------------------------------------------
Clock Model Hw Status
----------------------------------------------------------
A Clock Module -- NotSupported/None
B Clock Module -- NotSupported/None
Fan:
------------------------------------------------------
Fan Model Hw Status
------------------------------------------------------
Fan1(sys_fan1) DS-C9710-FAN 0.2 Ok
Fan2(sys_fan2) DS-C9710-FAN 0.2 Ok
Fan3(sys_fan3) DS-C9710-FAN 0.2 Ok
Fan_in_PS1 -- -- Ok
Fan_in_PS2 -- -- Ok
Fan_in_PS3 -- -- Ok
Fan_in_PS4 -- -- Absent
Fan_in_PS5 -- -- Absent
Fan_in_PS6 -- -- Absent
Fan_in_PS7 -- -- Absent
Fan_in_PS8 -- -- Ok
Fan Zone Speed %(Hex): Zone 1: 40.78(0x68)
Temperature:
--------------------------------------------------------------------
Module Sensor MajorThresh MinorThres CurTemp Status
(Celsius) (Celsius) (Celsius)
--------------------------------------------------------------------
3 Crossbar0 (s1) 125 115 46 Ok
3 Crossbar1 (s2) 125 115 54 Ok
3 Arb-mux (s3) 125 105 49 Ok
3 CPU (s4) 125 105 48 Ok
3 PCISW (s5) 125 105 66 Ok
3 IOSlice0 (s6) 125 115 38 Ok
3 IOSlice1 (s7) 125 115 39 Ok
3 IOSlice2 (s8) 125 115 40 Ok
5 Inlet (s1) 60 42 24 Ok
5 Crossbar(s2) 125 115 71 Ok
5 Arbiter (s3) 125 105 51 Ok
5 L2L3Dev1(s4) 125 110 42 Ok
5 CPU1CORE1(s5) 85 75 35 Ok
5 CPU1CORE2(s6) 85 75 29 Ok
5 CPU1CORE3(s7) 85 75 35 Ok
5 CPU1CORE4(s8) 85 75 30 Ok
5 DDR3DIMM1(s9) 95 85 31 Ok
6 Inlet (s1) 60 42 26 Ok
6 Crossbar(s2) 125 115 70 Ok
6 Arbiter (s3) 125 105 52 Ok
6 L2L3Dev1(s4) 125 110 41 Ok
6 CPU1CORE1(s5) 85 70 36 Ok
6 CPU1CORE2(s6) 85 70 34 Ok
6 CPU1CORE3(s7) 85 70 36 Ok
6 CPU1CORE4(s8) 85 70 33 Ok
6 DDR3DIMM1(s9) 95 85 31 Ok
7 Crossbar0 (s1) 125 115 83 Ok
7 Crossbar1 (s2) 125 115 82 Ok
7 Arb-mux (s3) 125 115 52 Ok
7 CPU (s4) 125 115 53 Ok
7 L2L3Dev0 (s5) 125 115 66 Ok
7 IOSlice0 (s6) 125 115 56 Ok
7 IOSlice1 (s7) 125 115 57 Ok
7 IOSlice2 (s8) 125 115 57 Ok
7 FC-IP 0 (s9) 95 85 56 Ok
7 FC-IP 1 (s10) 95 85 56 Ok
8 Crossbar0 (s1) 125 115 52 Ok
8 Crossbar1 (s2) 125 115 52 Ok
8 Arb-mux (s3) 125 105 50 Ok
8 CPU (s4) 125 105 47 Ok
8 PCISW (s5) 125 105 56 Ok
8 IOSlice0 (s6) 125 115 40 Ok
8 IOSlice1 (s7) 125 115 41 Ok
8 IOSlice2 (s8) 125 115 42 Ok
10 Crossbar1(s1) 125 115 79 Ok
10 Crossbar2(s2) 125 115 79 Ok
10 Arb-mux (s3) 125 105 56 Ok
10 L2L3Dev1(s5) 125 110 61 Ok
10 L2L3Dev2(s6) 125 110 61 Ok
10 L2L3Dev3(s7) 125 110 57 Ok
10 L2L3Dev4(s8) 125 110 56 Ok
10 L2L3Dev5(s9) 125 110 61 Ok
10 L2L3Dev6(s10) 125 110 52 Ok
10 L2L3Dev7(s11) 125 110 58 Ok
10 L2L3Dev8(s12) 125 110 66 Ok
10 L2L3Dev9(s13) 125 110 57 Ok
10 L2L3Dev10(s14) 125 110 59 Ok
10 L2L3Dev11(s15) 125 110 66 Ok
10 L2L3Dev12(s16) 125 110 62 Ok
xbar-1 Crossbar1(s1) 125 115 49 Ok
xbar-1 Crossbar2(s2) 125 115 54 Ok
xbar-2 Crossbar1(s1) 125 115 56 Ok
xbar-2 Crossbar2(s2) 125 115 63 Ok
xbar-3 Crossbar1(s1) 125 115 51 Ok
xbar-3 Crossbar2(s2) 125 115 64 Ok
xbar-4 Crossbar1(s1) 125 115 59 Ok
xbar-4 Crossbar2(s2) 125 115 67 Ok
xbar-5 Crossbar1(s1) 125 115 61 Ok
xbar-5 Crossbar2(s2) 125 115 68 Ok
Default Settings
This table lists the default hardware settings
About Modules
This table describes the supervisor module options for switches in the Cisco MDS 9000 Family.
Supervisor Modules
Supervisor modules are automatically powered up and started with the switch. The Cisco MDS Family switches
have the following supervisor module configurations:
• Cisco MDS 9513 Directors—Two supervisor modules, one in slot 7 (sup-1) and one in slot 8 (sup-2).
When the switch powers up and both supervisor modules come up together, the active module is the one
that comes up first. The standby module constantly monitors the active module. If the active module
fails, the standby module takes over without any impact to user traffic.
• Cisco MDS 9506 and Cisco MDS 9509 Directors—Two supervisor modules, one in slot 5 (sup-1) and
one in slot 6 (sup-2). When the switch powers up and both supervisor modules come up together, the
active module is the one that comes up first. The standby module constantly monitors the active module.
If the active module fails, the standby module takes over without any impact to user traffic.
• Cisco MDS 9216i switches—One supervisor module that includes an integrated switching module with
14 Fibre Channel ports and two Gigabit Ethernet ports.
• Cisco MDS 9200 Series switches—One supervisor module that includes an integrated 16-port switching
module.
module-1 Fixed usage for the Cisco MDS module-1 always refers to the
9200 Series switches supervisor module in slot 1.
sup-1 and sup-2 Fixed usage On the Cisco MDS 9506 and MDS
9509 switches, sup-1 always refers
to the supervisor module in slot 5
and sup-2 always refers to the
supervisor module in slot 6.
On the Cisco MDS 9513 Directors,
sup-1 always refers to the
supervisor module in slot 7 and
sup-2 always refers to the
supervisor module in slot 8.
sup-local and sup-remote Relative usage If you are logged into the active
supervisor, sup-local refers to the
active supervisor module and
sup-remote refers to the standby
supervisor module.
If you are logged into the standby
supervisor, sup-local refers to the
standby supervisor module (the one
you are logged into.) There is no
sup-remote available from the
standby supervisor module (you
cannot access a file system on the
active sup).
Switching Modules
Cisco MDS 9000 Family switches support any switching module in any non-supervisor slot. These modules
obtain their image from the supervisor module.
Services Modules
Cisco MDS 9000 Family switches support any services module in any non-supervisor slot.
Refer to the Cisco MDS 9000 Series SAN Volume Controller Configuration Guide for more information on
Cisco MDS 9000 Caching Services Modules (CSMs).
Note You must remove and reinsert or replace the supervisor module to bring it into service.
This error message is also generated if one of the following situations apply:
• You remain at the loader> prompt for an extended period of time.
• You have not set the boot variables appropriately.
The Status column in the output should display an ok status for switching modules and an active or standby
(or HA-standby) status for supervisor modules. If the status is either ok or active, you can continue with your
configuration.
Note A standby supervisor module reflects the HA-standby status if the HA switchover mechanism is enabled. If
the warm switchover mechanism is enabled, the standby supervisor module reflects the standby status.
Connecting to a Module
At any time, you can connect to any module using the attach module command. Once you are at the module
prompt, you can obtain further details about the module using module-specific commands.
You can also use the attach module command as follows:
• To display the standby supervisor module information. You cannot configure the standby supervisor
module using this command.
• To display the switching module portion of the Cisco MDS 9200 Series supervisor module which resides
in slot 1.
SUMMARY STEPS
1. attach module slot
2. exit
DETAILED STEPS
Reloading Modules
You can reload the entire switch, reset specific modules in the switch, or reload the image on specific modules
in the switch.
Reloading a Switch
To reload the switch, issue the reload command without any options. When you issue this command, you
reboot the switch (see the Cisco MDS 9000 NX-OS Release 4.1(x) and SAN-OS 3(x) Software Upgrade and
Downgrade Guide.
SUMMARY STEPS
1. Identify the module that needs to be reset.
2. Issue the reload module command to reset the identified module. This command power cycles the selected
module.
DETAILED STEPS
SUMMARY STEPS
1. Identify the switching module that requires the new image.
2. Issue the reload module command to update the image on the switching module.
DETAILED STEPS
Step 1 Identify the switching module that requires the new image.
Step 2 Issue the reload module command to update the image on the switching module.
This table displays various scenarios when module configurations are preserved or lost.
Scenario Consequence
You remove a switching module and issue the copy The configured module information is lost.
running-config startup-config command.
You remove a switching module and reinsert the same The configured module information is saved.
switching module before issuing the copy
running-config startup-config command.
You remove a switching module, insert the same type The configured module information is saved.
switching module in the same slot, and issue a reload
module number command.
You enter a reload module number command to The configured module information is preserved.
reload a switching module.
You remove a switching module and insert a different The configured module information is lost from the
type of switching module in the slot. For example, running configuration. The default configuration is
you replace a 16-port switching module with a 32-port applied.
switching module.
The configured module information remains in startup
Sample scenario: configuration until a copy running-config
startup-config command is issued again.
1. The switch currently has a 16-port switching
module and the startup and running configuration Sample response:
files are the same.
1. The switch uses the 16-port switching module and
2. You replace the 16-port switching module in the the present configuration is saved in nonvolatile
switch with a 32-port switching module. storage.
3. Next, you remove the 32-port switching module 2. The factory default configuration is applied.
and replace it with the same 16-port switching
3. The factory default configuration is applied.
module referred to in Step 1.
4. The configuration saved in nonvolatile storage
4. You enter the reload command to reload the
referred to in Step 1 is applied.
switch.
For example, suppose you create an IP storage configuration with an IPS module in slot 3 in Switch A. This
module uses IP address 10.1.5.500. You decide to remove this IPS module and move it to Switch B, and you
no longer need the IP address10.1.5.500. If you try to configure this unused IP address, you will receive an
error message that prevents you from proceeding with the configuration. In this case, you must enter the purge
module 3 running-config command to clear the old configuration on Switch A before proceeding with using
this IP address.
SUMMARY STEPS
1. configure terminal
2. [no] poweroff module slot
DETAILED STEPS
Step 2 [no] poweroff module slot Powers off the specified module. Use the no form of the
command to power on a module.
Example:
switch(config)# poweroff module 2
Table 29: LEDs for the Cisco MDS 9200 Series Supervisor Modules
Off No link.
This table describes the LEDs for the Cisco MDS 9200 Series interface module.
Table 30: LEDs on the Cisco MDS 9200 Series Interface Module
Off No link.
This table describes the LEDs for the 16-port and 32-port switching modules, and the 4-port, 12-port, 24-port,
and 48-port Generation 2 switching modules.
Table 31: LEDs for the Cisco MDS 9000 Family Fibre Channel Switching Modules
Off No link.
The LEDs on the supervisor module indicate the status of the supervisor module, power supplies, and the fan
module.
This table provides more information about these LEDs.
Table 32: LEDs for the Cisco MDS 9500 Series Supervisor Modules
Off No link.
Off No activity.
EPLD Images
Switches and directors in the Cisco MDS 9000 Family contain several electrical programmable logical devices
(EPLDs) that provide hardware functionalities in all modules. EPLD image upgrades are periodically provided
to include enhanced hardware functionality or to resolve known issues.
Tip Refer to the Cisco MDS NX-OS Release Notes to verify if the EPLD has changed for the Cisco NX-OS image
version being used.
Note The same procedure used to upgrade the EPLD images on a module can be used to downgrade the EPLD
images.
SUMMARY STEPS
1. Log into the switch through the console port, an SSH session, or a Telnet session.
2. Enter the show version command to verify the Cisco MDS NX-OS software release running on the MDS
switch.
3. If necessary, upgrade the Cisco MDS NX-OS software running on your switch (see the Cisco MDS 9000
NX-OS Release 4.1(x) and SAN-OS 3(x) Software Upgrade and Downgrade Guide).
4. Issue the dir bootflash: or dir slot0: command to verify that the EPLD software image file corresponding
to your Cisco MDS NX-OS release is present on the active supervisor module. For example, if your switch
is running Cisco MDS SAN-OS Release 2.1(2), you must have m9000-epld-2.1.2.img in bootflash: or
slot0: on the active supervisor module.
5. If you need to obtain the appropriate EPLD software image file, follow these steps:
6. Use the install module number epld url command on the active supervisor module to upgrade EPLD
images for a module.
DETAILED STEPS
Step 1 Log into the switch through the console port, an SSH session, or a Telnet session.
Step 2 Enter the show version command to verify the Cisco MDS NX-OS software release running on the MDS switch.
Software
BIOS: version 1.0.8
loader: version unavailable [last: 1.0(0.267c)]
kickstart: version 2.1(2) [build 2.1(2.47)] [gdb]
system: version 2.1(2) [build 2.1(2.47)] [gdb]
...
Step 3 If necessary, upgrade the Cisco MDS NX-OS software running on your switch (see the Cisco MDS 9000 NX-OS Release
4.1(x) and SAN-OS 3(x) Software Upgrade and Downgrade Guide).
Step 4 Issue the dir bootflash: or dir slot0: command to verify that the EPLD software image file corresponding to your Cisco
MDS NX-OS release is present on the active supervisor module. For example, if your switch is running Cisco MDS
SAN-OS Release 2.1(2), you must have m9000-epld-2.1.2.img in bootflash: or slot0: on the active supervisor module.
Step 5 If you need to obtain the appropriate EPLD software image file, follow these steps:
a. Download the EPLD software image file from Cisco.com to your FTP server.
b. Verify that you have enough free space available on the active and standby supervisor memory devices that you plan
to use, either bootflash: or slot0:. The download site on Cisco.com shows the size of the EPLD image file in bytes.
The following example shows how to display the available memory for the bootflash: devices on the active and
standby supervisors:
The show module command output shows that the standby supervisor is in slot 6. Use the attach command to access
the supervisor module.
switch(standby)# exit
switch#
The following example shows how to display the available memory for the slot0: devices on the active and standby
supervisors:
The show module command output shows that the standby supervisor is in slot 6. Use the attach command to access
the supervisor module.
switch(standby)# exit
switch#
The show module command output shows that the standby supervisor is in slot 6. Use the attach command to access
the supervisor module.
d. Copy the EPLD image file from the FTP server to the bootflash: or slot0: device in the active supervisor module.
The following example shows how to copy to bootflash:
Note he system will automatically synchronize the ELPD image to the standby supervisor if automatic copying
is enabled.
Step 6 Use the install module number epld url command on the active supervisor module to upgrade EPLD images for a module.
If you forcefully upgrade a module that is not online, all EPLDs are forcefully upgraded. If the module is not present in
the switch, an error is returned. If the module is present, the command process continues. To upgrade a module that is
not online but is present in the chassis, use the same command. The switch software prompts you to continue after reporting
the module state. When you confirm your intention to continue, the upgrade continues.
Note When you upgrade the EPLD module on Cisco MDS 9100 Series switches, you receive the following message:
Use the show version module epld url command to view the available EPLD versions.
SUMMARY STEPS
1. configure terminal
2. [no] ssm upgrade delay seconds
3. (Optional) copy running-config startup-config
DETAILED STEPS
Step 3 (Optional) copy running-config startup-config Copies the running configuration to the startup
configuration.
Example:
switch(config)# copy running-config startup-config
SUMMARY STEPS
1. Log into the switch through the console port, an SSH session, or a Telnet session.
2. Display the values assigned to the SSI image boot variable for each module and note the values for later
reference.
3. Clear the values assigned to the SSI image boot variable.
4. Reload the SSM to initialize in Fibre Channel switching mode.
5. After the SSM initializes, upgrade the SSI boot image.
6. Reassign the SSI boot variables cleared in Step 3.
DETAILED STEPS
Step 1 Log into the switch through the console port, an SSH session, or a Telnet session.
Step 2 Display the values assigned to the SSI image boot variable for each module and note the values for later reference.
Step 3 Clear the values assigned to the SSI image boot variable.
Step 5 After the SSM initializes, upgrade the SSI boot image.
Step 6 Reassign the SSI boot variables cleared in Step 3.
The following example shows successful install all command output including an SSI image upgrade.
Note The SSI boot variable setting is included in the install all output. Also, if the SSI boot image is located on
bootflash: the install all command copies the SSI boot image to the modflash: on the SSMs.
-----------------------------
Default Settings
This table lists the default settings for the supervisor module.
Parameter Default
Parameter Default
Initial state when installed • Power-down state on switches with Cisco MDS
SAN-OS Release 2.1(1a) and earlier installed.
• Fibre Channel switching mode on switches with
Cisco MDS SAN-OS Release 2.1(2) and NX-OS
Release 4.1(1b), or later installed and SSMs with
EPLD version 2.0(2) and later installed.
switch-tcl#
Note In the above example, the Cisco NX-OS command help function is still available but the tcl puts command
returns an error from the help function.
Note The tclsh command history is not saved when you exit the interactive tcl shell.
In a tcl script, you must prepend Cisco NX-OS commands with the tcl cli command as shown in this example:
set x 1
cli show module $x | incl Mod
cli "show module $x | incl Mod"
If you use the following commands in your script, the script will fail and the tcl shell will display an error:
show module $x | incl Mod
"show module $x | incl Mod"
In an interactive tcl shell, you can also execute Cisco NX-OS commands directly without prepending the tcl
cli command:
switch-tcl# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Tcl Variables
You can use tcl variables as arguments to the Cisco NX-OS commands. You can also pass arguments into tcl
scripts. Tcl variables are not persistent.
This example shows how to use a tcl variable as an argument to a Cisco NX-OS command:
switch# tclsh
switch-tcl# set x loop10
switch-tcl# cli "configure terminal ; interface loopback 10 ; description $x"
switch(config-if-tcl)#
Tclquit
The tclquit command exits the tcl shell regardless of which Cisco NX-OS command mode is currently active.
You can also press Ctrl-C to exit the tcl shell. The exit and end commands change Cisco NX-OS command
modes. The exit command will terminate the tcl shell only from the EXEC command mode.
Tclsh Security
The tcl shell is executed in a sandbox to prevent unauthorized access to certain parts of the Cisco NX-OS
system. The system monitors CPU, memory, and file system resources being used by the tcl shell to detect
events such as infinite loops, excessive memory utilization, and so on.
You configure the intial tcl environment with the scripting tcl init init-file command.
You can define the looping limits for the tcl environment with the scripting tcl recursion-limit iterations
command. The default recursion limit is 1000 interations.
values in the output of a show command, perform switch configurations, run Cisco NX-OS commands in a
loop, or define EEM policies in a script.
This section describes how to run tcl scripts or run tcl interactively on Cisco NX-OS devices.
Note You cannot create a tcl script file at the CLI prompt. You can create the script file on a remote device and
copy it to the bootflash: directory on the Cisco NX-OS device.
SUMMARY STEPS
1. tclsh [bootflash:filename [argument ... ]]
DETAILED STEPS
Example
This example shows an interactive tcl shell:
switch# tclsh
switch-tcl# set x 1
switch-tcl# cli show module $x | incl Mod
Mod Ports Module-Type Model Status
1 32 1/10 Gbps Ethernet Module N7K-F132XP-15 ok
Mod Sw Hw
Mod MAC-Address(es) Serial-Num
Mod Online Diag Status
Left ejector CLOSE, Right ejector CLOSE, Module HW does support ejector based shutdown.
switch-tcl# exit
switch#
SUMMARY STEPS
1. tclsh
2. configure terminal
3. tclquit
DETAILED STEPS
Step 2 configure terminal Runs a Cisco NX-OS command in the tcl shell, changing
modes.
Example:
switch-tcl# configure terminal Note The tcl prompt changes to indicate the Cisco
switch(config-tcl)# NX-OS command mode.
Step 3 tclquit Terminates the tcl shell and returns to the starting mode.
Example:
switch-tcl# tclquit
switch#
Example
This example shows how to change Cisco NX-OS modes from an interactive tcl shell:
switch# tclsh
switch-tcl# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config-tcl)# interface loopback 10
switch(config-if-tcl)# ?
description Enter description of maximum 80 characters
inherit Inherit a port-profile
ip Configure IP features
ipv6 Configure IPv6 features
logging Configure logging for interface
no Negate a command or set its defaults
rate-limit Set packet per second rate limit
shutdown Enable/disable an interface
this Shows info about current object (mode's instance)
vrf Configure VRF parameters
end Go to exec mode
exit Exit from command interpreter
pop Pop mode from stack or restore from name
push Push current mode to stack or save it under name
where Shows the cli context you are in
Tcl References
The following titles are provided for your reference:
• Mark Harrison (ed), Tcl/Tk Tools, O'Reilly Media, ISBN 1-56592-218-2, 1997
• Mark Harrison and Michael McLennan, Effective Tcl/Tk Programming, Addison-Wesley, Reading, MA,
USA, ISBN 0-201-63474-0, 1998
• John K. Ousterhout, Tcl and the Tk Toolkit, Addison-Wesley, Reading, MA, USA, ISBN 0-201-63337-X,
1994.
• Brent B. Welch, Practical Programming in Tcl and Tk, Prentice Hall, Upper Saddle River, NJ, USA,
ISBN 0-13-038560-3, 2003.
• J Adrian Zimmer, Tcl/Tk for Programmers, IEEE Computer Society, distributed by John Wiley and Sons,
ISBN 0-8186-8515-8, 1998.