Re: mac os x 10.3.4 + net-smtp-5.1.1

2004-06-08 Thread Niels Baggesen
On Tue, Jun 08, 2004 at 01:43:09AM +0200, Andrea Riela wrote:
> >Change "extern uint32_t ipaddr_return" to "extern u_int32_t ipaddr_return".
> 
> Thanks Frank, now all works fine :)
> Probably that needs a little note in the readme.osx.

NO, that declaration should never have been there, and it has already been
removed for future releases.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Can't read/write pipe using PASS

2004-06-21 Thread Niels Baggesen
On Fri, Jun 18, 2004 at 09:56:06AM -0500, [EMAIL PROTECTED] wrote:
> When I use the pass directive to start up my application, I can't use a
> pipe.  I can't even do 
> fprintf(stderr, "message") <- this should ALWAYS work.

No, the agent may very well have closed stdout as well as stderr ...

> When I run my app at the command line, it works fine.  The pipe works and
> the output file is created.  When I run it from the agent, the agent gets
> the correct output, but the pipe doesn't work, and the output file IS NOT
> created.

Where are you looking for the file? The agent will change directory to /
when it daemonizes.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: OCTET-STRING index Problem

2004-06-21 Thread Niels Baggesen
On Fri, Jun 18, 2004 at 06:00:33PM +0200, Maurizio RUBINI wrote:
> When i type the command :
> 
> snmpget -v2c -c public localhost procEnabledName.\"process3\"
> 
> the result is :
> procEnabledName."process1": Unknown Object Identifier (Index out of range: 
> "process1 (procEnabledIndex))
> 
> and No trace DEBUG is generated by snmpd,

This is snmpget that rejects the oid, it is never send to snmpd. Could
you post the complete mib, and preferably a cut and paste of the error
(the above is obviously not, as it changes process3 to process1)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: usmStatsNotInTimeWindows issues

2004-06-24 Thread Niels Baggesen
On Thu, Jun 24, 2004 at 01:36:44PM +0100, Dave Shield wrote:
> I'm not quite sure where you got that idea from, Robert.
> I'd also prefer to see an indication that this is a CVS-based version
> of the code.

I fully agree. The first thing I do after running cvs update is to patch
snmp_version to say 5.1.2.pre2+-mm-dd

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: How to set a table's field

2004-06-24 Thread Niels Baggesen
On Thu, Jun 24, 2004 at 11:16:45AM -0700, David T. Perkins wrote:
> A set to object office."Rodolfo Giometti" with value "Colognora"
> should change it, assuming you have authorization to modify
> values.

Which, given the net-snmp tools, would amount to

snmpset  SELTASYS-MIB::office.\"Rodolfo Giometti\" = "Colognora"

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: problem in sending request to multiple hosts

2004-06-24 Thread Niels Baggesen
On Thu, Jun 24, 2004 at 12:43:58AM +0530, Nakul Aggarwal wrote:
>   In the program "asyncapp.c" (as given on site) I have list of 1583 
> hosts and in oid list just 1 oid.but when i send request to these hosts 
> after a value of "1021" which is fixed for the remaining hosts it gives 
> the following error 
> 
>   "snmp_open" error : Unknown host

Just a guess, but does your system have a limit on the number of open
files close to 1024?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Cisco-Config-Copy-mib and Net-SNMP

2004-06-29 Thread Niels Baggesen
On Thu, Jun 24, 2004 at 04:53:07PM -0400, Steve Van Wasshenova wrote:
> Thanks for providing a free SNMP agent that works!  After a little bit
> of reading, I was able to configure net-snmp to do almost everything
> that I need to!  Unfortunately, I am having a problem with the
> Cisco-config-copy-mib, and specifically the ccCopyServerAddress
> Object-type.  I am trying to issue this SNMP command (pretty much, use
> TFTP to get a running config) :
> 
> C:\usr\bin>snmpset -v 1 -c public 10.10.10.2 ccCopyProtocol.111 integer
> 1 
> ccCopySourceFileType.111 integer 3
> ccCopyDestFileType.111 integer 1
> ccCopyServerAddress.111 IpAddress A.A.A.F 

Please read the man page for snmpset. You should use 'a' as the type for
an IpAddress

> ccCopyFileName DisplayString config.txt

Again, read the man page. A string is specified with 's'
 
In general, things will work out OK if you use the '=' pseudo type
specification (when you have the MIB file loaded)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: snmpd.conf network wildcards

2004-07-01 Thread Niels Baggesen
On Thu, Jul 01, 2004 at 02:27:46PM -0500, [EMAIL PROTECTED] wrote:
> Is there any way to make the following line use wildcards for the IP address
> (mynetwork)?  

Use the special token "default" (without quotes) or 0.0.0.0/0

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: IPv6

2004-07-01 Thread Niels Baggesen
On Thu, Jul 01, 2004 at 03:09:40PM -0500, [EMAIL PROTECTED] wrote:
> Do the net-snmp tools support IPv6 ?

If your OS supports it, and if you enabled it during configure

> If so, what command line switch would I give , say, snmpget?

snmpget ::1 sysDescr.0

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: IPv6

2004-07-01 Thread Niels Baggesen
On Thu, Jul 01, 2004 at 05:20:50PM -0500, [EMAIL PROTECTED] wrote:
> Isn't ::1 for localhost? 

Yes

> That is a good place to start, but ultimately I will need to use a full IPv6
> address for a remote SNMP agent.
> 
> Would that be similar, in that you just replace ::1 with the full IPv6
> address?

Yes, or a hostname that resolves to an IPv6 address

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Snmpset from local and remote

2004-08-05 Thread Niels Baggesen
On Thu, Aug 05, 2004 at 02:54:27PM -0700, Fong Tsui wrote:
> I am running net-snmp 5.0.9 on linux. I am testing to set an integer which is  out 
> of range.
> I have a master agent and a subagent.
> 
> 1) When I run snmpset from localhost, it seems the master checks oid validation 
> first. it gives:
> .1.3.6.1.2.1.16.1.1.1.21.65536: Unknown Object Identifier (Index out of range: 65536 
> (etherStatsIndex))

$ snmptranslate -Td -mall 1.3.6.1.2.1.16.1.1.1.1
RMON-MIB::etherStatsIndex
etherStatsIndex OBJECT-TYPE
  -- FROM   RMON-MIB
  SYNTAXInteger32 (1..65535)
  MAX-ACCESSread-only
  STATUScurrent
  DESCRIPTION   "The value of this object uniquely identifies this
etherStats entry."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) rmon(16)
  statistics(1) etherStatsTable(1) etherStatsEntry(1) 1 }

so, the index you specified is out of range according to the mib.
snmpset detects this, and refuses to send the request to the agent.
The make snmpset omit this check, use the -Ir option.

> 2) However, if I run from remote machine (the same net-snmp snmpset), it gives:
> Error in packet.
> Reason: (tooBig) Response message would have been too large.
> Failed object: iso.3.6.1.2.1.16.1.1.1.21.65536

In this case snmpset does not have access to the mib file, so it cannot
perform the check. But seems that the agent did something strange in
this case ...

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: configure net-snmp-5.1.2

2004-08-27 Thread Niels Baggesen
On Thu, Aug 26, 2004 at 12:52:26AM -0700, arya sby wrote:
> com2sec readonly 202.152.53.36/9 public

Interesting ...

> com2sec readonly 192.168.0.0/24   public

...
> snmpwalk -v 1 -c public localhost system
>  result is :
> no response from localhost

You did not allow localhost in those com2sec entries ...

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Creating Solaris Packages

2004-11-01 Thread Niels Baggesen
On Mon, Nov 01, 2004 at 12:41:25PM -0600, Jason Frank wrote:
> Tested that out too.  Same problem exists, it's not passing the prefix 
> or exec_prefix down either:
> 
> bash-2.05$ make install prefix=`pwd`/pkgroot/ exec_prefix=`pwd`/pkgroot/

For the internal packages that I build I use

   prefix=$insttmp exec_prefix=$insttmp COPY_PERSISTENT_FILES=no \
   make -e install

And then I have a postinstall script that handles the
COPY_PERSISTENT_FILES part

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
___
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CVS: net-snmp/agent/mibgroup kernel_sunos5.c,5.11.2.2

2005-10-18 Thread Niels Baggesen
On Mon, Oct 17, 2005 at 11:19:15PM +0200, Thomas Anders wrote:
> Niels Baggesen wrote:
> >Update of /cvsroot/net-snmp/net-snmp/agent/mibgroup
> >In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22582/agent/mibgroup
> >
> >Modified Files:
> >  Tag: V5-2-patches
> > kernel_sunos5.c 
> >Log Message:
> >Fix a flipping lo interface by fixing getKstatInt to do as documented
> 
> You are aware that we're in "critical bug fixes only" RC stage for 
> V5-2-patches, aren't you? So please elaborate ...

