使用授权码注册设备
从CSSM获取授权码后,请执行以下命令以完成许可证预留过程:
步骤1: 启用.
启用特权执行模式。输入您的密码(如果提示)。
第二步: 许可证智能预留安装文件 bootflash:
.
此命令可注册设备。复制为文件的授权码用于激活设备的SLR。当您运行 show license tech support
命令,系统显示保留许可证的详细信息。
此产品的文档集力求使用非歧视性语言。在本文档集中,非歧视性语言是指不隐含针对年龄、残障、性别、种族身份、族群身份、性取向、社会经济地位和交叉性的歧视的语言。由于产品软件的用户界面中使用的硬编码语言、基于 RFP 文档使用的语言或引用的第三方产品使用的语言,文档中可能无法确保完全使用非歧视性语言。 深入了解思科如何使用包容性语言。
思科采用人工翻译与机器翻译相结合的方式将此文档翻译成不同语言,希望全球的用户都能通过各自的语言得到支持性的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 Cisco Systems, Inc. 对于翻译的准确性不承担任何责任,并建议您总是参考英文原始文档(已提供链接)。
本文档介绍面向思科统一边界要素(CUBE)的思科智能软件许可的概念和需求。
Cisco 建议您了解以下主题:
本文档不限于特定的软件和硬件版本。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
思科智能软件许可必须消除当今的权利障碍,并提供有关您的软件客户群的信息,以便更轻松地购买、部署、跟踪和续订思科软件。 您、您选择的合作伙伴和思科可以在思科智能软件管理器(CSSM)界面中查看您的硬件、软件授权以及最终的服务。在使用单个令牌进行配置和激活时,所有智能软件许可产品都必须自行注册,不再需要使用产品激活密钥(PAK)导航到网站并在产品之后注册产品。智能软件许可不是使用PAK或许可证文件,而是建立软件许可证或授权池,这些许可证或授权可在整个公司中以灵活且自动化的方式使用。汇集对于退货授权(RMA)特别有用,因为它无需重新托管许可证。您可以在思科智能软件管理器中轻松快速地自行管理整个公司的许可证部署。通过标准产品优惠、标准许可证平台和灵活的合同,您可以利用思科软件获得更简单、更高效的体验。
智能许可是考虑软件许可的新方式。它是基于云的许可证合规性存储库和检查器。
所有购买的许可证都将直接转移到注册到智能帐户的智能帐户产品中,并检查这些产品是否合规。这些许可证是独立的(不与产品关联)。它有一个软件库存管理系统,可以回答以下两个问题:
智能许可仅许可您使用,而不许可产品安装。许可证将集中用于整个帐户/子帐户(智能帐户)。这些许可证不会以节点锁定到便于注册和PAK消除的设备。
所有产品在安装和配置时自动注册。您不需要任何PAK或许可证密钥干预。通过基于云的门户,您可以了解您已购买的内容以及您已在网络中部署的内容。许可证不再以节点锁定到您的设备。通过智能许可,您还可以创建许可证池(授权的逻辑分组),以反映您的组织结构。
激活:
管理授权:
授权:
限时许可证:
产品实例:
旧传统许可(CUBE) |
新的智能许可优惠(CUBE) |
复杂产品:
|
简化产品:
|
|
|
|
|
1. ISR =集成多业务路由器
2. ASR =聚合服务路由器
3. RTU =使用权
4.硬件=硬件
5. SWSS =思科软件支持服务
为了运行CUBE功能,路由器具有最低平台许可证要求。除了使用这些功能外,还需要CUBE会话许可证。
访问CUBE CLI需要以下许可证配置:
注意:对于所有智能许可证版本,CUBE许可证未实施。这意味着,只要您继续注册到CSSM,如果许可证达到“不合规”状态,您的呼叫仍然可以接听。但是,如果向CSSM的注册断开,会话初始协议(SIP)服务将被禁用,呼叫将停止处理。
自17.6.2版本以来,此行为发生了变化,其中SIP服务不受许可证报告确认的影响。
智能许可支持从Cisco IOS XE 16.10.1开始。在Cisco IOS XE 17.3.2和17.4.1中,开始支持使用仅策略模式许可证的简化智能许可方法。
IOS XE版本 |
平台要求 |
CUBE许可 |
16.6.1到16.9.x |
|
|
16.10.x |
|
|
16.11.1a到17.1.x |
|
|
17.2.1r到17.3.1a |
|
|
17.3.2以上 |
|
|
Cisco IOS XE版本16.11、16.12和17.1中的许可证消耗报告使用以下命令手动配置:
Router (conf)ig# voice service voip
Router (conf-voi-serv)#mode border-element license capacity
对于这些版本,许可证容量报告是静态的,也可以是可选的。
即使未配置许可证容量,也必须将CUBE平台注册到智能许可服务器。如果平台未注册且评估期到期,则关闭呼叫处理。
如果会话数量超过许可证容量配置,或者许可证请求处于“不合规”状态,则呼叫处理不会受到限制。
本节中的某些场景描述了使用手动配置的许可证池。为了确保从虚拟帐户使用正确的许可证数量,建议在每台设备上配置所需的平均许可证数量。“Configured for”(配置对象)信息指导如何进行配置。
评估期从启用需要授权的功能时开始。当座席处于未识别或未注册状态时,计算评估周期。评估期不可续订(即,当倒计时达到0时,评估期永久结束)。授权请求可能会导致“已授权”(Authorized)或“不合规”(Out of Compliance)响应或通信错误。每30天通过授权请求续订一次授权周期。只要授权响应为“已授权”(Authorized)或“不合规”(Out of Compliance),授权期限就会续期。授权到期在授权期限到期时开始(即授权失败后90天)。当处于授权过期状态时,代理继续重试使用授权请求进行续订。如果重试成功通过“已授权”或“不合规”,则会开始新的授权周期。如果认证ID无法更新,产品实例将进入未注册状态,并开始使用评估期。
a.使用此命令启用CUBE:
Router (conf)ig# voice service voip
Router (conf\
-voi-serv)#mode border-element license capacity
b.配置Call-home(默认情况下,在16.10.1a之后的所有Cisco IOS XE版本上都提供)。
Service call-home
Call-home
profile “CiscoTAC-1”
active
destination transport-method http
no destination transport-method email
destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService
c.从CSSM生成令牌:
登录到 Cisco CSSM > Inventory > Virtual Account > New Token
.
d.注册到CSSM:
Router# license smart register idtoken <id_token>
要将产品实例注册到SSM On-Prem,需要以下信息:
https://
:/SmartTransport or http://
:/SmartTransport
.注意:HTTPS提供产品与本地SSM之间的加密通信,而HTTP提供产品与本地SSM之间的明文通信。由于具有更强大的加密功能,因此建议使用HTTPS,除非证书设置有问题。
Router(cfg-call-home-profile)# destination address https://<SSM ON-PREM-URL>:/Transportgateway/services/DeviceRequestHandler
or
Router(cfg-call-home-profile)# destination address http://<SSM ON-PREM-URL>:/Transportgateway/services/DeviceRequestHandler.
有关智能软件管理器的详细信息,请参阅 思科智能软件管理器用户指南.
注:URL上的SSM本地IP或FQDN必须与本地软件上的CN设置相同。
注:如果使用CSSM内置,则在将CSSM升级到支持策略报告的8-202102版或更高版本之前,请勿升级到Cisco IOS XE 17.3.1以外的版本。
从Cisco IOS XE Gibraltar 16.12.1支持智能许可证预留(SLR)。SLR允许保留和使用思科智能许可证,而无需将许可证信息传送到CSSM。要为设备保留特定许可证,请从该设备生成请求代码。在CSSM中输入请求代码以及所需的许可证及其数量,并生成授权代码。输入设备上的授权码,以便将许可证映射到唯一设备标识符(UDI)。
要为设备启用SLR,必须执行以下命令:
SR-I# Enable
SR-I# configure terminal
SR-I(config)# license smart reservation
SR-I(config)# exit
SR-I# license smart reservation request local
注意:要取消许可证保留请求,请执行 license smart reservation cancel
命令。
步骤1: 登录到 Cisco Smart Software Manager
时间 https://software.cisco.com/#
. 您必须使用思科提供的用户名和密码登录门户。
第二步: 单击 Inventory
选项卡。从 Virtual Account
下拉列表中,选择您的智能帐户。
第三步: 从 Licenses
选项卡,单击 License Reservation
如本图所示。
系统显示Smart License Reservation向导。
第四步: 在 Enter Request Code
第页,输入或附加从路由器生成的预留请求代码,然后单击 Next
.
第五步: 查看 Reserve a Specific License
复选框。 系统显示虚拟帐户中可用的剩余许可证列表。在CLI中输入要为所需许可证保留的许可证数量。 Quantity to Reserve
字段并点击 Next
.
第六步: 从 Review and Confirm
选项卡,单击 Generate Authorization Code
.
注:在为特定设备生成SLR代码后,授权代码文件将一直有效,直到您安装该代码。如果安装失败,您必须联系全球许可(GLO)以生成新的授权码。
系统显示生成的授权码。
步骤 7. 单击 Copy to Clipboard
选项以复制代码或下载代码作为文件。您必须将代码或文件复制到您的设备。 如果配置SLR,可以下载或安装授权码文本文件。如果配置永久许可证保留(PLR),则可以复制并粘贴授权码。
从CSSM获取授权码后,请执行以下命令以完成许可证预留过程:
步骤1: 启用.
启用特权执行模式。输入您的密码(如果提示)。
第二步: 许可证智能预留安装文件 bootflash:
.
此命令可注册设备。复制为文件的授权码用于激活设备的SLR。当您运行 show license tech support
命令,系统显示保留许可证的详细信息。
Router # license smart reservation return local
此命令将删除授权码,设备将转换回未注册状态。系统会生成一个返回代码,必须在思科智能软件管理器中输入该代码才能删除该产品实例 Router(config)#no license smart reservation
.
有关详细信息,请参阅特定许可证保留指南。
17.3.2或17.4.1版本之后不支持SLR。必须删除配置才能成功配置智能许可。如果在配置中找到此命令,则必须禁用 Router(config)#no license smart reservation
.
此外,在您从SLR支持的版本升级到非SLR支持的版本(17.3.2及更高版本)之前,请确保已从门户和平台删除SLR。
注:要将您当前的硬件平台许可证迁移到智能帐户,需要设备指示灯转换(DLC)。
DLC是在在CSSM中注册时将新设备或产品实例从传统升级到智能许可的过程。设备上的所有许可证自动从传统或永久使用权(RTU)许可证转换为智能许可证,无需任何手动转换。
继续执行以下步骤以启动DLC。
请记住,DLC每台路由器只能运行一次。确保您已注册到想要先存放许可证的智能帐户。
如果您从较早的Cisco IOS预通用功能版本升级,请首先升级到仅通用非智能许可证版本(例如,Cisco IOS XE 16.9)并配置您购买的许可证,然后升级到SLR。
如果直接从RTU升级到17.3.2之后的版本,则DLC是自动的。
从Cisco IOS XE可以持续监控17.2.1r CUBE中继会话的使用,以定期报告许可证使用情况。这适用于报告标准许可证和冗余许可证或增强许可证。许可证使用情况会根据可使用此命令配置的计时器定期报告 voice service voip
.
mode border-element license periodicity [mins|hours|days]
如果未配置周期性计时器,则每七天报告一次许可证使用情况。必须将报告期间设置为反映负载均衡趋势,以充分利用池化许可证。只有当您注册到本地(卫星)许可证服务器时,才能使用少于一天的周期。17.2.1r已弃用mode border-element license capacity选项。如果许可证“不合规”(无许可证管制),呼叫将继续处理。
CUBE监控每秒处理的呼叫数,并使用此数据来报告许可证使用情况。
每分钟的使用量是最近60秒内前三个测量的平均值。每小时的使用是前3个测量值在过去60分钟的平均值。daily use是过去24小时值的最大值。监控许可证已使用过去72天,具体使用方式为 show voice sip license stats
命令。
从Cisco IOS XE 17.3.2开始,引入了智能许可增强(SLE)。新安装在使用前不再需要设备注册。评估模式被删除。必须根据帐户策略提交已使用许可证的报告。CUBE许可证的使用必须在使用的会话数发生变化的90天内报告。报告直接提交至CSSM或通过CSSM本地(卫星)(如前所述),或使用独立报告应用程序Cisco Smart License Utility Manager(CSLU)手动提交至断开连接的网络。也可以通过思科数字网络架构(Cisco DNA)中心进行报告。CSSM必须确认提交的每个报告。如果平台在策略报告期间内未收到有效确认,则禁用SIP服务(类似于您之前观察到评估到期时)。
此 mode border-element license periodicity
命令现在允许的最小值为8小时。
在SLE中引入新的计时器,以便处理来自 CUBE Application > Smart Agent Application > CSSM
..
版本17.3.2及更高版本中引入了其他方法,以便在设备和CSSM之间建立信任。
CUBE在启动后THT到期时将许可证利用率报告给智能代理。CUBE在每个VDT(一小时)到期时检查许可证利用率。如果差异(增量)小于上一个利用率报告的25%且PT已过期,则CUBE会将利用率报告给智能代理。
如果差异(增量)大于早期利用率报告的25%,智能代理将更新资源利用率测量(RUM)报告,PT将重置为配置的持续时间并重新启动。
在调度计时器到期时,智能代理会将RUM报告发送到CSSM。
CSSM必须以确认(ACK)作为响应。如果ACK失败,智能代理会向CUBE通知ACK失败并禁用SIP服务。
从17.3.2开始,许可证的使用 smart register id token
和许可证 smart deregister
已弃用,新的CLI许可证
用于与CSSM建立信任连接。显示命令,例如 smart trust id token
show license all
, show license status
,和 show license tech support
更新后不会反映注册方面的任何信息。
为了支持所有客户,SLE中增加了多种传输支持模式。
设备可以直接通过Internet向CSSM发送RUM报告。智能和Call-home的前提条件与前面提到的相同:
Router(config)# ip name-server <dns server IP address>
smartreceiver-stage.cisco.com
在设备上,提供的互联网控制消息协议(ICMP)在网络中未被阻止。Router (Config)# ip domain name cisco.com
Router (Config)# ip domain lookup source-interface <interface name> (Interface name by which CSSM can be reachable)
Router (Config)# ip http client source-interface <interface name>
Router (Config)# License smart transport smart
Router (Config)# license smart url smart https://smartreceiver.cisco.com/licservice/license
登录到 Cisco CSSM > Inventory
.选择 Virtual Account > New Token
.
Router #license smart trust idtoken <token> local
这是从设备收集使用情况报告并将其发送到CSSM的HTTPS代理设备。
a.将Transport设置为Call-Home。
Router (Config)# license smart transport callhome
b.配置Call-home(默认情况下,在16.10.1a之后的所有Cisco IOS XE版本上都提供)。
Service call-home
Call-home
profile “CiscoTAC-1”
active
destination transport-method http
no destination transport-method email
destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService
c.从CSSM生成令牌:
登录到 Cisco CSSM > Inventory
.选择 Virtual Account > New Token
.
d.与CSSM建立信任。
Router # license smart trust idtoken <token> local
注:
选项可用于重新建立信任。license smart trust idtoken
CSLU软件可以作为应用程序安装在Windows/Linux/Mac OS中。它也是卫星服务器中的内置模块,从智能代理收集RUM报告并将其发送到CSSM。CSLU软件可以从Smart Licensing Utility下载。CSLU必须可从设备访问。
以下是与传输配置相关的CLI:
CUBE(config)#license smart transport cslu
CUBE(config)#license smart url cslu http://<cslu-ip>:8182/cslu/v1/pi (FQDN also can used)
example of CLI- license smart url cslu http://10.195.85.83:8182/cslu/v1/pi where 10.195.85.83 is CSLU IP.
在这种情况下, license smart trust idtoken
不需要CLI,因为必须在CSLU和CSSM之间建立受信任连接。
注意:升级到17.3.2或更高版本时,传输类型将更改为CSLU并中断CSSM信任,您必须再次启用它。
当存在无法到达CSSM的Airgap网络或设备时,可以使用离线方法发送RUM报告,并在设备上安装ACK。设备与CSSM之间没有连接。在这种情况下,使用airgap方法发送RUM报告并从CSSM获取ACK。
在这里,无论何时要更新许可证使用情况,您都必须从设备收集许可证使用情况文件并将其上传到CSSM。然后,生成 ACK
文件,并将其上传到设备。即使在HA设置的情况下,收集“活动”上的用法也足够了。
步骤1:启用传输:
CUBE(config)# license smart transport off (transport must be off for offline mode)
第二步:生成RUM报告:
CUBE#license smart save usage unreported file <bootflash:file_name>
建议使用选项“unreported”(如图所示)。此命令仅下载尚未报告的文件,并丢弃已确认的旧使用报告。
不过,对于必须报告的数据量,有其它可用的选项。
CUBE#license smart save usage ?
all Save all reports
days Save reports from last n days
rum-Id Save an individual RUM report
unreported Save all previously un reported reports
第三步:将报告上传到CSSM:
将“保存使用数据”从路由器闪存导出到桌面。 在CSSM智能帐户页面上,导航至 Report > Usage Data Files > Upload usage data
.在弹出窗口中,选择使用情况报告并单击 upload
.上传文件后,您必须选择与设备关联的正确虚拟帐户(VA)。
第四步:在路由器上上传ACK:
一旦完全处理完数据并且ACK就绪,请从门户下载文件并将其加载到路由器闪存中。用于导入 ACK
设备中的文件为:
CUBE#license smart import bootflash:<file_name>
Import Data Successful
如果在帐户策略设置确认截止时间之前未确认许可证使用情况报告,则会禁用呼叫处理。使用检查当前截止日期 show license status | i deadline
.仅当从CSSM(直接或通过SSM On-Prem或CSLU)收到确认时,才会恢复呼叫处理。
注意:禁用呼叫处理后的策略更改不足以恢复服务。
如果直接从RTU升级到17.3.2之后的版本,则DLC是自动的。
使用以下命令验证Cisco IOS XE版本16.11.1a到Cisco IOS XE Amsterdam 17.3.1a的平台注册和许可证使用情况:
show cube status
— 显示CUBE许可证容量以及评估期已过期时被阻止的呼叫计数。注意:从Cisco IOS XE Amsterdam 17.2.1r中,许可容量和阻止呼叫信息不再包含在输出中。
cube#show cube status
CUBE-Version: 12.5.0 SW-Version: 16.11.1, Platform CSR1000V HA-Type: none Licensed Capacity: 10 Calls blocked (Smart Licensing Not Configured): 0 Calls blocked (Smart Licensing Eval Expired): 0
show license status
— 显示平台注册和授权状态。如果平台在CSSM/On-Prem卫星上注册:
cube#show license status
Smart Licensing is ENABLED ... Transport: > This shows the current transport type used Type: Callhome Registration: Status: REGISTERED > This shows Smart License is registered Smart Account: BU Production Test Virtual Account: CUBE Sat Test Export-Controlled Functionality: Allowed Initial Registration: SUCCEEDED on Feb 18 12:57:04 2019 UTC Last Renewal Attempt: None Next Renewal Attempt: Aug 17 12:57:03 2019 UTC Registration Expires: Feb 18 12:51:49 2020 UTC License Authorization: Status: AUTHORIZED on Mar 04 15:11:54 2019 UTC Last Communication Attempt: SUCCEEDED on Mar 04 15:11:54 2019 UTC Next Communication Attempt: Apr 03 15:11:53 2019 UTC Communication Deadline: Jun 02 15:06:21 2019 UTC
如果平台未注册:
show license status
Smart Licensing is ENABLED Utility: Status: DISABLED Data Privacy: Sending Hostname: yes Callhome hostname privacy: DISABLED Smart Licensing hostname privacy: DISABLED Version privacy: DISABLED Transport: Type: Callhome Registration: Status: UNREGISTERED Export-Controlled Functionality: NOT ALLOWED License Authorization: Status: EVAL MODE Evaluation Period Remaining: 74 days, 21 hours, 30 minutes, 39 seconds > This also shows the evaluation period that remains. After the evaluation is expired, SIP services are disabled. License Conversion: Automatic Conversion Enabled: False Status: Successful on May 03 19:13:32 2021 UTC Export Authorization Key: Features Authorized:
Miscellaneous: Custom Id:
如果使用SLR注册平台:
ankvijay_vcme#show license status Smart Licensing is ENABLED Utility: Status: DISABLED License Reservation is ENABLED Data Privacy: Sending Hostname: yes Callhome hostname privacy: DISABLED Smart Licensing hostname privacy: DISABLED Version privacy: DISABLED Transport: Type: Callhome Registration: Status: REGISTERED - SPECIFIC LICENSE RESERVATION Export-Controlled Functionality: ALLOWED Initial Registration: SUCCEEDED on May 03 18:49:23 2021 UTC License Authorization: Status: AUTHORIZED - RESERVED on May 03 18:49:23 2021 UTC Export Authorization Key: Features Authorized:
— 显示CUBE中继许可证使用历史记录。提供过去一分钟的每秒信息以及过去一小时的每分钟信息。此外,还提供最近一天的每小时信息和最近72天的每日信息。此命令可从Cisco IOS XE Amsterdam 17.2.1r获得。此示例输出被截断为仅显示60秒和60分钟的图形。show voice sip license stats
cube#show voice sip license stats 11:01:01 AM Thursday Aug 29 2019 IST 10 9 8 7 6 5 4 3 2 1 0....5....1....1....2....2....3....3....4....4....5....5....6 0 5 0 5 0 5 0 5 0 5 0 CUBE Trunk License Usage (last 60 seconds) 369863146641 8880900440044 3330922440011 910 ** 820 #* 730 ## 640 *##* ** 550 ###* ## 460 #### *##* 370 *#### *##* 280 #####* #### 190 ###### #### 100 *######*####* 10 ############# 0....5....1....1....2....2....3....3....4....4....5....5....6 0 5 0 5 0 5 0 5 0 5 0 CUBE Trunk License Usage (last 60 minutes) * = maximum # = average
此示例输出被截断为仅显示60秒和60分钟表。
cube#show voice sip license stats table 02:50:16 PM Wednesday Nov 13 2019 UTC CUBE Trunk License Usage (last 60 seconds) Period Average Max ---------------------------- 1-5 0 0 6-10 0 0 11-15 0 0 16-20 0 0 21-25 0 0 26-30 0 0 31-35 0 0 36-40 0 0 41-45 0 0 46-50 0 0 51-55 0 0 56-60 0 0 CUBE Trunk License Usage (last 60 minutes) Period Average Max ---------------------------- 1-5 0 0 6-10 0 0 11-15 0 0 16-20 0 0 21-25 0 0 26-30 0 0 31-35 0 0 36-40 0 0 41-45 0 0 46-50 324 900 51-55 343 899 56-60 292 600
show voice sip license status
— 显示许可证状态。cube#show voice sip license status
Host Name: cube Current Time: Nov 25 2019 14:46:41 IST SIP service: Up License request interval: 5 Minute(s) Next request at: Nov 25 2019 14:50:44 IST Recent request(s) for entitlement tag CUBE_T_STD ----------------------------------------------------------- Timestamp Count Result ----------------------------------------------------------- Nov 25 2019 14:45:44 IST 10 Out of compliance Nov 25 2019 14:40:44 IST 4 Authorized Nov 25 2019 14:35:44 IST 2 Authorized
show license usage
— 显示许可证使用情况和授权状态。cube#show license usage
License Authorization: Status: AUTHORIZED on Mar 04 15:11:54 2019 UTC CSR 1KV APPX 500M (appx_500M): Description: CSR 1KV APPX 500M Count: 1 Version: 1.0 Status: AUTHORIZED Export status: NOT RESTRICTED CUBE_Trunk_Standard_Session (CUBE_T_STD): Description: Cisco Unified Border Element (CUBE) Trunk Standard Session License Count: 10 Version: 1.0 Status: AUTHORIZED Export status: NOT RESTRICTED
show license summary
— 显示注册和许可证使用情况的摘要。Device#show license summary
Smart Licensing is ENABLED Registration: Status: REGISTERED Smart Account: BU Production Test Virtual Account: CUBE Sat Test Export-Controlled Functionality: Allowed Last Renewal Attempt: None Next Renewal Attempt: Aug 17 12:57:04 2019 UTC License Authorization: Status: AUTHORIZED Last Communication Attempt: SUCCEEDED Next Communication Attempt: Apr 03 15:11:54 2019 UTC License Usage: License Entitlement tag Count Status ----------------------------------------------------------------------------- CUBE_Trunk_Standard_... (CUBE_T_STD) 10 AUTHORIZED
使用以下命令验证来自Cisco IOS XE Amsterdam 17.3.2和Cisco IOS XE Bengaluru 17.4.1a以上版本的平台许可证使用情况:
show cube status
— 显示CUBE许可证状态。cube#show cube status
CUBE-Version : 14.1 SW-Version : 17.3.2, Platform CSR1000V HA-Type : none cube#show cube status CUBE-Version : 14.1 SW-Version : 17.4.1, Platform CSR1000V HA-Type : none
show license status
— 显示许可证状态。如果CSSM和平台之间的通信不起作用:
cube#show license status
Utility: Status: DISABLED Data Privacy: Sending Hostname: yes Callhome hostname privacy: DISABLED Smart Licensing hostname privacy: DISABLED Version privacy: DISABLED Transport: > Different Transport types (cslu/smart/off/callhome) are visible here Type: Callhome Policy: Policy in use: Merged from multiple sources. Installed Time: Jan 01 05:30:00 1970 IST Reporting ACK required: yes Perpetual Attributes: First report requirement (days): 365 (CISCO default) Reporting frequency (days): 90 (CISCO default) Report on change (days): 90 (Product default) Subscription Attributes: First report requirement (days): 90 (CISCO default) Reporting frequency (days): 90 (CISCO default) Report on change (days): 80 (Product default) Enforced License Attributes: First report requirement (days): 90 (Customer Policy) Reporting frequency (days): 90 (Customer Policy) Report on change (days): 80 (Customer Policy) Export License Attributes: First report requirement (days): 90 (Customer Policy) Reporting frequency (days): 90 (Customer Policy) Report on change (days): 90 (Customer Policy) Miscellaneous: Custom Id:
Usage Reporting: Last ACK received:
> NO ACK Received from portal Next ACK deadline: May 26 08:24:45 2020 IST Reporting Interval: 30 Next ACK push check:
Next report push: Jun 15 08:24:45 2020 IST Last report push:
Last report file write:
Last report pull:
Trust Code Installed:
> No trust code installed
如果CSSM和平台之间的通信正常:
isr4321#show license status
Utility: Status: DISABLED Smart Licensing Using Policy: Status: ENABLED Data Privacy: Sending Hostname: yes Callhome hostname privacy: DISABLED Smart Licensing hostname privacy: DISABLED Version privacy: DISABLED Transport: Type: Callhome Policy: Policy in use: Merged from multiple sources. Reporting ACK required: yes (CISCO default) Unenforced/Non-Export Perpetual Attributes: First report requirement (days): 365 (CISCO default) Reporting frequency (days): 0 (CISCO default) Report on change (days): 90 (CISCO default) Unenforced/Non-Export Subscription Attributes: First report requirement (days): 90 (CISCO default) Reporting frequency (days): 90 (CISCO default) Report on change (days): 90 (CISCO default) Enforced (Perpetual/Subscription) License Attributes: First report requirement (days): 0 (CISCO default) Reporting frequency (days): 0 (CISCO default) Report on change (days): 0 (CISCO default) Export (Perpetual/Subscription) License Attributes: First report requirement (days): 0 (CISCO default) Reporting frequency (days): 0 (CISCO default) Report on change (days): 0 (CISCO default) Miscellaneous: Custom Id:
Usage Reporting: Last ACK received: Jul 28 11:23:22 2021 PDT > Ack Received from CSSM Next ACK deadline:
Reporting push interval: 0 (no reporting) Next ACK push check: Jul 28 11:26:20 2021 PDT Next report push:
Last report push: Jul 28 11:22:21 2021 PDT Last report file write:
Trust Code Installed: Jul 28 11:18:43 2021 PDT
show voice sip license stats
— 以直方图格式显示一段时间的CUBE许可证使用情况。 show voice sip license stats
和 show voice sip license stats
对于使用智能许可的策略,表保持不变。请参阅前面的示例。show voice sip license status
— 显示许可证状态。注:在
命令后,参数名称将更改。show voice sip license status
router#show voice sip license status Host Name: router Current Time: Sep 1 2020 23:12:03 UTC SIP service: Up License use recorded every: 8 Hour(s) Next record at: Sep 2 2020 03:00:00 UTC Recent use of license(s) for entitlement tag CUBE_T_STD ---------------------------------------------------------------------------- Timestamp Count ---------------------------------------------------------------------------- Sep 1 2020 19:00:00 UTC 0 Sep 1 2020 11:00:00 UTC 20
show license usage
— 显示许可证使用情况。POD8-4321-1#show license usage
License Authorization: Status: Not Applicable uck9 (ISR_4321_UnifiedCommunication): Description: uck9 Count: 1 Version: 1.0 Status: IN USE Export status: NOT RESTRICTED Feature Name: uck9 Feature Description: uck9 Enforcement type: NOT ENFORCED License type: Perpetual appxk9 (ISR_4321_Application): Description: appxk9 Count: 1 Version: 1.0 Status: IN USE Export status: NOT RESTRICTED Feature Name: appxk9 Feature Description: appxk9 Enforcement type: NOT ENFORCED License type: Perpetual securityk9 (ISR_4321_Security): Description: securityk9 Count: 1 Version: 1.0 Status: IN USE Export status: NOT RESTRICTED Feature Name: securityk9 Feature Description: securityk9 Enforcement type: NOT ENFORCED License type: Perpetual
show license summary
— 显示许可证摘要信息。Device#show license summary
License Usage: License Entitlement tag Count Status ----------------------------------------------------------------------------- CUBE_T_STD (CUBE_T_STD) 9 IN USE
以下命令也可用于与您的智能许可证相关的命令:
show license all
— 显示与许可相关的所有信息。show license tech support
— 显示许可证技术支持信息。show call-home smart-licensing
— 显示已配置的目标URL。评估期即将到期时,系统按不同的时间间隔打印系统日志警报。警报按以下时间间隔生成:60天、30天、21天、14天、7天以及之后每天、23小时和最后一天中的每小时。
000295: *Apr 24 21:28:28.838: %SIP-3-LICENSING: The evaluation period is about to expire in 20 hours!
评估期到期后,每次收到“SmartAgentNotifyEvalExpired”通知时都会打印系统日志。
000335: *Apr 10 11:20:10.225: %SIP-3-LICENSING: Evaluation period has expired!
当评估期已过期且sip到sip呼叫被阻止时,系统会打印系统日志警报。
005454: Jul 19 07:06:44.324: %CUBE-1-LICENSING: SIP-SIP call blocked due to CUBE Licensing Enforcement
— 显示请求和响应统计信息Show call-home smart licensing statistics
成功:已成功发送并收到响应。
失败:发送或响应失败,表明发生了错误。
Inqueue:在等待发送的队列中。
已丢弃:由于不正确的Call-Home配置而丢弃。
Msg Subtype Success Failed Inqueue Dropped Last-sent (GMT+00:00) ---------------------------------------------------------------------- REGISTRATION 1 0 0 0 2019-02-05 03:06:22 ACKNOWLEDGEMENT 1 0 0 0 2019-02-05 03:06:25 ENTITLEMENT 2 0 0 0 2019-02-05 03:07:23
— 显示由于许可证到期而被阻止的呼叫。Show cube status
SW-Version : 16.11.1prd6, Platform CSR1000V HA-Type: none Licensed Capacity: 25 Calls blocked (Smart Licensing Not Configured): 0 Calls blocked (Smart Licensing Eval Expired): 0
适用于使用率超过25%的许可证。Show voice sip license status
CUBE4431# show voice sip license status
在第一个THT到期中,报告了7个呼叫,并且在PT之前许可差异使用率低于25% 已过期(8小时)。因此,从06:00:00到14:00:00小时,最大使用量报告为8。 从14:00:00小时到15:00:00小时,之后每小时的差异大于25%,因此您可以看到更多 条目。
适用于使用率低于25%的许可证。Show voice sip license status
在这里,流量在PT计时器过期之前低于25%,因此只有8个8小时持续时间内的两个条目。
当您将思科设备迁移到支持智能许可的软件版本时,此流程图可作为所有三种方法(直接云访问、HTTPS代理和 本地思科智能软件管理器影响。
这些故障排除步骤主要针对“设备注册失败”的场景。
在初始配置后,要启用智能许可,必须在CSSM或思科智能软件管理器本地上生成的令牌通过CLI在设备上注册:
license smart register idtoken
这必须生成以下事件:
! Smart licensing process starts ! The registration process is in progress. Use the show license status command to check the progress and result! ! Crypto key is automatically generated for HTTPS communication ! Generating 2048 bit Rivest-Shamir-Addleman (RSA) keys, keys are exportable... [OK] (elapsed time was 1 second) %CRYPTO_ENGINE-5-KEY_ADDITION: A key named Service Level Agreement (SLA)-KeyPair has been generated or imported by crypto-engine %PKI-4-NOCONFIGAUTOSAVE: Configuration was modified. Issue 'write memory' to save the new Cisco IOS PKI configuration! ! Call-home start the registration process ! %CALL_HOME-6-SCH_REGISTRATION_IN_PROGRESS: SCH device registration is in progress. Call-home polls SCH server for registration result. You can also check SCH registration status with "call-home request registration-info" under EXEC mode. ! ! Smart Licensing process connects with CSSM and checks entitlement. ! %SMART_LIC-6-EXPORT_CONTROLLED: Usage of export-controlled features is allowed %SMART_LIC-6-AGENT_REG_SUCCESS: Smart Agent for Licensing Registration with the Cisco Smart Software Manager or satellitefor udi PID:
, SN:
%SMART_LIC-4-CONFIG_NOT_SAVED: Smart Licensing configuration has not been saved %SMART_LIC-5-IN_COMPLIANCE: All entitlements and licenses in use on this device are authorized %SMART_LIC-6-AUTH_RENEW_SUCCESS: Authorization renewal with the Cisco Smart Software Manager or satellite. State=authorized for udi PID:
,SN:
要检查Call-home配置,请运行以下CLI:
Router# show call-home profile all
Profile Name: CiscoTAC-1
Profile status: ACTIVE
Profile mode: Full Reporting
Reporting Data: Smart Call Home, Smart Licensing
Preferred Message Format: xml
Message Size Limit: 3145728 Bytes
Transport Method: http
HTTP address(es): https://tools.cisco.com/its/service/oddce/services/DDCEService
Other address(es): default
Periodic configuration info message is scheduled every 21 day of the month at 13:43
Periodic inventory info message is scheduled every 21 day of the month at 13:28
Alert-group Severity
------------------------ ------------
crash debug
inventory normal
Syslog-Pattern Severity
------------------------ ------------
.* major
要检查智能许可状态,请运行以下CLI:
Router # show license summary
Smart Licensing is ENABLED
Registration:
Status: REGISTERED
Smart Account: TAC Cisco Systems, Inc.
Virtual Account: Krakow LAN-SW
Export-Controlled Functionality: ALLOWED
Last Renewal Attempt: None
Next Renewal Attempt: Nov 22 21:24:32 2019 UTC
License Authorization:
Status: AUTHORIZED
Last Communication Attempt: SUCCEEDED
Next Communication Attempt: Jun 25 21:24:37 2019 UTC
License Usage:
License Entitlement tag Count Status
-----------------------------------------------------------------------------
CSR 1KV APPX 100M (appx_100M) 1 AUTHORIZED
CUBE v14 Trunk Stand... (CUBE_T_STD) 20 AUTHORIZED
如果设备无法注册(且状态与之前所示的REGISTERED不同;请注意,Out-of-Compliance指向CSSM上的问题,例如智能虚拟帐户中缺少的许可证、不正确的映射(即,使用来自其他虚拟帐户的令牌,但许可证不可用,等等)。检查以下项:
a.检验配置设置和常见故障场景。
b.检查基本连通性。
检验设备是否可以访问(并打开TCP端口)
(如果是直接访问)或思科智能软件管理器内部服务器:tools.cisco.com
#show run all | in destination address http destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService ! ! check connectivity ! #telnet tools.cisco.com 443 /source-interface gi0/0 Trying tools.cisco.com (192.168.1.1, 443)... Open [Connection to tools.cisco.com closed by foreign host]
如果这样不起作用,请仔细检查路由规则、源接口和防火墙设置。
注:HTTP(TCP/80)已弃用,推荐的协议是HTTPS(TCP/443)。
c.验证智能许可证设置。
收集以下项的输出:
#show tech-support license
验证收集的配置或日志(在您决定打开思科TAC案例以进行进一步调查时,请附加此输出)。
d.启用调试。
默认情况下,CUBE和CSSM之间的所有通信记录在 /bootflash/tracelogs
在平台级别。要访问此日志文件,您可以:
#request platform software system shell rp active (to gain the shell access)
浏览到 /bootflash/tracelogs/
.
文件以“IOSRP_R...”开头。
[cube-1:/bootflash/tracelogs]$ ls -ltr IOSRP* -rw------- 1 root root 35212 Feb 11 12:45 IOSRP_R0-0.22210_0.20190116052339.bin.gz -rw------- 1 root root 42582 Feb 11 13:41 IOSRP_R0-0.22819_0.20190211125201.bin.gz -rwxr--r-- 1 root root 1048576 Feb 11 14:05 IOSRP_R0-0.29479_0.20190211134254.bin -rwxr--r-- 1 root root 1048576 Feb 12 02:15 IOSRP_R0-0.29522_0.20190211140852.bin
这可以通过使用 btdecode
.
版本 | 发布日期 | 备注 |
---|---|---|
1.0 |
29-May-2022 |
初始版本 |