Questions tagged [mib]
A MIB is an acronym for Management Information Base in use with the SNMP Protocol.
0
votes
0answers
12 views
how to send the priority (clear, major , fatal) also along with the trap
How to send the priority (clear, major , fatal) also along with the trap we are sending from the java code. i have updated the mib file , but don't know how to use this.
TrapDescWarn OBJECT-TYPE
...
0
votes
0answers
18 views
MobileStation information from WLC AIRESPACE-WIRELESS-MIB.mib
Trying to get Mobile Station information from WLC device via SNMP AIRESPACE-WIRELESS-MIB.mib. The following two OIDs are providing Download/Upload data of Mobile Stations from WLC. But could not find ...
0
votes
1answer
64 views
Ruby hash get from dynamic key and value (MIB SNMP)
I'm a newbie on ruby, I have hash data like below.
person = {
"PoolName.11.22.33":"pool_a",
"PoolMemberName.11.22.33.11":"member_pool_a1",
"PoolMemberScore.11.22.33.11":0,
"PoolName.11.22.44":...
1
vote
1answer
49 views
Can PySNMP find the MIB name for an OID?
What I need to do is write a function that finds the MIB name for a given OID.
E.g when I give '1.3.6.1.2.1.31.1.1.1.6' as an argument, it should return 'ifHCInOctets'. I've been searching the PySNMP ...
0
votes
1answer
32 views
Enabling MIP file with Net-SNMP
I'm using Net-SNMP 5.5.0-2.x64 on Windows 10 1803. I'm trying to get SNMP values from a Ricoh printer. I've downloaded Printer-MIB and placed it in my C:\usr\share\snmp\mibs folder. I also downloaded ...
0
votes
1answer
26 views
Automatically detecting a PySMI parsed MIB from an existing OID
I have a situation where I'm trying to do some MIB-processing on a pre-existing, non-translated SNMP walk in the cloud. I have a set of translated PySMI MIB json files, but I'm unsure how to match the ...
1
vote
1answer
36 views
How to create some sort of template for sections in an SNMP - MIB file
We have a software suite that gathers health information from it's modules (services).
We deal internally with this health info, but we also want to use SNMP to let the outside world know what the ...
0
votes
0answers
28 views
Slow registration of net-snmp scalar
Is there any way to get the status of the registration of scalar in net-snmp ?
In my case there are around 14 scalars and registration of those taking time and returning "no such object found" error ...
0
votes
0answers
33 views
Compile text MIB to generate .cds and .cmi files
SNMP MIBs for a legacy system came along with three files for each MIB: ABCD.mib, ABCD.cds, and ABCD.cmi.
I need to modify the MIBs and I'm wondering if I need to recreate the .cds and .cmi files ...
0
votes
1answer
25 views
How delete interfaces from snmp iflist oid?
This is the output of snmpwalk:
snmpwalk -c public -v2c localhost .1.3.6.1.2.1.2
IF-MIB::ifNumber.0 = INTEGER: 5
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = ...
0
votes
0answers
44 views
Multiple sub-agents for one table in Net-SNMP
I'm writing a custom MIB to expose a table over SNMP. There will be one table with set columns, but a variable numbers of rows. Is it possible, with Net-SNMP, to add multiple rows to the table from ...
0
votes
2answers
35 views
SNMPv2c vs SNMPv3 custom MIB
I'm writing a custom MIB that is spec'd to be SNMPv3 compliant. Right now, I know that it is SNMPv2c compliant (through smilint and other tools). Is there anything that I need to do with the MIB to ...
0
votes
1answer
50 views
custom mib for postgresql in SNMP Trap in python
i want to send snmp trap using pysnmp library for database(postgresql). like when database goes down send a trap, similarly for when database goes up send another trap.
so now my question is how to ...
0
votes
1answer
57 views
pySNMP Agent with custom mib loaded from file
I have for a couple of days been looking for a solution to a problem.
I'm supposed to implement an SNMP agent that is SNMP v2c compliant, but in my quest to get there I have gotten stuck on writing ...
0
votes
0answers
75 views
Converting YANG to SNMP MIB
I want to try to convert Yang format files to SNMP MIB and have been searching online with little success other than creating a script myself. I have been searching for a way to automatically do it ...
1
vote
1answer
138 views
What's the difference between the include and import statement in NETCONF (.Yin/Yang files)
I understand that you can create a separate yang file (Something like a textual Convention to store syntax values for MIBS)and import it into another yang file to make the data more organised and ...
0
votes
1answer
85 views
Consolidating various SNMP transactions and assigning the OID and result of each to unique variables for further processing
I am trying to write code that will have many SNMP transactions, some transactions could be bundled into the same getCmd() function of PySNMP. With that being said, I do not intend to print the value ...
0
votes
1answer
51 views
How does an SNMP agent map the correct data to the corresponding Object identifier
For example, sending a GET request to receive how many hours a device has been on for. You send the OID value with the GET request from the manager to an agent, so the agent knows which MIB to ...
0
votes
0answers
30 views
Description/DescriptionFormatted() method on IEntity null reference exception [duplicate]
I am using sharpsnmp-pro to parse MIB files.
From the examples, I have the following code:
var registry = new SimpleObjectRegistry();
var collector = new ErrorRegistry();
registry.Tree.Collector = ...
1
vote
0answers
48 views
Processing wrong values of MIB OID objects by SNMP agent
How to make the SNMP agent ignore wrong or inconsistent value of supported generic MIB OID objects, and move ahead, not stumbling on them? Currently, the SNMP agent stumbles on errors in supported MIB ...
0
votes
1answer
48 views
Branch static OID from instance/dynamic OID
I would like to know if/how it is possible to branch an OID off of an OID that is dynamic.
Numerically:
.1.3.6.1.4.1.(PEN).1.1.(variable OID).1.1.1
Applied:
.iso.org.dod.internet.private.enterprises....
1
vote
0answers
40 views
How do I register OIDs under my PEN?
I have read multiple tutorials and walkthroughs for creating MIBs, and creating/running subagents but I am repeatedly faced with "No Such Instance currently exists at this OID" when performing a walk ...
0
votes
0answers
37 views
Need to upgrade from SNMPv2 to SNMPv3 to just send and receive traps
We have to upgrade from SNMPV2 to SNMPv3, went through all specification about SNMPV3. Its a bit confusing to implement SNMPv3, which has userBased security, View based Access control Model. But our ...
0
votes
2answers
50 views
Net-SNMP host snmpwalk
I'm trying to get data on the host with net-snmp (5.6.1.1)
snmpwalk -v2c -c public 192.168.0.102 1.3.6.1.2.1.25
HOST-RESOURCES-MIB::host = No Such Object available on this agent at this OID
Here's ...
0
votes
1answer
59 views
Clear or disable mibs cache
I have to debug a MIB file from a vendor and need to adapt lots of things to make it currently work with pysnmp. Therefore I would like to clear or disable the mibs cache ($HOME/.pysnmp/mibs) when ...
0
votes
1answer
36 views
Is it possible to get JDBC pool attribute values using SNMP?
I wonder whether it is possible to get the attribute values for the JDBC pools (Catalina,DataSource) by means of SNMP.
When I run
snmpwalk -On -Cc -v 2c -c public 127.0.0.1:11111 .1.3.6.1.4.1.42.2....
0
votes
0answers
75 views
How to auto generate trap from iReasoning SNMP Simulator?
I am trying to send traps with the RFC1213-MIB for the sample multi-walk project bundled with iReasoning SNMP Simulator through the SET command for the below parameter.
Parameter :
sysContact/.1....
0
votes
1answer
284 views
Get “top” OID for given MIB
I want to get the top "OID" for a given MIB. i.e;
CISCO-SMI = 1.3.6.1.4.1.9
CISCO-PROCESS-MIB = 1.3.6.1.4.1.9.9.109
I can easily get this by googling, however I need to get this from a system, ...
0
votes
0answers
102 views
how to generate C code using mib2c command - Ubuntu/Linux?
Here is my MIB File -
Battery-MIB
batteryTable OBJECT-TYPE
SYNTAX SEQUENCE OF BatteryEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The (conceptual) ...
0
votes
1answer
90 views
Pysnmp can't resolve OID's from snmp trap
I'm trying to resolve the OIDs that are received on an SNMP Trap from an HP switch stack but they only resolve down to a certain level and stop. It's like the HP MIBs are not being loaded. It's ...
1
vote
1answer
106 views
OpenNMS - Storage (SNMP MIB-2 Host Resources) giving incorrect values
I am using OpenNMS Horizon to monitor several nodes. For a given node it is monitoring "Storage (SNMP MIB-2 Host Resources) " which tells about the Disk space (% of usage). While for local Disks of ...
0
votes
0answers
202 views
How to get OID Data Type from MIB file using Java?
I have one MIB file from that i get all symbols and OID.But now i want the Type of OID(String or Integer?) using java.And one more thing how to get MibTypeSymbol? I want get data as like mib browser ...
0
votes
1answer
72 views
pysnmp - how to use compiled mibs during agent implementation
the snmp agent implementation examples provided in pysnmp don't really leverage the mib.py file generated by compiling a mib. Is it possible to use this file to simplify agent implementation? Is such ...
-1
votes
1answer
71 views
How to compile a code with MIB_IPINTERFACE_ROW structure
I am trying to compiling a code with the MIB_IPINTERFACE_ROW structure. Let's include the following class in my working code:
class IpInterfaceRow {
private:
MIB_IPINTERFACE_ROW ...
0
votes
2answers
239 views
SNMP DateAndTime, what is expected for a null value
I am working on the Agent side of SNMP, and I have a field that is a DateAndTime, which has the syntax:
DateAndTime (OCTET STRING) (SIZE (8 |11)). Hint: 2d-1d-1d,1d:1d:1d.1d,1a1d:1d
The varBind in ...
0
votes
1answer
36 views
Need a formula to get total LUN size using lunSizeLow and lunSizeHigh SNMP objects
I have 2 SNMP Objects/OIDs. Below are the details:
Object1:
Name: lunSizeLow
OID: 1.3.6.1.4.1.43906.1.4.3.2.3.1.9
Description: `LUN` size in bytes - low order bytes
Object2:
Name: lunSizeHigh
...
0
votes
1answer
249 views
PySNMP SNMPV3 Trap not being sent
I am implementing the pysnmp code for snmpv3, trying to send a trap over to a machine in my network. I can see that the trap is being seen in Wireshark but it does not show up in any of my trap ...
0
votes
2answers
369 views
SNMP Agent: Could mib2c generate code for InetAddress or String type (ie something not an integer type)
I was able to transform 95% of a dedicated MIB to C code and make it run in a sub-agent like described in the last part of this Net-SNMP tutorial
For this I naturally use the mib2c.mfd.conf (I just ...
0
votes
0answers
276 views
Fetch network device info using SNMP
I am developing a network Management system where devices are discovered and fetch there information using SNMP, but am confused on MIB's and OID's and how to fetch network device info using these ?
...
0
votes
0answers
66 views
SNMP 'System.IndexOutOfRangeException' error
Trying o understand and learn what is snmp by reading and executing examples on Newtork Programming book.
I have an error (on string MIB Structure) when I executed the program (on page 435). I have ...
0
votes
2answers
31 views
Grouping Columns in MIBs for SNMP
I have a table in SNMP like this:
Id Name A.x A.y B.x B.y
1 Test 1 2 1 3
2 Next 3 4 5 6
I can make this accessible using SNMP as
table.1.1 = 1 ...
0
votes
1answer
267 views
where is MIB for speed fan?
I'm learning SNMP and applying it for hobby. So I was going to use speed fan to monitor my pc's temp. well, install was done successfully and it shows temps very well. And for SNMP, I installed sfsnmp....
0
votes
2answers
170 views
How can I properly respond with a null value to an SNMP (2c) GetRequest?
I am developing an SNMP (2c) agent for a sensor product. I'm just learning about SNMP and MIB formats and struggling to represent a particular value that could be unknown.
For example, I've defined a ...
0
votes
0answers
459 views
Translation of SNMP traps dosen't work in check_mk
I'm working on processing SNMP traps from CISCO devices by check_mk 1.2.8p20 version. The configuration is in progress and I've have already untranslated traps in Event Console.
Here (http://mathias-...
-1
votes
1answer
41 views
snmpGetVariableBindings returning null and ASN1_ERROR_ERR when ObjectIDList size > 8
I am trying to query a device for specific sensors, and get ASN1_ERROR_ERR depending on the number of oids that I specify. Here is the code where the problem is.
target.setObjectIDList(objID);
try ...
0
votes
0answers
358 views
Convert mib to pysnmp on Windows
I need to convert a MIB to a pysnmp on Windows for use in my SMTP monitoring tool. But I am a newbie and have no idea where to begin. I installed Python and ran setup.py install on the pysnmp-master ...
0
votes
1answer
96 views
list of reserved variables in mib2c
Where can I find the list of reserved variable names for mib2c "language"? I mean the possible variables that are not described here, like ${name}, which evaluates to the OID name that is passed as ...
1
vote
0answers
1k views
Python - dynamic mibs with netsnmp / easysnmp
So, I'm trying to build an SNMP polling service to get some inventory data off my network devices. I'm able to connect to the devices using either the netsnmp or easysnmp modules.
The issue comes ...
0
votes
1answer
44 views
What is .needlength attribute is used for in mib2c?
I am trying to upgrade an old .config file that is used as a template by mib2c function to generate C-codes. The most of variable's attributes are described here, but I can not find anything about ....
1
vote
1answer
149 views
Powershell output for multiple dhcp servers
I am trying to get the mibinfo for multiple dhcp servers in our infrastructure. My problem is that when i run the command
invoke-command -computername $dhcpserver -credential $Cred -scriptblock{...