Ooops, sorry, no I hadn't realised. I have just recently returned from 3
weeks of vacation, and I am trying to catch up. This was a patch that I
unfortunately didnt get to submit before I left.

The problem is that getKstatInt isn't consistent in selecting return
values, and some places expects nonzero to be failure (as documented),
and others expect zero to be failure. And the function isn't even
consistent internally.

The problems stems from a patch that Wes applied back in May, but I have
just recently upgraded my production Solaris boxes and started seeing
BigSister complainingi about flipping UP status.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Solaris getKstatInt fix (was: Re: CVS: net-snmp/agent/mibgroup kernel_sunos5.c,5.11.2.2)

2005-10-18 Thread Niels Baggesen
On Tue, Oct 18, 2005 at 01:17:52PM -0400, Robert Story wrote:
> I was inclined to agree until I took a look at the code in question. We've
> gone from setting an error for (rc < 0), to (rc == 0) and now (rc != 0). This
> looks like either people don't know what they are doing, or the error
> condition varies by os/kernel version.

Correct. The function has all the time been documented as returning zero
for ok. At some point in time somebody has used it with incorrect checks
for ok returns. I have been over all uses and the complete code to make
sure all agrees on the head documentation. To make things even more
complicated it could even return an uninitialized status code.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Testing the new snmpnetstat

2005-11-16 Thread Niels Baggesen
It seems that the latest 5.2.2 rc will not help with testing the new
snmpnetstat. There is a missing SUBDIRS=snmpnetstat in apps/Makefile.in
so it never gets compiled or installed

:-(

I guess we should add that to expose snmpnetstat and its wrapper to some
testing. I could fix a bunch of warnings at the same time ...

Opinions?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Monitoring processes on Windows 2000 using Net SNMP running on Cygwin - Spaces in Path Problem

2005-11-18 Thread Niels Baggesen
On Fri, Nov 18, 2005 at 09:28:57AM +, Mark Harper wrote:
> I am having problems monitoring processes through Net SNMP on Cygwin on
> a Windows 2000 machine.
> 
> The Cygwin ps command,
> ps -eW works fine and picks up the windows processes. However the cygwin
> ps command gives the full path name of the process rather than just the
> executable name.  I am unable to set up my snmpd.conf proc command to
> handle spaces in the path e.g.

Doesn't it work just to walk the hrSWRunTable? It ought to work
natively.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Monitoring processes on Windows 2000 using Net SNMP running on Cygwin - Spaces in Path Problem

2005-11-20 Thread Niels Baggesen
On Sun, Nov 20, 2005 at 10:33:03AM -0500, Robert Story wrote:
> On Fri, 18 Nov 2005 19:12:05 -0500 Alex wrote:
> AB>   c:\Progra~1\MOZILL~1\
> 
> This should probably make it's way into the documentation somewhere.

I dont think you can make the cygwin ps use the 8.3 name in any way.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: problems with distributed mibs?

2005-11-30 Thread Niels Baggesen
On Wed, Nov 30, 2005 at 10:30:30AM +, Dave Shield wrote:
> On Tue, 2005-11-29 at 18:26 +, Patrick Welche wrote:
> > TEXTUAL-CONVENTION MACRO (lines 8..48 parsed and ignored).
> 
> I'd be tempted to simply comment out these particular macro.
> definitions, since they're hardcoded into the MIB parser, and

Rather, that message should be removed from the parser, as it is more of
a debugging message, than a warning. There is nothing wrong with the MIB
or the processing of it.

> we've already tweaked these two MIB files anyway.

No, all the MIBS that we distribute are straight from the RFC document,
extracted by the scripts in the mibs directory. Nothing has been
tweaked.

/Niels

-- 
Niels Baggesen -- @home -- Århus -- Denmark -- [EMAIL PROTECTED]
The purpose of computing is insight, not numbers  --  R W Hamming


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: SNMPv1 vs SNMPv2

2005-12-06 Thread Niels Baggesen
On Tue, Dec 06, 2005 at 09:01:24AM -0500, Robert Story wrote:
> On 6 Dec 2005 12:00:11 - madhan wrote:
> MR> 
> MR> com2sec mynetwork0 0.0.0.0 public
> 
> don't us 0.0.0.0, use 'default'

Or use 0.0.0.0/0

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: disk monitoring

2006-01-06 Thread Niels Baggesen
On Thu, Jan 05, 2006 at 05:11:57PM +0530, [EMAIL PROTECTED] wrote:
> The query is as follows.
> 
> snmpget -v 1 -c public localhost UCD-SNMP-MIB::diskErrorFlag
> 
> and the output is
> 
> Error in Packet
> Reason:(nosuchName). There is no such variable name in this mib
> Failed Object:UCD-SNMP-MIB::diskErrorFlag

You need an index (or you should use snmpwalk)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: How can I debug the Link Up/Down trap failure

2006-03-24 Thread Niels Baggesen
On Thu, Mar 23, 2006 at 12:12:43PM +, Paulo Ricardo wrote:
> I don?t know if everybory knows but there is a Agent Address?s field in the 
> PDU section in the SNMP protocol. This field is filled with  machine?s  IP 
> source.

In the TRAP PDU, yes

> I would like to know  FROM WHERE  Net Snmp   get this IP Source, in a 
> Solaris environment.

It scans the list of active interfaces, and takes the first found active
IIPv4 address.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers   ---   R W Hamming


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: RFC 4293 IPv6 default router lifetime SNMP get error

2010-03-30 Thread Niels Baggesen
Den 30-03-2010 10:17, 陳雪姬 skrev:
> snmpget -v 2C -c IPv6Ready
> udp6:3ffe:501::100::303ffe:501:100:0213:49ff:fe00:2
> 1.3.6.1.2.1.4.37.1.4.4.254.128.0.4.0.0.0.0.2.20.56.255.254.238.127.125.4
>
> the result is index out of range
>
> we try to debug this and found out that ipDefaultRouterLifetime
>
> 1.3.6.1.2.1.4.37.1.4.4.254( value is not allow after 115 but when using
> IPv6 link-local address with FE80 254 value should be considered within
> normal range)
>
> We also try this snmp get operation on snmp++ platform
>
> snmpGet 3ffe:501::100:0213:49ff:fe00:2
> 1.3.6.1.2.1.4.37.1.4.4.254.128.0.4.0.0.0.0.2.20.56.255.254.238.127.125.4
> -v 2 -CIPv6Ready
>
> Oid =
> 1.3.6.1.2.1.4.37.1.4.4.254.128.0.4.0.0.0.0.2.20.56.255.254.238.127.125.4
>
> Value = 1800

You OID is wrong. The length of the InetAddress is not IMPLIED, so you 
need the length of the address in front of the 254. snmpget complains 
because your OID expects 254 bytes of address data, and they are not 
present.

Note also, you have specified a type of ipv6z(4), which requires 20 
bytes of address, but you have only specified 16.

The correct OID would (could) be 
1.3.6.1.2.1.4.37.1.4.2.16.254.128.0.4.0.0.0.0.2.20.56.255.254.238.127.125.4

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: snmp oid for cpu idle time on solaris returns 0

2010-06-01 Thread Niels Baggesen
Den 31-05-2010 13:02, rashmi.swar...@wipro.com skrev:

You pretty much answered that yourself:

> rsIdleModeTime is a snmp MIB supported by Solaris,

This OID belongs to Suns proprietary snmpdx agent. You will have to bug 
Sun (or install Net-SNMP as your agent)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--

___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Getting Hex-STRING instedof STRING

2010-06-08 Thread Niels Baggesen
Den 08-06-2010 11:17, Prakash skrev:
> But I am getting Hex-STRING value..

because the string contains a lot of non-printable bytes ... It would 
not make sense to declare it a printable string with all those 00 bytes 
and other strangenesses in it.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Session Pointer

2010-07-21 Thread Niels Baggesen
Den 21-07-2010 21:53, Brendan Tauras skrev:
> Now you're probably thinking why do asynchronous Single API requests.
> I have been tasked to write a snmp monitoring program.  It must
> request different OIDs at different time intervals, and one request
> cannot hold up another (e.g. walks can take a while).  I am using
> threads for timing different intervals and asynchronous methods to
> keep multiple requests in a single interval from delaying each other.

Well, that explains asynchronous, but why single session?

If you really use threads, why not a thread for each session, and then 
the pointer will be a thread local variable?

Otherwise, have you seen the async tutorial
http://www.net-snmp.org/wiki/index.php/TUT:Simple_Async_Application

Anyway, I don't see the problem of saving the opaque pointer inside the 
struct that the callback brings back to you with its opaque pointer.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


configure: This platform does not yet support hrSWInstalledTable rewrites

2010-07-22 Thread Niels Baggesen
Given that I am running RedHat 5 and Ubuntu 10.04 I am a bit surprised
to see (keep seing) this message.

It seems that this is caused by defining HAVE_LIBRPM depending on it
being required by swinst_rpm, and compiling swinst_rpm being dependent
on librpm being available. Circular dependancy.

I have tried to untangle this in the attached patch. Works for me!
but it would be nice if others could verify its general applicability

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming
Index: configure.d/config_os_functions
===
--- configure.d/config_os_functions (revision 19243)
+++ configure.d/config_os_functions (working copy)
@@ -85,7 +85,7 @@
 #   rpmGetPath check needs clean LIBS environment   (Linux)
 #
 if test "x$with_rpm" != "xno" && \
-echo " $module_list " | $GREP " host/hr_swinst " > /dev/null; then
+echo " $module_list " | $EGREP " 
host/(hr_swinst|data_access/swinst_rpm) " > /dev/null; then
 OLDLIBS=$LIBS
 LIBS=$LMIBLIBS
 AC_CHECK_FUNCS(rpmGetPath)
Index: configure.d/config_os_headers
===
--- configure.d/config_os_headers   (revision 19243)
+++ configure.d/config_os_headers   (working copy)
@@ -89,8 +89,7 @@
  [openssl/evp.h  security/cryptoki.h])
 
 # RPM subdirectory path   (Agent)
