Cisco Nexus 7000 Series Connectivity Management Processor Configuration Guide
Connecting, Configuring, and Upgrading the CMP
Downloads: This chapterpdf (PDF - 261.0KB) The complete bookPDF (PDF - 465.0KB) | Feedback

Connecting, Configuring, and Upgrading the CMP

Table Of Contents

Connecting, Configuring, and Upgrading the CMP

Connecting to the CMP MGMT Ethernet Port

Configuring the CMP

Accessing the CMP from the CP

Logging Out of a CMP Session

Configuring the CMP-MGMT Interface

Using a Setup Script on the CP to Configure the CMP-MGMT Interface

Configuring an IPv4 IP Address for the CMP From the CP

Configuring an IPv4 IP Address for the CMP From the CMP

Configuring an IPv6 IP Address for the CMP From the CP

Configuring an IPv6 IP Address for the CMP From the CMP

Configuring an IPv4 Access Control List on the CMP

Configuring the Cisco Discovery Protocol for the CMP

Enabling and Disabling the CDP

Configuring Optional CDP Parameters

Default Settings

Additional References

Saving Console Output on the CMP

Logging Console Output on the CMP

Specifying the Size of the Logging File

Showing Logged Output

Archiving a Log File

Clearing the Log File

Logging CMP Messages

Displaying Saved Messages

Configuring the Logging Level

Clearing the Log File

Directing Syslog Messages Externally

Changing the Communication Settings

Changing the Speed

Changing the Number of Bits in a Transmitted Character

Changing the Parity Checking

Changing the Asynchronous Stop Bits

Configuring Flow Control

Enabling or Disabling Flow Control for the CMP

Enabling or Disabling Flow Control for the CP

Configuring CMPs on a Dual Supervisor System

Verifying the CMP Configuration

Upgrading the CMP Image

Default Settings for CMP Parameters


Connecting, Configuring, and Upgrading the CMP


This chapter explains how to connect and configure the Connectivity Management Processor (CMP) on a Cisco Nexus 7000 Series switch. It also explains how to update the software image for the CMP.

This chapter includes the following sections:

Connecting to the CMP MGMT Ethernet Port

Configuring the CMP

Verifying the CMP Configuration

Upgrading the CMP Image

Default Settings for CMP Parameters

Connecting to the CMP MGMT Ethernet Port

To connect the CMP to the network, follow these steps for each installed supervisor:


Step 1 Connect a modular, RJ-45, UTP cable to the CMP MGMT ETH port on the Supervisor 1 module.

Step 2 Route the cable through the central slot in the cable management system on the Cisco Nexus 7000 Series chassis.

Step 3 Connect the other end of the cable to the networking device.


You configure the cmp-mgmt interface during the initial setup script on the CP when you first configure your switch. See the Cisco Nexus 7000 Series NX-OS Fundamentals Configuration Guide, Release 5.x for details on the setup script.


Caution To prevent an IP address conflict, do not connect the CMP MGMT port to the network until the initial configuration is complete. For more information on Ethernet connections and cable management, see the Cisco Nexus 7000 Series Hardware Installation and Reference Guide.

Configuring the CMP

This section includes the following topics:

Accessing the CMP from the CP

Logging Out of a CMP Session

Configuring the CMP-MGMT Interface

Configuring an IPv4 Access Control List on the CMP

Configuring the Cisco Discovery Protocol for the CMP

Saving Console Output on the CMP

Logging CMP Messages

Changing the Communication Settings

Configuring Flow Control

Configuring CMPs on a Dual Supervisor System

Accessing the CMP from the CP

You can access the CMP through a console, SSH, or Telnet session with the CP.


Note To access the CMP by SSH or Telnet, you must enable those sessions on the CMP (by default, the SSH server session is enabled). To enable or disable SSH or Telnet sessions, see Table 1-2.


BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

Connected

Escape character is '~,'

switch-cmp#

Accesses the CMP on the active supervisor module.

Logging Out of a CMP Session

When you log out of a CMP session, you must end the session then exit the mode.

BEFORE YOU BEGIN

You must be accessing the CMP.

SUMMARY STEPS

1. end

2. exit

DETAILED STEPS

 
Command
Purpose

Step 1 

end

Example:

switch-cmp# end

switch-cmp#

Ends the configuration session.

Step 2 

exit

Example:

switch-cmp# exit

switch#

Exits from the CMP configuration mode.


Note If you are in an attached console session, use the ~, command to exit the CMP.


Configuring the CMP-MGMT Interface

You must configure the CMP-MGMT interface before you can connect to the CMP through a SSH or Telnet session.


Note Unlike when you configure the CP, you do not need to use the copy running-config startup-config command configuring the CMP-MGMT interface. Each time that you enter a command when configuring the CMP-MGMT interface, the Cisco NX-OS operating system saves the configuration changes on the CMP flash drive.


