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
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
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
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
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
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
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
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;
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
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
: 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)
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
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
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
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
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?
> ... 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
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,
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"
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
20 matches
Mail list logo