Questions tagged [net-snmp]

Common set of SNMP tools for *nix and Windows environments.

SNMP-NET

Widely used set of SNMP CLI tools, GUI and snmpd (for traps). Great docs and books written about this tool set. If you're walking down the SNMP road, this is the place to start!

651 questions
0
votes
2 answers

Local snmpwalk fails with Unknown Object Identifier, but remote works

I observe a problem with net-snmp while retrieving a subtree with snmpwalk locally: On the Target Host itself I got a Unknown Object Identifier Error Message. snmpwalk -v3 -m ALL -M /usr/share/snmp/mibs -n "" -u admin -a SH A -A "12345678" -x AES -X…
Oliver G.
  • 227
  • 5
  • 17
0
votes
1 answer

SNMPv3 Trap Unique Content Separator required

I send a SNMPv3 Trap and separate its fields using | and ; but these characters are also appearing in my trap, which confuses my parser at trap receiving end. I also tried most of the characters e.g. :,".>
Akansha
  • 1
  • 1
0
votes
0 answers

C - Parse string from SNMP SET (weird)

I am working on my own SNMP agent and am having trouble processing strings. I am pretty new to SNMP as well. I've referred to the following links for some of implementing my own agent :…
jtor
  • 133
  • 1
  • 4
  • 13
0
votes
1 answer

snmpwalk: SysUpTime incorrect

I keep track of a cisco's UpTime. sh ver shows me 1year 221 days But when I want to get a sysuptime via snmpwalk I'm getting a response like: snmpwalk -v1 -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.1.3 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks:…
Andrey Maraev
  • 141
  • 3
  • 9
0
votes
0 answers

SNMP Make All OID's Public?

I have been attempting to access different OID's with no luck and significant research has lead me to believe that snmp is just configured to protect these parts of the system and I simply don't have access. How do I change the configuration to…
John Smith
  • 283
  • 2
  • 19
0
votes
1 answer

SNMP hrStorageIndex may changed sometimes. How to identify a disk in SNMP?

hrStorageIndex and ifIndex may changed after reboot sometimes. How to identify a specific disk and network interface in SNMP, both under Linux and windows?
BlackJoker
  • 3,099
  • 2
  • 20
  • 27
0
votes
1 answer

Using snmpgetnext on a table

I am writing my own MIB Module containing a table with 2 columns. Using snmptable works just fine and retrieves all values of the table with all the rows. But with snmpgetnext I can only retrieve the first row of the table. snmpgetnext -v2c -c…
Christian
  • 63
  • 1
  • 1
  • 8
0
votes
1 answer

How to monitor Java process using SNMP

I need to monitor a Java process using SNMP i.e if the Java process is down it should send a Trap . Need help in how to use net-snmp to monitor the java process My queries are for net-snmp: Do I have to create a MIB for my Java process? How does the…
Avishek
  • 390
  • 4
  • 22
0
votes
1 answer

snmpv3 inform/trap c code

I've been looking around and can't seem to find an answer to this question. I'm working with snmpd from net-snmp on an embedded project. I have extra code written into snmpd to support GETs and v2 traps, but now I may need to switch over to v3…
tphelican
  • 151
  • 8
0
votes
1 answer

Using SNMP, trying to get to the data in a TP-LINK modem

The other day, a modem broke down, and I acquired a new TP-LINK TD8816 to replace it. I've been trying to get my feet wet in SNMP to get at the modem stats. Here are the steps I took: I enabled SNMP in the modem, on the LAN port only. I installed…
jcoppens
  • 5,306
  • 6
  • 27
  • 47
0
votes
0 answers

trouble with setting a SNMP attribute using pythone and netsnmp library

I am trying to use the netsnmp library to snmpset a attribute I get an error robm@PC2303VM:~/code/python/snmp$ ./tester2.py File "./tester2.py", line 5 ipaddr=netsnmp.Varbind('.1.3.6.1.2.1.69.1.3.1.0',172.168.100.2,'IPADDRESS') …
RobM
  • 747
  • 5
  • 12
0
votes
0 answers

Library to link for net-snmp mib parsing

I am trying to parse a MIB to my sub agent in Linux environment. However the parser code is not working fine. Do I need to link any static/dynamic library for MIB parsing. I am referring to code from this link which is meant for windows platform :…
0
votes
1 answer

Bad version specified

I'm currently writing an asynchronous application in C but despite the examples on the web site I still get the error: snmp_send: Bad version specified Here is the code: /* initialize library */ init_snmp("scanagent"); SOCK_STARTUP; struct…
Alexandre Pieroux
  • 219
  • 1
  • 2
  • 13
0
votes
2 answers

Can a field (column) of a MIB file table be hidden from a MIB browser and SNMP GET/SET operations?

I have created a MIB file which contains some fields which I want to hide from the user. I don't want the user to see the field or column in a MIB browser; neither do I want the user to be able to fetch the value of the field using SNMP SET/GET…
user1578656
  • 131
  • 1
  • 3
  • 6
0
votes
1 answer

Parse SNMP MIB files in Java

I need to parse a MIB file for OIDs and alarm types. However, I can't use mibble as it is GPL licensed. Is there any other tool or sample code I can use to parse MIB files in Java?
nullox
  • 295
  • 2
  • 7
  • 18