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

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

2009-07-23 Thread Dave Shield
2009/7/23 Hamish Whittal : > 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 for a passw

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 wit

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? http

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 -T

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     #include     #include     // other header files written in C }; ... // Cla

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     #include     #include     // other header files written in C }; ... // Class declarations Regards, Chino On 9/11/06, Sebastian Bello <[EMAIL PROTECTED]> wrote: Hi all, how do I extend the agent

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

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

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 approa

Re: extending the agent [on windows]

2005-04-03 Thread Alex Burger
: 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)

RE: extending the agent [on windows]

2005-04-02 Thread samrat.2.dutta
01:14 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

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 the

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 the

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 the

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?

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 p

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="-I" --with-ld-flags="-L -l"

linking an external library while extending the agent

2004-07-19 Thread steven . haddad
  Hello UCD users,   I'm trying to extend my ucd-snmp agent with a private extension. Within this extension, I want to use an external library, which is part of the SDK of another product.   When I write a simple C program, I link this library directly in gcc syntax like this:   /us