Re: agent_check_and_process: select info

2009-09-14 Thread Bart Van Assche
On Tue, Sep 15, 2009 at 1:07 AM, Mike Ayers wrote: >> From: Sam V [mailto:sbazd...@hotmail.com] >> Sent: Monday, September 14, 2009 7:04 AM > >> Thanks, let me know if you have an idea for a fix? It is easy to >> reproduce. Just let snmp agent run then set the system date and time >> backwards. >

RE: agent_check_and_process: select info

2009-09-14 Thread Mike Ayers
> From: Sam V [mailto:sbazd...@hotmail.com] > Sent: Monday, September 14, 2009 7:04 AM > Thanks, let me know if you have an idea for a fix? It is easy to > reproduce. Just let snmp agent run then set the system date and time > backwards. What is the operational requirement for setting the

Re: SNMP Perl module and MIB navigation

2009-09-14 Thread Dave Shield
2009/9/9 Wes Hardaker : >> On Fri, 4 Sep 2009 16:53:07 -0400, Daniel Savard >> said: > > DS> For example, I want to output a line like: > DS> ATTR(=,$ENTERPRISE),VALUE(=,"$var"); > > DS> where $var is actually replaced by the value of the variable and > $ENTERPRISE > DS> must be output a

Re: New mib not identified by default in snmpwalk

2009-09-14 Thread Dave Shield
2009/9/8 Sathish Chandrasekaran > 1) snmpwalk  doesnot retrieve my mib by default . > 2) snmpwalk on privatemib::mibobject retrieves values of my mib, no issues As Wes says, that's normal. See the FAQ entry     Why can't I see values in the  tree? > I don't see any REGISTER_MIB call as we see

GCC warnings compiling mib2c output

2009-09-14 Thread Christopher Nelson
We're using Net-SNMP 5.2.2. Some time ago, we generated MIB code with mib2c. Recently, we upgraded compilers and we're seeing a lot of warnings about "dereferencing type-punned pointer will break strict-aliasing rules" in code like: if (retval) { ui =

Configure won't create Makefile

2009-09-14 Thread Bill Dodge
I have successfully set up net-snmp on 5 Red Hat servers but can not complete the process on a sixth server. The first time I did configure the make complained that there was something missing so I installed the recommended packages and tried to configure again. When I did make there was no Ma

Re: Not full libraries installed by "make install", Why?

2009-09-14 Thread Wes Hardaker
> On Thu, 10 Sep 2009 08:00:10 +0900, "Hiroaki Ohno" > said: HO> When running "make install" on Net-SNMP 5.4.2.1, which libraries should be HO> installed? All of them, assuming you built with the agent support turned on (it's on by default, but there is a configure switch to turn it of

prTable reports running processes as NOT running!

2009-09-14 Thread Hiroaki Ohno
Hi there, Although now I'm trying to get prTable information by snmpwalk, every processes seem to be "No process running." at prErrMessage, and all prCount objects show "INTEGER: 0" every time. The configured version is Net-SNMP 5.4.2.1. As my result of searching for the past similar informa

Re: Counter64

2009-09-14 Thread Wes Hardaker
> On Thu, 10 Sep 2009 17:20:29 +0530, Darshan Ghumare > said: DG> Is it safe to use Couter64 for that variable whose data type is __u64(On DG> Linux)? No, you need to pull out the 64bit data and convert that to the internal C64 structure within the Net-SNMP code base (which is designed

Re: Any limitation on the number of ipAddressTable entries for a given system

2009-09-14 Thread Wes Hardaker
> On Fri, 11 Sep 2009 12:12:41 +0530, bheemesh v said: bv> Is there any limitations for the number of IP Table entries with IP-MIB. No, in theory. You'd be limited by memory and/or processing power. bv> When ever we try to configure large number of VLAN's or VRF's, the bv> netsnmp (snmpd)

Re: Cached Tables and Injected Handler interaction with the timer

2009-09-14 Thread Wes Hardaker
> On Fri, 11 Sep 2009 16:17:35 -0700, "Jared Smith (jarsmith)" > said: JS> So I guess there really isn't a problem here just an inconsistency JS> in terms of when the free method is called; however it appears not JS> to be a real problem in terms of the end result. That's what I suspect

Re: configure net-snmp as per RFC needed

2009-09-14 Thread Wes Hardaker
> On Fri, 11 Sep 2009 15:05:18 +0530, bheemesh v said: bv> Is there a way to configure against a unique set of RFC's supported bv> in net-snmp? RFCs contain many things, including MIBs, protocol features, etc. Our configure script options (run ./configure --help) lets you control most of th

Re: snmpget , Hex-string format

2009-09-14 Thread Wes Hardaker
> On Mon, 14 Sep 2009 11:00:23 +0530, Raghu Ramaraj > said: RR> I have included my own MIB file under .../mibs/ dir. And I have RR> created my subagent by using mib2c You didn't set the length variable in your code properly. Your returned string was 3 characters long, but you set the l

Re: Thread base SNMP

2009-09-14 Thread Wes Hardaker
> On Fri, 11 Sep 2009 15:46:58 +0530, Darshan Ghumare > said: DG> So how should I go about it? Whether NET-SNMP would be a good DG> choice or something else? Net-SNMP's agent does not support threading at all at this point. There are people that have successfully run the agent in it's

Re: prTable reports running processes as NOT running!

2009-09-14 Thread Wes Hardaker
> On Tue, 15 Sep 2009 00:59:04 +0900, "Hiroaki Ohno" > said: HO> Although now I'm trying to get prTable information by snmpwalk, HO> every processes seem to be "No process running." at prErrMessage, HO> and all prCount objects show "INTEGER: 0" every time. The configured HO> version

Re: snmpget , Hex-string format

2009-09-14 Thread Mishustin Kirill
Hi, Raghu Ramaraj wrote: > iso.3.6.1.3.96.1.1.0 = Hex-STRING: 48 41 49 00 00 00 00 00 00 00 00 00 > 00 00 00 00 > > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > Judging by "iso.3.6.1.3.96.1.1.0" tools don't see your mib. You should no

RE: agent_check_and_process: select info

2009-09-14 Thread Sam V
Thanks, let me know if you have an idea for a fix? It is easy to reproduce. Just let snmp agent run then set the system date and time backwards. > Subject: Re: agent_check_and_process: select info > From: ma...@lysator.liu.se > To: sbazd...@hotmail.com > CC: net-snmp-cod...@lists.sourcefor

Thread base SNMP

2009-09-14 Thread Darshan Ghumare
Hi all, I have a project in which SNMP agent would be one of the thread which will satisfy all SNMP requests. To satisfy request SNMP-Agent need to refer to data structures which are maintained by other threads in same project. This project would be run on embedded system. The