-if test "x$with_rpm" != "xno" && \
-echo " $module_list " | $GREP " host/hr_swinst " > /dev/null; then
+if test "x$with_rpm" != "xno"; then
   AC_CHECK_HEADERS(rpm/rpmdb.h   rpm/rpmfileutil.h)
 fi
 
Index: agent/mibgroup/host/data_access/swinst.h
===
--- agent/mibgroup/host/data_access/swinst.h(revision 19243)
+++ agent/mibgroup/host/data_access/swinst.h(working copy)
@@ -22,7 +22,7 @@
  */
 #if   defined( darwin )
 config_require(host/data_access/swinst_darwin)
-#elif defined( HAVE_LIBRPM ) && defined( linux )
+#elif defined( HAVE_RPM_RPMDB_H ) && defined( linux )
 config_require(host/data_access/swinst_rpm)
 #elif defined( HAVE_PKGLOCS_H ) || defined( hpux9 ) || defined( hpux10 ) || 
defined( hpux11 ) || defined( freebsd2 )
 config_require(host/data_access/swinst_pkginfo)
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: configure script settings?

2010-09-09 Thread Niels Baggesen
Den 09-09-2010 09:32, Dave Shield skrev:
> On 9 September 2010 08:18, Abraham Varricatt
>   wrote:
>> Is it possible to have some kind of settings file for the
>> "./configure" script?
>
> Try './configure -C '

or

./config.status --recheck

or create a one line shell script just with the configure call in it.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


CFV: man building fails on Solaris because og grep gnu-ism

2010-09-28 Thread Niels Baggesen
The man/Makefile.in uses grep -E in place of egrep, which is GNU
specific. Solaris 8 does not like that.

--- man/Makefile.in (revision 19393)
+++ man/Makefile.in (working copy)
@@ -82,7 +82,7 @@
 manaliases: Makefile
touch manaliases
@for i in $(MAN3_API) ; do\
-for j in `sed -n '/^.SH NAME/,/^.SH SYNOPSIS/p' $$i  | sed -e 
's/.- .*//' | sed 's/,.*//'  | grep -vE '^.SH ' `; do \
+for j in `sed -n '/^.SH NAME/,/^.SH SYNOPSIS/p' $$i  | sed -e 
's/.- .*//' | sed 's/,.*//'  | egrep -v '^.SH ' `; do \
 echo "making man page alias $$j -> $$i APIs" ;   \
 echo ".so man3/$$i" > $$j.3 ; \
   done   \

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


CFV: IPv6 support broken for Solaris 8

2010-09-28 Thread Niels Baggesen
IPv6 detection for Solaris was broken with the configure.d rewrite.
The following patch re-enables it.

--- configure.d/config_project_ipv6_types   (revision 19393)
+++ configure.d/config_project_ipv6_types   (working copy)
@@ -175,7 +175,7 @@
 #endif
 ]])
AC_MSG_CHECKING([[ipv6 stack type]])
-if test "x$ac_cv_have_struct_sockaddr_in6_sin6_addr" =
"xyes"; then
+if test "x$ac_cv_member_struct_sockaddr_in6_sin6_addr"
= "xyes"; then
v6type=$i
v6lib=dummy
        v6libdir=none

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: IPv6 support broken for Solaris 8

2010-09-29 Thread Niels Baggesen
Den 29-09-2010 18:02, Wes Hardaker skrev:
> I agree...  the issue is that the current symbol being checked for in
> the if statement doesn't match the symbol that is actually being set
> previously.

Yes, and the (frightening) result is that --enable-ipv6 is silently 
ignored. I could fear that this means that IPv6 has not been compiled on 
the BSD platforms for quite some time. (I don't have a BSD system handy 
any more, but I assume that they use use this generic branch)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: IPv6 support broken for Solaris 8

2010-10-05 Thread Niels Baggesen
Den 28-09-2010 15:20, Niels Baggesen skrev:
> IPv6 detection for Solaris was broken with the configure.d rewrite.
> The following patch re-enables it.

I count +3 (my self, Wes, Magnus), and two abstain (Dave and Bart), so I 
will go ahead and commit it when I have got the proper autoconf tools in 
place :-)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Does anyone have Linux on big-endian hardware?

2010-10-13 Thread Niels Baggesen
With Linux on x86(_64) hardware I get a bad netmask from the ipCidrRouteTable:

$ snmpwalk -OX localhost:6161 ipCidrRouteTable
IP-FORWARD-MIB::ipCidrRouteDest[0.0.0.0][0.0.0.0][0][172.18.0.1] = IpAddress: 
0.0.0.0
IP-FORWARD-MIB::ipCidrRouteDest[169.254.0.0][0.0.255.255][0][0.0.0.0] = 
IpAddress: 169.254.0.0
IP-FORWARD-MIB::ipCidrRouteDest[172.18.0.0][0.0.255.255][0][0.0.0.0] = 
IpAddress: 172.18.0.0
...

It seems that there is a superflous htonl performed on the netmask in
agent/mibgroup/ip-forward-mib/data_access/route_linux.c around line 125
(it is suspicious that only the mask is subject to htonl)

But I would like to hear from someone with big-endian hardware before
killing it :-)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Does anyone have Linux on big-endian hardware?

2010-10-18 Thread Niels Baggesen
Den 18-10-2010 18:02, Robert Story skrev:
> $ route -n |grep vir
> 192.168.122.0   0.0.0.0 255.255.255.0   U 0  00 virbr0
>
> $ cat /proc/net/route |grep vir
> virbr0007AA8C000010   0   0   
> 00FF0   0   0
>
> The mask is backwards in /proc/net/route! On my PPC 32 bit system, the mask is
> the expected FF00.

But not any more backwards than the network address 007AA8C0 ...

So I still wonder why it is treated different from the network address. 
What does that look like on the PPC?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Does anyone have Linux on big-endian hardware?

2010-10-19 Thread Niels Baggesen
On Tue, Oct 19, 2010 at 11:04:14AM -0400, Robert Story wrote:
> True. I poked around in the source and the debugger. The big difference is
> that for some reason we store the address/dest as char buffers, but the mask
> in an u_int. Following the twisty little maze, later everything is passed
> around as a long, and then a memcpy is used to set the oid/value. Try this
> patch, which seems to work on my 32 bit ppc and x86 boxes:

I can confirm that it now looks OK on CentOS 5.5 x86_64 as well as
Ubuntu 10.10 x86.

Thanks

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: SF.net SVN: net-snmp:[19544] trunk/net-snmp

2010-10-25 Thread Niels Baggesen
On Mon, Oct 25, 2010 at 12:10:16PM +0200, Bart Van Assche wrote:

> Are you aware that r19544 modifies the Net-SNMP ABI ?
and r19542 ...

Argh, well, hmm, not really.

Actually I never had the thought that these could be directly useful
to external users, but only used internally by snmplib.

Anyway, this is also labelled alpha code so I will say it is legal
to change the interface.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: SF.net SVN: net-snmp:[19542] trunk/net-snmp/snmplib/transports

2010-10-25 Thread Niels Baggesen
On Mon, Oct 25, 2010 at 12:14:38PM +0200, Bart Van Assche wrote:
> Neither the description of r19542 nor the changes itself make sense to me.
> Sorry that I have already reverted these changes via r19546 without prior
> notice - if I had noticed earlier that the compiler warnings I encountered
> were introduced by a recent change, I would have asked before reverting your
> changes.

