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
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.
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,
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;
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
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
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
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?
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
] 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
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,
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:
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
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
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
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
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;
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,
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
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
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
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
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
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
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
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
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
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
... 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
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?
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=-ImyIncludeDir
32 matches
Mail list logo