The following sections explain each of the different ways that you can configure the CMP-MGMT interface:

Using a Setup Script on the CP to Configure the CMP-MGMT Interface

Configuring an IPv4 IP Address for the CMP From the CP

Configuring an IPv4 IP Address for the CMP From the CMP

Configuring an IPv6 IP Address for the CMP From the CP

Configuring an IPv6 IP Address for the CMP From the CMP

Using a Setup Script on the CP to Configure the CMP-MGMT Interface

The Cisco NX-OS setup script guides you through configuring the CMP-MGMT interface. To use this script, see the Cisco Nexus 7000 Series NX-OS Fundamentals Configuration Guide, Release 5.x.

Configuring an IPv4 IP Address for the CMP From the CP

You can use the Cisco NX-OS CLI on the CP to configure an IP address (IPv4 format) for the CMP-MGMT interface.

BEFORE YOU BEGIN

Ensure that you are in the default virtual device context (VDC) (or use the switchback command).

SUMMARY STEPS

1. configure terminal

2. interface cmp-mgmt module slot

3. ip address ipv4-address/length

4. ip default-gateway ipv4-address

5. (optional) show running-config cmp

DETAILED STEPS

 
Command
Purpose

Step 1 

configure terminal

Example:

switch# configure terminal

switch(config)#

Enters configuration mode.

Step 2 

interface cmp-mgmt module slot

Example:

switch(config)# interface cmp-mgmt module 5

switch(config-if-cmp)#

Enters interface configuration mode for the cmp-mgmt interface on either the active or the standby supervisor.

Step 3 

ip address ipv4-address/length

Example:

switch(config-if-cmp)# ip address 192.0.2.1/16

Configures the IPv4 IP address for this cmp-mgmt interface.

Step 4 

ip default-gateway ipv4-address

Example:

switch(config-if-cmp)# ip default-gateway 192.0.2.10

Configures the default gateway (IPv4 format) for this cmp-mgmt interface.

Step 5 

show running-config cmp

Example:

switch(config-if-cmp)# show running-config cmp

(Optional) Displays a summary of the CMP interface configuration.

Configuring an IPv4 IP Address for the CMP From the CMP

You can use the Cisco NX-OS CLI on the CP to configure an IP address (IPv4 format) for the CMP-MGMT interface.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. ip default-gateway ipv4-address

4. interface cmp-mgmt

5. ip address ipv4-address/length

6. (optional) show running-config

7. (optional) ~,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

switch-cmp5 login: admin

Password: <password>#

Connects to the CMP from the supervisor CP.

Step 2 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters configuration mode on the CMP.

Step 3 

ip default-gateway ipv4-address

Example:

switch-cmp(config)# ip default-gateway 192.0.2.10

Configures the default gateway for the cmp-mgmt interface.

Step 4 

interface cmp-mgmt

Example:

switch-cmp(config)# interface cmp-mgmt switch-cmp(config-if)#

Enters interface configuration mode for the cmp-mgmt interface on either the active or the standby supervisor.

Step 5 

ip address ipv4-address/length

Example:

switch-cmp(config-if)# ip address 192.0.2.1/16

Configures the IP address for this cmp-mgmt interface.

Step 6 

show running-config

Example:

switch-cmp(config-if)# show running-config

(Optional) Displays the CMP configuration.

Step 7 

~,

Example:

switch-cmp(config-if)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Configuring an IPv6 IP Address for the CMP From the CP

You can configure an IPv6 address for the CMP-MGMT interface from the CP.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. configure terminal

2. interface cmp-mgmt module slot

3. ipv6 address ipv6-address/length

4. ipv6 default-gateway ipv6-address

5. (optional) show running-config cmp

DETAILED STEPS

 
Command
Purpose

Step 1 

configure terminal

Example:

switch# configure terminal

switch(config)#

Enters configuration mode.

Step 2 

interface cmp-mgmt module slot

Example:

switch(config)# interface cmp-mgmt module 5

switch(config-if-cmp)#

Enters interface configuration mode for the CMP-MGMT interface on either the active or the standby supervisor.

Step 3 

ipv6 address ipv6-address/length

Example:

switch(config-if-cmp)# ipv6 address 2001:DB8:0:1::1/64

Configures the IP address (IPv6 format) for this cmp-mgmt interface.

Step 4 

ipv6 default-gateway ipv6-address

Example:

switch(config-if-cmp)# ipv6 default-gateway 2001:DB8:0:1::8/64

Configures the default gateway (IPv6 address) for the cmp-mgmt interface.

Step 5 

show running-config cmp

Example:

switch(config-if-cmp)# show running-config cmp

(Optional) Displays a summary of the CMP interface configuration.

To remove the IP address for the cmp-mgmt interface, use the no ipv6 address command.

To remove the IP address for the default gateway, use the no ipv6 default-gateway command.

Configuring an IPv6 IP Address for the CMP From the CMP

