此产品的文档集力求使用非歧视性语言。在本文档集中,非歧视性语言是指不隐含针对年龄、残障、性别、种族身份、族群身份、性取向、社会经济地位和交叉性的歧视的语言。由于产品软件的用户界面中使用的硬编码语言、基于 RFP 文档使用的语言或引用的第三方产品使用的语言,文档中可能无法确保完全使用非歧视性语言。 深入了解思科如何使用包容性语言。
思科采用人工翻译与机器翻译相结合的方式将此文档翻译成不同语言,希望全球的用户都能通过各自的语言得到支持性的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 Cisco Systems, Inc. 对于翻译的准确性不承担任何责任,并建议您总是参考英文原始文档(已提供链接)。
本文档介绍思科网络融合系统(NCS)1002(Rosco)的基本软件配置步骤以及警报和性能数据监控。
Cisco 建议您了解以下主题:
本文档中的信息基于以下软件和硬件版本:
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
NCS1002是2 Rollup(RU)系统,使用当前光纤在超过3000千米的距离内提供完全可编程的高带宽容量(高达250 Gbps)波长。Cisco NCS 1002由行业领先的Cisco IOS® XR操作系统提供强大的功能,如第三方应用托管、机器到机器(M2M)接口、遥测和灵活的包交付。
NCS 1002具有以下优势:
开始使用前:
RP/0/RP0/CPU0:DBX2#conf t Thu Feb 11 07:45:28.810 UTC RP/0/RP0/CPU0:DBX2(config)#interface mgmtEth 0/RP0/CPU0/0 RP/0/RP0/CPU0:DBX2(config-if)#ipv4 address 172.20.165.151/24 RP/0/RP0/CPU0:DBX2(config-if)#no shutdown RP/0/RP0/CPU0:DBX2(config-if)#commit RP/0/RP0/CPU0:DBX2#sh ipv4 interface brief Thu Feb 11 07:44:21.811 UTC Interface IP-Address Status Protocol Vrf-Name MgmtEth0/RP0/CPU0/0 172.20.165.151 Up Up default RP/0/RP0/CPU0:DBX2#
RP/0/RP0/CPU0:DBX2#show version Thu Feb 11 07:52:26.846 UTC Cisco IOS XR Software, Version 6.0.0 Copyright (c) 2013-2015 by Cisco Systems, Inc. Build Information: Built By : alnguyen Built On : Thu Dec 24 01:05:17 PST 2015 Build Host : iox-lnx-005 Workspace : /auto/srcarchive16/production/6.0.0/ncs1k/workspace Version : 6.0.0 Location : /opt/cisco/XR/packages/ cisco NCS1002 () processor System uptime is 21 hours, 2 minutes RP/0/RP0/CPU0:DBX2#
RP/0/RP0/CPU0:DBX2#show platform Thu Feb 11 10:06:43.448 UTC Node name Node type Node state Admin state Config state ----------------------------------------------------------------------------------- 0/RP0 NCS1K-CNTLR OPERATIONAL UP NSHUT RP/0/RP0/CPU0:DBX2#
NCS1002中的端口表示如图所示。
RP/0/RP0/CPU0:DBX2#conf t Thu Feb 11 08:53:44.390 UTC RP/0/RP0/CPU0:DBX2(config)#hw-module location 0/RP0/CPU0 slice 3 client bitrate 100 trunk bitrate 200$ RP/0/RP0/CPU0:DBX2(config)#commit Thu Feb 11 08:54:16.383 UTC RP/0/RP0/CPU0:DBX2(config)#end RP/0/RP0/CPU0:DBX2#show hw-module slice 3 Thu Feb 11 08:55:05.100 UTC Slice ID: 3 Status: Provisioning In Progress Client Bitrate: 100 Trunk Bitrate: 200 DP FPGA Version: H14 (CURRENT) Client Port - Trunk Port CoherentDSP0/0/0/26 CoherentDSP0/0/0/27 Traffic Split Percentage HundredGigECtrlr0/0/0/21 100 0 HundredGigECtrlr0/0/0/22 100 0 HundredGigECtrlr0/0/0/24 0 100 HundredGigECtrlr0/0/0/25 0 100 RP/0/RP0/CPU0:DBX2#
NCS1k支持的流量组合:
5 x 40G à 2 x 100G 5 x 40G à 1 x 200G 5 x 40G à 1 x 250G 20 x 10G à 2 x 100G 20 x 10G à 1 x 200G 20 x 10G à 1 x 250G 2 x 100G à 2 x 100G 4 x 100G à 2 x 200G 5 x 100G à 2 x 250G
启用SNMP V2c获取/设置请求所需的配置:
RP/0/0/CPU0:smart-prp16#conf t RP/0/0/CPU0:smart-prp16(config)# RP/0/0/CPU0:smart-prp16(config)#snmp-server community public RW SystemOwner RP/0/0/CPU0:smart-prp16(config)#commit RP/0/0/CPU0:smart-prp16# RP/0/0/CPU0:smart-prp16#show running-config snmp-server snmp-server community public RW SystemOwner Explanation of Configuration: In configuration "public" is the community string and it be any text. The Options RW and SystemOwner provides Read/Write to the entire system, including admin plane. If you need access to just the SDR (secure Domain Router), then you can choose option "SDROwner" You can also apply an Access list to the SNMP server. You can use command. #snmp-server community public RW SDROwner my_acl_ravi Where my_acl_ravi is an ACL. Use command to verify the SNMP configuration. RP/0/RP0/CPU0:DBX2#show snmp group Thu Feb 11 09:09:48.303 UTC groupname: public security model:snmpv1 readview : v1default writeview: notifyview: v1default row status: active groupname: public security model:snmpv2c readview : v1default writeview: notifyview: v1default row status: active
按照以下步骤操作:
SNMPV3 Configure an SNMP View ---------------------- Command Syntax: snmp-server view view-name oid-tree included Where view-name: is the name of the View oid-tree: Object identifier (OID) of the ASN.1 subtree to be included or excluded from the view. To identify the subtree, specify a text string consisting of numbers, such as 1.3.6.2.4, or a word, such as system. Replace a single sub-identifier with the asterisk wildcard to specify a subtree family; for example 1.3.*.4. RP/0/RP1/CPU0:akki(config)#snmp-server view view1 1.3 included RP/0/RP1/CPU0:akki(config)#commit RP/0/RP1/CPU0:akki#show snmp view view1 org - included nonVolatile active v1default iso - included nonVolatile active RP/0/RP1/CPU0:akki#
RP/0/RP1/CPU0:akki(config)#snmp-server group group1 v3 priv write view1 read view1 RP/0/RP1/CPU0:akki(config)#commit RP/0/RP1/CPU0:akki#show running-config snmp-server group snmp-server group group1 v3 priv read view1 write view1 RP/0/RP1/CPU0:akki#show snmp group groupname: group1 security model:usm readview : view1 writeview: view1 notifyview: v1default row status: nonVolatile RP/0/RP1/CPU0:akki#
RP/0/RP1/CPU0:akki(config)#snmp-server user user1 group1 v3 auth md5 clear lab priv des56 clear lab SystemOwner RP/0/RP1/CPU0:akki(config)#commit RP/0/RP1/CPU0:akki(config)# RP/0/RP1/CPU0:akki# RP/0/RP1/CPU0:akki#show snmp users User name: user1 Engine ID: localSnmpID storage-type: nonvolatile active RP/0/RP1/CPU0:akki#show running-config snmp-server user snmp-server user user1 group1 v3 auth md5 encrypted 13091610 priv des56 encrypted 09404F0B SystemOwner RP/0/RP1/CPU0:akki# So far we need lines for V3 SNMP RP/0/RP1/CPU0:akki#show running-config snmp-server snmp-server user user1 group1 v3 auth md5 encrypted 13091610 priv des56 encrypted 09404F0B SystemOwner snmp-server view view1 1.3 included snmp-server group group1 v3 priv read view1 write view1
通过此设置,您已在路由器上为V3请求设置配置。
通过流遥测,用户可以将直接数据发送到已配置的接收器,以便进行分析和故障排除,以保持网络的健康。这是通过利用M2M通信功能实现的。
传统上,组织使用拉式模型收集数据,其中客户端从网络元素中拉取数据。但是,当网络中有多个网络管理站时,此拉式模型不会扩展。这些传统技术并不满足路由器的所有底层信息,需要人工干预。
点击链接:
Netconf提供了安装、操作和删除网络设备配置的机制。
Netconf协议提供一组操作来管理设备配置和检索设备状态信息。
RP/0/RP0/CPU0:ios# configure RP/0/RP0/CPU0(config)# ssh server v2 RP/0/RP0/CPU0(config)# ssh server netconf port 830 RP/0/RP0/CPU0(config)# ssh server netconf vrf default
注意:端口830是默认Netconf端口。
RP/0/RP0/CPU0:ios# configure RP/0/RP0/CPU0(config)# netconf-yang agent ssh
RP/0/RP0/CPU0:ios# show netconf-yang clients Tue Dec 8 07:49:14.846 UTC Netconf clients client session ID| NC version| client connect time| last OP time| last OP type| <lock>| 1188487019| 1.1| 0d 16h 56m 50s| 01:17:13| get| No|
RP/0/RP0/CPU0:ios# show netconf-yang statistics Tue Dec 8 07:49:45.506 UTC Summary statistics # requests| total time| min time per request| max time per request| avg time per request|other 0| 0h 0m 0s 0ms| 0h 0m 0s 0ms| 0h 0m 0s 0ms| 0h 0m 0s 0ms| 0s 0ms| 0h 0m 0s 0ms| Statistics for session with ID: 1188487019 <snip>
RP/0/RP0/CPU0:ios# show netconf-yang trace Tue Dec 8 07:50:54.590 UTC [12/08/15 07:30:37.851 UTC 1046d3 4942] TRC: nc_sm_session_find_session_id:1386 Found session 3027026318 0x1852f68 [12/08/15 07:30:37.851 UTC 1046d4 4942] DBG: nc_sm_yfw_response_cb:2816 Received OK response for session-id '3027026318', for message-id '856615', which has 'NO ERROR' and 'DATA' [12/08/15 07:30:37.851 UTC 1046d5 4942] TRC: nc_sm_yfw_response_complete:2700 DATA element in chunk state: CONTINUE <snip>
For current PM data RP/0/RP0/CPU0:DBX2#show controllers optics 0/0/0/0 pm current 15-min/24-hour optics 1 RP/0/RP0/CPU0:DBX2#show controllers optics 0/0/0/0 pm current 15-min/24-hour optics 2 RP/0/RP0/CPU0:DBX2#show controllers optics 0/0/0/0 pm current 15-min/24-hour optics 3 RP/0/RP0/CPU0:DBX2#show controllers optics 0/0/0/0 pm current 15-min/24-hour optics 4 For History PM data RP/0/RP0/CPU0:DBX2#show controllers optics 0/0/0/0 pm history 15-min/24-hour optics 1 bucket <1-32/1-12> RP/0/RP0/CPU0:DBX2#show controllers optics 0/0/0/0 pm history 15-min/24-hour optics 2 bucket <1-32/1-12> RP/0/RP0/CPU0:DBX2#show controllers optics 0/0/0/0 pm history 15-min/24-hour optics 3 bucket <1-32/1-12> RP/0/RP0/CPU0:DBX2#show controllers optics 0/0/0/0 pm history 15-min/24-hour optics 4 bucket <1-32/1-12>
对于当前PM数据:
RP/0/RP0/CPU0:DBX2#show controllers optics 0/0/0/5 pm current 15-min/24-hour optics 1
对于历史PM数据:
RP/0/RP0/CPU0:DBX2#show controllers optics 0/0/0/5 pm history 15-min/24-hour optics 1 bucket 1
RP/0/RP0/CPU0:DBX2#show controllers hundredGigECtrlr 0/0/0/0 pm current 15-min/24-hour ether RP/0/RP0/CPU0:DBX2#show controllers hundredGigECtrlr 0/0/0/0 pm history 15-min ether <1-32> RP/0/RP0/CPU0:DBX2#show controllers hundredGigECtrlr 0/0/0/0 pm history 24-hour ether
RP/0/RP0/CPU0:DBX2#show controllers coherentDSP 0/0/0/5 pm current 15-min otn RP/0/RP0/CPU0:DBX2#show controllers coherentDSP 0/0/0/5 pm current 15-min fec RP/0/RP0/CPU0:DBX2#show controllers coherentDSP 0/0/0/5 pm history 15-min fec <1-32> RP/0/RP0/CPU0:DBX2#show controllers coherentDSP 0/0/0/5 pm history 24-hour fec
RP/0/RP0/CPU0:DBX2#show alarms brief card location 0/RP0/CPU0 active Thu Feb 11 10:12:21.886 UTC -------------------------------------------------------------------------------- Active Alarms -------------------------------------------------------------------------------- Location Severity Group Set Time Description -------------------------------------------------------------------------------- 0/0 Critical Controller 02/10/2016 10:51:33 Optics0/0/0/10 - Improper Removal 0/0 Critical Controller 02/10/2016 10:51:33 Optics0/0/0/11 - Improper Removal [snippet]
RP/0/RP0/CPU0:DBX2#show alarms brief card location 0/RP0/CPU0 history Thu Feb 11 10:14:13.070 UTC -------------------------------------------------------------------------------- History Alarms -------------------------------------------------------------------------------- Location Severity Group Set Time Description Clear Time -------------------------------------------------------------------------------- 0/0 Minor Controller 02/10/2016 10:51:33 Optics0/0/0/5 - Optics High Differential Group Delay 02/10/2016 10:52:01 0/0 Minor Controller 02/10/2016 10:51:33 Optics0/0/0/5 - Optics Out of Range Chromatic Dispersion 02/10/2016 10:52:01 [snippet]
注意:NSC1002的输出已从版本6.0.0捕获。
使用本部分可确认配置能否正常运行。
本文的“配置”部分分别介绍了验证过程。
目前没有针对此配置的故障排除信息。