net-snmp-config script seems not right

2004-09-16 Thread Jim Su
Hi Greeting: It seems the result of "net-snmp-config --configure-options" is not right. It only echo the first option. There are more configure options in the echo list but only the first one was displayed. And the "net-snmp-cofig --agent-libs" and "net-snmp-config --external-agent-li

Re: undefined symbols compiling the demo app

2004-09-16 Thread Dalton Hamilton
Update. Thomas Anders sent me an email pointing me in the right direction. The problem is in the /usr/bin/net-snmp-config script is wrong. All the case statements are wrong for an OSX box on a PPC platform. I modified mine to the following, then tried the snmpdemoapp.c with the Makefile and

Re: undefined symbols compiling the demo app

2004-09-16 Thread Dalton Hamilton
Hi Robert - Yeah - I got the issue resolved. The /usr/bin/net-snmp-config file is misconfigured at the initial install (for OSX systems) for every case entry -- cflags and all the others. I modified the case entry for each -- setting cflags appropriately and the compile worked perfect with the

Re: How can I get createUser to be processed?

2004-09-16 Thread cnelson
> ... I was unclear. Here's what I'm doing: > > - writing a createUser directive to /var/net-snmp/snmpd.conf > > - Poking the reconfig bit in the agent's MIB > ... Here's the rub. I wan't actually poking the reconfig bit as I thought I was. That works now. Never mind. ---

Re: Am I confused or is read_config_read_octet_string broken?

2004-09-16 Thread cnelson
> On Wed, 15 Sep 2004 13:09:54 -0400 [EMAIL PROTECTED] wrote: > CRC> I'm trying to use read_config_read_octet_string() (in 5.1.1) > and I'm not > CRC> getting the results I expect. > ... > No, the function is inconsistent in its use of the len parameter. > In the case > of a non-hex string and a

Re: Am I confused or is read_config_read_octet_string broken?

2004-09-16 Thread cnelson
> On Wed, 15 Sep 2004 13:09:54 -0400 [EMAIL PROTECTED] wrote: > CRC> I'm trying to use read_config_read_octet_string() (in 5.1.1) > and I'm not > CRC> getting the results I expect. > > Use the source, Luke... Yeah, I'm trying (that's where I found the snippet I posted). But it's not exactly a

Re: How can I get createUser to be processed?

2004-09-16 Thread cnelson
> On Thu, 16 Sep 2004 08:33:06 -0400 [EMAIL PROTECTED] wrote: > CRC> (Ooops. The first time I replied only to Thomas.) > CRC> > CRC> > Yes, that's current behaviour. The persistent file is only > saved on > CRC> > shutdown.However, I'd tend to agree that it'd be useful to > be able > CRC> > to

Permissions on /var/net-snmp/snmpd.conf

2004-09-16 Thread cnelson
I have an administrative user, admin, who uses a configuration utility to manipulate parts of the system setup, including snmp users. To do this, I've set /var/net-snmp/snmpd.conf to look like: # ls -ld /var/net-snmp/ drwxrwxr-x2 root admin 0 Jan 1 02:14 /var/net-snmp/

Re: How can I get createUser to be processed?

2004-09-16 Thread Users
On Thu, 16 Sep 2004 08:33:06 -0400 [EMAIL PROTECTED] wrote: CRC> (Ooops. The first time I replied only to Thomas.) CRC> CRC> > Yes, that's current behaviour. The persistent file is only saved on CRC> > shutdown.However, I'd tend to agree that it'd be useful to be able CRC> > to force the *running

Re: Am I confused or is read_config_read_octet_string broken?

2004-09-16 Thread Users
On Wed, 15 Sep 2004 13:09:54 -0400 [EMAIL PROTECTED] wrote: CRC> I'm trying to use read_config_read_octet_string() (in 5.1.1) and I'm not CRC> getting the results I expect. Use the source, Luke... CRC> But, if I do: CRC>... CRC>char* pt; CRC>size_t len; CRC>char value[32]; CRC>

Re: ucd-snmp 4.2.3 dies shortly after restart

2004-09-16 Thread Users
On Tue, 14 Sep 2004 16:05:25 -0700 (PDT) unoimdman wrote: U> I moved the original snmp.conf file, restarted U> snmpd but the process is killed shortly after. Any log messages? Try running in the foreground (snmpd -f -L). Try running it under gdb, and see if it crashes or exits. -- Robert Story

Re: undefined symbols compiling the demo app

2004-09-16 Thread Users
On Wed, 15 Sep 2004 14:30:41 +0200 Dalton wrote: DH> When I issue "make snmpdemoapp" DH> I get the following: DH> DH> make snmpdemoapp DH> gcc -I. `net-snmp-config --cflags` -c -o snmpdemoapp.o snmpdemoapp.c DH> gcc: cannot read specs file for arch `i386' What do you get if you run 'net-snmp-co

Re: com2sec or rocommunity?

2004-09-16 Thread Users
On Wed, 15 Sep 2004 07:44:47 +0200 Thomaschewski, wrote: TH> Thanks for your help. Now I understood the different between TH> both but what happens, when both options are standing in the TH> snmpd.conf? TH> TH> Is "com2sec" able to forbidd access when "rocommunity" allows it? Maybe, but not in a

Re: 5.1.2 and 5.2 run on which MAC OS versions ?

2004-09-16 Thread Users
[Moved to users, to get a wider audience] On Wed, 15 Sep 2004 20:05:32 -0400 Michael wrote: MJS> Tha FAQ and README.OSX files need to be updated. MJS> MJS> Which versions do either of you run on ? I've built it and done very minimal testing ('oh look, it starts') on 10.3.5. MJS> What is the rec

question about relative OIDs encoding

2004-09-16 Thread Alberto Pellegrini
Hi all, I am a newbie on this group. I am working with the NET-SNMP library version 5.1.1 and I need some help about BER encoding rules for a relative object identifier. In particular I am referring to the ITU-T Recommendation X.690 - Amendment 1 (06/99). It seems to me that the BER encoding for r

ARM Cross compile

2004-09-16 Thread Baumgart Alexander
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Baumgart Alexander Sent: Donnerstag, 16. September 2004 13:24 To: Net-Snmp Users (E-mail) Subject: ARM Cross compile Hello, i cant cross compile net-snmp on a i686 for arm anymore. ;( yesterd

Re: How can I get createUser to be processed?

2004-09-16 Thread cnelson
(Ooops. The first time I replied only to Thomas.) > [EMAIL PROTECTED] wrote: > > The man page for snmpd.conf says: > > > >... > >This directive should be placed into the /var/net- > >snmp/snmpd.conf file instead of the other normal > >locations. The reason is that the inform

ARM Cross compile

2004-09-16 Thread Baumgart Alexander
Hello, i cant cross compile net-snmp on a i686 for arm anymore. ;( yesterday all work great today i get a error: C compiler cannot create executables i used ./configure --target=arm-linux --with-cc=arm-linux-gcc --with-cflags=-mbig-endian --with-endianness=big --

Re: How can I get createUser to be processed?

2004-09-16 Thread Thomas Anders
[EMAIL PROTECTED] wrote: The man page for snmpd.conf says: ... This directive should be placed into the /var/net- snmp/snmpd.conf file instead of the other normal locations. The reason is that the information is read from the file and then the line is removed (eliminati