error on subcontainer remove (-1) while deleting row

2008-01-29 Thread Awadhesh Kumar
Hi, I am using Net-Snmp 5.4.1 for agent development. I am using mib2c configuration array-user.conf for snmp table implementation. I am using net-snmp API for row creation (CONTAINER_INSERT) and row deletion (CONTAINER_REMOVE). We have requirement to delete the particular row based on ceratin non-i

snmpbulkget mismatch??

2008-01-29 Thread yuchen lu
Hello everyone, I've been working on a project which uses netsnmp to monitor the backend systems. However I found out that the returned data had been mismatched whenever it's retriving information from hrStorageTable. Following is what i entered on the command: "snmpbulkget -v2c -c amail 4.4.4.3

snmpinform questions

2008-01-29 Thread Antonio Grassi
Hi list. We are implementing a system in wich we have a "Monitor" and a "Monitoring Central". Certain events in the monitor generate an alarm which is sent to the monitoring central in a snmp notification. We would like to be sure that every alarm generated on the monitor arrives one and only

RE: snmpd -D [TOKEN] option - What is TOKEN?

2008-01-29 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: Tuesday, January 29, 2008 10:16 AM > As far as I can tell by rummaging through all of the > documentation, when > running snmpd -D [TOKEN], these snmp_log messages get > outputed. However, > the doc

RE: snmp_log() statements - Where do They Get Logged?