Hmm, it seems that I was a bit hasty there, I hadn't noticed that
OpenSSL had made yet another release and now introduced consts on
their part. What systems include OpenSSL 1.0?

My personal goal is to make Net-SNMP warning-free on current RedHat
and CentOS systems by the end of this week.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: SF.net SVN: net-snmp:[19542] trunk/net-snmp/snmplib/transports

2010-10-28 Thread Niels Baggesen
Den 28-10-2010 17:17, Bart Van Assche skrev:
> Does r19572 help ?

Yes, it removed these:

snmplib/transports/snmpTLSBaseDomain.c: In function 'sslctx_client_setup':
snmplib/transports/snmpTLSBaseDomain.c:492: warning: passing argument 1 
of 'SSL_CTX_new' discards qualifiers from pointer target type
snmplib/transports/snmpTLSBaseDomain.c: In function 'sslctx_server_setup':
snmplib/transports/snmpTLSBaseDomain.c:567: warning: passing argument 1 
of 'SSL_CTX_new' discards qualifiers from pointer target type

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Warning cleanout

2010-10-28 Thread Niels Baggesen
So, I have been hunting warnings these lasts days, and I can now compile
the trunk on RedHat 5.5 without seeing any warnings - and even a bit 
more than the default agent. I hope that others now will try to keep
this the rule more than the exception!

My configuration is:

../net-snmp-svn/trunk/net-snmp/configure \
--enable-new-features \
--enable-mfd-rewrites \
--enable-ipv6 \
--with-mib-modules="ucd-snmp/lmSensors ucd-snmp/diskio sctp-mib \
ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable \
tsm-mib tlstm-mib snmp-usm-dh-objects-mib" \
--with-transports="Callback Alias IPX DTLSUDP TLSTCP" \
--with-security-modules="tsm" \
--with-mysql \
--with-defaults \
--enable-developer \
--with-cflags="-Wchar-subscripts -Wno-strict-aliasing" \
--enable-silent-libtool

which is very much all modules. I am a bit surprised that the ip-mib
interface tables seems to be required to be named specially to be
included.

I am not going to work at the strict-aliasing thing now, I am going
to look into BSD compilation that seems to be badly broken now :-(

If anybody else have done anything there I would like to know. The
amount of patches that they have in their respective ports/pkgsrc
collections is worrisome ...

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Warning cleanout

2010-11-04 Thread Niels Baggesen
Den 04-11-2010 12:11, Bart Van Assche skrev:
> Using -Wno-strict-aliasing is wrong and may result in incorrect code
> generation -- -fno-strict-aliasing should be used instead. IMHO this
> flag should be added to CFLAGS by the configure script, together with a
> test whether the configured compiler recognizes this flag.

You are probably right. My main incentive was killing warnings, and I 
have not seen any problems running the code that could be attributed to 
wrong code generated.

I will change my setup for my trials.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Translating SNMPv1 Notification Parameters to SNMPv2 Notification Parameters is still not correct

2010-11-13 Thread Niels Baggesen
Den 11-11-2010 06:20, Claus Klein skrev:
> I am interesting in to use the NotificationLogMib, but it is still not
> correct filled for snmpV1 taps.
> According to the RFC, see
> http://rfc-ref.org/RFC-TEXTS/3584/chapter3.html#sub1
> it should be like my diff
>
> Please fix it and integrate my tests scripts to check this issue.
> see
> https://sourceforge.net/tracker/?func=detail&atid=312694&aid=3096725&group_id=12694
> <https://sourceforge.net/tracker/?func=detail&atid=312694&aid=3096725&group_id=12694>

Hi Claus,

I think I have fixed the problem with the notification mib, but I dont't 
quite see the purpose of your attached patch? Isn't it purely cosmetic?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: couldn't find ifIndex

2010-11-30 Thread Niels Baggesen
On Tue, Nov 30, 2010 at 07:54:32AM -0800, Andrus, Brian Contractor wrote:
> Then it starts it's regular:
>  
> snmpd[14777]: ioctl 35123 returned -1
> snmpd[14777]: couldn't find ifIndex for '*', skipping

You could try adding verbose:access:interface,access:arp to the
-D tokens

and posting a dump of /proc/net/arp

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: Trunk and V5-6 fails to build without openssl

2010-11-30 Thread Niels Baggesen
Den 30-11-2010 22:41, Magnus Fromreide skrev:
> The attached patch makes the call conditional so that the agent compiles
> again.
>
> Ok for trunk and V5-6?

+1

I was just about to complain about the same :-)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: ethtool linking (was Re: SF.net SVN: net-snmp:[19701] trunk/net-snmp)

2010-12-01 Thread Niels Baggesen
On Tue, Nov 30, 2010 at 02:16:28PM -0800, Wes Hardaker wrote:
> I had a bet with myself that some older system somewhere would choke.
> I won.  Sigh.  

Older systems? CentOS 5.5 is still very much alive, both Ubuntu 10.10
and Redhat 6.0 uses __u32 etc. in their ethtool.h?

Maybe it was just your magic typedefs that were more wacky than magic?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: ethtool linking

2010-12-01 Thread Niels Baggesen
Den 01-12-2010 16:23, Wes Hardaker skrev:
> NB>  Maybe it was just your magic typedefs that were more wacky than
> NB>  magic?
>
> It was a patch from patch DB.  (not my bad)

:-)

Looking further at it, I can see that much of this was older ...

The following patch, which I will commit in a moment, seems to remedy 
the problem on the trunk:

> --- trunk/net-snmp/agent/mibgroup/if-mib/data_access/interface_linux.c  
> (revision 19720)
> +++ trunk/net-snmp/agent/mibgroup/if-mib/data_access/interface_linux.c  
> (working copy)
> @@ -12,8 +12,8 @@
>  #endif
>
>  #ifdef HAVE_LINUX_ETHTOOL_H
> +#include 
>  #ifndef HAVE_PCI_LOOKUP_NAME
> -#include 
>  typedef __u64 u64; /* hack, so we may include kernel's ethtool.h */
>  typedef __u32 u32; /* ditto */
>  typedef __u16 u16; /* ditto */

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: tunnel mib

2010-12-01 Thread Niels Baggesen
Den 02-12-2010 04:39, Robert Story skrev:
> MF>  So the result of this is that the tunnel mib is unsupported on linux,
> MF>  *bsd, solaris and darwin* nowadays.
>
> :-(

It DOES compile in my standard setup, which is CentOS and Ubuntu with (I 
have a feeling that it uses ioctls which are Linux specific)

> ../net-snmp-src/configure \
> --enable-new-features \
> --enable-mfd-rewrites \
> --enable-ipv6 \
> --with-mib-modules="smux ucd-snmp/lmSensors ucd-snmp/diskio sctp-mib \
> ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable \
> disman/expression disman/nslookup-mib \
> etherlike-mib tunnel \
> tsm-mib tlstm-mib snmp-usm-dh-objects-mib" \
> --with-transports="Callback Alias IPX DTLSUDP TLSTCP SSH" \
> --with-security-modules="tsm" \
> --with-mysql \
> --with-defaults \
> --enable-developer \
> --with-cflags="-g -Wchar-subscripts" \
> --enable-silent-libtool

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: Trunk and V5-6 fails to build without openssl

2010-12-01 Thread Niels Baggesen
Den 01-12-2010 02:29, Wes Hardaker skrev:
>>>>>> On Tue, 30 Nov 2010 22:41:37 +0100, Magnus 
>>>>>> Fromreide  said:
>
> MF>  Ok for trunk and V5-6?
>
> Applied for you :-)

