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 snmpd on

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

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=112694=detail=755477 John -Original Message- From: Jim

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 of

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

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

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

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

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

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 for

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 such

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 syntax.

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:

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

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 handy

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 updated for

Re: configure make problems

2004-09-22 Thread Carlos Cantu
$ agent/snmpd -Dmib_init -H 21 | grep hr_ $ agent/snmpd -Dmib_init -I -hr_other,hr_disk -H 21 | 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. --- This

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

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 http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp

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 crashed the