snmp

基础知识:什么是SNMP

99封情书 提交于 2019-11-29 05:59:09
简单网络管理协议(SNMP) 是专门设计用于在 IP 网络管理网络节点(服务器、工作站、路由器、交换机及HUBS等)的一种标准协议,它是一种应用层协议。   SNMP 使网络管理员能够管理网络效能,发现并解决网络问题以及规划网络增长。通过 SNMP 接收随机消息(及事件报告)网络管理系统获知网络出现问题.   一个SNMP管理的网络由下列三个关键组件组成:     1-网络管理系统(NMS,Network-management systems)     2-被管理的设备(managed device)     3-代理者(agent)       1----网络管理系统运行应用程序,以该应用程序监视并控制被管理的设备。也称为管理实体,网络管理员在这儿与网络设备进行交互。网络管理系统提供网络管理需要的大量运算和记忆资源。一个被管理的网络可能存在一个以上的网络管理系统。       2----被管理的设备是一个网络节点,它包含一个存在于被管理的网络中的SNMP代理者。被管理的设备通过管理信息库(MIB)收集并存储管理信息,并且让网络管理系统能够通过SNMP代理者取得这项信息。       3----代理者是一种存在于被管理的设备中的网络管理软件模块。代理者控制本地机器的管理信息,以和SNMP兼容的格式传送这项信息。 总结: 什么是SNMP 答:SNMP是一种简单的网络管理协议

Identify a non-computer network device?

落花浮王杯 提交于 2019-11-29 04:37:54
I'm current working on a program that scans my network and discoveres computers and devices on the network. I use various operations to find data on the devices I discover, but want to distinguish the network devices from computers. And I'm wondering if anyone knows how I could do this? I looked a bit at SNMP, and tried connecting to my network printer, router and modem. But I seem to only be able to connect to the printer, neither the router or modem responds. Is there another way to identify what kind of a device an IP address belongs to? Using a command line tool such as nmap you can finger

What SNMP library for .NET makes traps, sets or gets simple? [closed]