So, now it fails linking because of a missing BIO_dgram_get_peer :-(

This is on CentOS 5.5 so maybe there should be a configure check for a 
sufficiently recent openssl before you are allowed to enable DTLSUDP 
(CentOS has openssl-devel-0.9.8e-12.el5_4.6)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: patch to init cert data sooner

2010-12-05 Thread Niels Baggesen
Den 05-12-2010 02:48, Magnus Fromreide skrev:
> On Sat, 2010-12-04 at 15:48 -0500, Robert Story wrote:
>> A recent change of mine initialized the certificate data stores in the
>> init_agent call, instead of trying to guess the app type in init_snmp. I put
>> it right above the other module inits, which unfortunately was right after 
>> the
>> return if the mode is agentx subagent. This means that the init function
>> doesn't get called for snmptrapd, and thus breaks (D)TLS, as the config token
>> to map fingerprints to security names is not recognized/parsed.  The simple
>> fix is to move the function call up a few lines.
>
> +1

+1

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: patch to fix snmptrap's inform mode with contextEngineIDs

2010-12-05 Thread Niels Baggesen
Den 03-12-2010 20:40, Wes Hardaker skrev:
> I'll apply this to all the trees, but it requires a CFV for 5.6.1.

+1

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


CFV: enable etherlike-mib for both redhat 5 and 6

2010-12-05 Thread Niels Baggesen
The following patch remove some redundant includes. The removed includes 
are already included by rtnetlink.h itself - if they exist.

With the patch it compile at least for CentOS 5.5, Redhat 6.0 and Ubuntu 
10.10.

Index: agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c
===
--- agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c 
(revision 19722)
+++ agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c  (working 
copy)
@@ -139,11 +139,7 @@
  /*
   * The following code is based upon code I got from Stephen Hemminger
   */
-#include 
  #include 
-#include 
-#include 
-#include 
  #include 

  struct rtnl_handle {

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: enable etherlike-mib for both redhat 5 and 6

2010-12-06 Thread Niels Baggesen
On Mon, Dec 06, 2010 at 11:15:27AM -0500, Robert Story wrote:
> Does it actually fix any problems? Generally I'd say purely cosmetic changes
> should wait til after the release... So +0.5.

It allows it to compile on CentOS/Redhat 5(.5)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: openssl version check for dtls support

2010-12-06 Thread Niels Baggesen
Den 06-12-2010 18:39, Wes Hardaker skrev:
>
> The following checks for a minimum macro/function required for the DTLS
> code.  I'd like to apply it for 5.6.1 (as well as trunk):

Gives the wxtpwctwd result on Redhat 5 and 6, so

+1

/Niels  

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: openssl version check for dtls support

2010-12-06 Thread Niels Baggesen
Den 06-12-2010 21:46, Niels Baggesen skrev:
> Gives the wxtpwctwd result on Redhat 5 and 6, so
 ^ expected

slight finger shift :-)

/Niels


-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


CFV: Fix bug 3074843: fails to build with debug disabled

2010-12-08 Thread Niels Baggesen
The following patch (for V5-6-patches and trunk) allows to configure 
with --disable-debugging

--- agent/mibgroup/agent_mibs.h (revision 19730)
+++ agent/mibgroup/agent_mibs.h (working copy)
@@ -1,6 +1,8 @@
  config_require(agent/nsTransactionTable)
  config_require(agent/nsModuleTable)
+#ifndef NETSNMP_NO_DEBUGGING
  config_require(agent/nsDebug)
+#endif
  config_require(agent/nsCache)
  config_require(agent/nsLogging)
  config_require(agent/nsVacmAccessTable)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: v3 trap/engineID fix

2010-12-10 Thread Niels Baggesen
On Thu, Dec 09, 2010 at 09:24:36PM -0800, Wes Hardaker wrote:
> This is cleaner and clearer so I'm fine with
> applying it for 5.6.1.

+1

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: cleaning Makefiles ?

2010-12-17 Thread Niels Baggesen
On Fri, Dec 17, 2010 at 01:39:13PM +0530, Abraham Varricatt wrote:
> But this still leaves behind the "Makefile" and even keeps the "mk"
> directory around! Is there any command I can use to clean up the sources to
> the condition right before running the first "./configure" script?

make distclean

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: Re: ! command is not portable to solaris 10

2010-12-19 Thread Niels Baggesen
Den 19-12-2010 13:44, Magnus Fromreide skrev:

That looks OK to me, except that this errormessage seems backwards ...

> +if cd testing 2>/dev/null; then
> +   :
> +else
>  echo "Error: $0 must be started from inside the testing directory."
>  exit 1
>   fi

The test seems to indicate the it must be started from OUTSIDE the 
testing directory

+1

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: Fix bug 3074843: fails to build with debug disabled

2010-12-20 Thread Niels Baggesen
Den 08-12-2010 22:29, Niels Baggesen skrev:
> The following patch (for V5-6-patches and trunk) allows to configure
> with --disable-debugging

Any additional votes? Or comments as to why not?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: I have some problem when I use snmpset command.

2010-12-20 Thread Niels Baggesen
Den 15-12-2010 04:27, nattaphon.phongwetpan...@thomsonreuters.com skrev:
> Dear Robert Story,
>
> Sorry for my mistake. It is joeTest.0. However, it still have a same
> problem.

Your function does not specify a return value, so it will be some random 
value. You should normally return SNMP_ERR_NOERROR

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Prototypes for debug functions?

2010-12-21 Thread Niels Baggesen
On Tue, Dec 21, 2010 at 06:45:19AM -0800, Wes Hardaker wrote:
> I don't see a problem with it personally.  Though I'd be tempted, if
> we're going to expose them, to add a netsnmp_ prefix to them first...

+1

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


CFV: Fix for bug 3109144: cant load vacmView from persistent storage

2010-12-22 Thread Niels Baggesen
The bug describes how the view mask is lost when read from the snmpd
persistent file.

This patch fixes it (and removes some identity casts). The crucial
point is setting the viewMaskLen before calling read_octet_string.

Index: snmplib/vacm.c
===
--- snmplib/vacm.c  (revision 19758)
+++ snmplib/vacm.c  (working copy)
@@ -192,10 +192,10 @@
 vptr->viewStatus = view.viewStatus;
 vptr->viewStorageType = view.viewStorageType;
 vptr->viewType = view.viewType;
-viewMask = (u_char *) vptr->viewMask;
+viewMask = vptr->viewMask;
+vptr->viewMaskLen = sizeof(vptr->viewMask);
 line =
-read_config_read_octet_string(line, (u_char **) & viewMask,
-  &vptr->viewMaskLen);
+read_config_read_octet_string(line, &viewMask, &vptr->viewMaskLen);
 }
 
 /*


This is relevant for all versions :-(

/Niels

-- 
Niels Baggesen -- @home -- Århus -- Denmark -- n...@users.sourceforge.net
   The purpose of computing is insight, not numbers  --  R W Hamming

--
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: Fix for bug 3109144: cant load vacmView from persistent storage

2010-12-29 Thread Niels Baggesen
On Tue, Dec 28, 2010 at 05:33:16PM -0800, Wes Hardaker wrote:
> >>>>> On Wed, 22 Dec 2010 15:55:14 +0100, Niels Baggesen 
> >>>>>  said:
> 
> NB> Index: snmplib/vacm.c
> 
> FYI, applied.

Thanks. It has been (is still) a bit hectic over Xmas work-wise, so
I hadn't gotten around to it.

FYI, I am trying to set up some buildbots under VMware to verify
that the 5-5 and 5-6 patches branches compile and minimally works
under current *BSD and Solaris releases, but it will probably take
till some time next week before I have it in place.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: SVN trunk multi-platform build errors

2011-01-05 Thread Niels Baggesen
Den 03-01-2011 09:08, Magnus Fromreide skrev:
> All but RHEL4 looks like they are due to struct sockaddr (from
> ) not being defined. This in turn is allowed by posix as
> it states that "Inclusion of the  header may also make
> visible all symbols from  and." so the quick
> fix is to add
>
> #if HAVE_SYS_SOCKET_H
> #include
> #endif
>
> to snmp_transport.h.

The same sys/socket problem makes it fail on FreeBSD 7 and 8 too.

The RHEL4 problem should be fixable by adding two dummy parameters to 
the call to pci_lookup_name (the call was made "varargs" in pciutils 2.2 
which is in RHEL5)

The sys/socket problem is limited to the trunk, it does not affect V5-5 
or V5-6.

None of the three versions (5.5, 5.6, trunk) compile on NetBSD or 
OpenBSD. On NetBSD they dont even configure :-(

I have been looking at the patches that the BSD's apply to our baby in 
their ports, and I have tried merging the whole thing, and it adds up to 
something like 2500 lines of patch ... but then it compiles on FreeBSD 
4,7,8, NetBSD 4,5, DragonFly 1.12,2.6, OpenBSD 4.7, RHEL 4,5,6, Solaris 
8,10,11

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: SVN trunk multi-platform build errors

2011-01-07 Thread Niels Baggesen
On Thu, Jan 06, 2011 at 04:50:28PM +, Dave Shield wrote:
> My inclination would be to apply the patches individually, rather
> than all in one go.   That might be a bit more work, but should
> make it easier to identify related changes (and what problems they
> are trying to address).

That would be nice, but when you get to ports or pkgsrc what they have
is a set og patches that each patch one file - and no description of
what problem each tries to solve. And fixing a problem problem migth
often involve patching more than one file, so it is not that easy

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: SVN trunk multi-platform build errors

2011-01-10 Thread Niels Baggesen
On Mon, Jan 10, 2011 at 11:41:28PM +0100, Thomas Anders wrote:
> Niels Baggesen wrote:
> > The RHEL4 problem should be fixable by adding two dummy parameters to 
> > the call to pci_lookup_name (the call was made "varargs" in pciutils 2.2 
> > which is in RHEL5)
> 
> That RHEL4 problem is still present in trunk. Does anyone care to commit a 
> fix?

Committed

> Also, building trunk on HP-UX 11.00 currently fails with:

Cant't help you with that, but I can say that after Dave's mighty
BSD job FreeBSD still compiles, NetBSD and OpenBSD still doesn't.

But until further I will leave to him to complete it

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: snmpd footprint just under 2MB !! - is this usual?

2011-01-11 Thread Niels Baggesen
On Mon, Jan 10, 2011 at 03:03:28PM +0530, Abraham Varricatt wrote:
> The first time, it produced some error about not recognizing the file
> format. Took me a while to realize that I was running my host-system's
> "strip" utility and not my target's one. With that correction, I've reduced
> the footprint to 715KB !!

But note, that is just the file size changed, it has no influence on
the memory requirements of the running process.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: SVN trunk multi-platform build errors

2011-01-12 Thread Niels Baggesen
Den 11-01-2011 17:21, Dave Shield skrev:
> OK - I've now applied all of the patches where I
> feel that I understand what they are doing.

:-)

> Niels, can you try the three *BSD environments again,
> and let me know what does/doesn't work.
> In particular, what currently fails under OpenBSD?

Right, having spent the evening with it, it now compiles for OpenBSD 
4.7, NetBSD 4 and 5, FreeBSD 7 and 8, DragonFly 1.12 and 2.6, and 
RedHat/CentOS 4, 5, 6 ...

You can find the results at http://baggesen.net/~nba/buildbot/ including 
a small dif that was required to make things work. Look in the logs 
directory for the results of compiling and running.

The DragonFlys have a runtime problem that kills them, but it is too 
late now to look into that.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: SNMP OID Inquery

2011-01-13 Thread Niels Baggesen
On Thu, Jan 13, 2011 at 04:07:44PM +0800, mark_hu...@alphanetworks.com wrote:
> C:\Documents and Settings\Administrator>snmpset -v2c -c 192.168.10.1 
> 1.3.6.1.4.171.12.9.6.1.1.3.3.1 i 6000
> i: Bad object type: 6

You are missing the community after the -c 

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: get client ip address

2011-02-16 Thread Niels Baggesen
On Wed, Feb 16, 2011 at 02:00:03PM +, th exterit wrote:
> I am writing a trap listener which listens on upd 162.  When each trap comes
> in I want to grab the source IP address of the device which sent the trap.
> My code basically takes snmptrapd.c and stripped it down to essentials -
> http://pastebin.com/fbCSQhpc

If you had looked into snmptrapd_log you would have found

transport->flags &= ~NETSNMP_TRANSPORT_FLAG_HOSTNAME;
tstr = transport->f_fmtaddr(transport, pdu->transport_data,
pdu->transport_data_length);

which gives you a textual representation ...

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


CFV: Fix bug 3118631: snmptable segfaults if index contains : character

2011-02-22 Thread Niels Baggesen
The following simple fix does it - and this get more severe as we get
more IPv6 usage :-)

--- apps/snmptable.c(revision 19965)
+++ apps/snmptable.c(working copy)
@@ -703,7 +703,7 @@
   
NETSNMP_DS_LIB_OID_OUTPUT_FORMAT)) {
 case NETSNMP_OID_OUTPUT_MODULE:
case 0:
-name_p = strrchr(buf, ':');
+name_p = strchr(buf, ':');
 break;
 case NETSNMP_OID_OUTPUT_SUFFIX:
 name_p = buf;

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


CFV: 5.5.1 Missing freebsd8.h hinders compilation on FreeBSD 8

2011-02-22 Thread Niels Baggesen
Ther following trivial content fixes it:

/* freebsd8 is a superset of freebsd4 */
#include "freebsd7.h"
#define freebsd7 freebsd7

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Niels Baggesen
In my eternal quest for warnings I now hit snmpksm, which did not even 
compile on my standard CentOS setups :-(


I would like to solicit some input on the changes that I made to get it 
to compile and quell warnings, so would some of you who has a Kerberos 
setup please look at the attached dif? The important point is the first 
ten lines or so that tweaks the includes.


/Niels

--
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming


snmpksm.dif
Description: video/dv
--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Niels Baggesen
On Wed, Feb 23, 2011 at 11:22:16PM +0100, Magnus Fromreide wrote:
> Chunk 4 looks marvelous. How did this ever compile?

I have no idea if this ever compiled :-) It is certainly some years
ago last time

