Hot answers tagged

8

As twalberg suggests, this is probably a 32-bit overflow problem. SNMP Interface Counters in are 32-bit (unsigned) by default. If your SNMP daemon and server OS support 64-bit counters they can be found in the ifXtable MIB (.1.3.6.1.2.1.31.1.1)


7

You can use Nmap's snmp-brute something like nmap -sU -p161 --script snmp-brute --script-args snmplist=community.lst 192.168.1.0/24


6

You have a fundamental misunderstanding of how SNMP works. Quick and dirty comparison: SNMP MIBs are the like hostnames. MIBs map OIDs to a friendly name -- for example .1.3.6.1.2.1.1.1.0 => SNMPv2-MIB::sysDescr.0 => Host Description (uname output). In order to retrieve information from an SNMP server (agent) that information must be published at a ...


5

There's nothing stopping you from using another enterprise's OIDs, but that would be inconsiderate. You're supposed to request your own Private Enterprise Number and use that in building your OIDs/MIBs.


4

This is usually related to the SNMP response not being received in a timely manner. Because SNMP uses UDP that could mean network congestion or host congestion caused the request/reply to be lost, but more commonly one of the two machines involved simply couldn't get around to dealing with the request in a timely manner and the other machine got sick of ...


4

For Ubuntu 12.04 (which was causing the same messages for me) the full steps to get SNMP working appear to be as follows : Install snmpd : apt-get install snmpd Ensure the multiverse repository is enabled : apt-get install python-software-properties add-apt-repository 'deb http://archive.ubuntu.com/ubuntu precise multiverse' apt-get update Install the ...


3

Access control is configured per transport. Try replacing rocommunity public with rocommunity6 public


3

The problem comes from the fork of snmpd during start. My service file (for Exherbo) forces snmpd to not use fork() (-f) and run the service with Type=simple. Type=forking is the good way for the default behavior of snmpd, but it is incomplete. It is highly recommended to specify PIDFile when using Type=forking because systemd is not always able to know ...


3

Nothing - In the same way that you can also use 8.8.8.8 as your IP if you don't connect to the internet. It's just a convention to prevent clashes between everyone saying 'ok .1 is mine!' If you want to be able access their oids and yours together, you'll obviously run into issues if you don't play nicely.


3

I posted this in the chat window awhile back, but it looks like you may have left it. Your snmptt.ini file has the following translation options set : translate_log_trap_oid = 1 translate_value_oids = 1 translate_enterprise_oid_format = 1 translate_trap_oid_format = 0 translate_varname_oid_format = 0 translate_integers = 1 The interesting one is the '...


3

Windows does not come with a default SNMP client, so you would have to install software. I recommend the Net-SNMP suite. http://www.net-snmp.org/


3

Forget about installing from source code; packages are already available. yum install net-snmp net-snmp-utils


2

rocommunity public But please rethink this. Letting anybody in the world get your SNMP data is generally a bad idea.


2

Here's a script that I use with OpenNMS that will generate an XML file containing snmp-enabled devices and their respective communities. It accepts IP addresses and multiple community names as input files.


2

Many monitoring applications will include a network discovery tool which can query snmp on all devices it discovers. Some will even allow you to enter multiple SNMP community strings and it will try each of them.


2

Which version of SNMP protocol do you use? SNMP v1 does not supports 64bit counters. It's an old issue with Cacti, just switch to "Version 2" on relevant "Device"


2

A while ago there was a patch for Net-SNMP 5.5 which introduced a new option realStorageUnits for the configuration file. From the Redhat Bugreport #748410: To address this issue [negative hrStorageSite values], this update adds a new option to the /etc/snmp/snmpd.conf configuration file, realStorageUnits. By changing the value of this option to 0, ...


2

From the manpage for free(1): cache Memory used by the page cache and slabs (Cached and Slab in /proc/meminfo) free includes slab allocation in cache; UCD-SNMP-MIB doesn't. If you add in the slab allocation, you get: UCD-SNMP-MIB::memCached.0 + slab = 44238560 + 23961488 = 68200048 KB which is much closer to what ...


2

