mib

Where to begin with SNMP agent implementation?

你离开我真会死。 提交于 2021-02-06 14:01:30
问题 before I start I realise there are a few SNMP related questions here already but not many seem to have been answered - that could mean I'm asking in the wrong place but I don't know where else to go at the moment. I've been reading up as best I can on SNMP for a couple of days but am finding it difficult to get my head around what is meant to be happening. The idea is eventually we will integrate SNMP into our Java application server which will allow the end users to incorporate it into their

Where to begin with SNMP agent implementation?

*爱你&永不变心* 提交于 2021-02-06 13:58:55
问题 before I start I realise there are a few SNMP related questions here already but not many seem to have been answered - that could mean I'm asking in the wrong place but I don't know where else to go at the moment. I've been reading up as best I can on SNMP for a couple of days but am finding it difficult to get my head around what is meant to be happening. The idea is eventually we will integrate SNMP into our Java application server which will allow the end users to incorporate it into their

What's the difference between the include and import statement in NETCONF (.Yin/Yang files)

十年热恋 提交于 2020-07-07 05:43:34
问题 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 structured, but I can't seem to understand what the include statement does differently? Does it "import" the entire file into the file that's including it - and if so would this be read before the file including it...? Please help :) 回答1: YANG relies heavily on a concept known as "namespaces", which

SNMP OUTPUT OPTIONS - How do I get the OID response value only?

可紊 提交于 2020-06-27 11:33:01
问题 I have to go through and collect a few OIDs from some SNMP enabled network printers with a BASH script I have been working on. My Request: snmpget -v2c -c public 192.168.0.77 .1.3.6.1.2.1.1.1 .1.3.6.1.2.1.1.2 My Actual Response: .1.3.6.1.2.1.1.1 = Counter32: 1974 .1.3.6.1.2.1.1.2 = Counter32: 633940 The Desired Response: 1974 633940314 (just the oid values only) I looked and tested several options using the resource from the site below: http://www.netsnmp.org/docs/man/snmpcmd.html#lbAF -Oq

SNMP OUTPUT OPTIONS - How do I get the OID response value only?

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-27 11:32:14
问题 I have to go through and collect a few OIDs from some SNMP enabled network printers with a BASH script I have been working on. My Request: snmpget -v2c -c public 192.168.0.77 .1.3.6.1.2.1.1.1 .1.3.6.1.2.1.1.2 My Actual Response: .1.3.6.1.2.1.1.1 = Counter32: 1974 .1.3.6.1.2.1.1.2 = Counter32: 633940 The Desired Response: 1974 633940314 (just the oid values only) I looked and tested several options using the resource from the site below: http://www.netsnmp.org/docs/man/snmpcmd.html#lbAF -Oq

Error: OID not increasing: SNMPv2-SMI::dod, How to increase OID?

限于喜欢 提交于 2020-01-15 05:41:25
问题 I am trying to implement a snmp agent with two different context name.I got some sample program .This is my agent side code look like . which I got from the snmplabs.com. I tried to implement it and I am facing some error while doing the snmpwalk. """ | $ snmpwalk -v3 -u usr-md5-none -l authNoPriv -A authkey1 -n context-a 127.0.0.1 .1.3.6 | $ snmpwalk -v3 -u usr-md5-none -l authNoPriv -A authkey1 -n context-b 127.0.0.1 .1.3.6 """ # from pysnmp.entity import engine, config from pysnmp.entity

Monitoring a JVM with SNMP

可紊 提交于 2020-01-14 19:05:54
问题 I'm using snmp to monitore some servers (win2k3 mostly) and during my journey on internet, I found a MIB done by Oracle for monitoring a JVM, JVM-MANAGEMENT-MIB. What I did so far to use it is : Configure the JVM with snmp.acl and management.properties Compile the JVM-MANAGEMENT-MIB with mibcc and replace the mib.bin. With those steps, I think I'm good to try. So I made a java program with snmp4j and when I try to call an OID from the JVM mib, I have got an error Request timed out . The weird

PySNMP Short OID Error Trying To Translate OIDs using MIB Textual Conventions

此生再无相见时 提交于 2020-01-05 14:03:24
问题 I am using the method described in the issue Translate OID value pairs from MIB textual convention using pysnmp to translate OID and OID values according to MIB Textual Conventions. Using a test OID and test OID value my code is as follows: from pysnmp.smi import builder, view from pysnmp.entity.rfc3413.oneliner import mibvar from pysnmp.proto import rfc1902 from pyasn1.type import univ mibBuilder = builder.MibBuilder() mibPath = mibBuilder.getMibSources() + (builder.DirMibSource('/home/rong

Translate OID value pairs from MIB textual convention using pysnmp

我与影子孤独终老i 提交于 2020-01-04 06:17:27
问题 I am trying to write a piece of code that accepts a JSON object with OIDs as keys and OID values as values. An Example would be: {".1.3.6.1.4.1.562.29.6.2.3": "Link Down", ... } When this JSON object is received I want to translate the OID and the OID value using PySNMP, but I do not know how I can translate the OID value according to Textual Conventions defined within a corresponding MIB file. An example MIB file would define: TruthValue ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION

how to send the priority (clear, major , fatal) also along with the trap

ぐ巨炮叔叔 提交于 2019-12-25 03:45:08
问题 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 SYNTAX INTEGER { critical(1), major(2), informational(3), clear(4) } MAX-ACCESS read-only STATUS current DESCRIPTION "Warning from the payment interface" ::= { TrapDefs 10 } 来源: https://stackoverflow.com/questions/54247959/how-to-send-the-priority-clear-major-fatal-also-along-with-the-trap