本文档旨在介绍各种网络服务协调器(NSO)许可证,以及如何使用思科智能许可证激活这些许可证。NSO如何连接到智能许可服务器有多种方法,具体取决于安装NSO的环境。本文档还讨论NSO和思科许可服务器之间的不同集成。
Cisco 建议您了解以下主题:
本文档中的信息基于以下软件和硬件版本:
注意:用户必须拥有有效的NSO许可证。
NSO使用的许可证如下:
PID | 在SSM上显示 | 类型 | 描述 |
R-NSO-K 9 | 顶级 | 每个NSO实例都需要 | |
NSO-P-PAK | NSO平台生产 | 服务器 | 活动节点必需 |
NSO-HA-LIC-P | NSO平台 — 生产 — 备用 | 服务器 | 备用节点必需 |
NSO-DEV-P-PAK | NSO-platform-development-test | 服务器 | 开发环境所需 |
NSO-PNF-() | NSO-network-element | 网络元素 | 南向如果连接的设备是物理设备 |
NSO-VNF-() | NSO-network-element | 网络元素 | 南向连接的设备是虚拟设备 |
NED-() | 每个最终用户不同 示例: Cisco-ios-NED |
NED | 对于NED。每种类型的各种设备都需要。 示例: NED-IOS-P:适用于IOS NED |
注:这可能包含在数据包标识符(PID)中(捆绑等,带ESC等),因此这些PID可能不会按顺序显示。
从智能软件管理器中,许可证状态显示如下:
1.要创建新令牌,请使用用户ID/或CCO ID登录Cisco Smart Software Manager(CSSM)并选择适当的虚拟帐户。
2.单击智能许可证链接进入CSSM。
3.在CSSM中,单击New Token。
4.在接受条款和责任之前,请按照对话提供说明、到期和出口合规性适用性。单击Create Token以继续。
5.单击New Token(新令牌)。
6.将令牌从对话框窗口复制到剪贴板。
以下是注册方法(直接/代理/卫星)。
如果NSO或任何思科产品需要智能许可证,请与思科智能软件管理器(或思科云)联系进行注册。
设置支持智能许可证的环境有四个主要选项:
使用此方法,NSO服务器需要能够使用https直接与思科云通信。支持使用HTTP,但出于安全原因,不建议使用HTTP。
在这种方法中,无需特殊配置即可启动注册过程。
如果需要使用HTTP(S)代理服务器连接到Internet上的Web,则必须为NSO中的智能代理配置代理服务器信息。
使用选项2时,需要指示智能代理将其注册请求发送到代理服务器,而不是直接发送到思科。
这取决于版本,配置的方式不同。
NSO 4.5或更高版本
从NSO 4.5,现在可以通过ncs.conf配置智能许可证配置。如果ncs.conf和NSO CDB中同时存在智能许可证配置,则ncs.conf中的配置将呈现。
这意味着“smart-license smart-agent override-url url https://10.1.2.3/”等命令在ncs.conf中存在其他配置时不会生效。执行NSO系统安装时,ncs.conf默认包括以下内容:
<smart-license> <smart-agent> <java-executable>DEFAULT</java-executable> <java-options>DEFAULT</java-options> <production-url>DEFAULT</production-url> <alpha-url>DEFAULT</alpha-url> <override-url> <url>DEFAULT</url> </override-url> <proxy> <url>DEFAULT</url> </proxy> </smart-agent> </smart-license>
“DEFAULT”表示它将使用$install_dir/src/ncs/yang/tailf-ncs-smart-license.yang中定义的默认值。
要改为在NSO CDB中配置ncs.conf中列出的枝叶,请确保从ncs.conf中删除相应的条目并执行“/etc/init.d/ncs reload”
NSO 4.4
在此路径上配置代理URL。
smart-license smart-agent proxy url <proxy url>
admin@ncs(config)# smart-license smart-agent proxy url https://10.10.10.10:8080 admin@ncs(config)#
在默认配置中,NSO连接到 https://tools.cisco.com/its/service/oddce/services/
此代理配置将自动设置为HTTPS和HTTP,因此,如果您将目标URL更改为HTTP以使用卫星(如选项3.或4.所述),则一个配置仍可以处理这两种情况。
在许多情况下,NSO网络不直接连接到Internet。除选项2.外,还可以引入智能软件管理器卫星;因此NSO不需要直接将消息交换到思科云。
智能软件管理器卫星的产品详细信息位于此处。
有关如何安装,请在链接中查找安装指南。
当您使用此方法时,NSO将与卫星通信,而不是与思科云通信。
要更改目标,可以修改override-url:
admin@ncs(config)# smart-license smart-agent override-url url https://10.1.2.3/ admin@ncs(config)#
此URL可在智能软件管理器卫星的管理网站上找到。
从NSO的角度来看,此方法与上面的方法(3)完全相同。区别仅在于如何从智能软件管理器卫星与思科云同步。
使用令牌后,使用生成的令牌激活NSO到Cisco服务器。
令牌用于NSO CLI以注册到CSSM。输入命令后,会异步启动注册过程。
admin@ncs# smart-license register idtoken YWVlMmQ3ZjEtYT.... result Registration process in progress. Use the 'show license status' command to check the progress and result. admin@ncs#
使用本部分可确认配置能否正常运行。
注册前:智能许可始终启用。输出表明NSO未注册,并且处于EVAL模式,该模式将在89天23小时内到期。
admin@ncs# show license status Smart Licensing is ENABLED Registration: Status: UNREGISTERED Export-Controlled Functionality: Allowed License Authorization: Status: EVAL MODE Evaluation Period Remaining: 89 days, 23 hr, 17 min, 36 sec Last Communication Attempt: NONE Next Communication Attempt: NONE Development mode: enabled admin@ncs#
可使用show license status命令检查注册状态。如果注册仍在进行中,命令将显示此输出并显示“REGISTRATION PENDING”。
<仍在注册……>
admin@ncs# show license status Smart Licensing is ENABLED Registration: Status: UNREGISTERED - REGISTRATION PENDING Initial Registration: First Attempt Pending Export-Controlled Functionality: Allowed License Authorization: Status: EVAL MODE Evaluation Period Remaining: 89 days, 23 hr, 16 min, 36 sec Last Communication Attempt: SUCCEEDED on Aug 3 09:41:56 2016 UTC Next Communication Attempt: NONE Development mode: enabled admin@ncs#
一段时间后,注册完成。当您看到状态“REGISTERED”时,系统已注册到CSSM。
<Registered!!>
admin@ncs# show license status Smart Licensing is ENABLED Registration: Status: REGISTERED Smart Account: BU Production Test Virtual Account: TAC-Japan-Cloudorch Export-Controlled Functionality: Allowed Initial Registration: SUCCEEDED on Aug 4 05:29:52 2016 UTC Last Renewal Attempt: SUCCEEDED on Aug 4 05:30:03 2016 UTC Next Renewal Attempt: Jan 31 05:30:03 2017 UTC Registration Expires: Aug 4 05:24:56 2017 UTC Export-Controlled Functionality: Allowed License Authorization: License Authorization: Status: AUTHORIZED on Aug 4 05:30:05 2016 UTC Last Communication Attempt: SUCCEEDED on Aug 4 05:25:02 2016 UTC Next Communication Attempt: Sep 3 05:30:07 2016 UTC Communication Deadline: Aug 4 05:24:56 2017 UTC Development mode: enabled admin@ncs#
使用show license summary命令可以查看所使用的许可证。在本示例中,NSO-platform-production、NSO-network-element和cisco-ios-NED用于系统中。请注意,许可证授权状态为“AUTHORIZED”。这意味着需要许可证的所有组件都在合法状态下正常工作。
admin@ncs# show license summary Smart Licensing is ENABLED Registration: Status: REGISTERED Smart Account: COMPANY A Virtual Account: Network Department Last Renewal Attempt: None Next Renewal Attempt: Jan 31 05:33:02 2017 UTC License Authorization: Status: AUTHORIZED Last Communication Attempt: SUCCEEDED Next Communication Attempt: Sep 3 05:33:06 2016 UTC License Usage: License Entitlement Tag Count Status ---------------------------------------------------------------------------------------------------- ------------------------------------------ 348fbb21-7edf-42bb-baa7-198903058a54regid.2016-04. com.cisco.NSO-platform-production,4.2_348fbb21-7ed f-42bb-baa7-198903058a54 1 InCompliance 5d641fa0-757d-43b0-a926-166cb6e3cfddregid.2015-10. com.cisco.NSO-network-element,1.0_5d641fa0-757d-43 b0-a926-166cb6e3cfdd 3 InCompliance d9eca34d-1f6a-4595-ad74-9c0c57e03c27regid.2015-10. com.cisco.cisco-ios-NED,1.0_d9eca34d-1f6a-4595-ad7 4-9c0c57e03c27 1 InCompliance Development mode: disabled admin@ncs#
这是show license usage命令在不同示例中的输出。在本示例中,还添加了cisco-iosxr-NED,状态为OutOfCompliance。这表示注册到CSSM没有问题,但是cisco-iosxr-NED的许可证在虚拟帐户中不足。由于cisco-iosxr-NED的合规性状态不合规,因此整体状态为OUT_OF_COMPLIANCE。
admin@ncs # show license usage
License Authorization Status : OUT_OF_COMPLIANCE as of Oct 24 06 : 14 : 11 2016 UTC
NSO - platform - production ( regid . 2015 - 10.com . cisco . NSO - platform - production , 1.0 _d1445dab - 9d96 - 4593 - 99f2 - 6f633b8a759c )
Description : API unavailable
Count : 1
Version : 1.0
Status : InCompliance
NSO - network - element ( regid . 2015 - 10.com . cisco . NSO - network - element , 1.0 _5d641fa0 - 757d - 43b0 - a926 - 166cb6e3cfdd )
Description : API unavailable
Count : 3
Version : 1.0
Status : InCompliance
cisco - ios - NED ( regid . 2015 - 10.com . cisco . cisco - ios - NED , 1.0 _d9eca34d - 1f6a - 4595 - ad74 - 9c0c57e03c27 )
Description : API unavailable
Count : 1
Version : 1.0
Status : InCompliance
cisco - iosxr - NED ( regid . 2015 - 10.com . cisco . cisco - iosxr - NED , 1.0 _9956fc34 - cbed - 4d13 - a1ea - 6a36f4e40a99 )
Description : API unavailable
Count : 1
Version : 1.0
Status : OutOfCompliance
尝试启用智能许可证功能上的调试,如下所示。
启用调试后,调试日志会生成到/smart-license/smart-agent/stdout-capture/file中指定的文件中。
智能许可证调试会生成大量日志,建议在收集数据后禁用调试。
Debug enable
admin@ncs# debug smart_lic all
ok
admin@ncs#
Debug disable
admin@ncs# no debug smart_lic all
ok
admin@ncs#
智能许可证日志配置
admin@ncs# show running-config smart-license
smart-license smart-agent stdout-capture disabled
smart-license smart-agent stdout-capture file ./logs/ncs-smart-licensing.log
admin@ncs#
启用智能许可证日志
admin@ncs(config)# smart-license smart-agent stdout-capture enabled
admin@ncs(config)# commit
Commit complete.
admin@ncs(config)#