snmp

Test URLs for SNMP Agents

你。 提交于 2019-12-10 14:22:17
问题 I am trying to find a list of URLs for SNMP agents which I could make use of for testing purposes. Up till now I have made use of the NET-SNMP test url - > test.net-snmp.org. I've also made use of Verax Simulator to simulate a particular agent. Still, does anyone know of any other URLs please? 回答1: demo.snmplabs.com on port 161 (ie default) is an SNMP agent that is open to internet. It is actually an agent simulator that listens on other ports too; more info at http://snmpsim.sourceforge.net

net -snmp 的监控策略

拥有回忆 提交于 2019-12-10 12:55:10
yum install net-snmp net-snmp-utils -y vim /etc/snmp/snmpd.conf 最后添加:rocommunity nmap 192.168.1.0/24 里的“rocommunity”表示这是一个只读的访问权限 nmap 是团体名,相当于密码,很多平台喜欢使用“public”这个默认字符串。 192.168.1.0/24 代表指定的监控点IP,也就是只能使用这个获取。 [root@localhost ~]# /etc/rc.d/init.d/snmpd restart 可以使用OID获取服务器一些当前性能指标 1 2 3 4 5 6 7 8 9 [root@linux-node1 ~]# snmpget -v2c -c nmap 192.168.58.11 1.3.6.1.4.1.2021.10.1.3.1 UCD-SNMP-MIB::laLoad.1 = STRING: 0.00 [root@linux-node1 ~]# snmpget -v2c -c nmap 192.168.58.11 1.3.6.1.4.1.2021.10.1.3.2 UCD-SNMP-MIB::laLoad.2 = STRING: 0.01 [root@linux-node1 ~]# snmpget -v2c -c nmap 192.168.58.11 1

SNMP error with port already in use

↘锁芯ラ 提交于 2019-12-10 10:15:36
问题 I have created a SNMP agent simulator application which use the port number 161 for the simulated devices. sometimes it occurs the port alredy in use exception. how can i know if the 161 port is busy or not? 回答1: By using netstat command. Specifically, netstat -s [PORT_NO] For example, netstat -s 161 http://www.techrepublic.com/blog/security/list-open-ports-and-listening-services/443 http://www.speedguide.net/faq_in_q.php?qid=115 回答2: By just starting your application. If it gets a

Using pySNMP to write an SNMP agent (for OpenNMS)

北城以北 提交于 2019-12-10 05:31:52
问题 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

SNMP MIB SMIv2 Conformance Group Issue

女生的网名这么多〃 提交于 2019-12-10 02:13:47
问题 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

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

房东的猫 提交于 2019-12-10 01:57:01
问题 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? 回答1: 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

Get Printer Status Using SNMP OID

浪子不回头ぞ 提交于 2019-12-10 00:30:33
问题 I am working with SNMP in Android. I want to get Printer Status. I am using Snmp4Android.jar and OID 1.3.6.1.2.1.25.3.5.1.1 . Please refer this link Printer Status. SnmpActivity.java here public class SnmpActivity extends Activity { private static String ipAddress = "PrinterIP"; private static String port = "Port"; private static String oidValue = "1.3.6.1.2.1.25.3.5.1.1"; public static Snmp snmp; public static CommunityTarget comtarget; static PDU pdu; static OID oid; static VariableBinding

Monitoring multiple java processes on the same host via SNMP

心不动则不痛 提交于 2019-12-09 19:25:47
问题 I want to monitor JVM's via SNMP on Linux machine that run multiple java processes, each java process of course is independent and has different SNMP counters (num of active threads, free memory etc...),the configuration sample inside documentation assume that there is only one java process on the machine. I am searching a simple solution that my monitoring tool will ask the SNMP manager on that host without need to know port for each java process (if it will ask OID from remote machine -

SNMP Agent in Java: How adding new rows in MOTable

穿精又带淫゛_ 提交于 2019-12-09 14:07:19
问题 I am trying to implement an SNMP Agent in Java. I use snmp4j library (http://www.snmp4j.org/). Currently, my agent works on localhost/4700. I tried to send snmpget request thanks to the following request: snmpget -v2c -c public localhost:4700 1.3.6.1.4.1.1.99.5.4.1.3.1.1 but I only get something like "No such instance currently exists at this OID" Here is my problem: I don't know how to create one. I tried to add rows to my MOTable, but it doesn't seem to work. Here is a summary of my class