Re: Linking error

2005-12-14 Thread Ganesh Wagh
hi, i have compiled my program with option -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lm I got error message like this Error while loading shared libraries: libnetsnmp.so.5:cannot open shared object file:no such file or directory Actually the same library file in present in /usr/local/lib an

netsnmpd 5.2.1 & stale NFS mount.

2005-12-14 Thread Dean
Hiya, We had a situation recently where a hard NFS mount suddenly became unavailable (it was taken away without unmounting, I know, yuck). After which found that the snmpd process was consuming 3.2% (which on this particular host is 1 full CPU in a 32-CPU 69k - Solaris 9). Further investigation r

RE: migrate from V2 to V3

2005-12-14 Thread Jim Su
Hi Dave: Thanks! -Jim -Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 14, 2005 5:53 PM To: Jim Su Cc: Net-Snmp-Users Subject: RE: migrate from V2 to V3 On Wed, 2005-12-14 at 17:43 +0800, Jim Su wrote: >will all the versions (v1, v2, and v

RE: change the return value in V1 interface counter

2005-12-14 Thread Jim Su
Oh!! Thanks a lot! It will effect all the modules. If no other side effect on others this is a better approach. Thanks again, Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dave Shield Sent: Thursday, December 15, 2005 12:22 AM To: Jim Su Cc: Net-Snmp

RE: Multiple sets in one pdu

2005-12-14 Thread Yong Chen (yongche)
Ok, got it, thanks a lot Dave for your help. Best, Yong Chen > -Original Message- > From: Dave Shield [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 14, 2005 1:10 AM > To: Yong Chen (yongche) > Cc: net-snmp-users@lists.sourceforge.net > Subject: RE: Multiple sets in one pdu > >

Re: Building snmpdemoapp on Win32

2005-12-14 Thread xxx yyy
Further data: Appears link problems only occur when I build the debug version (which I would prefer to have right now) - After numerous "warning LINK4217: locally defined symbol _netsnmp_ imported" msgs, still get "error LNK2001: unresolved external symbol __imp__optind" (3 times) - If this is

snmpd.conf file

2005-12-14 Thread Ingrid Coromoto Mora Guerrero
Hi, First excuse me for my bad english. I'm trying to run a subagent without a master application; instead I need doing this with the service snmpd. I edit the snmpd.conf file adding the line master agentx but can't establish conexion between my subagent and snmpd, I use the 70

Re: question on TRAP-TYPE MACRO in private MIB.

2005-12-14 Thread Ramji Chandramouli
Thanks for the response, Dave. On a related topic, when this TRAP-TYPE MIB object is sent in a trap, is the manager (or agent) expected to perform validation that the variable bindings in the trap conform to the MIB definition ? I ask this because I'm noticing that I can send and receive (using n

Building for target board

2005-12-14 Thread Yogesh A
Hi All,   We are currently using net-snmp-5.2.1 for one of our project. We need to build the net-snmp libraries to work on the target machine. We will be using the compiler "/opt/gcc/bin/mips_fp_le-gcc" for compilation.   For this to compile, I understand that we have to use the following op

RE: change the return value in V1 interface counter

2005-12-14 Thread Dave Shield
On Mon, 2005-12-12 at 18:59 +0800, Jim Su wrote: > I found the way to change the returning value if some object is not in one > device. > #if 0 <= > #if NO_DUMMY_VALUES > return NULL; > #endif <= Why not simply run conf

Re: How to perform long-running task in subagent

2005-12-14 Thread Dave Shield
On Wed, 2005-12-14 at 07:48 -0500, [EMAIL PROTECTED] wrote: > Is there a common idiom for doing something that takes a long time in an > agent? Do I need a separate thread for those actions and have the agent > just set a bit the thread can see? I think something alone those lines is going to be

How to perform long-running task in subagent

2005-12-14 Thread cnelson
I seem to recall seeing something like this on the list before but I had trouble picking keywords to search the archive and the hits I did find, didn't answer my question. I want to use SNMP to trigger a long-running process, mostly during testing, not in production. For example, I want to set a

Re: How to do create a net-snmp subagent without infinite while loop

2005-12-14 Thread Dave Shield
On Wed, 2005-12-14 at 11:53 +0530, Simon Saha wrote: > But as your tutorial suggest my subagent has to be stuck > in an infinite while loop waiting for SNMP request, like the following. > > while(keep_running) { > agent_check_and_process(1); /* 0 == don't block */ > } No - that's not a fu

RE: migrate from V2 to V3

2005-12-14 Thread Dave Shield
On Wed, 2005-12-14 at 17:43 +0800, Jim Su wrote: >will all the versions (v1, v2, and v3) coexisted > if I set --with-default-snmp-version=3 in the configure. What do you understand by the word "default" ? Does it mean "the only thing that can be used" or "the thing that will be used if nothin

RE: migrate from V2 to V3

2005-12-14 Thread Jim Su
Sorry, I forgot to ask one question. The question came up right after I sent the mail. The question is will all the versions (v1, v2, and v3) coexisted if I set --with-default-snmp-version=3 in the configure. The William Stallings'book mentioned the coexistence of v1 and v2. Not sure if the cl

How to do create a net-snmp subagent without infinite while loop

2005-12-14 Thread Simon Saha
I know that I am mailing at wrong address but mails at [EMAIL PROTECTED] are not getting delivered. So please forward my mail to correct destination. Dear Sir/Madam, I am using net-snmp version 5.2.2 to develop a subagent to a protocol stack. I want both the stack and subagent t

RE: migrate from V2 to V3

2005-12-14 Thread Jim Su
Hi Dave: Thanks a lot! It's all clear what need to be done by your explanation. DAVE> --with-default-snmp-version is only relevant to the client DAVE> side tools. The agent doesn't use it at all. So this configure option is for snmpwalk, snmpget, etc. It makes s

RE: migrate from V2 to V3

2005-12-14 Thread Dave Shield
On Wed, 2005-12-14 at 09:42 +0800, Jim Su wrote: > Thanks for the reply. > > The agent is based on the Net-SNMP 5.1.2. > Your reply confirmed that there's not much change in > agent side other than to set --with-default-snmp-version=3, > to include the V3 mibs such as: SNMP-TARGET-MIB.txt , > SNM

Re: Row creation In table with read only access

2005-12-14 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On Wed,

RE: Multiple sets in one pdu

2005-12-14 Thread Dave Shield
On Wed, 2005-12-14 at 00:35 -0800, Yong Chen (yongche) wrote: > Are you saying I can set 'b1' at RESERVE2 (instead of ACTION), then > by the time when 'a1' gets to ACTION phase, it can be set since 'b1' was > set already in previous pass? Yes. > But this approach seems to be not scalable. Correc

RE: Multiple sets in one pdu

2005-12-14 Thread Yong Chen (yongche)
Hi Dave, I see lots of replies from you today, so you had a busy day :-), thanks a lot. Please see my comments embedded. Thanks, Yong Chen > -Original Message- > From: Dave Shield [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 13, 2005 1:22 AM > To: Yong Chen (yongche) > Cc: net-

AW: net-snmp seems to ignore my AgentX subagent

2005-12-14 Thread Daniel Gudlat
On Fri, 2005-09-30 at 16:15 +0200, Daniel Gudlat wrote: > > My /etc/snmpd.conf is kind of bare-bones at the moment: > > > > syslocation Server Room > > syscontact Sysadmin ([EMAIL PROTECTED]) > > rocommunity public 127.0.0.1 > > rocommunity public 194.175.136.0/24 > > master agentx > > AgentXSock