使用广播snmp请求进行网络发现 [英] Network discovery using broadcast snmp requests

查看:638
本文介绍了使用广播snmp请求进行网络发现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的子网中发现打印机。我可以使用以下链接中提到的net-snmp做到这一点吗?
https://sourceforge.net/p/net-snmp/bugs/2336/

I want to discover the printers in my sub-net. Can I do that using net-snmp as mentioned in this following link- https://sourceforge.net/p/net-snmp/bugs/2336/

但这似乎不起作用?我应该在snmp_api中启用广播的任何标志来做到这一点。另外,我将如何处理响应?您能否在这个简单的应用程序中解释我-
http ://www.net-snmp.org/wiki/index.php/TUT:Simple_Application

But it doesn't seem to work? Should I enable any flag for broadcast in snmp_api to do that. Also how will I go about handling the responses? Could you explain me in context of this simple application- http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application

我是SNMP的新手。

I'm new to SNMP. Any help is much appreciated.

PS:我使用net-snmp 5.7.2.1

PS: I use net-snmp 5.7.2.1

推荐答案

您需要了解SNMP不是定义了设备发现的协议,

You need to understand that SNMP is not a protocol with device discovery defined,

https://sharpsnmplib.codeplex.com/wikipage?title=SNMP%20Device%20Discovery&referringTitle=Documentation

仅当该设备恰好使用您使用的社区名称(对于v1和v2c)时,您的广播消息才会收到响应。

Your broadcast message might receive a response only if that device happens to use the community name you use (for v1 and v2c).

不要依赖广播,因为出于安全考虑,许多设备使用非常特殊的社区名称,因此它们不会响应。

Don't rely on broadcasting, as for security concerns many devices use very special community names, and they won't respond.

这篇关于使用广播snmp请求进行网络发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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