snmp

SNMP GetBulk command

别等时光非礼了梦想. 提交于 2019-12-05 14:23:21
i would like to know whether i can use the getbulk command with SNMPv1. If yes please let me know its adv... in no then what are the drawbacks. Thanks in advance. Uday. No. That is determined by the protocol stack (GET BULK was introduced in v2 stack), not by other factors. If you want to use GET BULK, you have to use SNMP v2 and v3, not v1. As others have stated, the GetBulkRequest was introduced in SNMPv2. However you may find it useful to know that a version 1 GetRequest PDU can be associated with multiple variable bindings. In doing so, the GetRequest response will contain a mapping of

zabbix snmp监控与主被模式

人盡茶涼 提交于 2019-12-05 11:32:30
1.snmp基础介绍 snmp全称是简单网络管理协议 为什么要用? 路由器交换机无法安装agent程序,但是都提供snmp服务端, 我们可以使用zabbix的snmp方式监控snmp服务端的数据 2.snmp基础概念: OID: ​ 内存的大小:.1.3.6.1.2.1.25.2.2.0 ​ 内存的剩余:.1.3.6.1.2.1.25.2.2.1 ​ 任何一个指标在snmp中都有一个唯一的值进行表示,那么oid排列顺序是以树状信息排列。 MIB库:统计所有的old库(国际标准) 获取内存信息,hrMemorySize.0 可以理解MIB是域名,比较好记忆。 OID是IP地址,不太好记忆。 snmp版本: v1:不支持加密,任何人都可以取值, 不安全 v2:简单加密版,通过口令才可以取值 通过 community设定口令 v3:复杂加密,采集效率比较低 目前使用的最多的还是v2版本 3.snmp服务端安装 1.安装 [root@web02 ~]# yum install net-snmp -y 2.配置 [root@web02 ~]# vim /etc/snmp/snmpd.conf #public是默认密码,建议修改 com2sec notConfigUser default oldxu #限制丛树杈哪个地方开始取值,如果需要监控的信息,设置.1从顶点开始 view

cacti批量添加主机

爷,独闯天下 提交于 2019-12-05 11:23:56
[root@iZ2zecs4lwn56p5g1e7c63Z cli]# php add_device.php Cacti Add Device Utility, Version 1.2.7 (DB: 1.2.7), Copyright (C) 2004-2019 The Cacti Group usage: add_device.php --description=[description] --ip=[IP] --template=[ID] [--notes="[]"] [--disable] [--poller=[id]] [--site=[id] [--external-id=[S]] [--proxy] [--threads=[1] [--avail=[ping]] --ping_method=[icmp] --ping_port=[N/A, 1-65534] --ping_timeout=[N] --ping_retries=[2] [--version=[0|1|2|3]] [--community=] [--port=161] [--timeout=500] [--username= --password=] [--authproto=] [--privpass= --privproto=] [--context=] [--engineid=] [--quiet]

Using pySNMP to write an SNMP agent (for OpenNMS)

孤街浪徒 提交于 2019-12-05 09:59:13
I'm trying to write a python SNMP agent that I can embed within my python application so that the application can be monitored remotely by OpenNMS. OpenNMS expects the Agent to implement the HOST-RESOURCES-MIB querying two fields hrSWRunName and hrSWRunStatus . I took a pysnmp example as the basis of my code and edited it as I believed necessary. The resulting code looks like this: import logging from pysnmp import debug from pysnmp.carrier.asyncore.dgram import udp from pysnmp.entity import engine, config from pysnmp.entity.rfc3413 import cmdrsp, context from pysnmp.proto.api import v2c from

snmp简单网络管理协议

家住魔仙堡 提交于 2019-12-05 09:57:21
Snmp是什么 简单网络管理协议(SNMP)是TCP/IP协议簇的一个应用层协议。在1988年被制定,并被Internet体系结构委员会(IAB)采纳作为一个短期的网络管理解决方案;由于SNMP的简单性,在Internet时代得到了蓬勃的发展,1992年发布了SNMPv2版本,以增强SNMPv1的安全性和功能。现在,已经有了SNMPv3版本。 snmp干什么 简单网络管理协议(SNMP:Simple Network Management Protocol)是由互联网工程任务组(IETF:Internet Engineering Task Force )定义的一套网络管理协议。该协议基于简单网关监视协议(SGMP:Simple Gateway Monitor Protocol)。 利用SNMP,一个管理工作站可以远程管理所有支持这种协议的网络设备,包括监视网络状态、修改网络设备配置、接收网络事件警告等。 虽然SNMP开始是面向基于IP的网络管理,但作为一个工业标准也被成功用于电话网络管理 介绍一下snmp 在使用snmp的工具前,我们要先了解一下snmp的结构。 一套完整的SNMP系统主要包括管理信息库(MIB)、管理信息结构(SMI)及SNMP报文协议。 在结构上又分为NMS和Agent https://blog.csdn.net/shanzhizi/article/details

