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

Python Netsnmp and snmpwalk

I am trying to use snmpwalk to gain some info and stats on some interfaces. I use this: import netsnmp serv = "172.16.1.1" snmp_pass = "private" oid = netsnmp.VarList('IF-MIB::ifName','IF-MIB::ifDescr') snmp_res = netsnmp.snmpwalk(oid, Version=2,…
Matt
  • 57
  • 1
  • 2
  • 9
2
votes
2 answers

SNMP TRAPS sending to other file, than /var/log/messages

I have configuration snmptrapd.conf like below: disableAuthorization yes authCommunity log,execute,net public I wanted to redirect all messages for other file, ex. /var/log/snmp.log, not for /var/log/messages. I tried also reconfigure rsyslog.conf…
Grzegorz
  • 33
  • 1
  • 4
2
votes
1 answer

How do I build my OID tree under my PEN instead of an extension of Net-SNMP?

Currently, my OIDs branch from Net-SNMP using extend, which results in an OID like this: SNMPv2-SMI::enterprises.8072.1.3.2.4.1.2.1.49.1258 or without the MIB: .1.3.6.1.4.1.8072.1.3.2.4.1.2.1.49.1258 8072 is Net-SNMP, 49 is the decimal value of an…
Ctrl S
  • 1,053
  • 12
  • 31
2
votes
1 answer

Error - (noSuchName) There is no such variable name in this MIB - netSnmp?

I have made a private MIB - RASP-MIB. Here is the mib RASP-MIB DEFINITIONS ::= BEGIN IMPORTS OBJECT-TYPE, MODULE-IDENTITY,enterprises FROM SNMPv2-SMI TEXTUAL-CONVENTION FROM SNMPv2-TC; rasp MODULE-IDENTITY …
Bali Vinayak
  • 289
  • 1
  • 4
  • 11
2
votes
1 answer

C NET-SNMP Get and Set specifically via MIB Name, Not OID

I have written and am testing software for a generic SNMP client module in C as well as an implementation using this generic module. I am having trouble getting a get request to work by passing in a MIB name(e.g. sysDescr) instead of an OID(e.g.…
Furynolo
  • 41
  • 8
2
votes
1 answer

Re-read the configuration 'snmpd.conf' file? HOW?

Well, a year back I developed an agent module for net-snmp to monitor disk usage/statistics. It was locally installed on a system in LAN. Now, I intend to use the same module for my Home PC and to trap over it from office.. But my ISP does not…
user517400
2
votes
2 answers

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 directory, but I want to make my own bash script to be…
Adrián Juárez
  • 183
  • 5
  • 14
2
votes
1 answer

Defining Scalar Sequence of Dynamic Length in MIB

I'm trying to figure out a way to define a dynamic length sequence of scalars (in this case IpAddress) in a MIB file. I'm fairly certain that just using SYNTAX SEQUENCE OF IpAddress will not work, and I'm unsure of how/if to define a custom entry…
Matt
  • 4,849
  • 3
  • 26
  • 23
2
votes
3 answers

Calling a function in Perl with different properties

I have written a Perl script that would start a SNMP session and extracting the data/counters and it's value to a csv file. There are 7 perl scripts; different properties/definition/variables on the top.. but the engine is the same. At this point,…
LynxLee
  • 321
  • 1
  • 6
  • 17
2
votes
1 answer

SNMP pass-through command not returning with snmpget

I am trying to get some scripts working in my snmpd.conf file using pass, however calling snmpget on the OID is returning No Such Instance currently exists at this OID in the snmpd.conf I have pass .1.3.6.1.4.1.13732.100.2.1 /bin/sh …
Tyler
  • 955
  • 9
  • 20
2
votes
3 answers

How can my perl script receive SNMP traps from a managed system?

I would like to do the following, but I'm not sure I'm using the best method: A perl script, running on a Sparc/Solaris 10 machine, should wait for incoming SNMP trap packets (on port 162 for instance). When it receives a trap, it should decode it…
Jolta
  • 2,620
  • 1
  • 29
  • 42
2
votes
3 answers

maximum allowed length for read and write community for SNMPv2c

Can you please tell me the maximum length allowed for SNMPv2c read and write community .I didn't find any relevant doc which can provide description about the same . Thanks -Ravi
Ravi
  • 71
  • 1
  • 7
2
votes
0 answers

No Such Instance currently exists at this OID snmpset

I am trying to set some OID but seems that it gives below error "No Such Instance currently exists at this OID" which should not be the case as i am able to get/walk same OID. so its present. root@m-snm:~# snmpwalk -v 2c -c public 10.2.4.19…
pkm
  • 2,683
  • 2
  • 29
  • 44
2
votes
0 answers

How to pass IPv6 parameter for snmp session creation using

I am using SNMP package to create SNMPv3 session. But I am not sure how to pass transport information as UDP6 as I think default behavior is UDP. As far as I know that when use Net::SNMP to create session then we have "domain" parameter to classify…
Ravi
  • 71
  • 1
  • 7
2
votes
1 answer

Can't locate Net/SNMP.pm in @INC (you may need to install the Net::SNMP module

as to the title, i faced error Can't locate Net/SNMP.pm in @INC (you may need to install the Net::SNMP module while trying to run my perl script from netbeans. Its clearly says i need to install Net::SNMP module. But, i have already installed…