我们两清 提交于 2019-11-28 23:39:04
问题 What are the best SNMP libraries to use with .NET? Specifically for listening for traps or sending set or get requests. 回答1: I am using the Sharp SNMP Suite (#SNMP) : LGPL, Mono compatible, developed in C# 3.0, has very good API. 回答2: Hi as the author of #SNMP, I try my best to be unbiased here :) I have a blog post here which is a simple evaluation report. http://www.lextm.com/index.php/2007/12/product-review-snmp-libraries-for-net-evaluation-report/ In my opinion, PowerSNMP is the leading

SNMP相关资料

随声附和 提交于 2019-11-28 23:20:58
H3C交换机: 型号+版本(snmpget):SNMPv2-SMI::mib-2.47.1.1.1.1.2.2 型号(snmpget):SNMPv2-SMI::mib-2.47.1.1.1.1.13.212 序列号(snmpget):SNMPv2-SMI::mib-2.47.1.1.1.1.11.2 光模块序列号(snmpwalk):SNMPv2-SMI::mib-2.47.1.1.1.1.11 来源: 51CTO 作者: wq2010feng 链接: https://blog.51cto.com/keefe/2449385

SNMP for Local printer?

青春壹個敷衍的年華 提交于 2019-11-28 23:13:20
问题 I am searching for a way to Get Information from a local printer. Maybe with the SNMP Protocol? The printer is connected with USB or PPI (parallel port). All printers have a internal TotalPagesCount and support SNMP. Here some examples of the Printers: Brother HL1430 Brother HL5150 Brother HL1230 Kyocera 1118 Kyocera 1128 Kyocera 2000 Kyocera 1300 Kyocera 3920 Kyocera 1920 Kyocera 1350 Is this possible? Thanks 回答1: I think SNMP is the correct approach. Most printers implement the standard

Easy to use SNMP client library for c++? [closed]

蓝咒 提交于 2019-11-28 17:51:21
What's an easy to use SNMP client library for c++? Probably the best choice is net-snmp . Note that the library has "C" linkage but will work just fine with C++. Lex Li SNMP++ is also a nice and open source library for C++ developers. http://www.agentpp.com/api/cpp/snmp_pp.html I have found that Net-SNMP does not support multi-threading with v3 type queries. So if you are writing an SNMP monitoring tool that will be polling multiple hosts then you will need to take this into consideration. Wes Hardaker OpenSNMP contains a complete multi-threaded implementation of SNMPv3 that is done in C++

Linux Shell脚本进行SNMP服务自动安装

╄→尐↘猪︶ㄣ 提交于 2019-11-28 16:27:37
Linux下实现SNMP服务的一键安装配置,具体实现过程如下所示(CentOS 7操作系统)。 (1)角色判断 判断当前登录的用时是否为root用户,防止安装软件时不能进行安装。如果不是root用户将退出脚本执行,否则将继续进行脚本执行。 #!/bin/bash #进行一键安装SNMP创建Shell脚本 # #判断当前用户是否为root if [ "$(id -u)" != "0" ] then echo "This Shell must be run as root" 1>&2 exit 1 fi (2)检查软件是否安装 检查SNMP服务需要的安装包是否已经安装,如果没有安装通过Shell脚本直接进行安装。 #检查系统是否存在yum命令 YUM_CMD=`whereis yum | awk '{print $2}'` if [ "$YUM_CMD" != "" ] then #检测是否安装gcc cmd=`rpm -q gcc | grep -v "not installed"` if [ "${cmd}x" = "x" ] then echo "install gcc start >>>" yum install -y gcc 1>/dev/null 2>&1 else echo "not need install gcc" fi cmd1=`rpm -q net-snmp |

Definition of SNMP Gauge32 vs Counter32

喜欢而已 提交于 2019-11-28 11:01:17
Can someone point me to a good definition of Gauge32 vs Counter32? I understand that Counter32 can wrap, but Gauge32 can't. I'm trying to understand their semantics. For example, I've heard you should take the difference between two Counter32 readings to get a value/second. Is there something like that for a Gauge32 value? Thanks for any insight. Lex Li Yes, for Gauge32 you can also use that. Deep down inside, Gauge32 and Counter32 are the same, except that data stored in Counter32 keeps increasing (and wrap when upper limit hits). http://www.ireasoning.com/javadocs/com/ireasoning/protocol

Cacti+nagios 整合监控部署文档

萝らか妹 提交于 2019-11-28 10:53:40
目录 Cacti+nagios监控部署步骤... 2 一、Cacti安装... 2 1需要安装的依赖软件包:... 2 2安装rrdtool 2 3启动数据库和httpd服务... 3 4将servername和ip对应写入hosts 3 5安装cacti 3 6创建cacti数据库并授权:... 3 7导入cacti的数据表... 3 8修改配置文件,提供php连接mysql的用户名、密码(如图)... 3 9登录网页按照向导提示完成安装:... 4 10 配置本机snmp. 6 11 通过WEB页面添加监控设备... 7 12 为新创建图形生成数据,并将轮询加入计划任务... 9 13 更改php时区... 9 14 安装高效轮询器spine. 9 二、Cacti插件安装... 11 1 如不需打补丁(在cacti-0.8.8b版中默认已带plugin management),则只修改配置文件即可 11 2 安装monitor、settings、thold插件... 11 3 刷新web页面plugin management,出现插件的蓝色图标,依次全部启用... 12 4 thold警报功能... 12 5 安装weathermap插件... 15 三、cacti系统的客户端配置... 18 1 linux主机... 18 2 windows主机... 19 四

How can i get a printer's make and model in Java?

孤者浪人 提交于 2019-11-28 07:16:39
问题 I'm actually working on a Java application that shares printers to a server, and I need this application to get the make and model of the printers it shares. I know this question has been asked three or four times but nobody seems to have found an answer. I've tried this code : PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null); for (PrintService printer : printServices){ System.out.println(printer.getDefaultAttributeValue(PrinterMakeAndModel.class)); System.out