开源监控工具Hyperic 的 Network Device配置过程

白昼怎懂夜的黑 提交于 2019-12-05 04:36:15
Hyperic中,Network Device 设备插件可以监控基于SNMP协议(使用 SNMP GET请求数据)的设备,包括主机,路由器,风扇,温湿度仪器等。当然也可以接收 SNMP TRAP事件。 Hyperic 资源模型 Network Device 对应的是 Hyperic 中的 Platform (平台) Network Device Interface 对应的是 Hyperic 中的 platform service(平台服务) Network Device Interface 从属于 Network Device; 配置 有如下配置选项,先上一个图: 具体如下: 属性 说明 interface. index 可选择, ifDescr,ifName,ifAlias,ifIndex snmpIp SNMP代理的 IP 地址,通常为被监控设备的IP地址 snmpPort SNMP代理的端口,通常为被监控设备的端口 snmpTransport SNMP协议,TCP 或 UDP snmpVersion SNMP版本,当前支持 v2c, v1, v3 snmpCommunity SNMP Community snmpUser SNMP 用户名 (v3 only) snmpPassword SNMP 口令 (v3 only) snmpAuthType SNMP 授权类型(v3

How to send SNMP traps with C#?

自古美人都是妖i 提交于 2019-12-05 02:48:28
问题 In my application I have been asked to send error codes via SNMP traps. I believe that this will need to be done using version 3 because of the security issues with versions 1 and 2. Is there anything in the .net framework to do this or should I be looking to buy a third party library. 回答1: There's an excellent open source C# library called SharpSnmpLib. You could read the RFC as an introduction. I don't think anybody bothers with v3 security; it's hard enough to get it working with just

What does “No more variables left in this MIB View” mean (Linux)?

耗尽温柔 提交于 2019-12-05 01:45:46
On Ubuntu 12.04 I am tring to get the subtree of management values with the following command: snmpwalk -v 2c -c public localhost with the last line of the output being iso.3.6.1.2.1.25.1.7.0 = No more variables left in this MIB View (It is past the end of the MIB tree) Is this an error? A warning? Does the subtree end there? There's a bit more going on here than you might suspect. I encounter this on every new Ubuntu box that I build, and I do consider it a problem (not an error, but a problem--more on this down further). Here's the technically-correct explanation (why this is not an "error")

SNMP MIB SMIv2 Conformance Group Issue

此生再无相见时 提交于 2019-12-05 01:41:12
I have a MIB that I started working on but smilint complains about a missing conformance group. How do I add this conformance group to my file? BLEH-PRODUCT-MIB DEFINITIONS ::= BEGIN -- Objects in this MIB are implemented in the local SNMP agent. IMPORTS MODULE-IDENTITY, OBJECT-TYPE, Integer32, enterprises FROM SNMPv2-SMI; blehProductMIB MODULE-IDENTITY LAST-UPDATED "201305290000Z" ORGANIZATION "Bleh Corporation" CONTACT-INFO " Joe Shmoe Postal: Bleh Corporation 23 Telnet Road Ottawa, ON, K1K 1K1 Canada Tel: +1 555 555 5555 x5555 Fax: +1 555 555 5556 E-mail: joe.shmoe@bleh.com" DESCRIPTION

Does net-snmp support AES-192 and AES-256 encryption?

牧云@^-^@ 提交于 2019-12-04 23:46:53
问题 The network device has been configured with snmpv3 users which uses AES192 as the privacy protocol.But when the following command is executed snmpwalk -v3 -l authPriv -u user -a SHA -A authpass -x AES256 -X privpass device_ip:161 oid It throws the following error Invalid privacy protocol specified after -x flag: AES256 but when i tried using AES128 encryption the snmpwalk worked perfectly fine,which made me think if AES192&256 features are supported if not why was it not included. 回答1: The