subagent code based on example.c

2004-09-22 Thread Tina Agarwal
Hi All,   I have a small question..Can't I make a subagent with a C source file made on the basis of example.c and H file made on the basis of example.h. Is it necessary to make a C module using mib2c utility for making a subagent??   Regards! Tina    

RE: snmpd crashed by snmpwalk

2004-09-22 Thread Jim Su
Title: RE: snmpd crashed by snmpwalk Hi John:      Thanks for the input. I did some experiment on my target machine. I asked the owner of the target machine to check if there is any card has no IP address. He found one and added the IP address.    The snmpwalk still crashe

Re: ssCpuRawWait on Linux 2.6?

2004-09-22 Thread Users
On Wed, 22 Sep 2004 14:21:53 -0600 Darren wrote: DG> My C is not fantastic, but I'll give it a go. Could you just point me at DG> the file(s) I should be looking at? agent/mibgroup/ucd-snmp/vmstat.c -- Robert Story; NET-SNMP Junkie Archive:

RE: waitpid for child processes invoked from agent

2004-09-22 Thread Jim Su
Hi Robert: Thanks a lot for your kind reply. It makes sense to me now. Just one more question to fully clarify this matter. From the description from man page. I have feeling that I have to set the value of pid to "0" - which means to wait for any child process whose process group ID is eq

Re: configure make problems

2004-09-22 Thread Carlos Cantu
> $ agent/snmpd -Dmib_init -H 2>&1 | grep hr_ > $ agent/snmpd -Dmib_init -I -hr_other,hr_disk -H 2>&1 | grep hr_ Is mib_init a keyword I need in the options? I was doing my call as: snmpd -V -Dagentx -I -hr_other,hr_disk,etc Thanks. --- Thi

RE: ssCpuRawWait on Linux 2.6?

2004-09-22 Thread Darren Gamble
Good day, > On Wed, 22 Sep 2004 12:55:09 -0600 Darren wrote: > DG> Is it possible to have net-snmp return ssCpuRawWait for Linux 2.6 > kernels? > DG> Wait CPU is tracked separately than Idle under 2.6, but, this object > does > DG> not exist under my agent. > > The agent probably hasn't been upda

Re: ssCpuRawWait on Linux 2.6?

2004-09-22 Thread Users
On Wed, 22 Sep 2004 12:55:09 -0600 Darren wrote: DG> Is it possible to have net-snmp return ssCpuRawWait for Linux 2.6 kernels? DG> Wait CPU is tracked separately than Idle under 2.6, but, this object does DG> not exist under my agent. The agent probably hasn't been updated for 2.6. If you are han

Re: net-snmp agent and concurrency.

2004-09-22 Thread Users
On Wed, 22 Sep 2004 09:06:37 +0200 Asaf wrote: AM> I have question regarding net-snmp table access concurrency (net-snmp AM> 5.1.2): AM> AM> If I open two snmp browser and view different table in each one of them. AM> Can one table walk command preempt the other? A walk is simply a series of get-

Re: SNMP Trap Decode

2004-09-22 Thread Users
On Fri, 17 Sep 2004 14:10:50 -0500 Will wrote: WC> I downloaded the source code. Would you kindly point me which source WC> files can lead me to decoding? I suggest running snmptrapd under a debugger, and following the code flow. -- Robert Story; NET-SNMP Junkie Ar

RE: How to return an snmp error from a table handler routine

