snmp

How do I enable snmp on CoreOS

半腔热情 提交于 2019-12-06 13:23:12
I cannot seem to find any useful info on the topic. Furthermore, what is the best way to monitor CoreOS (we use observium). If standard Linux SNMP metrics are most you need, you just want to deploy a container that runs SNMP daemon. For that purpose you will probably need to expose it to host's network namespace ( --net=host , if you are using Docker) and then you definitely need to bind-mount /proc (with -v /proc:/hostproc passed to docker run ). The only unusual thing you would need point the SNMP daemon at is the /hostproc instead of /proc . You can probably try using the polinux/snmpd

snmp agent libraries for C/C++?

流过昼夜 提交于 2019-12-06 12:52:44
I have to implement a performance statistics MIB for a linux based device and I am looking for a good agent development library. I came across net-snmp and agent++ libraries. I am looking for easier to understand and robust library. Which is the best library if usability and robustness is main criteria? neuro I have used net-snmp . It is robust and works well. The API is in C but quite simple to encapsulate. More than a library and APIs it is a well tested set of tools to handle SNMP. A reference. I don't know agent++. It is perhaps simpler to deal with as it seems to be a C++ lib. my2c gionny

SAMP协议

谁说我不能喝 提交于 2019-12-06 12:35:24
一、介绍 1、简单网络管理协议(SNMP)是TCP/IP协议簇的一个应用层协议,工作在UDP 161端口,用于监控目标设备的操作系统、硬件设备、服务应用、软硬件配置、网络协议状态、设备性能及资源利用率、设备报错事件信息、应用程序状态等软硬件信息。 2、SNMP的通信字符串主要包含两类命令:GET命令,SET命令。 1)GET命令从设备读取数据,这些数据通常是操作参数,例如连接状态、接口名称等。 2)SET命令允许设置设备的某些参数,这类功能一般有限制,例如关闭某个网络接口、修改路由器参数等功能。 3)但很显然,GET、SET命令都可能被用于拒绝服务攻击(DoS)和恶意修改网络参数。 二、默认配置 由上面介绍的SNMP服务可以看出SNMP对于渗透测试者来说简直就是信息宝藏,一旦这个服务协议被利用,那么目标的大部分配置信息都会暴露无遗,对于企业来说这是致命的,而想要利用这个协议的弱点只需要服务器管理员缺乏安全意识做一些默认配置。 三、snmp协议攻击 常见攻击场景: 暴力破解场景攻击 通过非法手段获取用户权限,从而执行未经授权的管理操作 拒绝服务式攻击 非法报文攻击 SNMP getbulk反射放大DOS攻击 基于snmp的刺探扫描 1、snmp-check A、snmp-check 支持对windows、类Unix、网络设备、打印机等安装SNMP服务的设备进行攻击。 B、攻击原理

Using SNMP and InOctets counter to keep track of download usage

与世无争的帅哥 提交于 2019-12-06 12:31:28
How would one calculate the download usage per month say by using the InOctets counter from a router accessed via SNMP. Obviously it would have to keep a track of the value at say the 1st of the month, then do a subtraction on the end of the month, but how exactly do I convert Octet to Gigabytes ??? There would have to be precautions put in place also incase someone resets the counter on the router but this can be coded for no problems. Russell Just remember that SNMP InOctets is the total number of octets sent and received on an interface, including framing characters. Keep in mind that

Reading SNMP Object index of type IPAddress

与世无争的帅哥 提交于 2019-12-06 11:29:53
In a simple SNMP table like mib-2.interfaces.ifTable , ifIndex is the index for the table, so you read ifIndex .1 (i.e. read value from direct child nodes of ifIndex ) to get the index for the first row of the table. Simple enough. But it's not as obvious with something like mib-2.ip.ipRouteTable . In that case ipRouteIfIndex is the index column. It's defined as INTEGER just like ifIndex was. However, you can't read the direct child nodes (i.e. ifIndex .0 is a direct child), but instead need to read ifIndex.0.0.0.0 to get to the value. So how does one know how to find the value when it's not a