So can anyone say how to do community string indexing for non-cisco switches? This is how to poll Q-BRIDGE-MIB for mac-addresses from the only non-Cisco I have, a DLink DGS-3200. I'm not using [community@vlan] for non-Cisco switches. Indexing BRIDGE-MIB with [community@vlan] only applies to Ciscos. I expect any non-Cisco switch, which supports Q-BRIDGE-...


2

There are IncludeDir and IncludeFile options available from RHEL/Centos 6.5: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/6.5_Technical_Notes/net-snmp.html


2

All companies that set up a privately maintained MIB (usually called an "enterprise" MIB) are assigned a MIB designation number. The Dell enterprise MIB assignment number from IANA is 1.3.6.1.4.1.674 (not 1.3.6.1.4.1.181), and looking up the DRAC SNMP traps available on this MIB from http://www.oidview.com/mibs/674/IDRAC-MIB-SMIv2.html shows the trap message ...


1

I think Red Cricket has the right idea. Net::SNMP::Interfaces->new will return undef if something went wrong. Can you try executing the following? #!/usr/bin/perl use strict; use warnings; use Net::SNMP::Interfaces; use Data::Dumper; my $interfaces = Net::SNMP::Interfaces->new( Hostname => 'localhost', Community => 'public' ) or die "...


1

as "work around" (even though it really not), one can use -c or -w instead of -r, as -r seems to have some sort of bug. # ./check_snmp --help | grep -E 'critical|warning' -w, --warning=THRESHOLD(s) -c, --critical=THRESHOLD(s) # example: # /usr/lib/nagios/plugins/check_snmp --hostname=X.X.X.X --community=X --protocol=X --oid=ifOperStatus.6 -c1 SNMP ...


1

Snmpbulkwalk initiates internal server repetitions to walk through mib tree. Server does not respond untill it retrives "max-repetitions" number of variables or end of mib tree is reached. Retrieving some variables may demand valuable time. Important note: snmpwalk walks trough a requested subtree exactly but snmpbulkwalk may retreive additional variables (...


1

First, load the custom MIB(s) on your management station (the one you are using to query the device). You should follow this guide. In short: (1) obtain custom MIB(s) for your device from manufacturer (2) put the following lines in snmp.conf file (e.g. /usr/local/share/snmp.conf) or in a personal file (e.g. $HOME/.snmp/snmp.conf): mibs +ALL Then, ...


1

The snmpd.conf file should contain a few other parameters by default, among them is the community "public" which has access to the system info MIB (OID 1.3.6.1.2.1.1 ). This should work for any version of SNMP. You can enable broader access to other MIBs, restrict by IP etc with very little effort.


1

You can configure snmptrapd to handle traps with a script; this is the traphandle directive. I believe the configuration file is /etc/snmp/snmptrapd.conf. For example, you can use: traphandle IBM-TS3500-MIBv1::ibm3584MIBObjectsTD.0 /usr/local/bin/myscript.pl Or, to parse everything, you can use: traphandle default /usr/local/bin/myscript.pl The ...


1

Turns out the issue was DNS look ups timing out so I just pushed the -n flag to the options lines in /etc/defaults/snmpd. This was on Debian 6.0. # snmpd options (use syslog, close stdin/out/err). SNMPDOPTS='-Lsd -Lf /var/log/snmpd.log -n -u snmp -g snmp -I -smux -p /var/run/snmpd.pid' # snmptrapd options (use syslog). TRAPDOPTS='-Lsd -...


1

Yes. In fact if you check the man page for snmpd.conf you'll discover the extend directive: extend [MIBOID] NAME PROG ARGS works in a similar manner to the exec directive, but with a number of improvements. The MIB tables (nsExtendConfigTable etc) are indexed by the NAME token, so are unaffected by the order in which entries are read from the ...


1

The default net-snmp copy of SNMPv2-SMI has a definition for zeroDotZero... [mpenning@lnxlmf ietf]$ cd /usr/share/snmp/mibs/ [mpenning@lnxlmf mibs]$ grep zeroDotZero SNMPv2-SMI.txt zeroDotZero OBJECT-IDENTITY [mpenning@lnxlmf mibs]$ It turns out that I had installed an old copy of SNMPv2-SMI.my in my Cisco MIBs directory... this copy of SNMPv2-SMI.my ...



Only top voted, non community-wiki answers of a minimum length are eligible