NoAccess error in snmpset

I have a MIB object with read-write permission. MIB section looks like this: EnableHalt OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-write STATUS current DESCRIPTION "implemented in...

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...

shell script for Net-snmp (get/walk) is not efficient

#!/bin/bash for i in `seq 1 3000` do index=`snmpget -v 2c -c public -Oqv localhost 1.3.6.1.4.1.21067.4.1.1.1.$i` done for i in `seq 1 3000` do upload=`snmpget -v 2c -c public -Oqv localhost...

How to change the default MIB searching path?

I have the following code to parse the mibs in a folder called mibp . #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <string.h> #include<stdlib.h> int...

snmp logs location

DEBUGMSGTL(("","Initializing scalar integer. Default value = %d\n")); snmp_log(LOG_ERR,"fscanf failed in temp fun(),errno:\n"); with these log I want all logs from startinn of snmp service to...

How to send traps in local subnet

I am using Net-snmp. I want to send traps in my subnet. I am having IP of my m/c as 10.0.2.15. I want to send it in 10.0.2.0/24 subnet. I have tried command as follows snmptrap -v 2c -c public...

How to configure collectd-snmp to poll a router?

I am trying to use a Raspberry Pi to poll the interface MIB (IF:MIB) of a TP-LINK router and then send the metrics to Librato. Setting up collectd and integrating it with Librato is no problem at...

snmpget: No such object available on this agent at this OID

I am trying to add my own MIB-Module into a snmp agent, following this tutorial: http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module Now, I followed the tutorial step by step and...

Does net-snmp support AES-192 and AES-256 encryption?

The network device has been configured with snmpv3 users which uses AES192 as the privacy protocol.But when the following command is executed snmpwalk -v3 -l authPriv -u user -a SHA -A authpass -x...

snmptrapd doesn't log in mysql

I am trying to log snmp traps to mysql db, but unfortunately without results. OS - Debian Net-SNMP v.5.7.3 MySQL 5.1 I am using snmptrapd and did the configuration from here here is my...

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...

How to do manager MIB parsing with SharpSNMP

I just want my C# .NET manager code to be able to do SNMP V2 sets and gets using the variable and table names defined in the MIB and not have to use the long OID numeric string to make the code...

Authenticate mongodb replica set

I have 4 instances of mongodb running(replica set) with following mongodb.conf file for each instance: # mongod.conf # for documentation of all options, see: # ...

Mongo Restart Error -- /var/run/mongodb/mongod.pid exists

I just started a new AWS Linux AMI 2016.09.1(HVM) and downloaded the latest Mongodb release. I am using MongoDB version 3.0.14. I updated /etc/mongod.conf to the following, # mongod.conf # for...

snmpwalk failed with authorizationError

I tried to execute: snmpwalk -v 3 -u snmpv3username -A <passphrase> -a MD5 -l authNoPriv localhost .1.3.6.1.4.1.334.72.1.1.6.2.1.0 However, I got the following error: Error in packet. Reason:...

Why is CMake apparently referring to host system files while cross-compiling a Net-SNMP agent despite a proper toolchain file is being used?

I am developing a Net-SNMP subagent whose final target will be an ARM board, so I'm using CMake to make it easier to manage building the native and cross-compiled versions. I started testing it on...

SNMPv3 not in time window

I try to query a Cisco SMB (small business switch) to read its hostname. My code returns "not in time window (1.3.6.1.6.3.15.1.1.2.0). Net-Snmp works fine. The difference I found using wireshark...

How to excute script when receiving a SNMP trap?

I found the parameter traphandle in the snmptrapd.conf file. I found that I can set it like this traphandle default /usr/sbin/snmptt to ad the info of the trap to a log file in /var/log/snmptt...

net-snmp on start says - "Error opening specified endpoint " in Raspberry pi - Jessica

My raspberry pi - jessica has got snmpd --version NET-SNMP version: 5.7.2.1 Web: http://www.net-snmp.org/ Email: [email protected] Now, I am trying...

MongoDB can not start by the command `service mongod start`

when i run the command sudo service mongod start the MongoDB cannot start and when i run the service mongod status it shows it has not been started, and the log shows: 2018-07-05T14:32:03.595+0800...

nmake : NMAKE : fatal error U1073: don't know how to make '"C:/Program Files (x86)/Git/nologo"'

I have just downloaded Net-SNMP code and trying to build for Win OS. I have added my VC binaries in system path. The installation script is throwing error when executing below...

How to fix: Error: couldn't connect to server <ip address>:27017, connection attempt failed: Connection refused

I'm running mongodb on a remote server and I want to access within my local machine I've tried to remove the mongodb.lock file, also tried sudo mongod --repair but none of these worked for...

How to fix 'No such instance currently exists at this OID'

I'm just new here and new to pysnmp and am having trouble getting values from some cisco mibs via snmp. I suspect the issue is in loading the MIBs into pysnmp. How do I tell pysnmp to direct its...

Can't connect to mongodb with self-signed certificate, mongodb in docker container

I have created a docker container with a mongodb image. I created a self-signed certificate for the secure connections to the database following this guide. I started trying to make a connection...

snmpwalk: Cannot find module

I searched intensively and applied available solutions from google, all these solution did not fixed the problem. I keep getting the error messages when running the command snmpwalk on the Ubuntu...

Mongodb (code=exited, status=14) failed but not any clear errors

I have VPS with Ubuntu 18.04 LTS with Mongodb and my script was working until 3 days ago fine, but suddenly my hosting server was rebooted (I purchased it from a hosting company) and when my...

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...

Problems Installing Mongodb on Ubuntu 20.04

Will give a quick context. I was strict to the manual: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo...

How is SNMPv3 with USM auth and privacy configured on net-snmp 5.8 to avoid "security service 3 error parsing ScopedPDU"?

I have a working net-snmp v5.7 install running on CentOS7, and I am now trying to do the same on net-snmp v5.8 running on CentOS8. I have configured /etc/snmp/snmpd.conf as follows: syslocation...

NodeJS Async/Await or Promise for net-snmp module

please someone help, I just cant get it. Can you please help on how to make async/await or promise (doneCb), so script waits for first vlc_snmp(..) to finish and then to call...