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
17
votes
1 answer

How to get data from SNMP with python?

How to get value mac and vlan from fdb table uses python? In bash snmpwalk work fine: snmpwalk -v2c -c pub 192.168.0.100 1.3.6.1.2.1.17.7.1.2.2.1.2 pysnmp: import os, sys import socket import random from struct import pack, unpack from datetime…
uralbash
  • 3,219
  • 5
  • 25
  • 45
16
votes
4 answers

How to get OIDs from a MIB file?

I want to read all the objects from the MIB file that a manager has. I developed one tool to get some data from a SNMP enabled agent. I want to enhance that tool by showing all the OIDs form the manager's MIB file. I am using the NET-SNMP…
pradipta
  • 1,718
  • 2
  • 13
  • 24
9
votes
1 answer

SNMP purpose of OBJECT-GROUP, MODULE-COMPLIANCE with regards to OBJECT-TYPES

I am implementing my own MIB and also use smilint to check to validate the MIB. I am getting a lot of node xxx must be contained in at least one conformance group warnings. I am having trouble deciphering the purpose of the OBJECT-GROUP and where it…
gavenant
  • 453
  • 7
  • 26
8
votes
1 answer

Looking for example code to implement a SNMP table using AgentX

I've written an AgentX app (Linux, gcc, g++) which works well at sending back scalers. Here is what I'm doing now: init_agent( "blah" ); netsnmp_register_read_only_scalar( netsnmp_create_handler_registration( "foo1", handle_foo1, oid, oid.size(),…
Stéphane
  • 19,459
  • 24
  • 95
  • 136
8
votes
2 answers

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

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: …
user2179455
  • 107
  • 1
  • 2
  • 9
8
votes
1 answer

Python 2 Bindings Net-SNMP Error - undefined symbol: netsnmp-memdup

I successfully compiled net-snmp-5.7.3 on Ubuntu. :D This is the specific version of Ubuntu: Linux loserBox 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux I seemed to have successfully installed the…
user_loser
  • 881
  • 1
  • 13
  • 27
7
votes
1 answer

Send a notification trap SNMP with snmptrap command Linux

For test purpose, i'm trying to use the snmptrap command to produce a .1.3.6.1.2.1.43.18.2.0.1 trap (printer alert trap). I'm not in my two feet with the syntax of the snmptrap command, so can someone explain me how to correctly use this command,…
Nicolas Frbezar
  • 497
  • 1
  • 5
  • 24
6
votes
5 answers

add new mib master agent

I was following instructions on the net-snmp website to add my own MIB support to the master agent. Here is what I did: I created my support .c and .h file in net-snmp/agent/mibgroup/ folder. I copied my MIB file to /usr/local/share/snmp/mibs/…
user195678
  • 535
  • 4
  • 13
  • 27
6
votes
2 answers

Remove User in snmp by agent

I could quickly go through the snmp installation and it works fine. In one of the agent modules I am currently looking into and trying to modify the source. I came across an issue where I need to remove the user by the agent. Stuck with to complete…
user857063
6
votes
1 answer

snmpget returns "No Such Object available on this agent at this OID"

I am trying to configure SNMP agent as per the below link. http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mib_module/ I have placed .c and .h file in the agent/mibgroup folder then ./configure…
Naseeb Panghal
  • 159
  • 1
  • 11
5
votes
1 answer

snmpset Object not writable. Why?

I have been trying to understand how to create a MIB : here what I did so far : I created a MIB, and tried to allocate values to new OID => fail Here is the MIB : TEST-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-COMPLIANCE, OBJECT-GROUP FROM…
Ant
  • 1,812
  • 5
  • 22
  • 39
5
votes
2 answers

mib name printing from mib values in perl

This is the code that I used to walk through the table in net:snmp using perl: #! /usr/local/bin/perl use strict; use warnings; use Net::SNMP qw(:snmp); my $OID_hrSystem = '1.3.6.1.2.1.25.1'; my…
Cherry Chakri
  • 51
  • 1
  • 2
5
votes
2 answers

Installing snmp-mibs-downloader on debian 10 buster

I have installed net-snmp on a linux machine with debian 10 buster and now I need to install snmp-mibs-downloader. Although I have previously run sudo apt-get update when executing: sudo apt-get install snmp-mibs-downloader displays the following…
jstechg
  • 123
  • 1
  • 2
  • 10
5
votes
2 answers

sendto: Operation not permitted: netsnmp

I get an error from the net-snmp library doing an snmp get that says Operation not permitted error from sendto. I am wondering what could make the sendto(2) system call fail with this error. Note, this is an intermittent error so I didn't think it…
Ivan Novick
  • 745
  • 2
  • 8
  • 12
5
votes
2 answers

Get OID's type (syntax) from MIB using Net-SNMP API

How can I get the syntax type and read/write access for an OID using NET-SNMP API? I am writing an SNMP tool that reads and sets values on a remote machine using SNMP protocol. Before setting the value, I need to check its type and access…
Ser
  • 51
  • 1
  • 2
1
2 3
43 44