简体   繁体   English

可以使用Netconf协议监视设备数据吗?

[英]Can Netconf protocol be used for monitoring the device data?

I have been using the SNMP to read the object id's for monitoring the network devices. 我一直在使用SNMP读取对象ID来监视网络设备。 I have come across a protocol called "NetConf" which is used for network configuration. 我遇到了一种称为“ NetConf”的协议,该协议用于网络配置。 Netconf also provides some API's to read the network device data. Netconf还提供一些API来读取网络设备数据。 Can I be able to achieve the monitoring of OID's which is done using the SNMP with the NETCONF? 使用SNMP和NETCONF可以完成对OID的监视吗? Instead of keeping multiple data models one model(YANG)for configuration and the other for monitoring(Mib module) 代替保留多个数据模型,一个模型(YANG)用于配置,另一个模型用于监视(MIB模块)

  1. Theoretically, YES. 从理论上讲,是的。 But, Netconf is rather new though and not many people use it, whereas SNMP is a well established protocol to gather information about network devices, bandwidth, resource usage. 但是,尽管Netconf相当新,并且使用它的人并不多,但是SNMP是一种完善的协议,用于收集有关网络设备,带宽,资源使用情况的信息。

  2. There are plenty of SNMP free tools out there that can display nice graphs, and a lot of commercial tools/NMS too. 有很多SNMP免费工具可以显示漂亮的图形,还有很多商业工具/ NMS。

  3. There are few Netconf tools though and they are not as easy to work with as SNMP. 但是,Netconf工具很少,并且不如SNMP易于使用。

  4. Also SNMP is widely supported by most HW/SW vendors and Netconf has very limited support. 而且,大多数硬件/软件供应商都广泛支持SNMP,而Netconf的支持非常有限。

There is a standard conversion of SNMP MIBs to YANG modules, documented as RFC6643, Translation of Structure of Management Information Version 2 (SMIv2) MIB Modules to YANG Modules . 将SNMP MIB标准转换为YANG模块,记录为RFC6643,将管理信息版本2(SMIv2)MIB模块的结构转换为YANG模块 The other way around is not possible, however. 但是,另一种方法是不可能的。

Resulting YANG modules will use specialized extensions that expose OID information to an implementation that consumes a YANG module. 生成的YANG模块将使用专门的扩展,这些扩展将OID信息公开给使用YANG模块的实现。 These extensions may also freely be used in any module, even those you write on your own, if you import the module that is part of the mentioned RFC. 如果导入的模块是上述RFC的一部分,那么这些扩展名也可以在任何模块中自由使用,即使您自己编写的模块也可以自由使用。

Finding an implementation that supports the extensions is the hard part as Andrew writes in his answer. 正如安德鲁(Andrew)在回答中所写,找到支持这些扩展的实现是困难的部分。 I'm not aware of any such implementation. 我不知道有任何这样的实现。

I suggest you search for client/server implementations that explicitly say they support RFC6643. 我建议您搜索明确表示支持RFC6643的客户端/服务器实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM