Nexus交换机license安装2020-07-21

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/nx-os/licensing/guide/b_Cisco_NX-OS_Licensing_Guide/b_Cisco_NX-OS_Licensing_Guide_chapter_01.html#task_25130

相关检查命令

show license brief

show license file

show license usage

Installing the License Key File

You can install the license to enable features on your device. For the Cisco Nexus 7000 Series, the license must be installed in the default VDC or admin VDC. A license applies to features in all VDCs and VRFs on the physical device.

If you need to install multiple licenses in any device, be sure to provide unique filenames for each license key file.

If you have a single supervisor module on your Cisco NX-OS device and you replace the supervisor module, you must reinstall the license key file.

If you are currently running with a grace period license to avoid service disruptions when you install your permanent license, do not disable the grace period by using the no license grace-period command. Instead, just install your new license. The license manager will automatically transition from grace licensing to the installed license.

SUMMARY STEPS

1. Log into the device through the console port of the active supervisor.

2. Perform the installation by using the install license command on the active supervisor module from the device console.

3. (Optional) Back up the license key file.

4. Exit the device console and open a new terminal session to view all license files installed on the device using the show license command.

5. (Optional) Enable licensed features, if necessary, by using the feature feature-name command in global configuration mode. For example, you can enable the BGP feature as follows:

DETAILED STEPS

________________________________________

Step 1 Log into the device through the console port of the active supervisor.

Note Only users with the network-admin role can install licenses on Cisco NX-OS devices. For information on user accounts and roles, see the Security Configuration Guide for your platform.

Step 2 Perform the installation by using the install license command on the active supervisor module from the device console.

switch# install license bootflash:license_file.lic

Installing license ..done

Note If you provide a target name for the license key file, the file is installed with the specified name. Otherwise, the filename specified in the license key file is used to install the license.

Step 3 (Optional) Back up the license key file.

Step 4 Exit the device console and open a new terminal session to view all license files installed on the device using the show license command.

switch# show license

Enterprise.lic:

SERVER this_host ANY

VENDOR cisco

INCREMENT LAN_ENTERPRISE_SERVICES_PKG cisco 1.0 permanent uncounted \

        VENDOR_STRING=MDS_SWIFTN7K-LAN1K9= \

        HOSTID=VDH=TBC10412106 \

        NOTICE="200710251333224561\

        " SIGN=0CC6E2245FBE

Note If the license meets all guidelines when the install license command is used, all features and modules continue functioning as configured.

You can use the show license brief command to display a list of license files installed on the device.

switch# show license brief

Enterprise.lic

You can use the show license file command to display information about a specific license file installed on the device.

switch# show license file Enterprise.lic

Enterprise.lic:

SERVER this_host ANY

VENDOR cisco

INCREMENT LAN_ENTERPRISE_SERVICES_PKG cisco 1.0 permanent uncounted \

        VENDOR_STRING=MDS_SWIFTN7K-LAN1K9= \

        HOSTID=VDH=TBC10412106 \

        NOTICE="200710251333224561\

        " SIGN=0CC6E2245FBE

Step 5 (Optional) Enable licensed features, if necessary, by using the feature feature-name command in global configuration mode. For example, you can enable the BGP feature as follows:

swtich# configure terminal

switch(config)# feature bgp

Uninstalling Licenses

You can only uninstall a permanent license that is not in use. If you try to delete a permanent license that is currently being used, the software rejects the request and issues an error message.

When you enable a Cisco NX-OS software feature, it can activate a license grace period. Uninstalling an unused license causes the grace period to come into effect. The grace period is counted from the first use of the feature without a license and is reset when a valid license file is installed.

For the Cisco Nexus 7000 Series, you can uninstall a license only from the default VDC (VDC 1).

Only users with the network-admin role can uninstall licenses on Cisco NX-OS devices. For information on user accounts and roles, see the Security Configuration Guide for your platform.