> Chunk 5-12: Why print lengths as signed integers?

Lazyness. Then you only have to change one thing.

When it says
"%d", LENGTH_something
where LENGTH_something is a size_t you can either make it
"%d", (int)LENGTH_something
or
"%u", (unsigned int)LENGTH_something

:-)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Niels Baggesen
On Thu, Feb 24, 2011 at 12:01:32AM +0100, Magnus Fromreide wrote:
> There is the third option as well:
> 
>   "%" NETSNMP_PRIz "u", LENGTH_something
> 
> The drawback is that it is even longer but the advantage is that it is
> correct on both 32 and 64-bit platforms, but then, so are the other two
> versions if LENGTH_something is sufficiently small.

I probably still suffer from old times where you never could be sure
whether size_t was signed or unsigned (that was before they invented
ssize_t)

char still suffers from that problem.

I think the gcc 2.95.3 I still have on a Solaris 8 system has it as
a signed :-(

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Fixing warnings in snmplib/snmpksm.c

2011-02-24 Thread Niels Baggesen
On Wed, Feb 23, 2011 at 10:38:36PM +0100, Niels Baggesen wrote:
> I would like to solicit some input on the changes that I made to get
> it to compile and quell warnings, so would some of you who has a
> Kerberos setup please look at the attached dif? The important point
> is the first ten lines or so that tweaks the includes.

OK, next step waqs looking at the configure parts for ksm ...

The attached patch first fixes the problem that if you specify
ksm as a security module it MUST be the first given!

And then there a strange difference between indentation and paranthesis
in the detection logic, so I have a feeling that it never really
worked for other than Heimdal Kerberos

Opinions?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming
Index: configure.d/config_modules_lib
===
--- configure.d/config_modules_lib  (revision 19988)
+++ configure.d/config_modules_lib  (working copy)
@@ -131,16 +131,18 @@
 # Handle the special case of KSM to see which crypto API we support
 #
 
-ac_cv_NETSNMP_USE_KERBEROS_MIT=no
 rebuilt_new_with_security=
 already_checked_krb5=no
 
 for sec in $new_with_security
 do
-  if test "x$sec" = "xksm" -a "xyes" = "x$already_checked_krb5"; then
-continue
+  if test "x$sec" = "xksm"; then
+if "xyes" = "x$already_checked_krb5"; then
+  continue
+else
+  already_checked_krb5=yes
+fi
   fi
-  already_checked_krb5=yes
 
   if test x$sec != xksm; then
 rebuilt_new_with_security="$rebuilt_new_with_security $sec"
@@ -199,10 +201,9 @@
 fi
 
 AC_MSG_CHECKING([to see which crypto API we need to use])
-AC_CHECK_FUNC(krb5_c_encrypt,[
 AC_CACHE_VAL(ac_cv_NETSNMP_USE_KERBEROS_MIT,
   AC_CHECK_LIB(k5crypto, krb5_init_context,
-   ac_cv_NETSNMP_USE_KERBEROS_MIT=yes, ac_cv_MIT_NEW_CRYPTo=no
+   ac_cv_NETSNMP_USE_KERBEROS_MIT=yes, ac_cv_NETSNMP_USE_KERBEROS_MIT=no
   )
 )
 
@@ -214,7 +215,7 @@
LIBS="$LIBS -lk5crypto"
   fi
 else
-  AC_MSG_RESULT(old MIT crypto API)])
+  AC_MSG_RESULT(old MIT crypto API)
 fi
   fi
 done
--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: memory leak calling snmp_send()

2011-02-26 Thread Niels Baggesen
Den 23-02-2011 19:07, Adam Mendlik skrev:
> My question is: is there a reason why snmp_send() is leaking memory, how
> do I fix it, or should I be using a different function in this scenario?

Are you checking the return value from snmp_send?

I seem to recall that sending traps is different, in the way that it 
does not expect a return packet from the receiver, and that you 
therefore must free the PDU yourself ...

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: The best approach to control a serial device with an extended agent

2011-02-28 Thread Niels Baggesen
On Mon, Feb 28, 2011 at 02:21:29PM +0100, Giuseppe Modugno wrote:
> But I have some difficulties to find a good point where to call the 
> select(), considering that the init() function must return and the 
> registered handler is called only for SET/GET requests from the 
> network.
> 
> Is it possible to create and launch (fork?) a new process (the 
> serial bridge) from the init() function of the dynamic loadable 
> module? I never used fork in the past, but I know the child process 
> will start again from main() function. What happens if I fork from a 
> shared object module? Does the snmpd main() function start again?

There is no clean way, unfortunately.

In your position I would hack agent/snmpd.c, and put my file descriptor
in the select loop somewhat like the SMUX is handled.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: FW: SNMPD problems.

2011-02-28 Thread Niels Baggesen
On Mon, Feb 28, 2011 at 07:33:53AM +0200, Rashied Gool wrote:
> Please help with regard to snmp.I changed some of the file systems on AIX to
> cio and SNMP stopped walking when it gets to the hrStoragetable
> We downloaded the version 5.6.1 but did not have any success.I proceeded to
> load the Patch RC2 for the same version but still no luck.

When it did not work with 5.6.1, why would you think that an RC2 (I
presume of 5.6.1) would be any better?

When you say it stops, do you mean that snmpd dies, does it loop, or
what?

Not having access to AIX, could you try running snmpd under a debugger
and/or run it with -Dhost and in addition supply us with the contents
of include/net-snmp/net-snmp-config.h

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: The best approach to control a serial device with an extended agent

2011-02-28 Thread Niels Baggesen
On Mon, Feb 28, 2011 at 02:20:36PM +, Dave Shield wrote:
> Niels' suggestion of hacking the main select loop would certainly
> work, but this mechanism has been provided to avoid the need
> to do this.

So many options, so little time - I have missed that option

>   We should perhaps look at re-working the SMUX module to
> make use of this facility, but it's never been sufficiently high
> priority to warrent the time involved.

Well, if that had been done, I would never have suggested what I did.
Coding by example is still the most popular way.

Maybe I should hack that ...

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Fwd: Re: The best approach to control a serial device with an extended agent

2011-03-03 Thread Niels Baggesen


 Original Meddelelse 
Subject: Re: The best approach to control a serial device with an 
extended agent
Date: Tue, 01 Mar 2011 20:27:50 +0100
From: Niels Baggesen 
To: Magnus Fromreide 

Den 28-02-2011 22:26, Magnus Fromreide skrev:
> I think that is a bad idea. There is nothing that prevents SMUX from
> using the normal transports mechanism so using that specialty interface
> is unnecessary.

but easier than rewriting the whole thing :-)

