RE: GETNEXT looping problem

2005-05-23 Thread Pamidipati Suresh-G20238
All the tables are owned by one subagent. All of them are registered at table level. Each table has its own handler. Regards, Suresh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Story Sent: Tuesday, May 24, 2005 2:04 AM To: Kurapati M-G19456 Cc

ASN_IPADDRESS data type

2005-05-23 Thread Victor Yeo
good'day after creating c code from MIB file, the code snippet: snmp_set_var_typed_value(request->requestvb, ASN_IPADDRESS, /* XXX: a pointer to the scalar's data */ , /*XXX: the length*/ ); My question is : what is the data type to represent ip ad

ASN_IPADDRESS data type

2005-05-23 Thread Victor Yeo
good'day after creating c code fromMIB file, the code snippet: snmp_set_var_typed_value(request->requestvb, ASN_IPADDRESS, /* XXX: a pointer to the scalar's data */ , /*XXX: the length*/ ); My question is : what is the data type to represent ip add

Re: snmpd proxy problem

2005-05-23 Thread Wes Hardaker
> On Thu, 5 May 2005 12:33:36 +0300, Simas Cepaitis <[EMAIL PROTECTED]> > said: Simas> I had the same config running before, yet sadly I don't remember Simas> exact snmpd version ( it seems it was 5.0.8, but I'm not 100% sure), Simas> and the only difference is that now snmpd running

Re: snmptrap v1 to v2

2005-05-23 Thread Wes Hardaker
> On Tue, 10 May 2005 16:40:11 +0800, Jacky Chan <[EMAIL PROTECTED]> said: Jacky> I have a NMS which support SNMPV1 only. But some of the managed Jacky> objects sending v2 trap only. Can I have net-snmp receive and convert Jacky> the v2-trap to v1-trap and forward to the NMS? We don't current

Re: Using 'trapsess'

2005-05-23 Thread Wes Hardaker
> On Mon, 16 May 2005 10:54:55 +0530, "Sridhar S" <[EMAIL PROTECTED]> said: Sridhar> Is there any other way to send SNMPv3 trap ? This has actually been discussed lately and future versions won't die if the receiver is not up when the agent starts. in any of the released versions, however, t

Re: SNMPv3 SBSM support

2005-05-23 Thread Wes Hardaker
> On Wed, 11 May 2005 20:52:35 -0400, "Shen, Xueli" <[EMAIL PROTECTED]> > said: Xueli> I looked at the project list and found the SBSM is in question Xueli> mark. I am not sure whether there is a plan to do it and what Xueli> is the estimate date. The ISMS working group is just reaching

Re: Maximum size of variable to bind to a trap

2005-05-23 Thread Wes Hardaker
> On Tue, 17 May 2005 13:54:36 -0700 (PDT), "Fabio \"Salsa\" Durieux Lopes" > <[EMAIL PROTECTED]> said: Fabio> What's the maximum size of a variable that's gonna Fabio> be bound to a trap?? It shouldn't matter. Our library can probably send just about anything, but... you don't want to

Re: hrStorageUsed disappeared

2005-05-23 Thread Wes Hardaker
> On Tue, 17 May 2005 15:38:55 -0400, Christopher McGee <[EMAIL PROTECTED]> > said: Christopher> I'm running net-snmp 5.2.1_2 on FreeBSD 4.11 and Christopher> hrStorageUsed is no longer in the list when doing an Christopher> snmpwalk. Has anyone else experienced this? Any Christopher> p

Re: Implied index in table

2005-05-23 Thread Wes Hardaker
> On Sat, 14 May 2005 10:52:16 +0200, Peter Verthez <[EMAIL PROTECTED]> > said: Peter> I'm currently using net-snmp 5.2.1 on Linux (using the SNMP.pm Peter> perl module), and I notice that the perl module doesn't give Peter> any information about whether an index is defined as 'implied' P

Re: row control over arrayuser

2005-05-23 Thread Robert Story
On Mon, 23 May 2005 20:15:03 +0800 (CST) ericyosho wrote: E> #ifndef mplsTunnelResourceTable_CAN_MODIFY_ACTIVE_ROW E> if (undo_ctx && RS_IS_ACTIVE(undo_ctx-> E> mplsTunnelResourceRowStatus) && E> row_ctx && RS_IS_ACTIVE(row_ctx-> E> mplsTunnelResourceRowStatus)) { E> row_err = 1