Permanent licenses cannot be uninstalled if they are currently being used. Features turned on by permanent licenses must be disabled before that license is uninstalled.

If you are using an evaluation license and would like to install a new permanent license, you can do so without service disruption and before the evaluation license expires. Removing an evaluation license immediately triggers a grace period without service disruption.

You must disable the features that are related to the feature before uninstalling a license. The delete procedure fails if the license is in use.

________________________________________

Procedure

________________________________________

Step 1 Save your running configuration to a remote server by using the copy command.

switch# copy running-config tftp://server/path/filename

Step 2 Display a list of all installed license key files and identify the file to be uninstalled by using the show license brief command. In this example, the file to be uninstalled is the Enterprise.lic file.

switch# show license brief

Enterprise.lic

Step 3 Disable the features provided by the license to be uninstalled. Use the show license usage vdc-all package-name command to view the enabled features for a specified package.

switch# show license usage vdc-all LAN_ENTERPRISE_SERVICES_PKG

Application

-----------

bgp

ospf

bgp@2

ospf@2

-----------

Note For the Cisco Nexus 7000 Series, if the feature names in the show license usage vdc-all command output are followed by "@" and a number, that means that the feature is enabled in a nondefault VDC and must be disabled from that VDC. The number after the feature name is the nondefault VDC identifier number. Use the show vdc command and switchto vdc command to reach the nondefault VDC where you can disable the features.

Step 4 Uninstall the Enterprise.lic file by using the clear license filename command, where filename is the name of the installed license key file.

switch# clear license Enterprise.lic

Clearing license Enterprise.lic:

SERVER this_host ANY

VENDOR cisco

Step 5 Continue uninstalling the license by entering y for yes.

Do you want to continue? (y/n) y

Clearing license ..done

The Enterprise.lic license key file is now uninstalled.

Updating Licenses

If your license is time bound, you must obtain and install an updated license. Contact technical support to request an updated license.

For the Cisco Nexus 7000 Series, you can update the license only from the default VDC (VDC 1).

Note ________________________________________

If you purchased Cisco support through a Cisco reseller, contact the reseller directly. If you purchased support directly from Cisco, contact Cisco Technical Support at this URL: http://www.cisco.com/en/US/support/tsd_cisco_worldwide_contacts.html

________________________________________

Note ________________________________________

Only users with the network-admin role can update licenses on Cisco NX-OS devices. For information on user accounts and roles, see the Security Configuration Guide for your platform.

________________________________________

SUMMARY STEPS

1. Obtain the updated license file.

2. Save your running configuration to a remote server by using the copy command.

3. Verify the name of the file to be updated by using the show license brief command.

4. Update the license file by using the update license {bootflash: | slot0: | usb0: | usb1:}new-license-filename old-license-filename command.

5. Continue with the license update by entering y (yes is the default).

6. (Optional) Enable licensed features, if necessary, by using the feature feature-name command in global configuration mode. For example, you can enable the BGP feature as follows:

DETAILED STEPS

________________________________________

Step 1 Obtain the updated license file.

Step 2 Save your running configuration to a remote server by using the copy command.

Step 3 Verify the name of the file to be updated by using the show license brief command.

switch# show license brief

Enterprise1.lic

Step 4 Update the license file by using the update license {bootflash: | slot0: | usb0: | usb1:}new-license-filename old-license-filename command.

switch# update license bootflash:Enterprise2.lic Enterprise1.lic

前面的是新的license 文件 后面的是已经安装的license文件

Note Make sure to use the install command to install a new license and the update command to update a license.

Step 5 Continue with the license update by entering y (yes is the default).

Do you want to continue? (y/n) y

Updating license ..done

switch#

The Enterprise1.lic license key file is now updated.

Step 6 (Optional) Enable licensed features, if necessary, by using the feature feature-name command in global configuration mode. For example, you can enable the BGP feature as follows:

switch# configure terminal

switch(config)# feature bgp

switch#

你可能感兴趣的:(Nexus交换机license安装2020-07-21)