How to porting SNMP 5.3.1 to another platform

2008-05-19 Thread Zhigang Cao
Hi, ALL ! I want to port the snmp 5.3.1 to another platform. There is a issue : On platform A , the length of long type is 4 bytes, but on platform B , the length of long type is 8 bytes. In our release version, there is too many place to use the long type during the codes. Can you have

Re: How to porting SNMP 5.3.1 to another platform

2008-05-19 Thread Dave Shield
2008/5/19 Zhigang Cao [EMAIL PROTECTED]: I want to port the snmp 5.3.1 to another platform. There is a issue : On platform A , the length of long type is 4 bytes, but on platform B , the length of long type is 8 bytes. In general, that shouldn't matter. As long as long is *at least* 32

AW: How to determine whether a discovered device is a PC?

2008-05-19 Thread Bastian Angerstein
It´s all about Systemsmanagement and Inventory Management. All you need to do is configuring sysDescr (and depending on the roll of the system ifDescription), utilizing the sysObjectID only can lead into trouble as Dave Shield mentioned. Think about a data-string format easy to parse, do not use

[new MIB module]Can't compile the agent

2008-05-19 Thread CHAHIBI Samira
Hi all, Now that I have my leadTechDesign.h and leadTechDesign.c files completed, i want to compile my agent with this new MIB module. according to net-snmp wiki tutorial, i must copy this files into a agent/mibgroup/leadTechDesign.h and agent/mibgroup/leadTechDesign.c file and make:

net-snmp compile does not like with-out-mib-modules containing all default mibs

2008-05-19 Thread arijit
Hi, Wanted to compile net-snmp with all default-mib loading disabled. and incrementally add the ones, I think, I need. But the base compilation after running configure with --with-out-mib-modules containing all the list of default mibs - fails with a bunch of undefined references from

Re: [new MIB module]Can't compile the agent

2008-05-19 Thread CHAHIBI Samira
I 've also found a net-snmp folder under /usr/include/: [EMAIL PROTECTED] ~]# ls /usr/include/net-snmp/ agent mib_api.h pdu_api.h utilities.h config_api.h net-snmp-config.h session_api.h varbind_api.h definitions.h net-snmp-config-i386.h snmpv3_api.h

Re: [new MIB module]Can't compile the agent

2008-05-19 Thread Dave Shield
2008/5/19 CHAHIBI Samira [EMAIL PROTECTED]: according to net-snmp wiki tutorial, i must copy this files into a agent/mibgroup/leadTechDesign.h and agent/mibgroup/leadTechDesign.c file and make: ./configure --with-mib-modules=leadTechDesign

Re: net-snmp compile does not like with-out-mib-modules containing all default mibs

2008-05-19 Thread Dave Shield
2008/5/19 arijit [EMAIL PROTECTED]: how I should go about incrementally adding only those MIBS that, I think, I need - and not load up all of the default mib modules? $ ./configure --help | grep mini --enable-mini-agent Build a minimal agent. Then use --with-mib-modules=

Re: ./configure bug

2008-05-19 Thread Raghavendra Prasad
Did you `make distclean` before running configure again? It does not help either. That leaves even the following sequence unpredictable ./configure make make uninstall make distclean again ./configure make make install thus the compilation process is very un predictable Or

Re: ./configure bug

2008-05-19 Thread Thomas Anders
Raghavendra Prasad wrote: It does not help either. That leaves even the following sequence unpredictable ./configure make make uninstall make distclean again ./configure make make install thus the compilation process is very un predictable Are you sure you've started from

Re: How to porting SNMP 5.3.1 to another platform

2008-05-19 Thread Peter Silsbee
However, there are sometimes places where the code assumes (wrongly) that long is exactly 32 bits.We've fixed a number of these, but there could be others waiting to bite you. Any idea what the most severe consequence of these assumptions is? Thanks Peter

Re: ./configure bug