You can use the Cisco NX-OS CLI on the CP to configure an IPv6 IP address for the CMP-MGMT interface.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. ipv6 default-gateway ipv6-address

4. interface cmp-mgmt

5. ipv6 address ipv6-address/length

6. (optional) show running-config

7. (optional) ~,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

switch-cmp5 login: admin

Password: <password>#

Connects to the CMP from the supervisor CP.

Step 2 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters configuration mode on the CMP.

Step 3 

ipv6 default-gateway ipv6-address

Example:

switch-cmp(config)# ipv6 default-gateway 192.0.2.10

Configures the default gateway (IPv6 format) for the cmp-mgmt interface.

Step 4 

interface cmp-mgmt

Example:

switch-cmp(config)# interface cmp-mgmt switch-cmp(config-if)#

Enters interface configuration mode for the cmp-mgmt interface on either the active or the standby supervisor.

Step 5 

ipv6 address ipv6-address/length

Example:

switch-cmp(config-if)# ipv6 address 192.0.2.1/16

Configures the IPv6 IP address for the cmp-mgmt interface.

Step 6 

show running-config

Example:

switch-cmp(config-if)# show running-config

(Optional) Displays the CMP configuration.

Step 7 

~,

Example:

switch-cmp(config-if)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Configuring an IPv4 Access Control List on the CMP

You can create an IPv4 access control list (ACL) and apply it to the cmp-mgmt interface. For more information on ACLs, see the Cisco Nexus 7000 Series NX-OS Security Configuration Guide, Release 5.x.


Note You can only configure an ACL on the CMP directly. You cannot configure an ACL from Cisco NX-OS software on the supervisor module CP.


BEFORE YOU BEGIN

You are connected to the CMP (see the "Configuring an IPv4 IP Address for the CMP From the CMP" section).

SUMMARY STEPS

1. configure terminal

2. ip access-list name

3. {permit | deny} protocol source destination

4. exit

5. interface cmp-mgmt

6. ip access-group access-list in

7. (optional) show running-config

DETAILED STEPS

 
Command
Purpose

Step 1 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters global configuration mode on the CMP.

Step 2 

ip access-list name

Example:

switch-cmp(config)# ip access-list acl-01

switch-cmp(config-acl)#

Creates the IPv4 ACL and enters IP ACL configuration mode. The name argument can be up to 64 characters.

Step 3 

{permit | deny} protocol source destination

Example:

switch-cmp(config-acl)# permit ip 192.168.2.0/24 0.0.0.0/0

Creates a rule in the IPv4 ACL.

The permit and deny commands support many ways of identifying traffic. For more information, see the Cisco Nexus 7000 Series NX-OS Security Command Reference, Release 5.x.

Step 4 

exit

Example:

switch-cmp(config-acl)# exit

switch-cmp(config)#

Exits to configuration mode.

Step 5 

interface cmp-mgmt

Example:

switch-cmp(config)# interface cmp-mgmt

switch-cmp(config-if)#

Enters interface configuration mode for the cmp-mgmt interface on either the active or the standby supervisor.

Step 6 

ip access-group access-list in

Example:

switch-cmp(config-if)# ip access-group acl-01 in

Applies an IPv4 ACL to the cmp-mgmt interface for traffic flowing into the interface.

Step 7 

show running-config

Example:

switch-cmp(config-if)# show running-config

(Optional) Displays the CMP configuration.

Configuring the Cisco Discovery Protocol for the CMP

The Cisco Discovery Protocol (CDP) is a media- and protocol-independent protocol that runs on all Cisco-manufactured equipment including routers, bridges, access and communication servers, and switches. You can use CDP to discover and view information about all the Cisco devices that are directly attached to the switch.

CDP gathers protocol addresses of neighboring devices and discovers the platform of those devices.

Each switch that you configure for CDP sends periodic advertisements to a multicast address. The advertisements also contain hold-time information, which indicates the length of time that a receiving device should hold CDP information before removing it. You can configure the advertisement or refresh timer and the hold timer.

This section includes the following topics:

Enabling and Disabling the CDP

Configuring Optional CDP Parameters

Default Settings

Additional References

Enabling and Disabling the CDP

CDP is enabled by default. You can disable CDP and then reenable it at a later time.

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. cdp enable

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

Connected

Escape character is '~,' [tilde comma]

[EOT]

switch#

Attaches the CMP.

Step 2 

configure terminal

Example:

switch# configure terminal

Enter configuration commands, one per line. End with CNTL/Z

switch(config)#

Places you in global configuration mode.

Step 3 

cdp enable

Example:

switch(config)# cdp enable

Enables the CDP feature on the entire switch. This feature is enabled by default.

To disable the CDP feature on the switch, use the no cdp enable command.

Configuring Optional CDP Parameters

You can use the following optional commands in global configuration mode to modify CDP:

Command
Purpose

cdp advertise {v1 | v2}

Example:

switch(config)# cdp advertise v1

