mib

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

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

Why the description of the snmp oid giving “null”?

不羁的心 提交于 2019-12-08 12:03:35
问题 My following code is not working as I want to get the description of a node using the Net-Snmp library. #include "net-snmp/net-snmp-config.h" #include "net-snmp/net-snmp-includes.h" void print_s(struct tree *); int main(int argc, char ** argv) { char buff[100]; struct tree *node=NULL; init_mib(); node=read_all_mibs(); if( node == NULL ) { exit(2); } print_s(node); } void print_s(struct tree *tree) { struct tree *tp; for (tp = tree->child_list; tp; tp = tp->next_peer) { printf("%s:%s\n",tp-

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

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 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

Sending SNMP Traps containing custom data

末鹿安然 提交于 2019-12-04 03:44:05
问题 A client has requested that instead of email alerts that we send SNMP Traps to their Nagios server instead. The only thing I knew about SNMP before yesterday was that it sounded like an acronym, so please excuse (and correct me on) any misconceptions about it that I may have. The only information that needs to be sent in the trap pertains to data about the event we are alerting our client about, which is just a couple of values pulled from our database. Needless to say these aren't in any

Sending SNMP Traps containing custom data

孤人 提交于 2019-12-01 19:50:37
A client has requested that instead of email alerts that we send SNMP Traps to their Nagios server instead. The only thing I knew about SNMP before yesterday was that it sounded like an acronym, so please excuse (and correct me on) any misconceptions about it that I may have. The only information that needs to be sent in the trap pertains to data about the event we are alerting our client about, which is just a couple of values pulled from our database. Needless to say these aren't in any sort of MIB, nor do they have any OIDs, and this is where I'm having trouble finding answers. I can't

Looking for an .NET SNMP Extension agent

家住魔仙堡 提交于 2019-12-01 11:32:10
问题 I am developing a C# (targeting full framework 4) windows app. I need that app to write to a few simple counters and more importantly raise (or should that be fire) a few SNMP traps when significant app events occur. Now most .NET SNMP libraries avalable can do this, so far so good. However I have one significant further requirement; my MIB must add to the PC's own MIB, it must not replace all the good SNMP things that come "out of the bag" with your Windows PC. This last one seems to be the

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