2008-05-19 Thread Raghavendra Prasad
Are you sure you've started from scratch by unpacking the 5.4.1 release tarball before doing the above? No. It is difficult to unpack the 5.4.1 for every compilation, as I store my source(user) files under /agent/mibgroup/MyFiles/ Please note that make distclean only cleans up what it

Retrieving AIX interface information from Net-SNMP

2008-05-19 Thread Michael Osburn
Hello all, I am in the process of setting up SNMP monitoring on an AIX 5.3 server and am having some issues. With the built in SNMPd I can access the hosts Ethernet interface stats. When I use Net-SNMP I can get all the other information that we want to see but am unable to get the

RE: snmptrpd.conf format help

2008-05-19 Thread Mike Ayers
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Meza, Frank Sent: Saturday, May 17, 2008 8:03 PM I am new to net-snmp configuration and firing up a trap receiver. The receiver is up processing and logging snmp v2 traps only but I cant seem to get the v1 traps to log.

Re: Retrieving AIX interface information from Net-SNMP

2008-05-19 Thread Brian Loe
On Mon, May 19, 2008 at 2:36 PM, Thomas Anders [EMAIL PROTECTED] wrote: Michael Osburn wrote: I am in the process of setting up SNMP monitoring on an AIX 5.3 server and am having some issues. With the built in SNMPd I can access the hosts Ethernet interface stats. When I use Net-SNMP

Re: ./configure bug

2008-05-19 Thread Dave Shield
2008/5/19 Raghavendra Prasad [EMAIL PROTECTED]: It is difficult to unpack the 5.4.1 for every compilation, as I store my source(user) files under /agent/mibgroup/MyFiles/ The simplest approach is probably to store your source files somewhere outside the main Net-SNMP source tree, and link this

Re: Retrieving AIX interface information from Net-SNMP

2008-05-19 Thread Thomas Anders
Michael Osburn wrote: I am in the process of setting up SNMP monitoring on an AIX 5.3 server and am having some issues. With the built in SNMPd I can access the hosts Ethernet interface stats. When I use Net-SNMP I can get all the other information that we want to see but am unable

Re: Retrieving AIX interface information from Net-SNMP

2008-05-19 Thread Michael Osburn
Thomas, Thanks for the input. I am going to try to beat my proxy statement into submission. Below is some debug details for the record. I would also be interested in testing the new AIX related snmp code when it comes into play as well as try to figure out how AIX pulls that information

Re: Retrieving AIX interface information from Net-SNMP

2008-05-19 Thread Dave Shield
2008/5/19 Michael Osburn [EMAIL PROTECTED]: Sending 42 bytes to UDP: [127.0.0.1]:1610 : 30 28 02 01 00 04 06 70 75 62 6C 69 63 A0 1B 020(.public .. 0016: 04 4A D9 33 F7 02 01 00 02 01 00 30 0D 30 0B 06.JÙ3÷..0.0.. 0032: 07 2B 06 01 02 01 04 14 05 00

Re: Retrieving AIX interface information from Net-SNMP

2008-05-19 Thread Michael Osburn
running snmpgetnext -v 1 -c public -d localhost:1610 .1.3.6.1.2.1.4.20 returns the following Sending 42 bytes to UDP: [127.0.0.1]:1610 : 30 28 02 01 00 04 06 70 75 62 6C 69 63 A1 1B 020(.public¡.. 0016: 04 15 CF 21 6D 02 01 00 02 01 00 30 0D 30 0B 06..Ï!m..0.0.. 0032:

RE: Retrieving AIX interface information from Net-SNMP

2008-05-19 Thread Mike Ayers
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Osburn Sent: Monday, May 19, 2008 3:25 PM I am going to try compiling a clean version of net-snmp when I get in tomorrow as I was not the one who started this process and they are unavailable to ask what options

Re: Retrieving AIX interface information from Net-SNMP

2008-05-19 Thread Michael Osburn
This is the result of running the net-snmp-config command. Does this do what I want it to or do I need to recompile it? $ net-snmp-config --configure-options '--with-cc=xlc_r' '--disable-shared' '--enable-static' '--with-default-snmp-version=3' '--with-sys-contact=operator'