Sets the CDP version supported by the switch. The default is v2.

cdp format device-id {mac-address | serial-number | system-name}

Example:

switch(config)# cdp format device-id mac-address

Sets the CDP device ID. The options are as follows:

mac-address—MAC address of the chassis

other—Chassis serial number

serial-number—Chassis serial number/Organizationally Unique Identifier (OUI)

system-name—system name or domain name

The default is system-name.


Default Settings

Table 2-1 lists the CDP default settings.

Table 2-1 CDP Default Settings

Parameter
Default

CDP

Enabled globally and on all interfaces

CDP version

Version 2

CDP device ID

Serial number

CDP timer

60 seconds

CDP hold time

180 seconds


Additional References

For additional information related to implementing CDP, see Table 2-2.

Table 2-2 Related Documents

Related Topic
Document Title

CDP CLI commands

Cisco Nexus 7000 Series NX-OS System Management Command Reference, Release 5.x

VDCs and VRFs

Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide, Release 5.x


Saving Console Output on the CMP

Beginning with Cisco NX-OS Release 5.0, you can log console output on the CMP to help you troubleshoot problems that you might encounter when reloading the CP on your Cisco Nexus 7000 Series switch. To manage the log file on the CMP, you can specify the size of the file, display its logs, archive the file on the CP log flash drive, and clear logs from the file. The changes that you make to manage the logging of console output are recorded in the running configuration. To activate these changes for future sessions, you must copy the running configuration to the startup configuration after making the changes.

This section includes the following topics:

Logging Console Output on the CMP

Specifying the Size of the Logging File

Showing Logged Output

Archiving a Log File

Clearing the Log File

Logging Console Output on the CMP

When you enable the logging of console output on the CMP, you can either use the default file size (50 kilobytes [KB]) for the logs or specify another file size between 10 KB and 100 KB. You can enable or disable this logging function while working in the CP or in the CMP.


Note When the log file fills with logs, the system creates another file and begins filling it with logs.


BEFORE YOU BEGIN

If you are operating in an attach CMP or detach CMP mode, your configuration change to enable or disable the logging is recorded in the running configuration but the switch does not change this function for the current session.

SUMMARY STEPS

1. configure terminal

2. capture cp console [file_size]

3. (optional) copy running-config startup-config

DETAILED STEPS

 
Command
Purpose

Step 1 

configure terminal

Example:

switch# configure terminal

Enter configuration commands, one per line. End with CNTL/Z

switch(config)#

Places you in global configuration mode.

Step 2 

capture cp console 100

Example:

switch(config)# capture cp console 100

Enables the logging of console output on the CMP in a file of the size specified by this integer in this command or in a default sized file (50 KB) if a file size is not specified.

Step 3 

copy running-config startup-config

Example:

switch(config)# copy running-config startup-config

(Optional) Saves this configuration change.


Note To disable the logging of console output, use the no capture cp console command. When you use this command on the CP, it applies the CMP configuration to both the active and standby supervisor modules.


Specifying the Size of the Logging File

You can specify the size of the console output logging file separately from enabling or disabling the logging function. You can do this action while working in the CP or in the CMP.

BEFORE YOU BEGIN

If you are configuring the CMP from the CP, you must not be in an attach CMP mode.

If you are configuring the CMP from the CMP, you must not be in a monitor CP mode.


Note If you are operating in an attach CMP or detach CMP mode, your configuration change to enable or disable the logging is recorded in the running configuration but the switch does not change this function for the current session.


SUMMARY STEPS

1. configure terminal

2. capture cp size [file_size]

3. (optional) copy running-config startup-config

DETAILED STEPS

 
Command
Purpose

Step 1 

configure terminal

Example:

switch# configure terminal

Enter configuration commands, one per line. End with CNTL/Z

switch(config)#

Places you in global configuration mode.

Step 2 

capture cp size 100

Example:

switch(config)# capture cp size 100

Changes the KB size of the console output log file. Specify an integer between 10 and 100. The default is 50.

Step 3 

copy running-config startup-config

Example:

switch(config)# copy running-config startup-config

(Optional) Saves this configuration change.

Showing Logged Output

You can display the contents of a console output log file or the last number of logs that you specify.

PROCEDURE

 
Command
Purpose
 

show capture all

Displays all of the logs in the log file.

 

show capture last number_of_lines

Displays the most recently logged output. You include an integer to specify the number of lines to display.

Archiving a Log File

You can archive the console output log file on the CP while working in the CP or in the CMP. By default, the switch archives the log file.

BEFORE YOU BEGIN

If you are configuring the CMP from the CP, you must not be in an attach CMP mode.

If you are configuring the CMP from the CMP, you must not be in a monitor CP mode.


Note If you are operating in an attach CMP or detach CMP mode, your configuration change to enable or disable the logging is recorded in the running configuration but the switch does not change this function for the current session.


SUMMARY STEPS

