RE: SNMP PROXY HELP!

2005-04-25 Thread Rustagi, Sandeep (Sandeep)
Hi All, Still not able to resove. Is there any examples available somewhere which I can see how to use proxy token words? Thanks in advance. Rgds, Sandeep -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rustagi, Sandeep (Sandeep) Sent: Friday, April 22, 2

Re: NET:SNMP

2005-04-25 Thread Wes Hardaker
> On Thu, 21 Apr 2005 09:54:59 -0400, Mike Pearson <[EMAIL PROTECTED]> said: Mike> Sorry Dave, I'm trying to learn all I can about SNMP and joined this Mike> list for that purpose, I must have the wrong list. We're a good list for learning about SNMP... Dave's only point was that you were

Re: Resend a received Trap with a different peername

2005-04-25 Thread Wes Hardaker
> On Fri, 22 Apr 2005 09:19:05 +0100, Dave Shield <[EMAIL PROTECTED]> said: Dave> John - you're the expert on the transport stuff. I believe you're suppose to use the wrapper functions rather than deal with things directly. there is a netsnmp_transport_copy that I think may do the right thin

Re: Are there any examples of SNMP::TrapSession - I'll be darnedIf I can get it to work!

2005-04-25 Thread Wes Hardaker
> On Thu, 21 Apr 2005 14:01:04 -0500, "Gary Clark" <[EMAIL PROTECTED]> said: Gary> Has anybody ran purify on this ? No, but i ran valgrind on it and it showed one leak which the previous patch fixed... I wasn't able to produce any more. I may try to mess with it some more then (I need it fi

Re: Processing unsupported objects

2005-04-25 Thread Robert Story
On Mon, 25 Apr 2005 15:14:59 +0530 Sridhar wrote: SS> Thanks for the patch. It is working fine with 80 interfaces, I am SS> required to specify the list of valid columns. Great, I've applied it for the 5.2.3 and 5.3 releases. -- NOTE: messages sent directly to me, instead of the lists, will be d

Re: Missing function ??

2005-04-25 Thread Robert Story
On Mon, 25 Apr 2005 18:46:08 +0530 Sridhar wrote: SS> I am using Net-SNMP version 5.2.1. I was looking at SS> agent/mibgroup/mibII/ifTable.c file. In this file I couldn't find the SS> funciton netsnmp_dal_ifcontainer_init () that appears at line number 68. SS> SS> Am I missing something here ?? P

Re: snmpd hangs/loops on FC3 and RHE4

2005-04-25 Thread Robert Story
On Sat, 23 Apr 2005 09:39:09 -0400 Eric wrote: EVT> I'm having a problem on all Fedora Core 3 and Red Hat Enterprise 4 EVT> systems that have net-snmp-5.1.2 installed. It seems that after some EVT> random amount of time, the snmpd daemon stops responding to snmp EVT> requests. EVT> If anyone kno

RE: Are there any examples of SNMP::TrapSession - I'll be darnedIf I can get it to work!

2005-04-25 Thread Andy Ford
Wes - thanks for responding with a patch. Unfortunately, it didn't work. I limited my perl script to the following but the memory issue still persists... sub my_receiver { print "PDU INFO:\n"; foreach my $k(keys(%{$_[0]})) { my $key = sprintf("%s", $k);

Re: perl module / object value / oid translation

2005-04-25 Thread Stuart Kendrick
hi dave, ok, that works. in these three examples, the first two work, the third does not. $val = $sess->get(".1.3.6.1.4.1.9.9.10.1.1.4.1.1.6.2.1"); $val = $sess->get("CISCO-FLASH-MIB::ciscoFlashPartitionFileCount.2.1"); $val = $sess->get("ciscoFlashPartitionFileCount.2.1"); i've tried enabling d

handle set requests with pass_persist

2005-04-25 Thread Jakob Scheck
Hello, I use a perl script as pass_persist EXEC to handle some OIDs. snmpget and snmpgetnext requests work fine but I am not sure about set requests. # snmpget -v 2c -c COMMUNITY HOST OIOD TYPE STRING results in # Error in packet. # Reason: notWritable (That object does not support modification)

Mem usage for few APIs

2005-04-25 Thread Anuradha Bhakta
Hi, Can anyone let me know the usage of read_config_save_objid() & read_config_read_objid() APIs WRT memory usage. What do these APIs expect to be malloced before their usage and are we supposed to free up after their usage. It would be very greatful if anyone can help me out. Thanks, Anu. --

Missing function ??

2005-04-25 Thread Sridhar S
Hello All, I am using Net-SNMP version 5.2.1. I was looking at agent/mibgroup/mibII/ifTable.c file. In this file I couldn't find the funciton netsnmp_dal_ifcontainer_init () that appears at line number 68. Am I missing something here ?? Please let me know. SrIdhar ---

