mib

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

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>

PHP cant find SNMP modules under Windows 7

本秂侑毒 提交于 2019-11-29 08:51:25
I've enabled the SNMP module was trying to the functions in the module. I have set the MIBDIRS environment variable to where I have my mibs but I'm still getting these "Cannot find module" warnings: Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (NOTIFICATION-LOG

Definition of SNMP Gauge32 vs Counter32

喜欢而已 提交于 2019-11-28 11:01:17
Can someone point me to a good definition of Gauge32 vs Counter32? I understand that Counter32 can wrap, but Gauge32 can't. I'm trying to understand their semantics. For example, I've heard you should take the difference between two Counter32 readings to get a value/second. Is there something like that for a Gauge32 value? Thanks for any insight. Lex Li Yes, for Gauge32 you can also use that. Deep down inside, Gauge32 and Counter32 are the same, except that data stored in Counter32 keeps increasing (and wrap when upper limit hits). http://www.ireasoning.com/javadocs/com/ireasoning/protocol

PHP cant find SNMP modules under Windows 7

北城余情 提交于 2019-11-28 02:26:23
问题 I've enabled the SNMP module was trying to the functions in the module. I have set the MIBDIRS environment variable to where I have my mibs but I'm still getting these "Cannot find module" warnings: Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At

How can I get MIBs list from a remote server by using PHP?

半世苍凉 提交于 2019-11-28 02:24:25
I am working on a project that involves SNMP. Basically I need to construct MIB and OID tree in PHP. I know that there are programs that do this already, but I am trying to implement my own version to incorporate with my webapp. What I know : I am familiar with php SNMP function. I can do SNMPWALk to get OIDs and such. Unfortunately there is no function that I know of that finds all MIBs and parses them. What I need : Get all MIB docs first from remote server, then based on each docs get their Objects. At the end my tree will have this structure: + mib-doc1 | - obc1 - obj2 + mib-doc2 | - obj1

How can I get MIBs list from a remote server by using PHP?

让人想犯罪 __ 提交于 2019-11-26 23:41:22
问题 I am working on a project that involves SNMP. Basically I need to construct MIB and OID tree in PHP. I know that there are programs that do this already, but I am trying to implement my own version to incorporate with my webapp. What I know : I am familiar with php SNMP function. I can do SNMPWALk to get OIDs and such. Unfortunately there is no function that I know of that finds all MIBs and parses them. What I need : Get all MIB docs first from remote server, then based on each docs get