1. configure terminal

2. capture cp archive enable

3. (optional) copy running-config startup-config

DETAILED STEPS

 
Command
Purpose

Step 1 

configure terminal

Example:

switch# configure terminal

Enter configuration commands, one per line. End with CNTL/Z

switch(config)#

Places you in global configuration mode.

Step 2 

capture cp archive enable

Example:

switch(config)# capture cp archive enable

Enables the archiving of console output log files on the CP.

Step 3 

copy running-config startup-config

Example:

switch(config)# copy running-config startup-config

(Optional) Saves this configuration change.


Note To stop the archiving of the console output to the CP, use the no capture cp archive enable command.


Clearing the Log File

You can clear the contents of a log file while configuring in the CMP.

SUMMARY STEPS

1. configure terminal

2. clear capture cp

3. (optional) copy running-config startup-config

DETAILED STEPS

 
Command
Purpose

Step 1 

configure terminal

Example:

switch# configure terminal

Enter configuration commands, one per line. End with CNTL/Z

switch(config)#

Places you in global configuration mode.

Step 2 

clear capture cp

Example:

switch(config)# clear capture cp

Clears the contents of the log file.

Step 3 

copy running-config startup-config

Example:

switch(config)# copy running-config startup-config

(Optional) Saves this configuration change.

Logging CMP Messages

You can save up to 256 CMP messages in a log file, and you can specify a severity threshold for the messages saved. When the file has 256 messages, the CMP automatically removes the oldest message whenever it saves a new message. Table 2-3 describes the message levels and types of messages that the CMP saves. When you specify a severity level, the CMP saves messages for that level and all levels below it in the log file.

Table 2-3 CMP Message Severity Levels  

Level
Messages Saved
Description

0 - Emergency

1 - Alert

CP on this SUP has reset.

CMP detected a nonmaskable interrupt on the CP.

2 - Critical

CP is not online (could not establish communication with CP).

Connected with CP! LOG CP IS ONLINE.

Connection reset with CP!!

CMP cannot communicate with the CP.

CMP and CP can communicate.

CMP cannot detect the maximum number of CP heartbeats.

3 - Error

4 - Warning

5 - Notification

6 - Informational

7 - Debugging


This section includes the following topics:

Displaying Saved Messages

Configuring the Logging Level

Clearing the Log File

Displaying Saved Messages

You can display all of the messages saved in the CMP log file.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

2. show logging logfile

3. (optional) ~,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

switch-cmp#

Connects to the CMP from the supervisor CP.

Step 2 

show logging logfile

Example:

switch-cmp# show logging logfile

Shows the saved logfile messages.

Step 3 

~,

Example:

switch-cmp(config)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Configuring the Logging Level

By default, the CMP saves level 2 messages and below for each CMP process in the log file. You can specify a different level for the CMP to save for a process by using the logging level command.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. (optional) show logging level process

4. logging level process [1 | 2 | 3 | 4 | 5 | 6 | 7]

5. (optional) show logging level process

6. (optional) ~,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

switch-cmp#

Connects to the CMP from the supervisor CP.

Step 2 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters the configuration mode on the CMP.

Step 3 

show logging level process

Example:

switch-cmp(config)# show logging level user

Facility Default Severity Current Session Severity

-------- ---------------- ------------------------

user 2 2

...

switch-cmp(config)#

(Optional) Displays the current logging level for the specified process.

Step 4 

logging level process [1 | 2 | 3 | 4 | 5 | 6 | 7]

Example:

switch-cmp(config)# logging level user 3

switch-cmp(config)#

Configures a new logging level threshold for a process.

Step 5 

show logging level process

Example:

switch-cmp(config)# show logging level user

Facility Default Severity Current Session Severity

-------- ---------------- ------------------------

user 3 3

...

switch-cmp(config)#

(Optional) Displays the current logging level for the specified process.

Step 6 

~,

Example:

switch-cmp(config)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Clearing the Log File

You can clear the contents of the log file.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. clear logging logfile

4. (optional) ~,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

switch-cmp#

Connects to the CMP from the supervisor CP.

Step 2 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters the configuration mode on the CMP.

Step 3 

clear logging logfile

Example:

switch-cmp(config)# clear logging logfile

switch-cmp(config)#

Clears the contents of the log file.

Step 4 

~,

Example:

switch-cmp(config)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Directing Syslog Messages Externally

You can direct the CMP syslog messages to a maximum of five external devices (consoles and terminals), and you can specify the maximum level of the messages directed to each external device.

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. logging server ip_address|ipv6_address {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7} facility {auth | daemon | kernel | user}
logging console
{0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}
logging monitor {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}
logging level logging_facility {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}

4. (Optional) show logging
(Optional) show logging server
(Optional) show logging console
(Optional) show logging monitor
(Optional) show logging level

5. (Optional) -,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

switch-cmp#

Connects to the CMP from the supervisor CP.

