Q: Extending the agent with Perl

2015-07-31 Thread Ulrich Windl
Hi! I have no success attempting to extend the SNMP agent with Perl in SLES11 SP3 (using a somewhat older version and tools): Whatever I try, my agent won't register. I also searched the Internet for tutorials, example code and explanations, but I failed. Mainly the reason for writing this is

Extending snmp agent: compile extension source and header files faster

2010-10-15 Thread Leo Lin
Hi,   just wondering if there's a way to compile my source and header files generated by mib2c without having to go through the   ./configure, make, make install process.   I don't want to install the extension, but just to see if it can be compile successfully and there's no sintax errors.  

Re: Extending snmp agent: compile extension source and header files faster

2010-10-15 Thread Dave Shield
On 15 October 2010 14:10, Leo Lin hayashi_...@yahoo.com wrote: just wondering if there's a way to compile my source and header files generated by mib2c without having to go through the ./configure, make, make install process. If you're just wanting to add an extra MIB module to the agent,

Extending snmp agent

2010-10-11 Thread Leo Lin
Hi,   If I have compiled a '.o' file such as utilities.o; how can I specify the ./configure to compile with .o file when making the Make file?  I put the '.o' file in same directory as /net-snmp/agent/mibgroup   Thanks!   Leo;

Extending SNMP agent using perl script.

2009-12-14 Thread Arun Deleep Menon
Hi All, I'm trying to extend a net-snmp agent on a fedora box. The perl module that I have written for the same, is not running when started from the snmpd.conf file. I tried replacing the script with the perl script provided in the Net-Snmp tutorial wiki, but still couldn't get values for the

Extending the agent using an extend script written in Python

2009-07-23 Thread Hamish Whittal
Hi folks, I have written a python script to be run as an extend script from within the agent. The script runs beautifully, and returns what I want, exiting with exit status 0. I get the extend script to run via sudo and have tried and tested the sudo ubc.py Problem now is that when I run it with

Re: Extending the agent using an extend script written in Python

2009-07-23 Thread Dave Shield
2009/7/23 Hamish Whittal ham...@saao.ac.za: I get the extend script to run via sudo and have tried and tested the sudo ubc.py Running a script via sudo is fine for interactive use, but isn't really appropriate for an extension script. The first time the agent invokes it, surely sudo will prompt

Re: Extending the agent

2008-05-22 Thread Dave Shield
2008/5/21 CHAHIBI Samira [EMAIL PROTECTED]: I want to extend my agent with a mib containing one simple integer variable. My problem is that i can't make snmpget on my variable. Have a look at the FAQ entry I've added my code to this template and it still doesn't work. Why not?

Extending the agent

2008-05-21 Thread CHAHIBI Samira
Hi all, I want to extend my agent with a mib containing one simple integer variable. My problem is that i can't make snmpget on my variable. This is what I made: [EMAIL PROTECTED] ~]# cp /home/CHAHIBI/Desktop/SCALAR-VAR-MIB.txt /usr/local/share/snmp/mibs [EMAIL PROTECTED] ~]# snmptranslate -On

RE: Extending an Agent

2007-05-11 Thread Mark Riehl
] on behalf of Dave Shield Sent: Thu 5/10/2007 11:04 AM To: Mark Riehl Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Extending an Agent On 09/05/07, Mark Riehl [EMAIL PROTECTED] wrote: Is the MfD the best config to use for this? That probably depends who you ask. I dislike the MfD

Re: Extending an Agent

2007-05-10 Thread Dave Shield
On 09/05/07, Mark Riehl [EMAIL PROTECTED] wrote: Is the MfD the best config to use for this? That probably depends who you ask. I dislike the MfD framework myself, but I try not to let my personal opinions colour the advice I give on the list. Robert has put a lot of work into this framework,

Extending an Agent

2007-05-09 Thread Mark Riehl
All - I'm running v5.4 under Fedora Core 3 Linux, gcc 3.4.2. I'm trying to extend the agent to support a new table and I'm running into a few problems with the configure script. I've run the MIB through smilint to make sure I didn't have any MIB problems. First, I generated the c/h files:

Re: Extending an Agent

2007-05-09 Thread Dave Shield
On 09/05/07, Mark Riehl [EMAIL PROTECTED] wrote: (Why does it generate all of the *~ files?) That's the result of running indent on the code. I'm confused about where the files need to go. configure: error: mib module jtrsMdlNeighborNodeTable requires module

RE: Extending an Agent

2007-05-09 Thread Mark Riehl
extending the agent is so that I can test with the customer MIBs (I don't have easy access to the customer hardware). Really, I just need to be able to perform gets/sets on the table values to support testing. Is the MfD the best config to use for this? Is there a simpler config that isn't so

extending snmp agent

2006-12-16 Thread payal singla
Hi I have found two ways to extend snmpagent 1) by writing MIB and adding corresponding implementation for different object ids 2) by execv command in conf file for different oids Which method is more efficient to use?? Thanks Regards, Payal Singla

Re: Extending the agent with C++

2006-09-13 Thread Sebastian Bello
Chino, I found an issue with the compilation script, it's working now, thanks. Sebastian- Chino Aureus escribi: Hi, What I do is pun the header files in "extern "C" block: extern "C" { #include net-snmp/net-snmp-config.h #include net-snmp/net-snmp-includes.h #include

Extending the agent with C++

