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

snmp tls with sha256 certificate failed in net-snmp.5.7.3

The SNMPTLS with SHA1 certificate works fine in 5.7.3. I upgraded netsnmp to 5.7.3 for SHA256 support but the snmpd demon shows error "error finding server identity keys" Command : snmpget -v 3 --defSecurityModel=tsm -u joecool -l authPriv -T…
akhil
  • 31
  • 3
3
votes
1 answer

installing python netsnmp on centos 7

I am getting this error fatal error: net-snmp/net-snmp-config.h: No such file or directory. I have installed gcc, python-devel, net-snmp, net-snmp-utils, net-snmp-python and other development dependencies. CentOS Linux release 7.1.1503…
amulllb
  • 3,036
  • 7
  • 50
  • 87
3
votes
1 answer

How to get and set OID value in custom SNMP MIB

I am very new to SNMP and I need to get "system uptime" using our own enterprise OID. I have already obtained an IANA number and created a MIB file. The problem is when I use snmpget command with our OID, I get an object not found error at the…
prashantp
  • 33
  • 1
  • 4
3
votes
1 answer

Access an object thorugh the variable name instead of numeric OID using net-snmp

I can ask to a snmp agent the query: snmpwalk -v2c -c public 192.168.56.70 1.3.6.1.2.1.31.1.1.1.1.1 I recieve "lo" (loopback interface) as the answer. My question is: How I can access that OID through the names instead of using the OID numbers?…
Antoni
  • 2,071
  • 2
  • 24
  • 31
3
votes
2 answers

Cacti extend snmp by a custom script

I have created a graph on Cacti about time to access to a specific page on our infrastructure with cacti and net-snmp. I have extended the capability with adding two new lines in file /etc/snmp/snmpd.conf : extend stat_page1…
3
votes
3 answers

How to set BITS data type in SNMPSET command?

the MIB OID object have data type 'Bits': object_OID Composed Type: Bits Base Type: BITS Access: read-write Kind: Scalar SMI Type: OBJECT-TYPE Value List: doc (0) emta (1) cpe (2) From MIB description, default is DEFVAL { '00'h }. I want set value…
user2427839
3
votes
1 answer

How to avoid high CPU usage with pysnmp

I am using pysnmp and have encountered high CPU usage. I know netsnmp is written in C and pysnmp in Python, so I would expect the CPU usage times to be about 20-100% higher because of that. Instead I am seeing 20 times higher CPU usage times. Am I…
johndodo
  • 17,247
  • 15
  • 96
  • 113
3
votes
1 answer

SNMP: running a subagent

I am new to SNMP, thank you for bearing with me.... I have an existing Perl script for a sub-agent and the following issue came up when trying to run it: The agent seems to connect to the "default" snmpd deamon which is configured as a master agent…
djbuijs
  • 266
  • 1
  • 2
  • 10
3
votes
3 answers

Net-SNMP perl module won't make

Firstly, I am using a Beaglebone Black with the Angstrom distribution. My mib2c program for net-snmp won't work and give the following error: ERROR: You don't have the SNMP perl module installed. Please obtain this by getting the latest source…
Cornel Verster
  • 1,664
  • 3
  • 27
  • 55
3
votes
2 answers

net-snmp is not changing auth and priv protocol correctly

I'm using the net-snmp library (version 5.7.1) in a c++ programm under Linux. I have a Web-Frontend where a user can choose a SNMP-Version and configure it. SNMPv1 and SNMPv2 are working just fine, but I got some issues with SNMPv3. Here is a…
Niklas
  • 417
  • 6
  • 17
3
votes
1 answer

Snmp push mechanism

Recently I am stuck into a snmp problem. My client requirement is that I have to push cpu,hard disk and memory data to the Network management system periodically. I have already configured my snmpd.conf file to pull data through snmpwalk command but…
3
votes
1 answer

How to change the default MIB searching path?

I have the following code to parse the mibs in a folder called mibp . #include #include #include #include int main(int argc, char ** argv) { FILE…
pradipta
  • 1,718
  • 2
  • 13
  • 24
3
votes
2 answers

net-snmp parse code, How to parse MIB?

I am learning net-snmp code-base. To parsing MIB. In parse.c and parse.h code keeps a hash bucket. (indexed bucket (tree list)). There is also a tree structure, Which contains a next pointer pointing to Next node in hashed list of names. struct…
Grijesh Chauhan
  • 57,103
  • 20
  • 141
  • 208
3
votes
1 answer

What is called MIB-Module?

I am new to MIB-Management information base. I am confuse, What is called MIB modules? here it is defined as: An adapted subset of ASN.1, Structure of Management Information (SMI), is specified in SNMP to define sets of related MIB objects; these…
Grijesh Chauhan
  • 57,103
  • 20
  • 141
  • 208
3
votes
3 answers

External command error: /usr/local/bin/snmpget: error while loading shared libraries: libnetsnmp.so.20: cannot open shared object file

I'm able to do a snmpget/snmpwalk and check_snmp through command line. But, when I do it through Nagios (creating a host & services entry in the config files), I see this error in the "Status Information" of the services under specific…
Enigma
  • 71
  • 1
  • 2
  • 4