> See my attached half (or less) implementation. (No, I haven't updated
> the patch with the feature code yet)
>
> The big trouble is how to handle the fact that the SMUX extension model
> is completely at odds with the AgentX model that the rest of the agent
> follows.

Impressive! Where is the problem (compared to the existing implementation)?

The thing is, we do need SMUX for some of the harware suppliers to hook
up their monitor (Dell is certainly one)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

-- 
Niels Baggesen -- @home -- Århus -- Denmark -- ni...@baggesen.net
The purpose of computing is insight, not numbers  --  R W Hamming

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Support for ipNetToMediaTable.

2011-03-09 Thread Niels Baggesen
Den 09-03-2011 10:08, Manjit skrev:
> I am using net-snmp 5.4.2.1 .
> For my system i need to support ipNetToMediaTable and ipNetToMedia table
> both.
> When i am doing a walk on these two tables i am only getting values for
> ipNetToPhysicalTable.
>
> But ipNetToMediaTable returns nothing.
> [root@pactprov cli]#  /opt/servers/netsnmp/bin/snmpwalk  -On -v 2c -c
> private 172.16.8.186 ipNetToMediaTable
> .1.3.6.1.2.1.4.22 = No Such Instance currently exists at this OID

What OS? How did you configure? (and why are you using 5.4.2.1 which is 
rather old)

/Niels

-- 
Niels Baggesen -- @home -- Århus -- Denmark -- ni...@baggesen.net
The purpose of computing is insight, not numbers  --  R W Hamming

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: net-snmp ipv6

2011-03-09 Thread Niels Baggesen
On Fri, Mar 04, 2011 at 02:17:48PM -0800, Tarun Kumar wrote:
> 2. Now when I run with 
>   #snmpd udp6:161 -L -f -d -Dall

This look very strange:

> 2011-03-04 14:19:46 tdomain: tdomain_transport_full("snmp", " udp6:161", 1, 
> "[NIL]", "[NIL]")
> 2011-03-04 14:19:46 trace: find_tdomain(): snmp_transport.c, 326:
> 2011-03-04 14:19:46 tdomain: Found no domain from specifier " udp6"

That blank in front of udp6 is really suspicious. Is the command shown
exactly what you did? No quotes or other things?

What OS and Net-SNMP version is this?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: TZ offset handling

2011-03-09 Thread Niels Baggesen
On Wed, Mar 09, 2011 at 11:20:36AM +, Dave Shield wrote:
> Bug #3178389 has picked up on a silly error
> in the handling of TZ offsets.

+1

/Niels


-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV: 5.5.1 release

2011-03-09 Thread Niels Baggesen
On Wed, Mar 09, 2011 at 11:20:43AM +, Dave Shield wrote:
>How would people feel about
> me going straight to the final 5.5.1 release?

+1

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: installing net-snmp on Solaris 10

2011-03-23 Thread Niels Baggesen
Den 23-03-2011 17:19, Eric Smith skrev:
> I need to use mib2c on Solaris 10.
>
>  >uname -a
>  >SunOS ems-svr234 5.10 Generic_141414-02 sun4u sparc SUNW,Sun-Fire-V210
>
> I have downloaded net-snmp-5.6.tar.gz, extracted to my solaris10 box and
> trying to configure net-snmp with perl modules. I also downloaded
> openssl-1.0.0d-sol10-sparc-local.gz and gcc-3.4.6-sol10-sparc-local.gz
> from sunfreeware.com <http://sunfreeware.com> and installed on my
> Solaris 10 box.

We cannot see how you invoked configure, but this error message

> /bin/bash ../libtool --silent --mode=compile gcc -I../include -I.   
> -I../snmplib  -g -O2 -Usolaris2 -Dsolaris2=solaris2  -c -o snmp_client.lo 
> snmp_client.c
> In file included from /usr/include/sys/select.h:23,
>  from 
> /auto/usrcisco-sunos-5.8-sparc-32/packages/gcc/gcc-4.1.0/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.0/include/sys/types.h:574,
>  from /usr/include/strings.h:11,
>  from snmp_client.c:52:

shows that you are using include files that neither matches your 
compiler (gcc 3.4.6 vs 4.1.0) nor your OS version (Solaris 8 vs 10). 
This will never work.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: installing net-snmp on Solaris 10

2011-03-24 Thread Niels Baggesen
Den 24-03-2011 00:54, Eric Smith skrev:
> I was able to go proceed and finish make and make install. During make
> install I get some messages like below, in any case my install completes.
>
> --
> Libraries have been installed in:
> /opt/ppmnetsnmp/lib
>
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the `-LLIBDIR'
> flag during linking and do at least one of the following:
> - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
>   during execution
> - use the `-RLIBDIR' linker flag
>
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> --

That is OK, and can be ignored - unless you are going to do what it 
warns you against :-)

> When I execute /opt/ppmnetsnmp/bin/mib2c it still says perl modules are
> not installed. Can you help me with the message above?

mib2c expects that you have installed into some place which is part of 
your perls search path for modules ...

Try running as "perl -I/opt/ppmnetsnmp/lib/perl5 mib2c ..." or whereever 
your perl modules ended

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: how to use "extend" and run-on-set?

2011-03-24 Thread Niels Baggesen
Den 24-03-2011 17:07, Donald Russell skrev:
> ext='\"dnr\"'
> snmpset -v 2c -c private localhost \
>  nsExtendStatus.$ext = 'createAndGo' \
>  nsExtendRunType.$ext = 'run-on-set' \
>  nsExtendCommand.$ext = '/bin/date' \
>  nsExtendArgs.$ext = ''
>
> But that resulted in a bunch of (the same) errors:
> nsExtendStatus.\"dnr\": Unknown Object Identifier (Index out of range:
> \"dnr\" (nsExtendToken))

Too much quoting ... take the \ (or ') away ...

/Niels

-- 
Niels Baggesen -- @home -- Århus -- Denmark -- ni...@baggesen.net
The purpose of computing is insight, not numbers  --  R W Hamming

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Callback Operation Messages

2011-03-25 Thread Niels Baggesen
On Thu, Mar 24, 2011 at 10:28:25PM -0400, Brendan Tauras wrote:
> #define NETSNMP_CALLBACK_OP_CONNECT4
> #define NETSNMP_CALLBACK_OP_DISCONNECT5
> 
> I have seen callback message types 1, 2, and possibly type 3.  But I
> have not seen message types 4 and 5.  Do these messages correspond to
> the session open handshake and session close?  How can I enable
> receiving callbacks for message types 4 and 5 when polling a device?

These are used by server sides using a connection based transport,
so an agent that listens on TCP can expect to see them. A client
using TCP might see the DISCONNECT.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: installing net-snmp on Solaris 10

2011-03-28 Thread Niels Baggesen
Den 25-03-2011 19:04, Eric Smith skrev:
> Is there an option that you provide during "make install" to control
> where the PERL SNMP modules are installed?

No, it is controlled by the perl that it detects during configure.

perl modules is tricky stuff :-) And parallel installs is not at all easy.

