snmp

(SNMP) How to set Object's value?

我与影子孤独终老i 提交于 2019-12-08 12:00:20
问题 I'm using delphi xe3 to write a program which can read object's value but don't know how to change it? Click SAVE button to set new Power Level value Symbol Rate is read only 回答1: QuickSend() is only for retrieving values. There is no equivalent QuickSend() for setting values. You will have to use SendQuery() directly for that, eg: procedure TForm1.BtnEnterClick(Sender: TObject); var SNMP: TIdSNMP; dn, PLevel, SRate: string; p: Extended; begin SNMP := TIdSNMP.Create(nil); try SNMP.Host :=

snmpd.conf clientaddr not working for sending trap /inform with given IP source address

回眸只為那壹抹淺笑 提交于 2019-12-08 11:13:25
问题 Given the following sample/simple snmpd.conf (Net-SNMP 5.7.2 on RHEL 7.4) rwcommunity private 192.168.56.101 trapsess -Ci --clientaddr=192.168.56.128 -v 2c -c private 192.168.56.101:162 when starting a SNMP Daemon snmpd -f -Lo -D -C -c data/snmpd_test.conf udp:192.168.56.128:161 We obtain ''Start Up'' InformRequest with IP source 192.56.168.1 instead of ...128 (WireShark snapshot below) It is not surprising as the -D option allows us to output the debug information saying that trace: netsnmp

Sending SNMP2 trap message from Linux command lne

落爺英雄遲暮 提交于 2019-12-08 02:58:12
问题 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:

Using SNMP and InOctets counter to keep track of download usage

我们两清 提交于 2019-12-07 21:15:23
问题 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. 回答1: Just remember that SNMP InOctets is the total

How do I enable snmp on CoreOS

坚强是说给别人听的谎言 提交于 2019-12-07 19:46:48
问题 I cannot seem to find any useful info on the topic. Furthermore, what is the best way to monitor CoreOS (we use observium). 回答1: 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

How to get SNMP data using pysnmp?

社会主义新天地 提交于 2019-12-07 16:59:27
问题 I want to get snmp data by using python pysnmp module. I was using command line to get SNMP data but now I want to read it using pysnmp module. SNMP command - snmpwalk -v 1 -c public <ip address>:<port> xyz::pqr I was using command like above. Now I tried something like below - import netsnmp def getmac(): oid = netsnmp.VarList(netsnmp.Varbind('.1.3.6.1.2.1.17.7.1.2.2.1.2')) res = netsnmp.snmpgetbulk(oid, Version = 1, DestHost='ip', Community='pub') return res print getmac() I'm facing error

net-snmp parse code, How to parse MIB?

冷暖自知 提交于 2019-12-07 16:07:29
问题 I am learning net-snmp code-base. To parsing MIB. In parse.c and parse.h code keeps a hash bucket. (indexed bucket (tree list)) . There is also a tree structure, Which contains a next pointer pointing to Next node in hashed list of names. struct tree{ . . struct tree *next; // Next node in hashed list of names int modid; // The module containing this node } I printed the MIB, SNMP-FRAMEWORK-MIB:snmpFrameworkMIB(10) type=24 Next-> ' ipSystemStatsHCOctetGroup ipSystemStatsOutFragReqds

Cacti操作手册——被监控端设备服务器的SNMP配置

一曲冷凌霜 提交于 2019-12-07 14:58:07
Cacti监控的设备必须要启用snmp,按以下步骤可以安装配置好snmp 1、 Windows安装系统自带的snmp服务即可,安装后按以下方法配置 (1)安装Windows系统的snmp服务 控制面板 -> 添加删除程序 -> 添加/删除windows组件 -> 管理和监视工具 -> 简单网络管理协议(SNMP) (2)配置snmp服务 管理工具 -> 服务 -> SNMP Service -> 安全 -> 接受团体名称 添加public,这个是用来登录的密码,自定义的 -> 接受来自这些主机的SNMP数据包填上你的Cacti服务器IP地址 然后重启snmp服务即可生效 2、Linux系统可以装rpm包或源码编译(如果你的系统已安装直接跳到第(3)步) (1)源码编译安装 net-snmp   [root@ yunweiw.com]# tar zxvf net-snmp-xxx.tar.tar   [root@ yunweiw.com]# cd net-snmp-xxx   [root@ yunweiw.com net-snmp-xxx]# ./configure   [root@ yunweiw.com]# make   [root@ yunweiw.com]# make install (2)rpm包安装 net-snmp(安装系统盘里可以找到)   [root@

SNMP - Getting information from a process

不问归期 提交于 2019-12-07 12:48:00
问题 I need to setup a process monitor on a number of servers using a monitoring tool called Zenoss. The problem I'm facing is how can I get information on a specific process via SNMP? I'm not familiar with SNMP at all and I'm having trouble finding out what I need. I've been trying to use a tool called SNMP-Probe but it only seems to give basic system information, nothing that I need or can use. Any help here is appreciated. 回答1: What you need is to query the hrSWRunTable in order to gather the

Simple self-contained SNMP Agent example? (java/c# ideal)

不问归期 提交于 2019-12-07 12:03:27
问题 After not having a whole bunch of luck finding any SNMP libraries for .NET that can act as SNMP agents (that can be used in an OSS project - meaning proprietary libs are out), I am now looking at implementing a simple SNMP agent class in C#. Can anyone provide any good examples or reference implementations of an SNMP agent (ideally nice & self contained), that I can use as a porting reference? Language isnt too important - but the simpler the better. Thanks! 回答1: My open source project #SNMP