2008-01-29 Thread Mike Ayers
> From: Wes Hardaker [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 29, 2008 12:19 PM > > "MA" == Mike Ayers <[EMAIL PROTECTED]> writes: > > MA> I went looking there the other day and found that I was apparently > MA> unable to configure logging in snmpd.conf. Is this correct? > > No,

Should we send authenticationFailure traps when auth fails when using SNMPv3

2008-01-29 Thread Buchupalli, Sasidevi
In SNMPv1 and v2c, if there is any authentication failure on the agent, it can send an authenticationFailure trap to the sender of the SNMP request. Shouldn't we be doing the same even in the case of an SNMPv3 agent. The RFC seems to be vague or left it to the implementation of the calling module,

RE: How To Trace and Dump Raw Packets When Testing a Subagent?

2008-01-29 Thread Smith_Randy
thank you much - exactly what I was searching for. Just not obvious when time becomes a factor as in my case. Randy -Original Message- From: Wes Hardaker [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2008 2:05 PM To: Smith, Randy Cc: net-snmp-users@lists.sourceforge.net Subject:

snmpd -D [TOKEN] option - What is TOKEN?

2008-01-29 Thread Smith_Randy
Hello, I'm desperately trying to debug something. I've noticed that throughout net-snmp modules, there are calls to "snmp_log" which log messages to an error log somewhere, however, I have been unable to find how these messages get printed out in the documention. As far as I can tell by rummaging

installation guide

2008-01-29 Thread Carey Auguste
I've been reading the document trying to find the installation instruction for net-snmp 5.4.1. But couldn't find it. Could u please email me the instruction Thank You - This SF.net email is sponsored by: Microsoft Defy

Re: usmUserSpinLock - is it optional for the managers to use ?

2008-01-29 Thread Wes Hardaker
> "SB" == Sasidevi Buchupalli writes: SB> May be it is a more general SNMP question than a net-snmp question. That's ok (unless the questions get really complex) ;-) SB> Is using usmUserSpinLock mandatory? Based on the RFC, it is an advisory SB> lock, which probably means it is recommended

Re: snmp_log() statements - Where do They Get Logged?

2008-01-29 Thread Wes Hardaker
> "MA" == Mike Ayers <[EMAIL PROTECTED]> writes: MA> I went looking there the other day and found that I was apparently MA> unable to configure logging in snmpd.conf. Is this correct? No, you should be able to. I use -Le all the time when debugging, for example. -- Wes Hardaker Sparta, Inc

RE: snmp_log() statements - Where do They Get Logged?

2008-01-29 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Wes Hardaker > Sent: Tuesday, January 29, 2008 11:03 AM > See the snmpcmd manual page on the LOGGING OPTIONS section to describe > how to get the various tools to send their log output somewhere. I went looking there t

usmUserSpinLock - is it optional for the managers to use ?

2008-01-29 Thread Buchupalli, Sasidevi
May be it is a more general SNMP question than a net-snmp question. Is using usmUserSpinLock mandatory? Based on the RFC, it is an advisory lock, which probably means it is recommended but not necessary. We are in a situation, where the manager doesn't use it. But the agent is failing if the ma

Re: How To Trace and Dump Raw Packets When Testing a Subagent?

2008-01-29 Thread Wes Hardaker
> "SR" == Smith Randy <[EMAIL PROTECTED]> writes: SR> Is there a way to trace what happens within the agent when my subagent SR> sends the trap through it? You can turn on debugging output which may help see what's happening. See the documenation on the -D switch in the snmpd.conf manual pag

Re: snmp_log() statements - Where do They Get Logged?

2008-01-29 Thread Wes Hardaker
> "SR" == Smith Randy <[EMAIL PROTECTED]> writes: SR> Throughout net-snmp code I see calls to snmp_log(), but where do these SR> statements actually get logged - which file do they get logged to and SR> where is this log file? Or how do I see this information? See the snmpcmd manual page on

Re: upgrading from 5.2.3 to 5.2.4

2008-01-29 Thread Wes Hardaker
> "AB" == Adam Bell writes: AB> '--enable-mini-agent' Unfortunately, mibII/vacm_conf was missing from the needed modules for a mini agent. If you add it back in those tokens should reappear (this has since been corrected in the source tree but hasn't made it to a release yet). -- Wes Harda

Re: Doubt in Network topology

2008-01-29 Thread Brian Loe
Hub is impossible - unless its some fancy managed hub (never used one - if they exist) - must do physical survey. Most switches will have a forwarding database you can look at, just eliminate all IPs/MACs that are connected to uplink ports from the list and you'll have it. On Jan 29, 2008 12:10 P

Doubt in Network topology

2008-01-29 Thread mano
Hi , how can i do the topology of a network?? For example , how can i know whether a group of PC's are connected to a switch or hub or router?? Thanks in advance for your help, Mano - This SF.net email is sponsored by: Micr

README file (ver 5.4.1)

2008-01-29 Thread Isaac Eliassi
Hi, At the README file (ver 5.4.1) I think that there is a minor error, instead of This gives the following code fragment: int header_generic(vp, name, length, exact, var_len, write_method) { oid newname[MAX_OID_LEN]; memcpy((char *)newname, (char *)vp->name,

RE: upgrading from 5.2.3 to 5.2.4

2008-01-29 Thread Bell, Adam
Thomas Attached is the configure script Here is the output of net-snmp-config --configure-options - it does not exactly match the configure script, I reran the configure script and checked again but some includes are missing. The with-mib-modules is not right either - odd. '--enable-mini-agent'

how to create mutliple rows in MIB table through C

2008-01-29 Thread Shardul Kumar, Chennai
Hi, I want to create 2 rows in my mib table which contains one index and two columns. I wrote netsnmp_table_row_add_index and netsnmp_set_row_column to put my data In index and column for two rows in initialize_table_mytable method but while running GET request it is giving only one

Re: upgrading from 5.2.3 to 5.2.4

2008-01-29 Thread Thomas Anders
Bell, Adam wrote: > I recently upgraded from net-snmp-5.2.3 to net-snmp-5.2.4. Everything > seems to be OK so far except for the following: > [...] > /usr/local/share/snmp/snmpd.conf: Line 71 Warning: Unknown token: group > /usr/local/share/snmp/snmpd.conf: Line 81 Warning: Unknown token: view

snmp_log() statements - Where do They Get Logged?

2008-01-29 Thread Smith_Randy
Hello, Throughout net-snmp code I see calls to snmp_log(), but where do these statements actually get logged - which file do they get logged to and where is this log file? Or how do I see this information? Do I need to recompile with the --enable-debug flag to view these messages? Thanks for y

How To Trace and Dump Raw Packets When Testing a Subagent?

2008-01-29 Thread Smith_Randy
Hello, I have a simple subagent which sends a trap through the agent and out to the manager. However, on the manager side, using "MIB smithy" I'm not seeing the trap via. "Trapwatch" tool. However, I know that the mib Smithy tool and the agent (snmpd) on the host are talking because I see the "col

problem with cross compilation

2008-01-29 Thread Kulkarni Raveendra-a22868
Hello, I am trying to cross compile net snmp 5.4.1 for a mips processor. Make is throwing some error :( my gcc: #$TOOL_CHAIN-gcc --version mipsisa32-xlr-linux-gcc (GCC) 3.4.3 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There

RE: SNMPD not responding sometimes even though it is up and running

2008-01-29 Thread Sekhar Reddy Ravi-G20226
With further debugging I came to know that snmpd fails to unset the delegated flag in the global agent_delegated_list ( agent_delegated_list->requests->delegated ) because of memory corruption In the close_session flow snmpd is freeing all the requests in the session_list but fails to unset the de

upgrading from 5.2.3 to 5.2.4

2008-01-29 Thread Bell, Adam
Hi all, I recently upgraded from net-snmp-5.2.3 to net-snmp-5.2.4. Everything seems to be OK so far except for the following: My users defined in /var/net-snmp/snmpd.conf were erased when I ran the agent. The user declarations in the /user/local/share/snmp/snmpd.conf file are still there. I t