Step 2 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters the configuration mode on the CMP.

Step 3 

logging server {ip_address | ipv6_address} {0 | 1 | 2 |
3 | 4 | 5 | 6 | 7} facility {auth | daemon | kernel | user}

Example:

switch-cmp(config)# logging server 22.22.22.22 6 facility crit

switch-cmp(config)#

Configures the syslog server to send messages to ip_address or ipv6_address. This command also specifies the maximum logging level (0 for emergency, 1 for alert, 2 for critical, 3 for error, 4 for warning, 5 for notification, 6 for information, or 7 for debug) and the logging facility (authentication, daemon, kernel, or user).

 

logging console {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}

Example:

switch-cmp(config)# logging console 6

switch-cmp(config)#

Configures the console to receive syslog messages up to the type specified (0 for emergency, 1 for alert, 2 for critical, 3 for error, 4 for warning, 5 for notification, 6 for information, or 7 for debug).

 

logging monitor {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}

Example:

switch-cmp(config)# logging monitor 5

switch-cmp(config)#

Configures the monitor to receive syslog messages up to the type specified (0 for emergency, 1 for alert, 2 for critical, 3 for error, 4 for warning, 5 for notification, 6 for information, or 7 for debug).

 

logging level {auth | daemon | kernel | user} {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}

Example:

switch-cmp(config)# logging level daemon 6

switch-cmp(config)#

Configures the maximum logging level (0 for emergency, 1 for alert, 2 for critical, 3 for error, 4 for warning, 5 for notification, 6 for information, or 7 for debug) for a logging domain (facility).

Step 4 

show logging

Example:

switch-cmp(config)# show logging

logging console: enabled (Severity :crit)

logging monitor: enabled (Severity : notice)

...

switch#

(Optional) Displays all of the logging configurations for the server, console, monitor, and logging filters.

 

show logging server

Example:

switch-cmp(config)# show logging server

logging server: enabled

switch-cmp(config)#

(Optional) Displays the logging configurations for the server.

 

show logging console

Example:

logging console: enabled (Severity : crit)

...

switch-cmp(config)#

(Optional) Displays the logging configuration for the console displaying syslog messages.

 

show logging monitor

Example:

switch-cmp(config)# show logging monitor

logging monitor: enabled (Severity : notice)

switch-cmp(config)#

(Optional) Displays the logging configuration for the monitor displaying syslog messages.

 

show logging level

Example:

switch-cmp(config)# show logging level

Facility Default Severity Current Session Severity

-------- ---------------- ------------------------

auth 2 2

...

switch-cmp(config)#

(Optional) Displays the logging filter configuration.

Step 5 

-,

Example:

switch-cmp(config)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Changing the Communication Settings

You can change the communication speed, number of bits in a byte, terminal parity, asynchronous line stop bits, and flow control settings so that the CMP can communicate with its CP.

This section includes the following topics:

Changing the Speed

Changing the Number of Bits in a Transmitted Character

Changing the Parity Checking

Changing the Asynchronous Stop Bits

Changing the Speed

The CP and CMP must use the same speed (baud rate). If the CP and CMP use different speeds, you must change the speed used by the CMP so that it matches the CP speed.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. line com1

4. (Optional) show line

5. speed number

6. (Optional) ~,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

switch-cmp#

Connects to the CMP from the supervisor CP.

Step 2 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters the configuration mode on the CMP.

Step 3 

line com1

Example:

switch-cmp(config)# line com1

switch-cmp(config-com1)#

Configures the main configuration line.

Step 4 

show line

Example:

switch-cmp(config-com1)# show line

(Optional) Displays the communications settings.

Step 5 

speed number

Example:

switch-cmp(config-com1)# speed 9600

Configures a speed at 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115,200 baud.

Step 6 

~,

Example:

switch-cmp(config)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Changing the Number of Bits in a Transmitted Character

The CP and CMP must use the same number of data bits in the characters that they transmit. If the CP and CMP use different numbers of data bits, you can change the number used by the CMP so that it matches the CP usage.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. line com1

4. (Optional) show line

5. databits number

6. (Optional) ~,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

Connected

Escape character is '~,'

switch# attach cmp

switch-cmp#

Connects to the CMP from the supervisor CP.

Step 2 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters the configuration mode on the CMP.

Step 3 

line com1

Example:

switch-cmp(config)# line com1

switch-cmp(config-com1)#

Configures the main configuration line.

Step 4 

show line

Example:

switch-cmp(config-com1)# show line

(Optional) Displays the communications settings.

Step 5 

databits number

Example:

switch-cmp(config-com1)# databits 8

Configures the number of bits in a character (between 5 and 8).

Step 6 

~,

Example:

switch-cmp(config)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Changing the Parity Checking

The CP and CMP must use the same type of parity checking. If the CP and CMP use different types, you must change the type used by the CMP so that it matches the CP type.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. line com1

