Hi,
Like previous mails,I got the generated code use " mib2c -S cache=-1 -c
mib2c.iterate.conf ",but I got " NetsnmpCachefree " type comflict problem,in my
uit.c file, I deleted the " int " return type keyword before the XXXcachefree
function, then the compiling wrong cleared, it make me ver
> From: Ernie Lacson [mailto:elac...@successfactors.com]
> Sent: Tuesday, August 10, 2010 2:12 PM
[SNIP]
> In file included from /usr/include/kvm.h:14,
>
> from kernel.h:11,
>
> from snmp_vars.c:143:
>
> /usr/include/sys/proc.h:202: error: syntax error before "
Hi,
While running: make test, I get the following error.
Thanks in advance for any help you provide.
make test
making all in /usr/local/src/net-snmp/net-snmp-5.5/snmplib
making all in /usr/local/src/net-snmp/net-snmp-5.5/agent
/bin/bash ../libtool --mode=compile gcc -I../inclu
> On Thu, 5 Aug 2010 14:01:21 +0530 (IST), ganeshyell...@bel.co.in said:
g> after this what to edit in coldStart.c?
You'll need to call the created function from within your code where you
want the trap to be sent.
The coldStart.c file is likely "mostly complete" unless you want to add
addit
The maximum length of an OCTET STRING is 65535. However, it's unlikely
you want to send that much data over UDP, however.
--
Wes Hardaker
Cobham Analytic Solutions
--
This SF.net email is sponsored by
Make an app they
Hi -
For the -1, I was referring to the value in the .h file. For example,
#define LLDPLOCMANADDRTABLE_TIMEOUT 60
Change the 60 to -1. The mib2c with the cache option generates a default
value (in this case, 60) and you can adjust it. I haven't tried the "on
the fly" option yet.
There is ano
HI,
I have implemented an AgentX subagent.
The mib is standard Q-BRIDGE_MIB, node is
dot1qVlanVersionNumber OBJECT-TYPE
SYNTAX INTEGER {
version1(1)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The version number of IEEE 802.1Q that this device
supports."
REFERENCE
"IEEE 802.1Q/D
On 10 August 2010 10:07, Tsolakos Stavros wrote:
> Does the -I -ifTable option prevents access to the ifTable
> even if provided by a subagent?
No.
The option '-I-ifTable' when given to the main agent simply means
"don't invoke the routine 'init_ifTable'
The effect of this is that
Hi Dave,
Sure, I am trying to fix this. Will provide the same soon.
In the meantime, if anybody is able to provide a fix/work-around for this,
it will be highly appreciated.
Thanks and Regards
Gaurav Chaturvedi
On Tue, Aug 10, 2010 at 2:21 PM, Dave Shield wrote:
> On 10 August 2010 09:25, Gau
Hi all.
I am taking my very first steps in subagent development.
I have developed a subagent which provides the ifTable to a master agent
that already provides its own ifTable. So, I edited
/etc/sysconfig/snmpd.options and added these: "-Dmib_init -I -ifTable"
I can now see that snmpd does not p
On 10 August 2010 09:25, Gaurav Chaturvedi wrote:
> Thanks for the response. I know the error in MIB file (same as specified by
> Dave), but should an erroneous value in MIB crash the application?
No - of course it shouldn't.
The MIB parser wasn't written in the expectation of such a broken MIB,
Hi,
Thanks for the response. I know the error in MIB file (same as specified by
Dave), but should an erroneous value in MIB crash the application?
I want to know some way that can report error on MIB and exit/write a log.
Thanks and Regards
Gaurav Chaturvedi
(+91) 957-944-3976
On Tue, Aug 10,
2010/8/8 Сергей Владимирович :
> session.peername = strdup("test.net-snmp.org");
>
> Where do you release memory which were allocated by this function?
This memory is not explicitly released, no.
It will be released automatically when the application exits.
It could probably be freed immediatel
On 10 August 2010 08:14, Gaurav Chaturvedi wrote:
> I am using net-snmp v5.5. On loading a particular MIB (attached with the
> mail), my program crashes on "init_snmp" API.
> On removing this MIB from the MIB directory, everything works fine.
>
> Please share your views on what may be the issue in
Hi!
In your demo application
(http://www.net-snmp.org/tutorial/tutorial-5/toolkit/demoapp/snmpdemoapp.c) you
fill the field "session.peername" using "strdup" function.
init_snmp("snmpdemoapp");
/*
* Initialize a "session" that defines who we're going to talk to
*/
snmp_sess_i
Hi,
I am using net-snmp v5.5. On loading a particular MIB (attached with the
mail), my program crashes on "init_snmp" API.
On removing this MIB from the MIB directory, everything works fine.
Please share your views on what may be the issue in this case.
Thanks and Regards
Gaurav Chaturvedi
CLA
16 matches
Mail list logo