Configuring and Upgrading the CMP


This chapter explains how to connect and configure the Connectivity Management Processor (CMP) on a Supervisor Engine 2T-10GE. It also explains how to update the software image for the CMP.

This chapter includes the following sections:

Configuring the CMP

Verifying the CMP Configuration

Upgrading the CMP Image

Resetting the CMP Password

Saving the Configuration File

Default Settings for CMP Parameters

Configuring the CMP

This section includes the following topics:

Configuring the CMP-MGMT Interface

Saving Console Output on the CMP

Logging CMP Messages

Displaying Saved Messages

Configuring CMPs on a Dual Supervisor Engine

Verifying the CMP Configuration

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. The switch is shipped with the CMP network interface set to a default configuration.

BEFORE YOU BEGIN

Ensure that you are logged in to the CMP before configuring the default gateway and IP address.

SUMMARY STEPS

1. configure terminal

2. interface cmpmgmt

3. ip default gateway ipv4-address

4. ip address ipv4-address/length

5. end

6. show running-config

DETAILED STEPS

 
Command
Purpose

Step 1 

switch-cmp# configure terminal

Enters configuration mode on the CMP.

Step 2 

switch-cmp(config)# interface cmpmgmt

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

Step 3 

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

Configures the default gateway for the cmp-mgmt interface.

Step 4 

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

Configures the IP address for this cmp-mgmt interface.

Step 5 

switch-cmp(config-if)# end

(Optional) Exits the configuration mode.

Step 6 

switch-cmp(config)# show running-config

(Optional) Displays the CMP configuration.

Saving Console Output on the CMP

You can log console output on the CMP to help you troubleshoot problems that you might encounter when reloading the RP on a Supervisor Engine 2T-10GE. To manage the log file on the CMP, you can display its logs. 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

Displaying Logged Output

Archiving a Log File

Logging Console Output on the CMP

When the log file fills with logs, the system creates another file and begins filling it with logs. The default file size of your CMP log is 100 kilobytes (KB).

Displaying Logged Output

To display all of the logs in the log file, enter show loggging route-processor console.

Archiving a Log File

The CMP automatically archives the RP console output log file in its flash-based syslog partition. By default, when the log file reaches its maximum size, the CMP compresses the log file before archiving it. The CMP retains up to four compressed log files per type of log.

The first step in archiving consists of renaming each archived file by incrementing the number in its filename extension. For example, the archived file number four, if present, is deleted, and the slot for archived file number one becomes available. The current log file then is compressed and becomes archived file number one. This process is completed by creating a new uncompressed log file.

Logging CMP Messages

Logging CMP messages occurs automatically. The CMP and RP pass information to each other using shared memory.

Displaying Saved Messages

You can display up to a maximum number of lines according to the type of log that you want to display. The maximum number is 500 for RP logs, 200 for CMP app, 200 for kernel logs, and 50 for epcinfo. The command can retrieve log data from the archived file if the current log file does not have enough lines of data.

To display saved messages, enter one or more of these commands:

Command
Purpose

switch# show logging cmp app

Displays CMP application messages.

switch# show logging cmp kernel

Displays CMP Linux kernel messages.

switch# show logging route-processor console

Displays RP console messages.

switch# show logging route-processor epcinfo

Displays RP crash information messages.


Configuring CMPs on a Dual Supervisor Engine

The CMP runs in active mode on both supervisor engines, even when only one supervisor engine is active, so you must configure each CMP individually. You can configure a unique IP address for each CMP. To perform all other CMP configuration functions, switch to the CMP that you are configuring to perform those functions.

Verifying the CMP Configuration

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

Command
Purpose

show interface cmpmgmt

Displays information about the cmp-mgmt interface.

show interface loopback

Displays loopback network interface information.

show running-config

Displays the running configuration for the CMP.

show version

Displays the software image versions for the supervisor engine RP and the CMP.


Upgrading the CMP Image

There is no version dependency tracking between CMP and RP images. You can load additional CMP images in the CMP bootflash. CMP keeps three kernel images in bootflash: a gold image (master image), F1, and F2. Only F1 and F2 are upgradeable.

When you enter the upgrade command, the system determines which region (F1 or F2) to load the new image file to. The image file is downloaded into memory and stored in the selected region in the boot flash. If the show kernel upgrade command is run after the upgrade command is executed, you will see FIRST_RUN as the status of the region. To complete the upgrade, you must reboot the CMP with the reload command. Once the new image is loaded, the status changes to APPROVED and the upgraded image becomes the running kernel image.

BEFORE YOU BEGIN

Ensure that you are in CMP mode.

SUMMARY STEPS

1. show kernel upgrade

2. upgrade kernel file {scp: | sftp: | tftp:} file-path

3. show version

DETAILED STEPS

 
Command
Purpose

Step 1 

switch-cmp# show kernel upgrade

Displays the versions of Gold, F1 and F2 images.

Step 2 

switch-cmp# upgrade kernel file {scp: | sftp: | tftp:} file-path

Upgrades the CMP kernel image.

Step 3 

switch-cmp# show version

Displays the BIOS and software image versions of the CMP.

Resetting the CMP Password

You can reset the admin or root password CMP password to a default password.

BEFORE YOU BEGIN

Ensure that you are in CMP mode.

SUMMARY STEPS

1. reload

2. Press any key to put you in to the u-boot CLI when the CMP prompts "Hit any key to stop autoboot:".

3. priv

4. passwd reset

5. boot

6. root:default

DETAILED STEPS

 
Command
Purpose

Step 1 

switch-cmp# reload

Reboots the CMP.

Step 2 

press any key to stop autoboot:

Stops the autoboot sequence and puts you in uboot mode when you press any key at the "press any key to stop autoboot:" prompt.

Step 3 

switch-cmp-uboot# priv

Enters Privilege mode (#).

Step 4 

switch-cmp-uboot# passwd reset

Resets the password to root:default.

Step 5 

switch-cmp-uboot# boot

Continues the boot up cycle.

Step 6 

switch-cmp# root:default

Enters you into the admin or root user level of CMP.

Saving the Configuration File

You can save the running configuration file into the startup configuration file.

BEFORE YOU BEGIN

Ensure that you are in CMP mode.

SUMMARY STEPS

1. write file or write memory

2. show startup-config and show running-config

DETAILED STEPS

 
Command
Purpose

Step 1 

switch-cmp# write file


or

switch-cmp# write memory

Saves the running configuration to the startup configuration.

Step 2 

switch-cmp# show startup-config


and

switch-cmp# show running-config

Verifies that the process was completed successfully because both files display the same information.


Note You can view the running configuration file with the write terminal command.


Default Settings for CMP Parameters

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

Table 2-1 Default CMP Parameter Settings 

Parameters
Default

IP address

192.168.1.101/24

Default gateway

192.168.1.1

SSH server

Enabled

Telnet server

Disabled