大学网络管理课程复习总结

孤人 提交于 2019-12-06 08:53:42
网络管理复习总结 第1章 网络管理基础 选择题 1. 管理者和代理间的信息交换是通过(A)进行的。 A . PDU( 数据单元 ) B. Polling(轮询) C. Heartbeat(心跳) D. AC(应用上下文) 2. 网络管理的要素包括(A、B、C)。 A .被管对象 B .管理方法 C .管理系统 D. 管理模块 3. 下列选项中不是网络管理内容的是(C)。 A.运行 B.控制 C. 计费 D.维护 4. 一个网络管理系统从逻辑上由管理者、管理代理、管理协议和(管理信息库)组成。 A.数据库 B. 管理信息库( MIB ) C.数据仓库 D.信息系统 5. 一个网络管理是应用进程中负责完成管理者的指示,并反馈其所在设备的信息,如果是非标准设备应该使用(D) A.设备代理 B.标准代理 C.代理插件 D. 转换代理 6. SNMP的四种操作中,(A)是由代理发给管理者的,且不需要管理者响应。 A.trap B.get C.get-next D.set 简答题 1. 什么是网络管理? 答:网络管理是指对网络的运行状态进行 监测 和 控制 ,使其能够有效、可靠、安全、经济地提供服务。 2. 网络管理的目标是什么? 答: 有效性 网络要能准确、及时地传递信息 可靠性 网络保证能稳定运转,对故障及灾害有抵御能力和一定的自愈能力 开发性 支持多厂商的异种设备 综合性 业务多元化

Sending SNMP2 trap message from Linux command lne

风流意气都作罢 提交于 2019-12-06 07:15:38
Folks, I need to use this command (snmptrap) from Linux command line to send my custom message to a trap listener. I need to send the same message in both v1 and v2c depending on user settings. Here is what I found. For v1: snmptrap -v 1 -c Tas hostname 1.3.6.1.4.1.2.3 "" 6 3 1234 s s "This is a test" The above command works, I see the following message in my listener. Display of SNMPv1 trap: community: Tas enterprise oid: 1.3.6.1.4.1.2.3 ..... ibmAgents agentAddress: hostname generic-trap: enterpriseSpecific ('00000006'h) specific-trap: 3 ('00000003'h) time-stamp: 1234 - 12.34 seconds varBind

Does the order of attributes in SNMP Traps matter

 ̄綄美尐妖づ 提交于 2019-12-06 04:58:00
问题 I am using some SNMP traps for monitoring of applications. Now I was told that some monitoring systems might have problems if the order of the attributes within the the traps was not the same as defined in the MIB. From the Complexity of the OIDs that could easily be used to re-order the attributes I was surprised by this, so I tried to find the relevant section of the RFC, but I could neither find something that said any ordering is allowed nor anything that said it is important. In other

SNMP devices emulation

别来无恙 提交于 2019-12-06 03:49:55
问题 We have network management system under linux, C/C++, perl and we need to test performance of this system. Is there a tool or way that would allow us to emulate 50 000 SNMP devices? I don't know what more to say here... Please let me know if I should provide more information. Any idea is appreciated. Thank you Bogdan 回答1: There are a few tools out there that will let you do that, however what I've seen is usually commercial software. Adventnet SNMP Agent Simulator MIMIC SNMP Agent Simulator

Implementing an SNMP Reporter (agent) in C# (must run on Mono)?

邮差的信 提交于 2019-12-06 03:18:00
问题 I am attempting to implement some additional statistics gathering in a C# server application - I have about 20 or so variables I'd like to be able to report to network monitoring tools; so I am assuming (hopefully correctly) that SNMP is the correct way to go. There are however two problems: The application is an open source server that cant include proprietary components, and It needs to run on Mono under *nix environs as well as Windows via .NET. The "#SNMP" library at http://sharpsnmplib