4. (Optional) show line

5. parity {even | odd | none}

6. (Optional) ~,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

switch-cmp#

Connects to the CMP from the supervisor CP.

Step 2 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters the configuration mode on the CMP.

Step 3 

line com1

Example:

switch-cmp(config)# line com1

switch-cmp(config-com1)#

Configures the main configuration line.

Step 4 

show line

Example:

switch-cmp(config-com1)# show line

(Optional) Displays the communications settings.

Step 5 

parity {even | odd | none}

Example:

switch-cmp(config-com1)# parity none

Sets single-bit parity checking to check for even parity, odd parity, or ignore parity.

Step 6 

~,

Example:

switch-cmp(config)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Changing the Asynchronous Stop Bits

The CP and CMP must use the same number of stop bits. If the CP and CMP use different numbers of stop bits, you must change the number used by the CMP so that it matches the CP number.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. line com1

4. stopbits {1 | 2}

5. exit

6. (Optional) show line

7. (Optional) ~,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

switch-cmp#

Connects to the CMP from the supervisor CP.

Step 2 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters the configuration mode on the CMP.

Step 3 

line com1

Example:

switch-cmp(config)# line com1

switch-cmp(config-com1)#

Configures the main configuration line.

Step 4 

stopbits {1 | 2}

Example:

switch-cmp(config-com1)# stopbits 1

Configures the number of stop bits included in a character frame.

Step 5 

exit

Example:

switch-cmp(config-com1)# exit

switch-cmp(config)#

Exits COM1 configuration mode.

Step 6 

show line

Example:

switch-cmp(config-com1)# show line

(Optional) Displays the communications settings.

Step 7 

~,

Example:

switch-cmp(config)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Configuring Flow Control

You can use a hardware version of flow control to regulate the flow of data traffic over the internal serial connection between the CMP and CP. When enabled for both the CMP and CP, flow control delays the flow of frames until earlier frames are processed by the receiving processor.

This section includes the following topics:

Enabling or Disabling Flow Control for the CMP

Enabling or Disabling Flow Control for the CP

Enabling or Disabling Flow Control for the CMP

You can enable or disable the CMP to use a hardware version of flow control with the CP.

BEFORE YOU BEGIN

You must enable flow control on the CP (see the "Enabling or Disabling Flow Control for the CP" section).

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. attach cmp

2. configure terminal

3. line com1

4. {flowcontrol hardware} | {no flowcontrol hardware}

5. (Optional) show line com1

6. exit

7. (Optional) ~,

DETAILED STEPS

 
Command
Purpose

Step 1 

attach cmp

Example:

switch# attach cmp

switch-cmp#

Connects to the CMP from the supervisor CP.

Step 2 

configure terminal

Example:

switch-cmp# configure terminal

switch-cmp(config)#

Enters configuration mode.

Step 3 

line com1

Example:

switch-cmp(config)# line com1

switch-cmp(config-com1)#

Specifies to configure the CMP serial line.

Step 4 

{flowcontrol hardware} | {no flowcontrol hardware}

Example:

switch-cmp(config-com1)# flowcontrol hardware

Enables or disables flow control.

Step 5 

show line com1

Example:

switch-cmp(config-com1)# show line com1

(Optional) Displays the interface status, which includes the flow control parameters.

Step 6 

exit

Example:

switch-cmp(config-com1)# exit

switch-cmp(config)#

Exits COM1 configuration mode.

Step 7 

~,

Example:

switch-cmp(config)# ~,

switch#

(Optional) Exits the CMP console and returns to the Cisco NX-OS CLI on the CP.

Enabling or Disabling Flow Control for the CP

You can enable or disable the CP to use a hardware version of flow-control with the CMP.

BEFORE YOU BEGIN

You must enable flow control on the CMP (see the "Enabling or Disabling Flow Control for the CMP" section).

SUMMARY STEPS

1. configure terminal

2. line console

3. {flowcontrol hardware} | {no flowcontrol hardware}

4. (Optional) show line console

5. exit

6. exit

DETAILED STEPS

 
Command
Purpose

Step 1 

configure terminal

Example:

switch# configure terminal

switch(config)#

Enters configuration mode.

Step 2 

line console

Example:

switch(config)# line console

switch(config-com1)#

Specifies the serial line to the CMP.

Step 3 

{flowcontrol hardware} | {no flowcontrol hardware}

Example:

switch(config-com1)# flowcontrol hardware

switch(config-com1)#

Enables or disables flow control.

Step 4 

show line console

Example:

switch(config-com1)# show line console

switch(config-com1)

(Optional) Displays the interface status, which includes the flow control parameters.

Step 5 

exit

Example:

switch(config-com1)# exit

switch(config)#

Exits the COM1 configuration mode.

Step 6 

exit

Example:

switch(config)# exit

switch#

Exits the configuration mode.

Configuring CMPs on a Dual Supervisor System

