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

pysnmp: send hex string in trap

What I want is to send snmp traps just as the way that one of our network equipment do. The trap contains a name-value of DataTime and it's something like HEX String. e.g. 1.3.6.1.4.1.193.82.1.8.1.4.0 : 07:de:07:10:0a:0c:1e:00:2b:08:00 When I use…
lowitty
  • 904
  • 1
  • 8
  • 13
0
votes
1 answer

PHP SNMP v2 Walk Fragmenting/Blocked

How do I set the maximum message size when using snmp v2 in PHP? I am using PHP to do an SNMP walk of devices, and my organization has very stringent firewalls in place. I am running into an issue where (snmp2_real_walk, or snmp2_walk) are…
Trenton
  • 148
  • 11
0
votes
0 answers

snmpset from CLI needs to be responded from snmp4j

I have a requirement to handle the snmpset command from the cli to my application running on a specific port and send out a reply back to the snmpset command if it is success/failure. Here are the steps I am doing snmpset -v 2c -r 0 -c public …
Vijay
  • 1
  • 2
0
votes
2 answers

Network discovery using broadcast snmp requests

I want to discover the printers in my sub-net. Can I do that using net-snmp as mentioned in this following link- https://sourceforge.net/p/net-snmp/bugs/2336/ But it doesn't seem to work? Should I enable any flag for broadcast in snmp_api to do…
user3651245
  • 5
  • 1
  • 4
0
votes
1 answer

crosscompile can't find header files for net-snmp (i686/mips64)

I'm currently trying to cross compile onto mips64 using a shared object library, when I run the following command: toby@cbmFinal:~/x-tools/mips64-n64-linux-gnu/bin$ ./mips64-n64-linux-gnu-gcc -I…
toocou
  • 11
  • 2
0
votes
1 answer

How to send my customized trap message to snmp manager?

In the below piece of code where to add my customized on-fly message Description : I have my manager running which is mentioned as NOCIP, Also have MIB file but on sending trap for specific OID the messages should vary though the trap is same for…
0
votes
1 answer

What sets SNMP error and error-index fields

I have read several RFCs about the SNMP protocol, and they are usually written in cryptic and opaque style, so I have probably missed the proper information and I apologize in advance for what is probably a simple question... I am unclear about what…
Didier
  • 36
  • 1
  • 7
0
votes
1 answer

Net-SNMP: snmpwalk "timeout: No Response from localhost:1161" using Net-SNMP v5.4.3

I'm new to Linux. I'm writing an SNMP extension agent using the MIB for Dummies (http://www.net-snmp.org/wiki/index.php/MIB_for_Dummies) config file (mib2c.mfd.conf). I successfully created my executable, adeSensorsTable, using my…
Kevin
  • 515
  • 4
  • 11
  • 22
0
votes
0 answers

Issue in adding new OID , receiving some garbage value

I have added a new node to the existing MIB tree. In the MIB definition file it is Counter32 as this will be unsigned long in c file. I have used data type in OID as ASN_COUNTER in c file and returning a hardcoded value. but when i do snmpwalk,…
tim
  • 1
0
votes
1 answer

Send snmp trap message to net snmp

I am trying to send a trap message from my agent to net-snmp but in my agent it looks like it's fine, however net-snmp doesn't show the message. I want to know if net-snmp knows how to handle a trap message?
dor_torge
  • 69
  • 2
  • 8
0
votes
1 answer

How to use variable list in Net-SNMP library

I'm doing some stuff with Net-SNMP library. Basically what I do is based on the sample application Simple_Application. What is not clear for me though is that part of code: for (vars = response->variables; vars; vars = vars->next_variable) { //…
UVV
  • 502
  • 8
  • 21
0
votes
1 answer

SNMP V3 and Perl

I'm trying to use SNMPget on linux to get information regarding devices on my network. I'm able to successfully use snmpget on the linux terminal but now would like to write a script in perl/python and have it do the work for me. SNMPget…
yusof
  • 143
  • 2
  • 14
0
votes
1 answer

How extract the package source into the some other directory in buildroot

Here my package is net-snmp. Here is the task : Addition of Net-SNMP Source directory at path personal/apps/snmp/ Requirement is that it should download from website if there is change in version name and it should patch , configure and build…
CJ_world
  • 45
  • 10
0
votes
1 answer

What is 'my-creds', 'my-area', and 'my-router' in these Python PySNMP codes?

I am new in using PySNMP module in Python. According to this user manual and this manual, the following python scripts perform similar things like the net-snmp command: net-snmp v1 command: snmpget -v1 -c public -ObentU 195.218.195.228…
userpal
  • 1,483
  • 2
  • 22
  • 38
0
votes
0 answers

Meaning of SNMP V2 Traps and way to customize it

Recently I am facing a problem with SNMP Trap generation. I have already configured my SNMP Trap and if any error occurs in hard disk I am getting the below trap. Trap Type = -89 Variables = [1.3.6.1.2.1.1.3.0 = 0:00:00.16, 1.3.6.1.6.3.1.1.4.1.0…
Souvik
  • 1,219
  • 3
  • 16
  • 38