Re: Question about locations for mib loading

2005-04-25 Thread Fabio Margarido
Ok, let me explain in detail the problem I am experiencing: I deleted my MIB file from the /usr/local/share/snmp/mibs/ and put it on $HOME/.snmp/mibs/. Then I added my MIB to the MIBS variable so that mib2c could find it, as well as the default mibs, with the command: $> export MIBS=+MY-MIB As fa

Re: perl module / object value / oid translation

2005-04-25 Thread Dave Shield
On Mon, 2005-04-25 at 13:12, Stuart Kendrick wrote: > #$val = $sess->get(".1.3.6.1.4.1.9.9.10.1.1.4.1.1.6.2.1"); > $val = $sess->get("ciscoFlashPartitionFileCount.2.1"); > print "val = $val\n"; > -ok, so the Perl client is having trouble converting the object value > ciscoFlashPartitionFileCou

RE: Net Snmp Wrong community works fine

2005-04-25 Thread Jabbala Rajamohan
Thanks a lot. I investigated further and found out what you said was true. MibII was excluded in the agent configuration. After I corrected this it started working. Thanks again. Regards, Rajamohan Jabbala >-Original Message- >From: Wes Hardaker [mailto:[EMAIL PROTECTED] >Sent: Wednesda

RE: Problem on 64 bit machine: Timeout: No response from localhost

2005-04-25 Thread LIAO, GUANGDENG
The OS environment: RHEL Alpha 3 with NET-SNMP 5.1.2. (B (B (B-Original Message- (BFrom: Robert Story [mailto:[EMAIL PROTECTED] (BSent: 2005$BG/(J4$B7n(J22$BF|(J 1:15 (BTo: LIAO, GUANGDENG (BCc: LIAO, GUANGDENG; net-snmp-users@lists.sourceforge.net (BSubject: Re: Problem on 6

RE: Hard Bit

2005-04-25 Thread Kuder, David A.
Wes Hardaker on Thursday, April 21, 2005 7:08 AM said: > > On Thu, 21 Apr 2005 17:13:06 +0530, Sharma Saurabh > > <[EMAIL PROTECTED]> said: > > Sharma> What is "Hard Bit" and how can we have a support for this in > Sharma> SNMP Managers? > > I have no idea what you're referring to and

Re: Processing unsupported objects

2005-04-25 Thread Sridhar S
Hi, Thanks for the patch. It is working fine with 80 interfaces, I am required to specify the list of valid columns. SrIdhar On Fri, 22 Apr 2005 11:07:25 -0400, "Robert Story" <[EMAIL PROTECTED]> said: > On Fri, 22 Apr 2005 14:49:32 +0530 Sridhar wrote: > SS> RS> Nope. What you've done with vali

Re: Memory leak in sub-agents

2005-04-25 Thread Sasikumar Bodathula
Hi, Sorry for mistake i am using netsnmp_register_table(my_handler, table_info); instead of netsnmp_register_table_iterator(my_handler, table_info); Whenever i enter the Handler i process the request i.e. send the request to the EMS and get the response. Whenever getnext or walk on

Re: Memory leak in sub-agents

2005-04-25 Thread Dave Shield
On Mon, 2005-04-25 at 09:51, Sasikumar Bodathula wrote: >I am not populating the data locally(requirement) instead i pass > the request to the EMS and the response is passed to the snmpd > hence there is no need for get_first and get_next methods. OK - then you shouldn't be using

Re: Memory leak in sub-agents

2005-04-25 Thread Sasikumar Bodathula
Hi, I am not populating the data locally(requirement) instead i pass the request to the EMS and the response is passed to the snmpd. The reason behind this approach is if i get a request for the RTP table it is not easy to populated the data locally because it contains more than 100

Re: perl module / object value / oid translation

2005-04-25 Thread Dave Shield
On Mon, 2005-04-25 at 03:12, Stuart Kendrick wrote: > i'm seeing a discrepancy in the value returned by a command-line > get versus a get originating from within the Perl SNMP.pm. Hmmm that looks somewhat strange. The two requests certainly look the same. All I can suggest is a difference in

Re: Memory leak in sub-agents

2005-04-25 Thread Dave Shield
On Mon, 2005-04-25 at 04:30, Sasikumar Bodathula wrote: > Below is the code which i modified to suit our need. Is there > anything wrong with the modification. If you're using the iterator helper, where are the 'get_first' and 'get_next' hook routines? The basic structure of this helper is that y

Re: creating my own MIB to monitor mail queue.

2005-04-25 Thread Dave Shield
On Sat, 2005-04-23 at 14:09, Miguel Gómez wrote: > I have created my own MIB to monitor the exim4 mail queue. I've > created it with an Integer32 OBJECT-TYPE that stores number of mails > in linux queue. And how have you implemented this object? What code did you write? > snmpset -v 2c -c loques