2004-09-22 Thread Virender Singh Chauhan
Hi Rob, Thanks. And just for the records I found another way. I can use snmp_set_var_typed_value(var, SNMP_NOSUCHINSTANCE, 0, 0 ) as well. This too works. Viren -Original Message- From: Robert Story (Users) [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 12:56 AM To: Virend

Re: configure make problems

2004-09-22 Thread Users
On Wed, 22 Sep 2004 10:02:53 -0600 Carlos wrote: CC> > Instead of configuring them out, disable them at startup: CC> >snmpd -I CC> -hr_filesys,hr_swinst,hr_proc,hr_partition,hr_print,etc CC> CC> Tried this but still getting MIBs dumped. I don't see anything CC> wrong with the syn

Re: ucd-snmp 4.2.3 dies shortly after restart

2004-09-22 Thread Users
On Tue, 21 Sep 2004 07:37:35 -0700 (PDT) unoimdman wrote: U> Snmpd will stay running if I schedule an immediate U> check from netsaint. Have you tried to reproduce this with ucd-snmp 4.2.6 or net-snmp 5.1.2? U> How do I run it under gdb? start gdb with the path to your executable, and then run s

Re: How to return an snmp error from a table handler routine

2004-09-22 Thread Users
On Mon, 13 Sep 2004 23:01:36 +0530 Virender wrote: VSC> I have used mib2c.iterate.conf to generate code for my tables. VSC> If I do not have a proper value to return for a get/getnext request in the VSC> handler routine and want to return to the request sending application a VSC> 'no name' or 'no s

Re: waitpid for child processes invoked from agent

2004-09-22 Thread Users
On Mon, 20 Sep 2004 12:30:35 +0800 Jim wrote: JS> I do have the waitpid() routine inside the sa_handler of the daemon JS> which the snmpd get value from. The waitpid is as following - if JS> (waitpid(-1, &status, WNOHANG) < 0) { return; } That is your problem. WNOHANG means don't wait

Re: Help, please. Can't get privacy to work

2004-09-22 Thread cnelson
My agent was missing ssl. After much pain rebuilding, all it well. Thanks. --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project t

ssCpuRawWait on Linux 2.6?

2004-09-22 Thread Darren Gamble
Good day, Is it possible to have net-snmp return ssCpuRawWait for Linux 2.6 kernels? Wait CPU is tracked separately than Idle under 2.6, but, this object does not exist under my agent. Fedora Core 2, net-snmp-5-1.1 (the included RPM in the distro). Googling on this subject just revealed other pe

RE: Table Get Time Complexity O(k(n^2)) ??

2004-09-22 Thread Asaf Matan
Dave, This one really helped +iinfo->flags |= NETSNMP_ITERATOR_FLAG_SORTED; winpath: Ifc Get 6 winpath: Ifc Get 1st winpath: Ifc Get next winpath: Ifc Get 6 winpath: Ifc Get 1st winpath: Ifc Get next winpath: Ifc Get next winpath: Ifc Get 6 winpath: Ifc Get 1st winpath: Ifc Get next winpa

Re: configure make problems

2004-09-22 Thread Carlos Cantu
> Instead of configuring them out, disable them at startup: > >snmpd -I -hr_filesys,hr_swinst,hr_proc,hr_partition,hr_print,etc Tried this but still getting MIBs dumped. I don't see anything wrong with the syntax. Perhaps the minus "-" needs to be in front of each of the modules

net-snmp 5.1.1: memory leak in mteTriggerTable.c:216

2004-09-22 Thread Tam Thi Vo
Dear all, Please help me in this issue: I use net-snmp 5.1.1 on Readhat 9 to implement some own MIBs. I used ValGrind tool, (valgrind.kde.org), to check memory leak errors. After I fix all of my bugs, there is still one leak reported in mteTriggerTable.c (line 216), although I didn't touch anything

RE: snmptrapd traphandle error

2004-09-22 Thread "Fernández Piñas, David"
Thank you Alex, creating the c:\tmp directory (the easiest and quickest solution) has done the trick !! > -Original Message- > From: Alex Burger > Sent: Wednesday, September 22, 2004 5:07 PM > To: Fernández Piñas, David > Cc: [EMAIL PROTECTED] > Subject: Re: snmptrapd traphandle error >

Re: snmptrapd traphandle error

2004-09-22 Thread Alex Burger
Hi David. Fernández Piñas, David wrote: Hi all, I am running a compiled version of snmptrapd (NetSNMP 5.1) on a Windows 2000 PC. I get the next error when I specify a traphandle directive at snmptrapd.conf file: make_tempfile: error creating file /tmp/snmpda01896 Make sure you define a temporary p

snmptrapd traphandle error

2004-09-22 Thread "Fernández Piñas, David"
Hi all, I am running a compiled version of snmptrapd (NetSNMP 5.1) on a Windows 2000 PC. I get the next error when I specify a traphandle directive at snmptrapd.conf file: make_tempfile: error creating file /tmp/snmpda01896 Has anybody see this message before? Any suggestion about solving this

Re: Help, please. Can't get privacy to work

2004-09-22 Thread cnelson
> ... > > How can I prove that snmpd has SSL build in? > > U... > > a) Try > snmpget UCD-SNMP-MIB::versionConfigureOptions.0 > > That won't say explicitly, but will indicate how the suite was > configured (which may indicate if it either turned on or turned off > use

RE: snmpd crashed by snmpwalk

2004-09-22 Thread John Blake
Title: RE: snmpd crashed by snmpwalk  Jim,  I had the same issue but it was because of a bug in SNMP. If there is no ip address on the interface, then it crashes. My OS is solaris.  http://sourceforge.net/tracker/?group_id=12694&atid=112694&func=detail&aid=755477    John -Original Messa

Re: Table Get Time Complexity O(k(n^2)) ??

2004-09-22 Thread Dave Shield
> When I try to walk or do table get from the client I get: > This is like O(k*(n^2) complexity > How can I make the scan more efficient?? a) Use 'snmpbulkwalk' (with v2c/3) (which will try to get as much as possible in one go) b) Use 'snmptable' (which will walk the colu

Re: Help, please. Can't get privacy to work

2004-09-22 Thread Dave Shield
> > Ethereal reports that the reply to my encrypted PDU requesting > > sysLocation is a value of 3 for > > SNMP-USER-BASED-SM-MIB::usmStatsDecryptionErrors.0. That would tend to indicate that it's the *agent* that can't decode the incoming request properly. > I infer that something about snmp

net-snmp agent and concurrency.

2004-09-22 Thread Asaf Matan
I have question regarding net-snmp table access concurrency (net-snmp 5.1.2):   If I open two snmp browser and view different table in each one of them.   Can one table walk command preempt the other?   I’m asking that because I want to know if I can make global one heap allocation fo

Table Get Time Complexity O(k(n^2)) ??

2004-09-22 Thread Asaf Matan
I have kind of simple/basic question but your answer is very important to me…   I use net-snmp 5.1.2 with extended table code generated by mib2c   When I fetch single table node I get the following trace from xxx_access.c module.   Here I fetch the  first column first row winpath: I