2006-09-11 Thread Sebastian Bello
Hi all, how do I extend the agent with a .so using C++? I tried using the following changes in addition to compiling with g++: extern "C" { void init_mo(void); void initialize_table_moTable(void); Netsnmp_Node_Handler moTable_handler; Netsnmp_First_Data_Point moTable_get_first_data_point;

Re: Extending the agent with C++

2006-09-11 Thread Chino Aureus
Hi, What I do is pun the header files in extern C block: extern C { #include net-snmp/net-snmp-config.h #include net-snmp/net-snmp-includes.h #include net-snmp/agent/net-snmp-agent-includes.h // other header files written in C }; ... // Class declarations Regards, Chino On 9/11/06,

Re: Extending the agent

2006-09-08 Thread Dave Shield
On 07/09/06, Sebastian Bello [EMAIL PROTECTED] wrote: 1- I'm thinking of extending the agent with a .so, is this the right approach? There are four ways of extending the agent. a) Compiling the MIB module into the main agent binary. b) Compiling the MIB module into a .so file, and loading

Extending the agent

2006-09-06 Thread Sebastian Bello
Hi, I have an application which is composed of some binaries running on different machines. These binaries generate the information to be reported through SNMP, for example number of messages sent. Some questions: 1- I'm thinking of extending the agent with a .so, is this the right approach? 2

extending snmp agent without c

2006-08-25 Thread John Dunne
Hey to all, I'm planning on extending the snmp agent by writing modules written in C, which will set variables. Since some of these modules are only going to call another already written program and pass the variable onto it, is it possible to write such modules in perl or another script

Re: extending snmp agent without c

2006-08-25 Thread Dave Shield
On 25/08/06, John Dunne [EMAIL PROTECTED] wrote: I'm planning on extending the snmp agent by writing modules written in C, which will set variables. Since some of these modules are only going to call another already written program and pass the variable onto it, is it possible to write

Re: extending snmp agent without c

2006-08-25 Thread John Dunne
That was easy! Thanks Dave Dave Shield wrote: On 25/08/06, John Dunne [EMAIL PROTECTED] wrote: I'm planning on extending the snmp agent by writing modules written in C, which will set variables. Since some of these modules are only going to call another already written program and pass

Re: extending the agent [on windows]

2005-04-03 Thread Alex Burger
To: Dutta,S,Samrat,XKD3C C Cc: net-snmp-users@lists.sourceforge.net Subject: Re: extending the agent [on windows] On Thu, 31 Mar 2005 14:49:50 +0100 [EMAIL PROTECTED] wrote: S2DC Presently I am trying to perform an exercise by using the the NET-SNMP-TUTORIAL-MIB. S2DC S2DC 4)Then I am

Re: extending the agent [on windows]

2005-04-01 Thread Robert Story
On Thu, 31 Mar 2005 14:49:50 +0100 [EMAIL PROTECTED] wrote: S2DC Presently I am trying to perform an exercise by using the the NET-SNMP-TUTORIAL-MIB. S2DC S2DC 4)Then I am following the S2DC Microsoft Visual C++ - Extending the Agent section on README.WIN32 S2DC and then when i try to build

extending the agent

2005-03-31 Thread samrat.2.dutta
files(from the site) to the directory C:\net-snmp-5.2.1\agent\mibgroup. 3)Modified the SNMP.CONF file to include this line : mibs +ALL to include all the MIBS 4)Then I am following the Microsoft Visual C++ - Extending the Agent section on README.WIN32 and then when i try to build

extending the agent

2005-03-31 Thread samrat.2.dutta
files(from the site) to the directory C:\net-snmp-5.2.1\agent\mibgroup. 3)Modified the SNMP.CONF file to include this line : mibs +ALL to include all the MIBS 4)Then I am following the Microsoft Visual C++ - Extending the Agent section on README.WIN32 and then when i try to build

Re: Problem with Extending Master agent

2004-12-22 Thread Users
On Sun, 19 Dec 2004 15:03:04 -0800 (PST) atul wrote: AB Problem i have is the error snmp-get:Too long after running simple AB client asking to demon abt 'system.sysDescr.0' object using net-snmp. Run the agent with '-Dsess_async_send' to try and get more info. Either the agent is trying to

Re: extending the agent

2004-10-01 Thread cnelson
... apparently you have to modify some of the code. Doesn't the mib2c generates it all? mib2c really can't know where your data is coming from (or going to, for a set request). What it generates is a skeleton you can hang your own code on. It really is 90% of the work. There are some

Re: extending the agent

2004-10-01 Thread Dave Shield
There's not much I'd want to add to Chris' response - at least not in respect of the main thrust of the original basic question. However there's one minor misunderstanding that really needs to be corrected: Lastly, I would like to know if for snmpv3, the snmp message travels encripted?

extending the agent

2004-09-30 Thread Andres C
Hello, I've compiled the new module I'll be using in the agent. It generated both files. The thing is, apparently you have to modify some of the code. Doesn't the mib2c generates it all? There are some places that say: snmp_set_var_typed_value(requests-requestvb, ASN_OCTET_STR,

Re: linking an external library while extending the agent

2004-07-21 Thread ujjwal
Hi, If you want to use external libraries or external header files, best place to add them is passing them to the configure script. You can use --with-cflags and --with-ld-flags options of the configure for passing them. So it will look like - configure --with-cflags=-ImyIncludeDir