RE: SNMP is listening on the wrong transport protocol and the wrong

2016-04-29 Thread jregovic
Does your snmdp.conf use 'agentaddress udp:161' to set the listening port? Having snmpd also listening on TCP 161 is mostly benign, but it looks like you don't have the correct option set. - Jim - Original Message - Subject: SNMP is listening on the wrong transport protocol

RE: how can I handle a Counter32 MIB?

2015-08-25 Thread jregovic
Have you tried ASN_COUNTER? - Original Message - Subject: how can I handle a Counter32 MIB? From: "Mostafa Salari" Date: 8/25/15 9:59 am To: net-snmp-users@lists.sourceforge.net Hello, In a subagent, when I want to update the value of an (for example) INTEGER mib, I use the f

RE: send a snmp trap

2014-04-08 Thread jregovic
Andrew,Your oght to be seeing some errors from your command. Assuming that 192.168.3.45 is your management statation and CISCO-13000 is the device, that device name needs to be a resolvable name or an IP.For example:$ snmptrap -v1 -c 506 10.228.70.123 .1.3.6.1.4.1.3607.6.10.30 CISCO-13000 6 3540 15

OID value returned for walk but not get

2013-03-18 Thread jregovic
Hi,I am attempting to integrate net-snmp with our HP hardware. I have loaded the cmaX module, and I am able to walk the Compaq MIB, but in at least one instance, there is a variable that returns "no such instance" when I try to read it via SNMP get, but it returns a value when I run an snmpwalk. I

RE: State Information in smnpset: where to keep it?

2013-01-08 Thread jregovic
One way to implement this is to have a structure that has backup values stored, such that you have the object you want to read and write, OID, and an placeholder old_OID.You can then iterate over the request varbinds, storing any old values until such time as you commit them, or undo the set. ---

Problem with RPM build

2012-10-30 Thread jregovic
I am attempting to use the RPM spec files from git://pkgs.fedoraproject.org/net-snmpbased off some changes that I have made. The rpmbuild gets most of the way through and I see this error:RPM build errors:    File must begin with "/": %{_unitdir}/snmp*Iam running this on CentOS 6.0, any ideas? ---

How to handle HUP signals

2012-10-12 Thread jregovic
Is there a good way to determine that a HUP signal has been received from within a config handler?If I have created a config handler to dynamically assign indexes and I track the next available index with a variable, how can I tell that I shoudl reset my index variable within my config handler?Than

Question about writing table entries

2012-09-28 Thread jregovic
What is the best way to write an entire entry to table?I am trying to implement a writeable logMatch table so that I can dynamically create logMatch entries without having to edit config files. I have no trouble implementing writes to objects that already exist, but I am stuck on how to implement m

Last match text for logMatch

2012-06-15 Thread jregovic
I see there is no MIB entry for tracking the last text matched by a log match entry.Has anyone ever added this? Is this on any road map?It would be incredibly useful when sending traps to send the entire line that matched to an NMS in order to extract fields from the match. ---