使用广播snmp请求进行网络发现

编程入门 行业动态 更新时间:2024-10-26 00:22:56
本文介绍了使用广播snmp请求进行网络发现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想在我的子网中发现打印机。我可以使用以下链接中提到的net-snmp做到这一点吗? sourceforge/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- sourceforge/p/net-snmp/bugs/2336/

但这似乎不起作用?我应该在snmp_api中启用广播的任何标志来做到这一点。另外,我将如何处理响应?您能否在这个简单的应用程序中解释我- http ://www-snmp/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- www-snmp/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,

sharpsnmplib.codeplex/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请求进行网络发现

本文发布于:2023-10-10 01:22:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1477300.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:发现   网络   snmp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!