The CMP runs in active mode on both supervisor modules, even when only one supervisor module is active, so you must configure each CMP individually. You can configure the unique IP address for each CMP from the active CP by using Cisco NX-OS commands through either the CLI or scripts. To perform all other CMP configuration functions, connect directly to the CMP that you are configuring to perform those functions.

Verifying the CMP Configuration

To display CMP configuration information from the Cisco NX-OS CLI on the CP, use the following commands:

Command
Purpose

show running-config cmp

Displays the running configuration for the CMP.

show tech-support cmp

Displays the technical support output for the CMP.

show logging logfile | include cmp

Displays the logs for the CMP.


To display CMP configuration information from the CMP CLI, use the following commands:

Command
Purpose

show attach sessions

Displays information about active or suspended attach or monitor sessions.

show capture {all | last number}

Displays the captured logs.

show cdp all

Displays all interfaces that have CDP enabled.

show cdp configuration

Displays the current CDP configuration.

show cdp global

Displays the CDP global parameters.

show cdp neighbors [detail]

Displays the CDP neighbor status.

show cdp traffic

Displays the CDP traffic statistics on an interface.

show clock

Displays the current date and time.

show hardware

Displays information about the CMP hardware.

show interface

Displays information about the cmp-mgmt interface.

show logging {console | level | logfile | monitor | server}

Displays the CMP log files.

show logs

Displays the CMP syslog messages.

show processes

Displays information about the CMP processes.

show running-config

Displays the running configuration for the CMP.

show sprom

Displays the SPROM contents on the CMP.

show ssh key

Displays information about SSH key.

show system resources

Displays information about CMP system resources.

show users

Displays the users logged into the system.

show version

Displays the software image versions for the supervisor CP and the CMP.


Upgrading the CMP Image

You can upgrade the CMP image, which is part of the Cisco NX-OS system image and contains a subset of commands to support the CMP features.


Note The CMP image is independent of the CP image, so the version of the CMP image might not match the version of the CP image. To make sure that the CMP is running the latest compatible image, use the install all command from the Cisco NX-OS CLI on the CP.


To upgrade the Cisco NX-OS kickstart image, system image, and CMP image at the same time, use the install all command from the Cisco NX-OS CLI on the CP. This command automatically upgrades the software on both CMPs. After the software is upgraded, you must manually reload the CMP on each supervisor. For more information on software images, see the Cisco Nexus 7000 Series NX-OS Software Upgrade and Downgrade Guide, Release 5.x.

Use the following procedure if you want to update only the CMP image.

BEFORE YOU BEGIN

Ensure that you are in the default VDC (or use the switchback command).

SUMMARY STEPS

1. copy {ftp | tftp} remote-location local-location

2. (Optional) show module

3. install module active-slot cmp system local-location

4. install module standby-slot cmp system local-location

5. reload cmp module active-slot

6. reload cmp module standby-slot

7. (Optional) show version

DETAILED STEPS

 
Command
Purpose

Step 1 

copy {ftp | tftp} remote-location local-location

Example:

switch# copy ftp://10.1.7.2/n7000-s1-dk9.4.0.3.bin bootflash:n7000-s1-dk9.4.0.3.bin

Copies the CMP image from an FTP server to the supervisor module.

Step 2 

show module

Example:

switch# show module

(Optional) Displays information about the location and status of modules on the switch.

Step 3 

install module active-slot cmp system local-location

Example:

switch# install module 5 cmp system bootflash:/n7000-s1-dk9.4.0.3.bin

Extracts the CMP image from the Cisco NX-OS system image and installs the CMP image on the CMP on the active supervisor module. The local-location argument consists of the file location and the filename.

For more information on installing images, see the Cisco Nexus 7000 Series NX-OS Software Upgrade and Downgrade Guide, Release 5.x.

Step 4 

install module standby-slot cmp system location

Example:

switch# install module 6 cmp system bootflash:/n7000-s1-dk9.4.0.3.bin

Extracts the CMP image from the Cisco NX-OS system image and installs the CMP image on the CMP on the standby supervisor module, if present. The location argument consists of the file location and the filename.

For more information on installing images, see the Cisco Nexus 7000 Series NX-OS Software Upgrade and Downgrade Guide, Release 5.x.

Step 5 

reload cmp module active-slot

Example:

switch# reload cmp module 5

Reloads the CMP for the active supervisor module to complete the upgrade.

Step 6 

reload cmp module standby-slot

Example:

switch# reload cmp module 5

Reloads the CMP for the standby supervisor module, if present, to complete the upgrade.

Step 7 

show version

Example:

switch# show version

(Optional) Displays the BIOS and software image versions of the CMP.

Default Settings for CMP Parameters

Table 2-4 lists the default settings for CMP parameters.

Table 2-4 Default CMP Parameter Settings 

Parameters
Default

Logging level

2 (critical level)

SSH server

Enabled

Telnet server

Disabled