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
0 answers

net-snmp TUT:Writing a MIB Module doesn't work

I just follow the net-snmp tutorial step by step, I really can't get the right result. here is the link HERE I'm facing the same problem, I even didn't pass the tutorial. here are my details: my configure command: ./configure…
Albert Chen
  • 1,331
  • 1
  • 12
  • 13
0
votes
1 answer

PHP, SNMP, and MIBs - Working in CLI

EDIT I feel pretty stupid about this. I just now noticed that on the CLI it returned the oid.1. PHP was just erroring out due to me not having the .1 at the end of the oid. Here's what I have. I'm trying to poll a Cisco device to gather…
koeus
  • 23
  • 5
0
votes
2 answers

Send net-snmp INFORM calling send_v2trap() in C

This tutorial explains how to send a SNMP TRAP calling send_v2trap() in C. How do I send a SNMP INFORM instead? The manpage says I can send INFORMs, but it doesn't say how.
lseki
  • 351
  • 6
  • 21
0
votes
2 answers

SNMP VARBIND Values

I'm not really sure where to ask this question. I have been searching for an answer so I will try asking here. We have an application that communicates with our devices via SNMP. Our GET messages are triggering IPS/IDS system alerts because of value…
Tsukasa
  • 6,342
  • 16
  • 64
  • 96
0
votes
0 answers

SNMP4J Agent and Net-SNMP "client"

I'm still learning SNMP, so be gentle please. I did an agent with snmp4j and it seems to be working, i have a scalar that should register how much time has passed since the agent started. I just have to do the agent, then i would like to see the…
0
votes
2 answers

Netconf + Yangcli + get + filter

I've just started to use Netconf server and I want to play with it. I installed OpenYuma as netconf server, and for a client I would use the provided yangcli as a first approach. My problem is that I cannot use filtering in get commands, since in…
cs.lev
  • 182
  • 1
  • 11
0
votes
1 answer

snmptrap : host Name or service not known

I'm trying to send a snmp trap with these command line : snmptrap -v 1 -c public host '1.2.3.4.5.6' '192.193.194.195' 6 99 '55' 1.11.12.13.14.15 s "teststring" or snmptrap -v 2c -c public host "" UCD-NOTIFICATION-TEST-MIB::demoNotif \ …
DouglasAdams
  • 490
  • 7
  • 19
0
votes
1 answer

Forward new log messages via snmptrap

I try listen new file lines and resend it in snmptraps: #!/usr/bin/env python import subprocess sreader = "tail -f /root/zsv/log" ssreader = subprocess.Popen(sreader,shell=True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT) strap = 'snmptrap -c…
0
votes
1 answer

How to get SNMP table in Python

How is it possible to implement getting of SNMP table in Python + NetSnmp? Simple set and get for Python + NetSNMP work fine: myArgs = ['enterprises', 'set', '27142.1.1.20.1.2.1.1.1', '1', 'INTEGER'] var = netsnmp.Varbind(*myArgs) res =…
Konstantin
  • 2,937
  • 10
  • 41
  • 58
0
votes
1 answer

Manipulating Shell Script - Find Instr Remove Padding & White Space?

My scanner has a custom OID for last page scanned. I need to take the HEX value and remove all the spacing. So I need to do an instr look up and manipulate my string from there so the only results are "FF08FE and so on" instead of the multi-line…
justZito
  • 569
  • 1
  • 10
  • 19
0
votes
1 answer

How to measure the SNMP performance of C when compared to other languages?

Iam looking at software that opens up a data set and grabs a list of server ips and pings them. Someone familar with this software packge says there is nothing else faster because the software is built on C++. Short of rebuilding the app in java is…
justZito
  • 569
  • 1
  • 10
  • 19
0
votes
2 answers

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 10.0.2.0/24 "" OID-value pairs It was getting hanged and…
0
votes
1 answer

snmp v1 Communication Models if i have many errors in the Getrequest message how to represent it using error index?

in Network managment systems using *SNMP version 1 * if i am requesting for any object and am using GetRequest(..) how it will work if many errors happens in the responce message ? and how to represent it using error index ? please remember that…
0
votes
1 answer

Reading SNMP values from a device with multiple view-based ACM contexts, using Net::SNMP

I am trying to use Perl and Net::SNMP to query a device that has multiple configured views/contexts (a Cisco ACE 4710, for example). The equivalent snmpwalk command is: snmpwalk -c public@CONTEXT_NAME -v 2c 1.2.3.4 '.1.3.6.1.4.1.9.9.480.1.1.2' I…
jimbobmcgee
  • 1,561
  • 11
  • 34
0
votes
1 answer

SNMP Oid Conversion Difference Between RHEL 6.3 and Solaris 10

I've been stuck at an issue of SNMP OID conversion for couple of days. We have a cpp program to poll cable modem, nowadays, we ported this application from Solaris 10 to Linux 6.3, everything works fine until we found that it got some SNMP trap…
Hang Pan
  • 11
  • 1