Linking error

2005-12-08 Thread Ganesh Wagh
Hi my problem got solved.Thanke for your help. i am passing snmpd.conf file to snmpd daemon using -c option. Now i am having other problem that i written C program using net-snmp funtions like snmp_session etc. I am getting linking error collect2: ld return with exist error 1 i am compiling my p

RE: Question about netsnmp_call_handlers() function in snmp_agent.c

2005-12-08 Thread Yong Chen (yongche)
Ok, got it, I think I missed the "old_api" part. Thanks a lot Dave, I appreciate your great help. Best, Yong Chen -Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 1:18 AM To: Yong Chen (yongche) Cc: net-snmp-users@lists.sourceforge.net Su

Re: AW: Net-snmp on Windows: write snmpget output directly to a file ?

2005-12-08 Thread Andy Smith
Karl Schuster wrote: Hello Andy, I am using snmpget not snmpd ! My mistake, I see that now. The -Lf option exists, but it works only if there are errors or warnings. On a successfull snmpget operation it is not used. This my experience, perhaps I am wrong, or I have to setup something additi

What should an agent return if the object doesn't exist?

2005-12-08 Thread Tom Cumming
Right now our MFD based agent returns MFD_SKIP if an object doesn't exist, and that's gets translated by net-snmp into a value being returned who's type is, SNMP_NOSUCHINSTANCE (which is really ASN__CONTEXT | ASN_PRIMITIVE | 0x1). This seems correct according to the RFC (A snippet follows).

Question about Trap information being sent

2005-12-08 Thread Richard Wellhouse
Hi!   I am currently working on getting net-snmp working with SLES and the trap is being sent to the management station, but net-snmp is changing the Enterprise OID to 1.3.6.1.4.1.8072.3.2.10.  We would expect it to forward the trap it recieved from the subagent and leave the Enterprise OID as 1.

A bug in com2sec6 and in rocommunity6/rwcommunity6

2005-12-08 Thread sasson_shuki
Title: A bug in com2sec6 and in rocommunity6/rwcommunity6 Hi all, I came across a bug while testing access view for IPv6. Basically the following line in snmpd.conf will not work right: com2sec6 public6_comm  3ffe:80c0:22c:cafe:211:43ff:fedb:7876 public6 The reason for that is that the strin

building the SNMP & NetSNMP modules.

2005-12-08 Thread Dave Littrell
What I have here is a problem compiling the perl modules for net-snmp 5.2.2. I'm very much hoping that I've overlooked something obvious, and any insight about where it's going wrong would be welcome. This is the machine: [EMAIL PROTECTED] net-snmp-5.2.2]# cat /etc/redhat-release Fedora Core r

How to cross compile NET-SNMP

2005-12-08 Thread Hector Oron
Hello folks,  I've been trying to cross-compile net-snmp for ppc over i386. I have build a script with some of the options that we should select. I'm able to generate my binary file, but when i start snmpd agent it doesn't work as I expect. Target: MPC-855 (ppc), glibc-1.99, kernel-2.4.18 Ho

Re: Cross Compilation for Linux

2005-12-08 Thread Hector Oron
Why don't you just compile native over i386 ?On 12/6/05, Rustagi, Sandeep (Sandeep) <[EMAIL PROTECTED]> wrote: Hi,I wish to compile the net-snmp code for SNMPv1 and SNMPv2 on solaris machine forlinux target.Please suggest me what options I should use for configuring.I have give the following option

Re: Some questions

2005-12-08 Thread Dave Shield
On Mon, 2005-12-05 at 13:06 +0800, Augusto Salazar wrote: > here are the errors when I try to compile the 5.2.2 in my RH 9, > In file included from if-mib/data_access/interface_linux.c:27: > /usr/include/pci/pci.h:29: parse error before "byte" > /usr/include/pci/pci.h:30: parse error before "u8"

Re: Why free space not shown while doing snmpwalk to HOST-RESOURCES-MIB::hrStorage

2005-12-08 Thread Dave Shield
On Thu, 2005-12-08 at 10:03 +, John Joseph wrote: > I got the parameters like "hrStorageSize”,“hrStorageUsed” > But I did not see any parameter showing free space on storage > I would like to know why this result of free space is not shown Because it's not necessary. If you know how big

Why free space not shown while doing snmpwalk to HOST-RESOURCES-MIB::hrStorage

2005-12-08 Thread John Joseph
Hi I was going through the result which I got suing snmpwalk for ".iso.org.dod.internet.mgmt.mib-2.host.hrStorage" I got the parameters like “hrStorageSize”,“hrStorageUsed” But I did not see any parameter showing free space on storage I would like to know wh

Re: SNMP v3 user creation

2005-12-08 Thread Dave Shield
On Wed, 2005-12-07 at 14:07 -0800, Connie Chan wrote: > I would like to create snmp v3 user to access the SNMP stack. > > I tried to use snmpusm to create the user and got the following error: >snmpusm -v 2c -c private snmp-server create USER rwusr No - that won't work. snmpusm works by "clo

RE: Question about netsnmp_call_handlers() function in snmp_agent.c

2005-12-08 Thread Dave Shield
On Wed, 2005-12-07 at 16:02 -0800, Yong Chen (yongche) wrote: > 1. where do you populate treecache for a SET request? > Is it "netsnmp_add_varbind_to_cache"? And is it the place that you > combine all varbinds having the same handler into one "requests" I think so, yes. I'm not very familiar with

SNMP v3 user creation

2005-12-08 Thread Connie Chan
Hi all,   I'm new to the net-snmp   I would like to create snmp v3 user to access the SNMP stack.   I tried to use snmpusm to create the user and got the following error: net-snmp-5.2.1.2>apps/snmpusm -v 2c -c private snmp-server create USER rwusrError in packet.Reason: noCreation (That tab

Re: Problem with snmptrap

2005-12-08 Thread Andrei Pisau
On Wed, 2005-12-07 at 20:59 +0100, Thomas Anders wrote: > Andrei Pisau wrote: > > On Wed, 2005-11-30 at 11:08 -0800, Wes Hardaker wrote: > >>It is definitely a new bug. It works in 5.1.x code, but not 5.2.x... > >> > > > > I have tried and it works with 5.2.1, but not with 5.2.2. > > Just in cas