Re: Using Net-SNMP Perl module

2005-05-23 Thread Wes Hardaker
> On Thu, 19 May 2005 11:01:35 +0200, Frank Kusters <[EMAIL PROTECTED]> > said: Frank> I'm trying to use the Net-SNMP module via Perl. Via gettable I try to Frank> read some SNMP tables in a switch through SNMP v1. The problem is that I Frank> can't read all tables I want to. Frank> If I

Re: snmpv3

2005-05-23 Thread noc-ops{vicky}
Sorry about that, it wasn't intentional. Since I didn't see my original post on the list, thinking it somehow got black-holed. regards, /virendra Wes Hardaker wrote: On Mon, 23 May 2005 11:57:37 -0700, noc-ops <[EMAIL PROTECTED]> said: noc-ops> Just a quick poll, how many are starting to

Re: Subagent kills Master AgentX after sending 299 traps

2005-05-23 Thread Salsa
--- Robert Story <[EMAIL PROTECTED]> wrote: > On Wed, 18 May 2005 13:25:34 -0700 (PDT) Fabio > wrote: > F> The number of traps until it freezes my subagent > F> depends on the size of the trap or something like > F> that. Adding a loop on the notification.c example > made > F> it act just like m

Re: snmp + c api

2005-05-23 Thread Wes Hardaker
> On Thu, 19 May 2005 06:43:50 -0700 (PDT), Alaios <[EMAIL PROTECTED]> said: alaios> Hi i need a simple c program that can query a mib and alaios> get the value of only one mib. Plz help me starting alaios> doing that snmpget or snmpwalk -- Wes Hardaker Sparta, Inc. --

Snmp Set Argument Discrepancy

2005-05-23 Thread Garcia, George - EDS
I am using the Net:SNMP product from within Active Perl 5.2 and am experiencing issues. I perform two functions - first get a variable and trim it then will use the value to tftp the ios from a router to a server. The Get is working fine but the set is not. In order to determine if I had set par

Multiple Send Requests

2005-05-23 Thread Sankar Chokkan
Hi,   I am working in windows XP under Visual C++ environment. I am trying to send multiple GETBULK Message for different OIDs. I need to use only snmp_send and snmp_read instead of snmp_synch_response.   I sent it successfully through snmp_send. But while reading the fd_set after r

Re: snmp + c api

2005-05-23 Thread Robert Story
On Thu, 19 May 2005 06:43:50 -0700 (PDT) Alaios wrote: A> Hi i need a simple c program that can query a mib and A> get the value of only one mib. Plz help me starting A> doing that see the source for snmpget.c. -- NOTE: messages sent directly to me, instead of the lists, will be deleted un

Re: GET-NEXT with multiple varbinds results in a loop.

2005-05-23 Thread Robert Story
On Thu, 19 May 2005 17:22:45 +0530 Pamidipati wrote: PSG> GET-NEXT on last scalar object resulting in a loop is solved when PSG> SNMP_ERR_GENERR is passed to netsnmp_set_request_error() api PSG> for the tables instead of SNMP_NOSUCHINSTANCE. Net-snmp library called the PSG> table handlers in the c

Re: SNMP.pm: Unknown Object Identifier (Sub-id not found: (top) -> enterprises)

2005-05-23 Thread Wes Hardaker
> On Fri, 20 May 2005 13:16:06 +0200, Peter Valdemar Mørch <[EMAIL > PROTECTED]> said: Peter> I experience a problem when attempting to use an enterprise mib with Peter> SNMP.pm without the MIB file. Yeah, go ahead and file a bug report on it... That way we won't forget about it. -- W

Re: Subagent kills Master AgentX after sending 299 traps

2005-05-23 Thread Robert Story
On Wed, 18 May 2005 13:25:34 -0700 (PDT) Fabio wrote: F> The number of traps until it freezes my subagent F> depends on the size of the trap or something like F> that. Adding a loop on the notification.c example made F> it act just like my subagent, only with a different F> number of traps to free

Re: Maximum size of variable to bind to a trap

2005-05-23 Thread Robert Story
On Tue, 17 May 2005 13:54:36 -0700 (PDT) Fabio wrote: F>What's the maximum size of a variable that's gonna F> be bound to a trap?? Depends on the transport.. The maximum size is usually limited by the UDP size limit. F> I ask this because I'm having a (another one) F> problem with my subag