Why can't you just use the perl that your OS provides?

> Also, what are the actual Perl modules mib2c uses?

SNMP and NetSNMP::OID

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: snmpd.conf problem: getting 'no access control information configured.' error

2011-03-29 Thread Niels Baggesen
On Tue, Mar 29, 2011 at 05:48:37PM +0530, Radhika Ramakrishnan - ERS, HCLT 
wrote:
>   We have configured the snmpd.conf also. And placed it in the path /etc/snmp 
> and /usr/local/share/snmp
> 
> 
> Does anyone have any idea on why still I am getting this error?

Because the 3rd party supplier told it to look somewhere else?
Haven't they told you where to put the configurationfile?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: build errors with net-snmp v5.6 (macros conflict with struct field names)

2011-03-30 Thread Niels Baggesen
On Wed, Mar 30, 2011 at 09:00:12PM +, David Chappelle wrote:
> Does anyone have any idea on how to get around this issue? Is it a
> bug or am I perhaps trying to use an invalid mib module configuration?

Well, you are confusing the two implementations of IF-MIB, even though
it seems like you tried to avoid it using

-with-mib-modules=mibII/ifmib --with-out-mib-modules=if-mib/ifmib

only going wrong because the mfd implementation is not called if-mib/ifmib
but only if-mib, and the traditional is called mibII/interfaces

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Compilation/Link error while compiling net-snmp5.6.1 on Solaris

2011-04-04 Thread Niels Baggesen
On Mon, Apr 04, 2011 at 11:35:08AM -0700, Singh, Vinay wrote:
> I am trying to compile net-snmp 5.6.1 source code on Solaris 10 by
> following instruction in README.solaris

There are many instructions in there :-(
What exactly did you do?

> I am getting following error:
> 
> libtool: link: (cd ".libs" && rm -f "libnetsnmp.so.25" && ln -s
> "libnetsnmp.so.25.0.1" "libnetsnmp.so.25")
> 
> libtool: link: (cd ".libs" && rm -f "libnetsnmp.so" && ln -s
> "libnetsnmp.so.25.0.1" "libnetsnmp.so")
> 
> libtool: link: false cru .libs/libnetsnmp.a  snmp_client.o mib.o parse.o

Hmmm, are you sure that you have /usr/ccs/bin in your PATH?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Trunk doesn't build

2011-05-07 Thread Niels Baggesen
On Sat, May 07, 2011 at 12:41:42PM +0200, Bart Van Assche wrote:
> I'm getting this error when trying to build the trunk (Linux);
> 
> configure: error: mib module "ip-mib/data_access/arp" requires module
> "ip-mib/data_access/arp_netlink" but ip-mib/data_access/arp_netlink.h or
> ip-mib/data_access/arp_netlink.c could not be found in ./agent/mibgroup

I have added the file Wes forgot when applying the patch.

Btw, instead of commenting out the diskio_free_config it would be better
to find the proper place to call it ...

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Patch 3205811 / r20181

2011-05-07 Thread Niels Baggesen
On Sat, May 07, 2011 at 03:59:30PM +0200, Bart Van Assche wrote:
> The function diskio_free_config() was added in r20181 when applying patch
> 3205811 submitted by Jeff Gehlbach. r20181 is different from the patch that
> was submitted on the patch tracker. As far as I can see it is safe to remove
> the function diskio_free_config() entirely ?

No,it should be called when the agent is asked to re-read its
configuration.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Oid Type rationalization in 5.6.1

2011-05-10 Thread Niels Baggesen
On Tue, May 10, 2011 at 12:05:41PM +0200, Bart Van Assche wrote:
> Since the policy is to preserve the API and ABI in a branch, it's
> unfortunate that this change happened in the 5.6 branch. But reverting that
> change is not an option IMHO: as you can see in one of the Fedora
> repositories (http://pkgs.fedoraproject.org/gitweb/?p=net-snmp.git),
> Net-SNMP 5..6.1 got selected for inclusion in Fedora 15. So any attempt to
> revert the aforementioned change in the 5.6 branch might cause trouble for
> the Fedora project.

Indeed, it is the very last moment to get a fix rolling. It is still
15 days to release of Fedora 15.

I would say that we need to revert it and make a point release of 5.6.1.1

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Oid Type rationalization in 5.6.1

2011-05-10 Thread Niels Baggesen
Den 10-05-2011 19:02, Leo Cacciari skrev:
> Ok, let's say 32 bit platforms (which, by today standards would be
> subnormal ;)) Anyhow, this only confirms what I said: old typedef with
> u_long was wrong, new one is right. If any binary incompatibility
> arises, then it will be on platform with 64bits longs, where the old
> typedef produced not-conforming implementation with 64bits oid.

The library has always checked that it only sent out conforming oids.

There are suppliers out there of binary only modules that connects to 
our agent. Hardware suppliers like HP and Dell are the first that come 
to mind, and here we are in for a compatibility problem.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: not installed via "make install"?

2011-05-10 Thread Niels Baggesen
Den 27-03-2011 11:43, Magnus Fromreide skrev:
>> Shouldn't  be considered as part of the
>> ABI ? I think it should be installed too.
>
> I do not know. Either it should be and then obviously be installed but
> that would make all the generated symbols public or it shouldn't be and
> in that case it shouldn't be installed nor included in any header.
>
> I have to say that this thing is starting to get to configurable.

Ping Wes!

This one is still outstanding, making it impossible to compile things 
outside the source directory. It is certainly a show stopper for a 5.7 
release.

/Niels

-- 
Niels Baggesen -- @home -- Århus -- Denmark -- ni...@baggesen.net
The purpose of computing is insight, not numbers  --  R W Hamming

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: not installed via "make install"?

2011-05-10 Thread Niels Baggesen
On Tue, May 10, 2011 at 06:04:47PM -0700, Wes Hardaker wrote:
> >>>>> On Tue, 10 May 2011 22:38:04 +0200, Niels Baggesen  
> >>>>> said:
> 
> NB> This one is still outstanding, making it impossible to compile things 
> NB> outside the source directory. It is certainly a show stopper for a 5.7 
> NB> release.
> 
> What can't compile outside the source tree?

I would guess most everything :-(

What hit me was snmp-ups from nut (NetworkUpsTools)

make[1]: Går til katalog '/home/nba/Install/nut-2.4.1svn/drivers'
if gcc -DHAVE_CONFIG_H -I. -I. -I../include-I../include   
-DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -Wchar-subscripts -Ulinux 
-Dlinux=linux -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I. 
-I/usr/local/include   -O -Wall -Wsign-compare -MT snmp-ups.o -MD -MP -MF 
".deps/snmp-ups.Tpo" -c -o snmp-ups.o snmp-ups.c; \
then mv -f ".deps/snmp-ups.Tpo" ".deps/snmp-ups.Po"; else rm -f 
".deps/snmp-ups.Tpo"; exit 1; fi
In file included from /usr/local/include/net-snmp/types.h:421,
 from /usr/local/include/net-snmp/definitions.h:22,
 from /usr/local/include/net-snmp/net-snmp-includes.h:67,
 from snmp-ups.h:76,
 from snmp-ups.c:34:
/usr/local/include/net-snmp/library/snmp_api.h:33:40: error: 
net-snmp/net-snmp-features.h: No such file or directory

> But the real answer is "Yes, I think we need to install the file(s)".

Absolutely

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: CFV OID Ways Forward (was Re: Oid Type rationalization in 5.6.1)

2011-05-12 Thread Niels Baggesen
On Thu, May 12, 2011 at 06:35:12AM -0700, Wes Hardaker wrote:
> WH> A) produce 5.6.1.1 immediately
> 
> I think that needs to be done (and fedora patched immediately for updates).

I think I said it earlier, but now that it is formally a CFV: +1 (at least)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Need a broken 64 bit example OID/u_long problem

2011-05-19 Thread Niels Baggesen
Den 19-05-2011 16:33, Wes Hardaker skrev:
> The reason I haven't gotten around to releasing 5.6.1.1 yet is that I
> want to fix not only the typedef, but the problem the typedef is
> causing.  I can't find the bug.  I've looked.  I've run all sorts of
> applications on 64 bit systems and don't see the problem.
>
> So...  Bart, or anyone else that happens to know how to trigger the bug,
> can you enlighten me so I can look into the root of the problem?

I have tested on Sparc64 Solaris 8 using gcc 3 without seeing the 
problem either. Unfortunately that machine died last week, so I cannot 
test again :-( I hope to dig out another sparc machine for testing soon.

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


  1   2   3   4   5   >