snmp

Reason: (noSuchName) There is no such variable name in this MIB

放肆的年华 提交于 2019-12-18 21:54:15
问题 I am using centos Operating System. i am trying to get the memory statistics of localhost through snmpget command, i am getting this error. snmpget -v 1 -c public localhost .1.3.6.1.4.1.2021.4.6 Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: UCD-SNMP-MIB::memAvailReal But, if i fire this one .. i am getting the output.. snmpget -v 1 -c public localhost .1.3.6.1.2.1.1.3.0 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (58756) 0:09:47.56 I am

一节课带你学会SNMP技术

女生的网名这么多〃 提交于 2019-12-18 18:19:19
SNMP技术背景 随着设备数量的增加,网络管理的复杂性也相应提高,这就意味着需要更多的维护支撑人员,增加了设备维护成本,所以就需要一个支持大规模、便捷管理的网管平台。 每引入一家厂商的网络设备,就需要引入配套的厂商网管,而目前的厂商网管仅能管理自己厂商的设备,且每个厂商网管的操作界面、管理内容等均不相同,所以要实现对全网进行高效地统一管理,就需要使用一种标准、通用的网络管理协议(SNMP协议) SNMP技术原理 SNMP的结构包括网管站NMS(Network Management Station)和Agent两部分。SNMP协议就是规定NMS和Agent之间如何传递管理信息的应用层协议(UDP 162) SNMP的版本  SNMPv1:方便实现,安全性弱  SNMPv2c:有一定的安全性,现在应用最为广泛  SNMPv3:定义了一种管理框架,引入了USM( User Security Model 用户的安全模型),为用户提供了安全的访问机制 Agent:运行在被管理设备上的代理进程。被管理设备在接收到网管设备侧NMS发出的请求后,由Agent作出响应操作。主要功能包括:收集设备状态信息、实现NMS对设备的远程操作、向网管端发出告警消息。 MIB:是一个虚拟的数据库,是在被管理设备端维护的设备状态信息集。Agent通过查找MIB来收集设备状态信息

net-snmp sample code to parse MIB file and extract trap related information from it

北城余情 提交于 2019-12-18 16:59:42
问题 I am using the net-snmp C library on Windows. I want to parse trap-related information from the MIB files. I need some sample code to do this. I didn't find anything useful on http://www.net-snmp.org/ 回答1: Here is some sample code to parse MIB files using the net-snmp library. Before you use this code you need to refer or add the Include and Lib directories of net-snmp in your project properties: #include "stdafx.h" #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h>

Delphi: Get MAC of Router

丶灬走出姿态 提交于 2019-12-18 13:18:01
问题 I am using Delphi and I want to determinate the physical MAC address of a network device in my network, in this case the Router itself. My code: var idsnmp: tidsnmp; val:string; begin idsnmp := tidsnmp.create; try idsnmp.QuickSend('.1.3.6.1.2.1.4.22.1.2', 'public', '10.0.0.1', val); showmessage(val); finally idsnmp.free; end; end; where 10.0.0.1 is my router. Alas, QuickSend does always send "Connection reset by peer #10054". I tried to modify the MIB-OID and I also tried the IP 127.0.0.1

PHP SNMP - Cannot find module

早过忘川 提交于 2019-12-18 04:43:13
问题 I've enabled the SNMP module was trying to the functions in the module. I have set the MIBDIRS environment variable to where I have my mibs but I'm still getting these "Cannot find module" warnings: Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At

zabbix 配置SNMP监控

让人想犯罪 __ 提交于 2019-12-18 04:35:04
什么是SNMP ?     简单网络管理协议(SNMP),由一组网络管理的标准组成,包含一个应用层协议(application layer protocol)、数据库模型(database schema)和一组资源对象。 该协议能够支持网络管理系统,用以监测连接到网络上的设备是否有任何引起管理上关注的情况。现在服务器、交换机、路由器、打印机等设备都支持SNMP协议。 zabbix 配置SNMP 思路:(zabbix 服务器是Linux 系统) 第一步: zabbix服务器先安装SNMP服务,配置SNMP服务,设置开机自启动。 第二步 : 被监控端(服务器、交换机、路由器等设备)安装SNMP服务器,简单配置,并设置自启动。 第三步: 访问zabbix服务器配置被监控端信息。 ***Zabbix 服务器安装配置 SNMP 服务操作步骤: *** 标注: 配置网络yum源操作说明 http://www.cnblogs.com/zoulongbin/p/5773330.html 1、 使用yum命令在线安装配置SNMP服务 [root@VMredhat6 ~]# yum install -y net-snmp* //在线yum命令安装SNMP服务 [root@VMredhat6 ~]# vim /etc/snmp/snmpd.conf //配置SNMP配置文件 proc mountd /

Definition of SNMP Gauge32 vs Counter32

风格不统一 提交于 2019-12-17 19:35:32
问题 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. 回答1: Yes, for Gauge32 you can also use that. Deep down inside, Gauge32 and Counter32 are the same, except that data stored in Counter32 keeps

How to measure a Website Bandwidth (Upload+Download) in MB using C#/VB.Net programmatically?

瘦欲@ 提交于 2019-12-17 18:29:44
问题 Hope that everybody is fine here. I am writing a windows service in C#/VB.Net that aims at measuring bandwidth consumption for all WebSites on localhost and store their statistics for upload , download etc on local/remote database. Target Platforms include only Windows Server 2003, 2003 R2, 2008 and 2008 R2. I have searched a bit on this thing and found the following: Using SNMP mgmtapi.dll which is found in Windows 2003 Using a custom Network Driver to collect statistics. Please guide on the

Getting started with SNMP4J

混江龙づ霸主 提交于 2019-12-17 18:10:06
问题 I need to make an agent in SNMP4J, but the documentation on how to get started is pretty poor. Does anyone have any experience with SNMP4J and could give me an idea on how to get started? Thanks. 回答1: You can download the source code for SNMP4JAgent here: http://www.snmp4j.org/html/download.html The source code includes a sample agent -- look in the org.snmp4j.agent.example package for all of the related classes. http://www.snmp4j.org/agent/doc/org/snmp4j/agent/example/SampleAgent.html One

Getting started with SNMP4J

不羁岁月 提交于 2019-12-17 18:08:41
问题 I need to make an agent in SNMP4J, but the documentation on how to get started is pretty poor. Does anyone have any experience with SNMP4J and could give me an idea on how to get started? Thanks. 回答1: You can download the source code for SNMP4JAgent here: http://www.snmp4j.org/html/download.html The source code includes a sample agent -- look in the org.snmp4j.agent.example package for all of the related classes. http://www.snmp4j.org/agent/doc/org/snmp4j/agent/example/SampleAgent.html One