如何在QT应用程序中使用SNMP [英] How to use SNMP in a QT application

查看:1434
本文介绍了如何在QT应用程序中使用SNMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的QT应用程序中使用SNMP从邻居设备获取MIB数据(管理信息库).

但是我不知道QT中有没有为此目的提供的库.任何人都可以通过在QT中提供SNMP的示例来发送和接收MIB数据来帮助我.

提前谢谢.


SNMP通常使用UDP/IP,因此任何套接字库应支持的数据报服务(包括QT套接字和网络服务). >
当然,您需要使用SNMP的数据结构和MIB描述.
但这不取决于QT.

看看此处 [

I want to use the SNMP in my QT application to get MIB data (Management information base) from neighbour devices.

But I don''t know any library available in QT for this purpose. Can anyone please help me by providing a sample example of SNMP in QT to send and receive MIB data.

Thanks in advance.


sanket.

SNMP typically uses UDP/IP, hence a datagram service on whatever socket library should support it (included the QT socket and networking services).

Of course, you need the SNMP used data structures and MIB descriprion.
But that does not depend on QT.

Give a look at
Here[^]


I use net-snmp for my simple QT App in Windows.

-create empty QT App;
-include net-snmp headers
-write simple code from net-snmp.org tutorial example
-get snmp value from device through "system.sysDescr.0"


这篇关于如何在QT应用程序中使用SNMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