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
2
votes
0 answers

C# OutputDataReceived not working on net-snmp commands

I have a C# application that needs to show certain data via SNMP. I am using the Net-SNMP on Windows and running the command snmpwalk -Os -c -v 2c system To get all variables under system. On the command prompt it shows…
Aneesh Relan
  • 342
  • 3
  • 12
2
votes
1 answer

C: How to access value returned by Net-SNMP GET

I apologize for the naive question, Iam new to Net-SNMP. I have tried using this simple SNMP demo app given in Net-SNMP website. This code performs a SNMP-GET and manipulates the response to check if the value returned is a ASN_OCTET_STRING, and if…
Deepa
  • 862
  • 12
  • 21
2
votes
4 answers

Net-SNMP: how to specify octet string in Hex bytes in SET command?

I use net-snmp-5.5-1.x86.exe for Win32 I need set IP addreess to hex format, separated by whitespace using NET-SNMP set command. For example, an IP address 192.168.100.100 converted to Hex format is 0xC0A86464 192.168.100.100 > 0xC0A86464 The…
user4515590
2
votes
1 answer

Impossible to kill processes via SNMP

I'm trying to kill processes using SNMP. I know that is possible setting to 4 the "status" field of a process like: snmpset -v 2c -c community_string ipaddress 1.3.6.1.2.1.25.4.2.1.7.PID i 4 I always receive the same message: Error in packet. …
2
votes
1 answer

net-snmp: force table to have xxEntry value of 2 instead of 1

Using net-snmp, table code generated by mib2c -c mib2c.iterate.conf fooBarTable and then heavily hacked. Unfortunately the table is defined with an Entry of 2 instead of the normal 1. (I didn't do this, I'm trying to make this fit into an existing…
bstpierre
  • 30,042
  • 15
  • 70
  • 103
2
votes
2 answers

How to use net-snmp 5.5 with IPv6 on Linux?

Does the Linux SNMP agent support IPv6? I'm working with net-snmp 5.5. It's working fine with IPv4 address set and get operations, but with an IPv6 address it leads to unknown host. What's the problem, and how do I resolve it?
user412747
  • 21
  • 1
  • 1
  • 3
2
votes
1 answer

SNMP walk on only one level

Is there a way to walk only one level of the tree with SNMP? Example: I want to know how many tables my tree has but I don't want to walk each entry. It would be nice to only walk the parent level and return all OIDs for the root node of the table.
Schwimo
  • 31
  • 4
2
votes
1 answer

How should I deal with these SNMP mib file parsing errors?

I am trying to use the mib files supplied by Cisco to make sense the info obtainend by polling my switch via SNMP. It's a SG300-52P, the files can be found here. After I placed the files in one of netsnmp's default mib directories, there were…
fishgehoelz
  • 83
  • 1
  • 7
2
votes
1 answer

Co Existence and Backward Compatibility among SNMP Versions

I'm new to working with SNMP. I'm confused with Backward compatibility and Coexistence among different versions of SNMP. Coexistence among versions is defined in RFC 2576 where Proxy and multi lingual implementations are explained. My question is:…
user3316561
  • 586
  • 1
  • 6
  • 14
2
votes
1 answer

net-snmp mib module handler/callback example?

I'm looking for an example implementation of a mib module with a custom callback that deals with some of the structures in Netsnmp_node_handler: test_handler(netsnmp_mib_handler *handler, netsnmp_handler_registration…
shwick
  • 4,277
  • 6
  • 21
  • 28
2
votes
0 answers

Net::SNMP caching results for extend OIDs

The scope of this work is to query two machines' high resolution timer at the "same time" and get the time clock inaccuracy between both systems. This is done by having the 3rd machine sending an SNMP-get for a custom OID where the SNMP agent is…
Kyle
  • 21
  • 4
2
votes
2 answers

How to create a walkable snmpd extension using pass_persist with shell script

I have added the following 2 lines to my snmpd.conf file: view all included .1.3.6.1.4.1.8072.9999.9999 pass_persist .1.3.6.1.4.1.8072.9999.9999 /root/kshtest I have created a shell script (/root/kshtest) that takes a file, OIDDEFS, containing…
clearcom0
  • 159
  • 3
  • 11
2
votes
0 answers

net-snmp is unknown for agentx extention of quagga daemons MIBs

I have installed net-snmp and built it with agentx support. For sub agent I am using quagga daemons. All the setup is on localhost. I have also did configuration changes in snmpd.conf zebra.conf ripd.conf ospfd.conf rc.conf After starting snmpd…
Rajesh Kumar
  • 349
  • 3
  • 18
2
votes
1 answer

snmp trap registering a receiver

I'm new to SNMP. We have maybe 20000+ devices to listen SNMP traps. It is very hard to add to all trap receivers. Is there a way adding a trap receiver(destination) to a trap sender with SNMP-set request or something like that?
bemolmi
  • 131
  • 1
  • 6
2
votes
2 answers

Net-SNMP - Compiling in a new MIB module, without Compiling the whole SNMP Agent

I´m about to writing my own Net-SNMP MIB Module and was wondering if it is necessary to compile the Whole Agent, since it takes about 5 Minutes. I´m experimenting a lot so i could save hours each day if i could speed up this process. The Process of…
fbutter
  • 122
  • 2
  • 13