snmp

华为交换机SNMP开通V1/V2C

痴心易碎 提交于 2019-12-01 07:31:17
1. 执行命令,进入系统视图 system-view 2. 使能snmp agent snmp-agent // undo snmp-agent 关闭正在运行的snmp agent 3.配置管理节点的联系信息 snmp-agent sys-info contact eg: snmp-agent sys-info contact 4008229999 配置管理节点的物理位置 snmp-agent sys-info location eg: snmp-agent sys-info location BeiJing China 配置snmp的版本号 snmp-agent sys-info version eg: snmp-agent sys-info version v2c 4. 配置snmp agent 的读写团体名 snmp-agent community read PublicManager 团体名字符串形式,区分大小写,不支持空格,长度范围是8~32 5.使能交换机发送Trap报文 snmp-agent trap enable 6. 配置告警发送方式为Inform方式、主机的安全名为PublicManager、协议版本是v2c,发送告警到告警主机172.16.3.1 snmp-agent target-host inform address udp-domain 172.16.3

华为交换机SNMP开通V1/V2C

末鹿安然 提交于 2019-12-01 07:30:51
进入系统视图 system-view 使能 snmp agent snmp-agent 设置维护信息 配置管理节点的联系信息 snmp-agent sys-info contact eg: snmp-agent sys-info contact 4008229999 配置管理节点的物理位置 snmp-agent sys-info location eg: snmp-agent sys-info location BeiJing China 配置snmp的版本号 snmp-agent sys-info version eg: snmp-agent sys-info version v2c 配置snmp读团体名 snmp-agent community read PublicManager 团体名字符串形式,区分大小写,不支持空格,长度范围是8~32 使能交换机发送Trap报文 snmp-agent trap enable 配置告警 发送方式为Inform方式、主机的安全名为PublicManager、协议版本V2C、网管主机172.16.2.6 snmp-agent target-host inform address udp-domain 172.16.2.6 params securityname PublicManager v2c 最后save提交 来源: https:/

Java Getting Name/Description for OIDs in MIB

末鹿安然 提交于 2019-12-01 05:25:28
I am programming a network management system, and need to be able to print out meaningful names behind the OIDs that are received from SNMP traps. Due to the nature/size of this system, it would not be a good idea to manually map every OID to a meaningful name for every MIB on every device that is being used. With that said, is there a free (commercial use) way of automatically pairing name/description with their respective OID for all OIDs in a MIB; and then those pairings be used in a Java program? In other words, is there a tool or method that will convert a MIB tree to Java objects that

Java Getting Name/Description for OIDs in MIB

ⅰ亾dé卋堺 提交于 2019-12-01 03:38:22
问题 I am programming a network management system, and need to be able to print out meaningful names behind the OIDs that are received from SNMP traps. Due to the nature/size of this system, it would not be a good idea to manually map every OID to a meaningful name for every MIB on every device that is being used. With that said, is there a free (commercial use) way of automatically pairing name/description with their respective OID for all OIDs in a MIB; and then those pairings be used in a Java

What is a good way to show a floating point number via SNMP?

我与影子孤独终老i 提交于 2019-11-30 20:40:36
I am coding an SNMP Agent. I need to send values that have a decimal point to an SNMP Manager. I have a couple options: Truncate the number. Multiply by a constant. Ask Stackoverflow. If I truncate the number I lose a lot of information that I need. If I multiply by a constant, then the manager will display strange units that the end-user would rather not see. (grams instead of kilograms). So, I'm doing option 3. What do I do? The usual, standard way this is done is to define a TEXTUAL-CONVENTION with an integral type (such as Integer32 or Unsigned32) and a DISPLAY-HINT with "d-N" format,

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

偶尔善良 提交于 2019-11-30 14:18:17
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/ Rahul 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> #include <net-snmp/definitions.h> #include <net-snmp/library/tools.h> #include <net-snmp/mib_api.h>

Delphi: Get MAC of Router

半城伤御伤魂 提交于 2019-11-30 09:17:53
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 which connection should never fail. I did not find any useable Tutorials about TIdSNMP at Google. :-(

How can I check the data transfer on a network interface in python?

大憨熊 提交于 2019-11-30 08:44:10
问题 There is a socket method for getting the IP of a given network interface: import socket import fcntl import struct def get_ip_address(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) return socket.inet_ntoa(fcntl.ioctl( s.fileno(), 0x8915, # SIOCGIFADDR struct.pack('256s', ifname[:15]) )[20:24]) Which returns the following: >>> get_ip_address('lo') '127.0.0.1' >>> get_ip_address('eth0') '38.113.228.130' Is there a similar method to return the network transfer of that interface? I

What is a good way to show a floating point number via SNMP?

怎甘沉沦 提交于 2019-11-30 03:54:19
问题 I am coding an SNMP Agent. I need to send values that have a decimal point to an SNMP Manager. I have a couple options: Truncate the number. Multiply by a constant. Ask Stackoverflow. If I truncate the number I lose a lot of information that I need. If I multiply by a constant, then the manager will display strange units that the end-user would rather not see. (grams instead of kilograms). So, I'm doing option 3. What do I do? 回答1: The usual, standard way this is done is to define a TEXTUAL

计算机三级网络技术最全知识点总结十一

荒凉一梦 提交于 2019-11-30 03:23:12
十一章:网络管理技术(37~40题) 考点1:snmp基础与配置(cisco设备) 考点2:windows网络管理设备 考点3:网络监听工具 考点4:故障检测与分析 考点5:网络攻击与漏洞查找 网络管理的基础知识 1、网络管理的基本概念 网络管理系统一般由管理进程、被管对象、代理进程、管理信息库和网络管理协议五部分组成 管理进程:也成为管理站,是网络管理的主要实体 被管对象:网络上的软硬件设施 代理进程:网络管理中的被动实体 网络管理协议:较流行的由snmp和cmip 管理信息库:被管理对象概念上的集合 2、网络管理的功能:配置管理、性能管理、记账管理、故障管理、安全管理 网络管理模型iso 1、osi管理模型:osi管理模型由iso公布 2、snmp管理模型 snmp由一系列协议组和规范组成,他们提供了一种从网络上的设备收集网络管理信息的方法。snmp的体系结构分为snmp管理者、snmp代理和mib,其管理模型是一个管理/代理模型。每一个支持snmp的网络设备中包含一个网管代理,网管代理随时记录着网络设备的各种信息,网络管理程序通过snmp通信协议收集网管代理所记录的信息 snmp采用一种分布式结构。一个管理站可以管理控制多个代理;反之。一个代理也可以通过管理站被管理、控制。为此,snmp采用了“团体”这个概念来实现一些简单的安全控制。 管理信息库mib-2