Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [snmp]

Simple Network Management Protocol(`snmp`) is an "Internet-standard protocol for managing devices on networks.

0
votes
0answers
14 views

how to find snmp device is switch, router or printer?

I am discovery Network devices any I have some of the information like IpAddress snmpVersion Community String Udp host port using above information I am able to discover Network device but how I ...
0
votes
1answer
30 views

Can't access SNMP stack on rasp pi through router from WAN

Background I am running the following On my laptop the very latest version of arch linux with all the latest updates. It is from this laptop that I am querying an SNMP stack on a rasp pi $ uname -...
1
vote
0answers
21 views

Get all writable OIDs from snmpwalk

It's easy to do a snmpwalk to get a list of all the valid OIDs for a system. How can I tell which of those OIDs are read only, and which are writeable? $ snmpwalk -v1 -c testing 256.256.256.256 ...
0
votes
0answers
62 views

iptables prerouting to multiple ports

I want to redirect SNMP traps. Let's say, receive an SNMP trap on UDP port 162, and redirect the package to ports 10162 and 20162 (both of them). How can I achieve this using iptables? I can ...
0
votes
0answers
16 views

how to get enumerated out from snmptrap?

I have the following part in my own MIB: Severity OBJECT-TYPE SYNTAX INTEGER { clear( 0 ), warning( 1 ), ...
0
votes
0answers
20 views

snmptrap - further confusion

I received really useful advice on this post: Here I fiddled with it some more and right now I've only got one box to work with. I opened two sessions, one of which I want to view the traffic dump, ...
0
votes
1answer
39 views

snmptrap - underlying config?

I'm trying to get my Ubuntu LTS 16.04 server to send SNMPTraps to my HP OVO server. The reason for this is that there are legacy devices on the network that cannot send an SNMP warning upon failure, ...
0
votes
0answers
54 views

NUT on FreeBSD unable to detect UPS

I've been trying to get my APC SNMP v3 UPS to work with NUT (network UPS tools) on FreeBSD 11.2. It's not detecting it. What I've done so far Clean install FreeBSD 11.2 AMD64 and check UPS pingable ...
-1
votes
1answer
379 views

Configuring SNMP Traps

I've got an Ubuntu LTS 16.04 Server that I want to act as a Manager. There will be a few hundred Multiplexer devices which need to forward traps to the Manager's IP. I can't seem to find any SNMP ...
1
vote
0answers
58 views

snmpd conf extend : set fixed value instead of execute external script

We have a monitor application, reading info thru snmp. This app expects to gather some values from snmp extensions, via "extend". On the monitored hosts, for various reasons (security, performance), ...
0
votes
1answer
295 views

How to trace snmp trap sent by client process?

We have a process(should be a client program) on RHEL 7.4 that send snmp traps to a Solaris server that has trap receiver process(should be a server program listening on 162/1691) on other machine(...
1
vote
2answers
1k views

SNMP - No Such Object available on this agent at this OID

I installed a snmpd into a CentOS 7 minimal installation for system parameters search, for instance: snmpget -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.2.2.1.2 for the above command I get the following ...
0
votes
1answer
215 views

How to route all snmp request to remote deivces from a local machine through a proxy server

I have to forward all snmp request to remote deivces from a local machine to proxy server. Is it possible ? The actual requirement is like i have set of network devices that are only accessible ...
0
votes
0answers
104 views

snmptrap Engine Boots and Engine Time

I need to manually send SNMPv3 Trap with Engine ID, Engine Boots and Engine Time set. I use 'snmptrap' for this purpose. Everything is OK with Engine ID. It can be set with "-e" option. But I can't ...
1
vote
1answer
124 views

SNMPTRAPD on RHEL 6

So getting it up and running isn't the problem and receiving traps work fine, however, none of them are being translated despite the fact that I've installed the mibs. I have confirmed that the mib ...
0
votes
1answer
927 views

tcpdump tracing UDP packets

On redhat linux box, I am trying to trace the snmp traps coming from IP a.b.c.d, as shown below: sudo /usr/sbin/tcpdump src host 142.125.248.36 and udp dst port 162 -w /home/user1/troubleshoot.pcap ...
0
votes
1answer
70 views

Reset net-snmp? I've forgotten the initial user password

I created an SNMP initial user several years ago for a project and have forgotten the password. Is there a way to reset net-snmp back to default, no users, and recreate the initial user and subsequent ...
0
votes
1answer
86 views

Extracting specific data from SNMP

I've completed an SNMP poll to get different licenses from my routers. I've successfully polled the information; I now want to be able to present it. A snapshot of the output I have is: SNMPv2-SMI::...
1
vote
1answer
247 views

Why is /proc/net/snmp not showing Udp InCSumErrors?

I'm running Oracle Linux 6.5, kernel 2.6.32-431.5.1.el6.x86_64. When I look at the Udp snmp stats it does not show me InCsumErrors. How can I see this stat? cat /proc/net/snmp | grep Udp\: Udp: ...
1
vote
1answer
184 views

Service snmpd calls gettimeofday syscall too many times

Recently I am facing an issue with snmpd service. I have a Linux box running CentOS 6.9, when I issue an snmpwalk on localhost usually all I get is a timeout, then I try adding a timeout value of 10 ...
1
vote
0answers
357 views

How to make /proc/net/arp accessible?

The snmpd service on my debian system doesn't deliver traffic information of the network adapters. I found the following message in the syslog: snmpd: Cannot open /proc/net/arp When I execute now "...
0
votes
1answer
603 views

snmptt running as non-root, writting to file as root

I'm running snmptt as a SNMP trap handler for snmptrapd, with the aim being to write to a trap file that can be read and processed by Zabbix. I have set up snmptt to run as the zabbix user by ...
0
votes
1answer
61 views

CentOs DISMAN-EVENT-MIB_mteTrigger not fired when average load thresholds are breached

I'm using CentOS OS with the following SNMP config. ###### CPU load monitoring ######## load 12 10 5 monitor -r 60s -o laNames -o laErrMessage "laTable" laErrorFlag !=0 When I increase the load (...
0
votes
1answer
188 views

Where does SNMP OIDs get the data from?

If I want to find out network traffic on my Linux Servers using SNMP. I use the ifOutOctets. and ifInOctets. OIDs in an snmpget request. Where do these OIDs get the data from? I tried looking at the ...
3
votes
0answers
6k views

How to configure snmptrapd to process incoming traps from a Juniper device?

I have a CentOS server (7.2). I am trying to configure this as a SNMP trap receiver. In my snmptrapd configuration, I am calling a very basic shell script just to identify if the trap was received: [...
-1
votes
1answer
785 views

Python and snmpset with netsnmp

On the linux command line, centos 7, I can to do this to change an snmp setting on a device. snmpset -v 2c -c private 172.16.1.2 .1.3.6.1.2.1.1.5.0 s new_name With python and netsnmp I can read the ...
0
votes
1answer
941 views

snmpd service failed to start on Red Hat 6

I got the following error when I try to start the snmpd service: service snmpd start **Starting snmpd: [FAILED]** Log say: 2017-02-13T13:09:54.473284+01:...
3
votes
0answers
2k views

SNMP query the network range for multiple OIDs

I looked for any SNMP scanner tool for Linux that can SNMP query an IP range for multiple OIDs and return results (if found), but didn't find anything. I have SNMP installed on Ubuntu, is it ...
1
vote
1answer
803 views

Debian stretch: upgrade of `snmpd` giving an error

During the latest security upgrades, snmpd was upgraded to 5.7.3. Before finishing the procedure, apt-get upgrade starting giving the error: Starting SNMP services::Bad user id: snmp snmpd is ...
0
votes
1answer
2k views

Bash script to parse SNMP output

I am working on monitoring a Cisco device where I would need to parse the snmp output and print it in separate more verbose lines. Through the command line I can do this: snmpwalk -m /usr/share/snmp/...
6
votes
2answers
8k views

Nmap scan for SNMP enabled devices

Nmap scanning network for SNMP enabled devices: sudo nmap -sU -p 161 --script default,snmp-sysdescr 26.14.32.120/24 I'm trying figure out how make that nmap return only devices that have specific ...
1
vote
0answers
100 views

snmpd configuration + how to set snmpd correctly

Regarding the following snmpd.conf file: more /etc/snmp/snmpd.conf rocommunity bingo 127.0.0.1 rocommunity bingo server18 rocommunity bingo server19 syscontact server3 syslocation UNKNOWN ...
1
vote
0answers
384 views

Incorrect used memory result by snmp hrSWRunPerfMem

We have few Esxi 5.0 server (with 64GB memory in each srvr) & snmp is enabled. As per my research there is no oid for used/available memory OID, it have only hrMemorySize.0. Therefore in order ...
1
vote
0answers
59 views

Nagios/SNMP - devices alerting when ppp/tun connections cycle

Sorry if this is a repeat. I searched, but with no luck. I'm using SNMPd on an openwrt/wr host with some ppp and tun connections. These connections get IDs in the if table, and will actually get a ...
3
votes
0answers
95 views

How can set value for mteHotContextName when using monitor process in SNMP

I'm using RHEL 5, I tried to find some way to set value for set value of mteHotContextName or mteHotTargetName of DISMAN-EVENT-MIB but I can't find the answer. I searched in stacoverflow but nothing ...
0
votes
1answer
2k views

How to calculate disk IO load percentage?

The following is net-snmp output and as you see, diskIOLA is not availabe: SNMP table: UCD-DISKIO-MIB::diskIOTable diskIOIndex diskIODevice diskIONRead diskIONWritten diskIOReads diskIOWrites ...
0
votes
1answer
167 views

How to use SNMP to get any information that we need in Redhat?

I am new to SNMP and I can not find any clear article if we can add a data node in SNMP. And also how does SNMP collect data? I want to monitor the following resources, which can be obtained from ...
1
vote
0answers
492 views

Setting multiple SNMP OID values at once as a single action

I'd like to be able to configure the component of a software stack through SNMP. I integrated Agent++ into the software, and can already control other values via SNMP. I can detect snmp set operations ...
1
vote
0answers
601 views

Test/Simulate SNMP traps on disk failures

On my monitored system I configure SNMP to sent traps in the event that hardware failures occur. For example, I add the following (rather well-known) line to my snmpd.conf file: monitor -60 -o ...
0
votes
1answer
109 views

Bash script to filter specifc entries from snmpd.conf

I am working on a script to filter community entries from snmpd.conf Script is: SERVER=$(hostname) touch /tmp/snmp_audit_$SERVER echo $SERVER >> /tmp/snmp_audit_$SERVER SNMP=$(cat /etc/snmp/...
0
votes
1answer
2k views

Error installing php-snmp in CentOS

I'm currently on php 5.6 on CentOS 6.7. I'm trying to install yum install php-snmp I keep getting Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading ...
0
votes
1answer
776 views

parse snmpwalk output to array

Im trying to get network interfaces by doing a snmpwalk, but cannot separate in array, the variable stores all in element 0 ifname=(\$(snmpwalk -Oqv -v2c -c comm xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.2))...
0
votes
1answer
127 views

Does snmp rely on or need CUPS to function?

I am trying to secure my latest hosting server, and realized that cupsd is running. After checking, it's running on all of my servers. In the name of security, I decided to permanently disable this ...
1
vote
1answer
12k views

Cannot start snmpd correctly

I trying to setup snmp in an ubuntu-server 15.10 to perform some tests. I have installed snmp as: sudo apt-get install snmp snmpd snmp-mibs-downloader After the installation I commented the ...
5
votes
1answer
8k views

How to properly configure snmpd?

I installed snmp on CentOS 7.2, like so: yum -y install net-snmp net-snmp-utils I made a backup of my snmpd.conf file: cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig then I cleared the text, ...
1
vote
0answers
233 views

Redirect SNMP ports to router for use with openHAB SNMP binding

OpenHAB provides an interesting SNMP binding that would allow me (I think) to get network bandwidth use statistics that may be used in rules. Interesting as the may be, it seems that openHAB cannot ...
0
votes
1answer
5k views

Which OID to check for extend-sh script output in Net-SNMP snmpd?

I extended(extend-sh) the functionality of Net-SNMP snmpd with a shell script which echoes "empty" in case the condition checked with the script is true. However, there seems to be multiple OIDs which ...
0
votes
1answer
856 views

How does DisplayString SIZE in MIB files affect the output of snmpget?

I have a Cisco switch which SNMP agent returns up to 256 characters long interface descriptions(ifAlias). For example here I receive an 100 characters long interface description: $ snmpget -m ./IF-...
1
vote
2answers
803 views

setting snmp extensions in snmpd.conf

On our servers ( debian, centos and ubuntu ) we set in snmpd.conf extend .1.3.6.1.4.1.2021.7890.1 distro "/bin/cat /etc/debian_version" This way a centralized monitor ( Observium ) read the OS ...
2
votes
1answer
91 views

How to find out if the script is running in Linux or OSX

I want to write a bash script to get some information of Switches through snmpbulkwalk. I would like to use the same script in Linux and OSX environments, so I want to know if there is a way to do a ...