more debug information: snmpd select() stopped working when a subagent sent traps

2005-06-24 Thread Emi . Yanagi
I also noticed that agent_session created twice after the send_trap, I suspect the problem is the first agent_session was never released. Will that cause select() stop and master agent lose response? snmp_agent: agent_sesion 0x1015de90 created agentx/master: handle pdu (req=0x2104c5ba,trans=0x0,s

more debug information: snmpd select() stopped working when a subagent sent traps

2005-06-24 Thread Emi . Yanagi
I got more debug information of the problem in the master agent when a subagent sent traps. I started snmpd with debug tokens as below: snmpd -f -Le -Dsnmpd/select -Dsnmp_agent -Dtrap -Dagentx/master In the working case, I see snmpd/select is called right after agent_session release and before

Re: NETSNMP_DS_LIB_DONT_PERSIST_STATE?

2005-06-24 Thread Robert Story
On Fri, 24 Jun 2005 16:06:18 +0200 Thomas wrote: TA> I'm not sure I agree. Why require people to configure like this for the TA> whole toolkit when all they want is to configure like this for a certain TA> application instance? Why not even have a "noPersistentStore" config token? Good point...

Re: NETSNMP_DS_LIB_DONT_PERSIST_STATE?

2005-06-24 Thread Steve Friedl
On Fri, Jun 24, 2005 at 04:06:18PM +0200, Thomas Anders wrote: > >TA> misleading. > > > >Right, but we could easily define a new one, with the same value, and use > >that > >one in all the code (leaving the old one in the header for backwards > >compatability). > > Agreed. Steve, are you willing

Re: NETSNMP_DS_LIB_DONT_PERSIST_STATE?

2005-06-24 Thread Thomas Anders
Robert Story wrote: On Thu, 23 Jun 2005 16:36:51 +0200 Thomas wrote: TA> Unfortunately our compatiblity credo doesn't seem to allow us to rename TA> that #define to something better, because I think it's *really* TA> misleading. Right, but we could easily define a new one, with the same value

Re: undocumented config tokens

2005-06-24 Thread Thomas Anders
Robert Story wrote: On Thu, 23 Jun 2005 13:11:15 +0200 Thomas wrote: TA> As Robert has just removed this (obsolete) token from TA> agent/mibgroup/ucd-snmp/diskio.c, I'm not sure why he still applied my TA> diskio change to snmpd.conf.5.def. It should be removed. Hmm.. in what branch do you st

Re: undocumented config tokens

2005-06-24 Thread Robert Story
On Thu, 23 Jun 2005 13:11:15 +0200 Thomas wrote: TA> As Robert has just removed this (obsolete) token from TA> agent/mibgroup/ucd-snmp/diskio.c, I'm not sure why he still applied my TA> diskio change to snmpd.conf.5.def. It should be removed. Hmm.. in what branch do you still see it? I didn't ap

Re: Question on SNMPv1

2005-06-24 Thread Robert Story
On Thu, 23 Jun 2005 20:07:03 -0400 bryce wrote: B> Can the latest Net-SNMP binaries (windows XP) be set up to monitor my traps? B> [..] The snmptrapd responds with a 0x5de error, so its receiving something B> but its garbage. Seems like you've answered your own question there! B> What are the co

Re: dlmod for windows 2000?

2005-06-24 Thread Robert Story
On Fri, 24 Jun 2005 00:21:15 -0700 (PDT) mahua wrote: MD> how to load modules Dynamically in windows 2000? In solaris 10 There is MD> dlmod option which you can set in the snmpd.conf file. In windows it gives MD> "Warning: Unknown token: dlmod.". MD> MD> Please let me know how can I do the same in

AW: agentx Problem with Visual C++ Compiler

2005-06-24 Thread Naber, Peter
Hello, I have found the solution in the mailing list. I have forgot the SOCK_STARTUP function in my C Program. Now it works fine as Master and agentx Agent :-)) regards, Peter Naber -Ursprüngliche Nachricht- Von: Robert Story [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 24. Juni 2005

Re: agentx Problem with Visual C++ Compiler

2005-06-24 Thread Robert Story
On Thu, 23 Jun 2005 19:45:16 +0200 Naber, wrote: NP> i have a problem with my own agent. I have developed a small agent and NP> compiled it with gcc under cygwin. The agent works fine with snmd-5.2.1 and NP> agentx Interface on localhost:705 First, some terminology. The 'agent' or 'master agent' i

Re: NETSNMP_DS_LIB_DONT_PERSIST_STATE?

2005-06-24 Thread Robert Story
On Thu, 23 Jun 2005 16:36:51 +0200 Thomas wrote: TA> Unfortunately our compatiblity credo doesn't seem to allow us to rename TA> that #define to something better, because I think it's *really* TA> misleading. Right, but we could easily define a new one, with the same value, and use that one in a

Re: make error

2005-06-24 Thread Robert Story
On Thu, 23 Jun 2005 17:51:14 +0530 amit wrote: A> ucd-snmp/versioninfo.c:97:37: warning: character constant too long for its A> type That one is easy.. there is an extra set of quotes around the string on line 97 of that file. Delete them. -- NOTE: messages sent directly to me, instead of the

Re: Issue while implementing POWER-ETHERNET-MIB.

2005-06-24 Thread Robert Story
On Thu, 23 Jun 2005 10:09:23 +0100 Dave wrote: DS> On Thu, 2005-06-23 at 07:38, aakansha rajvi wrote: DS> Then you need to check the length of the incoming value, to DS> see whether it will fit. Something like: DS> DS> if (requests->requestvb->val_len >= 10 ) { DS> netsnmp_set_reques

Re: Compilation problems - interface_linux.c

2005-06-24 Thread Robert Story
On Thu, 23 Jun 2005 09:49:55 +0100 Dave wrote: DS> I'm wondering whether it might not be safer to define these DS> typedefs ourselves... Blech. But you are probably right. Do we define them in the source, or in a header somewhere? I'd say in the source, to discourage their use elsewhere in the cod

SOLVED!Re: help on basic configuration for windows.

2005-06-24 Thread mahua dutta
Yes dev sir it works. Dave Shield <[EMAIL PROTECTED]> wrote: On Fri, 2005-06-24 at 13:25, mahua dutta wrote:> I am tring to run "snmpwalk -v 1 -c public localhost system" ..> It is is giving error as "Timeout: No Response from localhost".That's because you haven't configured "public" as an acceptab

Re: help on basic configuration for windows.

2005-06-24 Thread mahua dutta
No , still the same problem  One more thing I saw in the logfile "snmpd: send_trap: Timeout (No such file or directory)" Any idea? Akshatha Baliga <[EMAIL PROTECTED]> wrote: Try setting the rocommunity as "public" instead of "default"On Fri, 2005-06-24 at 17:55, mahua dutta wrote:> Can any one give

Re: help on basic configuration for windows.

2005-06-24 Thread Dave Shield
On Fri, 2005-06-24 at 13:25, mahua dutta wrote: > I am tring to run "snmpwalk -v 1 -c public localhost system" .. > It is is giving error as "Timeout: No Response from localhost". That's because you haven't configured "public" as an acceptable community string. The *only* community string that y

Re: help on basic configuration for windows.

2005-06-24 Thread Akshatha Baliga
Try setting the rocommunity as "public" instead of "default" On Fri, 2005-06-24 at 17:55, mahua dutta wrote: > Can any one give me some help on basic setup of configuration files? I > think if any one is having the snmpd.conf with basic set up. it will be > fine for me. > > I am trying to config

help on basic configuration for windows.

2005-06-24 Thread mahua dutta
Can any one give me some help on basic setup of configuration files? I think if any one is having the snmpd.conf with basic set up. it will be fine for me. I  am trying to configure it by running "snmpconf -g basic_setup".  I am trying to provide everything as default. I am attaching the snmpd.co

Re: Issue while implementing POWER-ETHERNET-MIB.

2005-06-24 Thread aakansha rajvi
Dave, It is working fine now. :-) The problem is for a Read-Write OID I didnt implement SET_ACTION,RESERVE1 etc., Now I fixed that issue. Moreover sysLocation and sysContact being a read-write oid, I configured them in snmpd.conf during agent configuration which will write-protect these oids.

Re: A question about snmpset

2005-06-24 Thread Dave Shield
On Thu, 2005-06-23 at 11:44, Hongjunli wrote: > stationName OBJECT-TYPE > SYNTAX OCTET STRING (SIZE (0..63)) > MAX-ACCESS read-write > STATUS current > DESCRIPTION > "Station name." > ::= { meshInfoEntry 1 } > > I want to change value of it using command:

Re: Issue while implementing POWER-ETHERNET-MIB.

2005-06-24 Thread Dave Shield
On Fri, 2005-06-24 at 07:33, aakansha rajvi wrote: > I want to capture the snmp packets alone as a result of snmpget > and snmpset operations. > I want to know how to frame the "tcpdump" command to do this. Untested, but something like tcpdump udp port 161 should do the trick. You mi

make error

2005-06-24 Thread amit
hi , i tried compiling the net-snmp-5.1.2 for aix 5.1 again and got a different error. gcc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -g -O2 -Daix5 -c ucd-snmp/versioninfo.c -o ucd-snmp/versioninfo.o ucd-snmp/versioninfo.c:97:37: warning: character

error while make

2005-06-24 Thread amit
hi , this is the errror i get when doing make , i m compiling net snmp 5.1.2 for aix 5.1 echo timestamp > debug_handler.lo /bin/sh ../../libtool --mode=compile gcc -I../../include -I../../include -I. -I.. -I../.. -I. -I./.. -I./../mibgroup -I./../.. -I./../../snmplib -g -O2 -

Re: A question about snmpset

2005-06-24 Thread Hongjunli
stationName OBJECT-TYPE SYNTAX OCTET STRING (SIZE (0..63)) MAX-ACCESS read-write STATUS current DESCRIPTION "Station name." ::= { meshInfoEntry 1 } I want to change value of it using command:snmpset -v 2c -c private localhost:163 stationName.234 s "tester

dlmod for windows 2000?

2005-06-24 Thread mahua dutta
how to load modules Dynamically in windows 2000? In solaris 10 There is dlmod option which you can set in the snmpd.conf file. In windows it gives "Warning: Unknown token: dlmod.". Please let me know how can I do the same in windows platform.__Do You