Re: malloc without check

2005-05-23 Thread Wes Hardaker
> On Sat, 21 May 2005 09:46:54 +0200, Andreas Moroder <[EMAIL PROTECTED]> > said: Andreas> reading the sources I have found the following malloc calls Andreas> where there was no check on the result I would have guessed there is probably more than that around... Not that it's good, mind

Re: Master Agent not communicating with sub-agent

2005-05-23 Thread Wes Hardaker
> On Mon, 23 May 2005 18:34:04 +0300, Eyal Schneider <[EMAIL PROTECTED]> > said: Eyal> However, when I send a GET command to the master agent, it is never Eyal> forwarded to the sub agent. Eyal> Did I miss some configuration? Can you walk the nsModuleTable to see if it got registered?

Re: snmpv3

2005-05-23 Thread Wes Hardaker
> On Mon, 23 May 2005 11:57:37 -0700, noc-ops <[EMAIL PROTECTED]> said: noc-ops> Just a quick poll, how many are starting to implement v3 noc-ops> within their networks? If so, what were your challenges in noc-ops> deploying them, if any? We'd appreciate it if you would not repeatedly mail ou

Re: SNMP mails

2005-05-23 Thread Robert Story
On Mon, 16 May 2005 15:17:23 +0530 prashanthu wrote: PB> Recently i have been a net-snmp subscriber. PB> But am not receiving any mails. PB> Any idea what is the problem ? A filter on your end? Did you receive and reply to the subscription confirmation message? PB> Any other lists available ? Y

Re: GETNEXT looping problem

2005-05-23 Thread Robert Story
On Fri, 13 May 2005 18:35:20 +0530 Kurapati wrote: KMG> We are observing following misbehaviors. KMG> KMG> 1. GETNEXT on the last scalar object: KMG> NET-SNMP Library calls the table handlers in the following order. Are any of the tables sub-agents? Are any of them sharing the same handle

Re: array-user snmpbulkwalk worked for a table not entire mib

2005-05-23 Thread Robert Story
On Mon, 23 May 2005 15:49:27 -0400 Robert wrote: RS> On Thu, 12 May 2005 16:22:09 -0400 (EDT) [EMAIL PROTECTED] wrote: RS> JC> I have run into an issue when running snmpbulkwalk on my MIB RS> JC> implemented using array-user in 5.2.1. RS> RS> Was the array-user code generated with

Re: snmpv3 Decryption error with net-snmp 5.2.1

2005-05-23 Thread Wes Hardaker
> On Mon, 23 May 2005 10:26:58 +0200, Stage Iup - Fabrice & Frédéric > <[EMAIL PROTECTED]> said: Stage> I use net-snmp 5.2.1, i have created a snmpv3 user with : Stage> net-snmp-config --create-snmpv3-user -ro -x mypassword -X DES Stage> -A MD5 myuser It looks like you're missing a -a fl

Re: array-user snmpbulkwalk worked for a table not entire mib

2005-05-23 Thread Robert Story
On Thu, 12 May 2005 16:22:09 -0400 (EDT) [EMAIL PROTECTED] wrote: JC> I have run into an issue when running snmpbulkwalk on my MIB JC> implemented using array-user in 5.2.1. I can successfully bulkwalk the JC> information in a single table in the MIB, however, when bulkwalking the JC>

snmpv3

2005-05-23 Thread noc-ops
Just a quick poll, how many are starting to implement v3 within their networks? If so, what were your challenges in deploying them, if any? Any insight will be appreciated. regards, /virendra --- This SF.Net email is sponsored by Oracle

Master Agent not communicating with sub-agent

2005-05-23 Thread Eyal Schneider
Hi, I'm using Net-SNMP as my master agent, and a java program based on J.AgentX as my sub-agent. The sub-agent registers in the agent, specifying the OID scope it is responsible of. The registration seems to be successful. However, when I send a GET command to the master agent, it is never forward

malloc without check

2005-05-23 Thread Andreas Moroder
Hello, reading the sources I have found the following malloc calls where there was no check on the result container_binary.c line 455 subset = malloc((*len) * t->data_size); memcpy(subset, &t->data[start], t->data_size * (*len)); parse.c line 2702 o = (struct objgroup *) ma

