RE: Installing Perl SNMP support on Windows

2010-09-14 Thread Vinod Nanjaiah
Hello Vinod, Are you trying to build the Perl modules with MinGW ? As you can see on the Net-SNMP wiki (http://www.net-snmp.org/wiki/index.php/Build_System/Windows), that does not yet work. Bart. Hi Bart, I tried building perl modules from command prompt as suggested in the README. I

RE: Installing Perl SNMP support on Windows

2010-09-09 Thread Vinod Nanjaiah
pointers. Thank you, Vinod From: bart.vanass...@gmail.com [mailto:bart.vanass...@gmail.com] On Behalf Of Bart Van Assche Sent: Monday, September 06, 2010 8:47 PM To: Vinod Nanjaiah Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Installing Perl SNMP support on Windows On Mon, Sep 6, 2010

Installing Perl SNMP support on Windows

2010-09-06 Thread Vinod Nanjaiah
Hi! As per the Perl README file (http://www.net-snmp.org/docs/perl-SNMP-README.html), I am trying to install perl support for snmp. But, on running win32\nmakeperl.bat, it is exiting with the following error. Make the Perl SNMP modules. NMAKE : fatal error U1077: 'C:\Program Files\Microsoft

RE: Installing Perl SNMP support on Windows

2010-09-06 Thread Vinod Nanjaiah
Just to add to this, I am running net-snmp-5.4.3 as suggested by Bart Van Assche Thank you, Vinod From: Vinod Nanjaiah Sent: Monday, September 06, 2010 4:21 PM To: 'net-snmp-users@lists.sourceforge.net' Subject: Installing Perl SNMP support on Windows Hi! As per the Perl README file (http

RE: Installing Perl SNMP support on Windows

2010-09-06 Thread Vinod Nanjaiah
On Mon, Sep 6, 2010 at 12:55 PM, Vinod Nanjaiah vinod_nanja...@mindtree.commailto:vinod_nanja...@mindtree.com wrote: Just to add to this, I am running net-snmp-5.4.3 as suggested by Bart Van Assche [ ... ] As far as I know version 5.4.3 builds fine, so there might be a problem with the setup

Building net-snmp on windows

2010-09-02 Thread Vinod Nanjaiah
Hi! I am trying to build net-snmp-5.5 on Windows-7 and am stuck at the point where netsnmpmibssdk is to be built. Build instructions that I followed are from http://net-snmp.sourceforge.net/docs/README.win32.html -- 5. Build the applications -- MS VC++ 7.0+: Projects libagent, libhelpers,

problem with snmpd

2010-06-04 Thread Vinod Nanjaiah
Hi, I have observed the following problem with snmpd (net-snmp version 5.4.2). I am running two sub-agents and snmpd on my system. After a few days of running correctly, the sub-agents stop responding (to snmpget requests). On restarting snmpd only, the sub-agents start responding again. Is

handling inconsistent Database files

2010-05-27 Thread Vinod Nanjaiah
Hi, Are there any strategies in sqlite for avoiding Databases getting into an inconsistent state due to an application crash, system crash, etc. One scenario could be that my application is writing onto a DB file when the application crashes. When the application comes up next, it would most

concurrent snmp requests

2009-10-08 Thread Vinod Nanjaiah
Hi, Can a net-snmp sub-agent handle concurrent requests from multiple managers? Regards, Vinod http://www.mindtree.com/email/disclaimer.html -- Come build with us! The BlackBerry(R)

RE: concurrent snmp requests

2009-10-08 Thread Vinod Nanjaiah
-Original Message- From: Mike Ayers [mailto:mike_ay...@tvworks.com] Sent: Thursday, October 08, 2009 10:16 PM To: Vinod Nanjaiah; net-snmp-users@lists.sourceforge.net Subject: RE: concurrent snmp requests From: Vinod Nanjaiah [mailto:vinod_nanja...@mindtree.com] Sent: Thursday

issue with snmpd

2009-09-10 Thread Vinod Nanjaiah
Hi! The snmpd that I use (from net-snmp 5.4.2) usually runs fine for about a week. Then the sub-agents just don't respond to any snmp requests. But, if I restart the snmpd only, then my sub-agents again start to work. Using top, I noticed that snmpd was hogging memory. From about 2K when I

RE: problem using snmp_parse_args

2009-05-20 Thread Vinod Nanjaiah
string, security name or the two pass phrases). This is to avoid them being visible in the output of ps or in core dumps. Untested, but you might want to try setting the first parameter to be snmpd-proxy. This will suppress the clearing of these sensitive parameters. (We could perhaps do

problem using snmp_parse_args

2009-05-19 Thread Vinod Nanjaiah
Hi, Has anyone faced any problems in using snmp_parse_args? This is used in the snmptrap.c file. I am trying to send trap from an ARM board to a host pc. When control comes to snmp_parse_args, it messes up the argc and argv parameters and the program seg faults at a later point when the argv is

using 'snmptrap'

2009-05-14 Thread Vinod Nanjaiah
Hi, I am trying to send trap using snmptrap -v 1 -c mycommunity 172.22.65.40 1.3.6.1.4.1.3.1.1 localhost 2 0 '' But on the receiving host, where I am running snmptrapd, it just prints Trap from 172.22.65.58 How can I get the Trap description (cold start, warm start, link down, etc) also to be

snmptrap - fails on second attempt

2009-05-09 Thread Vinod Nanjaiah
Dear experts, I am not sure why sending trap fails the second time. Any thoughts on why this happens? I am using snmptrap.c from net-snmp-5.4.2. The netsnmp_transport_open_client() called within snmp_add () fails and throws this error. No support for any checked transport domain I

RE: snmptrap - library calls

2009-05-08 Thread Vinod Nanjaiah
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] There doesn't seem to be any sample program available on the net for traps. apps/snmptrap.c I used the snmptrap.c from net-snmp version 5.4.2 and this is what I observed. 1 I am able to send a generic trap once 2 the

snmptrap - library calls

2009-05-07 Thread Vinod Nanjaiah
Dear Experts, I did not find much information in net-snmp website about how to implement an application to send traps. Can you please give me some pointers to the same? Regards, Vinod man snmptrap Well, snmptrap can be used from command line to send traps. But, what I am looking for is

RE: snmptrap - library calls

2009-05-07 Thread Vinod Nanjaiah
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] Well, snmptrap can be used from command line to send traps. But, what I am looking for is to make use of snmp library calls to generate traps - for example, by using send_easy_trap () or snmp_v2trap () functions. You

RE: snmptrap - library calls

2009-05-07 Thread Vinod Nanjaiah
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield There doesn't seem to be any sample program available on the net for traps. apps/snmptrap.c Thanks Dave. I was able to successfully send a trap using the code from snmptrap.c. But, when I try to

snmp traps

2009-05-06 Thread Vinod Nanjaiah
Dear Experts, I did not find much information in net-snmp website about how to implement an application to send traps. Can you please give me some pointers to the same? Regards, Vinod http://www.mindtree.com/email/disclaimer.html

RE: Supporting ROW CREATION

2009-04-14 Thread Vinod Nanjaiah
Nanjaiah Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Supporting ROW CREATION 2009/4/13 Vinod Nanjaiah vinod_nanja...@mindtree.com: I am using mib2c to generate code based on MFD conf file (mib2c.mfd.conf). The README file mentions This table does not support ROW CREATION. What is the MIB

snmpset problem

2009-04-13 Thread Vinod Nanjaiah
Hi, I am trying snmpset for a table. I have added a member of type RowStatus in the MIB file and set this to CreateAndGo (4) when using snmpset. But I am still unable to add new rows to the table. I get the following error: Error in packet. Reason: notWritable (That object does not support

m2d file syntax

2009-04-13 Thread Vinod Nanjaiah
Hi, I used mib2c using mfd conf file to generate files for my table. There are some m2d files that are generated in the process. I am not sure about what the comment (as shown below) in the m2d files mean. ## Remove the '##' comment delimeter to change settings ## @eval $m2c_table_row_creation =

Supporting ROW CREATION

2009-04-12 Thread Vinod Nanjaiah
Dear Experts, My requirement is to be able to add new rows via snmp requests. How can I generate code to support ROW CREATION? I am using mib2c to generate code based on MFD conf file (mib2c.mfd.conf). But I am not able to find a corresponding function in the generated code. The README file

RE: snmpwalk vs snmpget

2009-04-03 Thread Vinod Nanjaiah
On doing a snmpget (snmpget -v1 -cdemo localhost vpnIFIndex.0) for index 0 it fails with the following error message - vpnIFIndex.0: Unknown Object Identifier (Index out of range: 0 (vpnIFIndex)) What is the MIB definition for vpnIFIndex ? This is how I have defined vpnIFIndex.

snmpwalk vs snmpget

2009-04-02 Thread Vinod Nanjaiah
Dear experts, I am able to do snmpwalk on a subagent that I have created. It has two rows and snmpwalk lists both the rows with indexes 0 and 1. On doing a snmpget (snmpget -v1 -cdemo localhost vpnIFIndex.0) for index 0 it fails with the following error message - vpnIFIndex.0: Unknown Object

snmp agent using MFD

2009-03-30 Thread Vinod Nanjaiah
Hi! I have generated code using mib2c -c mib2c.mfd.conf my-node. Can someone please point out to any documentation regarding which files and what code needs to be added to the generated code? I even tried comparing the files of ifTable with the files generated for my mib node. They seem to be

need help on subagent for tables

2009-03-26 Thread Vinod Nanjaiah
Hi, I am trying to implement a subagent dealing with tables. Using the mfd conf I have generated the code. I have also generated the makefile and subagent file. Can someone give me some pointers on where to start from? What is the minimum change that I need to do to be able to do a snmpwalk of

generating subagent for tables

2009-03-23 Thread Vinod Nanjaiah
Hi, I have written a MIB file for tables based on the sample given in NET-SNMP-EXAMPLES-MIB.txt. My subagent will interact with external data source (Database) for get/set operations. Which is the best Config file to use in this case (mib2c.mfd.conf, mib2c.iterate.conf, etc)? Using mfd

data presistence

2009-03-09 Thread Vinod Nanjaiah
Hi All! I used the NET-SNMP-EXAMPLES-MIB.txt mib file for generating a scalar subagent. There seems to be some problem in making data persistent. Steps that I followed: a Set the scalar variable to some new value b Retrieve the scalar variable; (I get the new value). c kill and

RE: snmpget between systems

2009-03-06 Thread Vinod Nanjaiah
-Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Friday, March 06, 2009 8:14 PM To: Vinod Nanjaiah Cc: net-snmp-users@lists.sourceforge.net Subject: Re: snmpget between systems 2009/3/6 Vinod Nanjaiah vinod_nanja