FW: print oid of trap received

2005-05-23 Thread Namita
    Hello,   I was trying to print the OID of the trap received. But I’m not able to do with a %s. How do I print it out using snmp_log. Is there any other way? Print oid won’t be of any help anyway.   Thanks and Regards, Namita.      ***NOTE***

Re: Complex tables

2005-05-23 Thread Fabio Margarido
Dave, thanks for all your help. We managed to do it right now, the get_first and get_next procedures were all that needed to be modified indeed. That was easier than I thought... :-) Thanks again for your prompt replies and the excellent piece of software. Keep up the good work! Fabio On 5/23/05,

RE: dynamic modules

2005-05-23 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 Mon

row control over arrayuser

2005-05-23 Thread ericyosho
hi ,all i'm working on my table using array-user template. i just wonder,there BE some code as follows exsiting to avoid setting other columns when its rowstatus is active, #ifndef mplsTunnelResourceTable_CAN_MODIFY_ACTIVE_ROW if (undo_ctx && RS_IS_ACTIVE(undo_ctx-> mplsTunnelResourceRowStatus

Re: dynamic modules

2005-05-23 Thread Dave Shield
On Mon, 2005-05-23 at 12:11, Paul Chen (QD/LJC) wrote: > What does the configure token "--enable-shared" mean? > The online help only says that "build shared libraries", > but what libraries does it build? One library containing the core SNMP handling (libnetsnmp) common to both client- and a

dynamic modules

2005-05-23 Thread Paul Chen (QD/LJC)
Hi, all What does the configure token "--enable-shared" mean? The online help only says that "build shared libraries", but what libraries does it build? Shared MIB modules or something else? And I also find from the source code that the shared modules will be loaded

Re: print oid of trap received

2005-05-23 Thread Dave Shield
On Mon, 2005-05-23 at 10:25, Namita wrote: > I was trying to print the OID of the trap received. > But Iʼm not able to do with a %s. Use print_objid fprint_objid or snprint_objid Dave --- This SF.Net email is sponsored by

print oid of trap received

2005-05-23 Thread Namita
        Hello,   I need some help!! I was trying to print the OID of the trap received. But I’m not able to do with a %s. How do I print it out using snmp_log. Is there any other way? Print oid won’t be of any help anyway.   Thanks and Regards, Namita.         *

Re: ifIndex in enterprise MIB

2005-05-23 Thread Dave Shield
On Sun, 2005-05-22 at 23:09, Stuart Kendrick wrote: > i've just added some of Nokia's enterprise MIB files to my collection ... > and the Perl code i've written which queries 'ifIndex' broke. > seems to me that Nokia has defined 'ifIndex' to mean something > enterprise-specific ... > i'm tryin

Re: Am I missing anything in regards to trap forwarding?

2005-05-23 Thread Dave Shield
On Fri, 2005-05-20 at 22:13, King, John (Greg) (LMIT-HOU) wrote: > I have setup snmptrad to record and format incoming traps to a logfile: > SEC (http://kodu.neti.ee/~risto/sec/) takes this and if a match is found > executes a perl script > The forward script takes the ARGuments and based on the

Re: agent simulator development

2005-05-23 Thread Anton Persson
Hi Sam, I've developed roughly the same thing as you intend to develop. So I think I can help you. The principle idea here is to use ip aliases/virtua interfaces, one for each agent, and to sort incomming requests depending on which interface they arrive on. For this to work I had to patch Ne

Re: Complex tables

2005-05-23 Thread Dave Shield
On Fri, 2005-05-20 at 18:37, Fabio Margarido wrote: > Just an update, I ran mib2c on a multi-indexed table for testing > purposes and guess my guesses were right... :-) They certainly looked correct to me. > But if mib2c automatically generates the > netsnmp_table_helper_add_indexes call with all

snmpv3 Decryption error with net-snmp 5.2.1

2005-05-23 Thread Stage Iup - Fabrice & Frédéric
Hi all I use net-snmp 5.2.1, i have created a snmpv3 user with : net-snmp-config --create-snmpv3-user -ro -x mypassword -X DES -A MD5 myuser and when I want to send this request at the agent : snmpget -v 3 -u myuser -l authPriv -a MD5 -A mypassword -x DES -X mypassword localhost sysUpTime.