Hi,
I am new to netSnmp. I am trying to debug my code using
DEBUGMSGTLmacro. My code is running as a subagent. I have started the
master agent
with debugging enabled in the snmpd.conf file along with the token in my
DEBUGMSGTL call. I am logging towards the default log file in
/var/log/snmp
HI All,
I would like to know how to modify MODE_SET_RESERVE2 field in .
c file dreated by mib2c (a link is accepted).
I briefly explain you my
problem.
I would like to set a parameter, for my purpose it's a
threshold. then, I have to modify MODE_SET_RESERVE2, MODE_SET_FREE,...
etc fields in my .c
Dave,
Thanks for your inputs. I changed my handler functions in the
way you explained.
My new 'get_{first,next}_data_point' routines will save a reference to
the per-row data structure in the 'data_context' parameter. In handler
function I am using the API call 'netsnmp_extract_iterator_c
sorry forgot to say that you should recompile the agent after adding the mib
manually
- Original Message -
From: taner memetali
To: net-snmp-users
Sent: Wednesday, July 11, 2007 4:13 PM
Subject: Re: "can any one help to slove problem "configure the new MIB file
--" $./configu
hi,
i guess you should first check the file net-snmp-config.h.
You can also try to extend the agent manually by adding the mib to the line
#define MIB_DEFAULTS in net-snmp-config.h. The Modules you want to include can
be added by the same way. You just need to add the module name into
mib_modul
Hi ALL,
I had problem while "configure the new MIB file", as I created a
new file.txt and able to compile it and I got xxx.h and xxx.c . I modified
the xxx.c file to get and set the value and placed the xxx.h and xxx.c file
in ./agent/mibgroup folder
After that I am try to do this" $ ./
Hi,
the follwing link is a good start for implementing mib objects in net snmp.
It's describing the agent application in solaris but it is in fact the
Net-SNMP agent
http://docs.sun.com/app/docs/doc/817-3155
bye
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Wednesday, Jul
Hi all,
I've created .c and .h file using mib2c.
Now i have to modify .
c file in order to make agent capable in reading date and time from my
pc (this is an example).
Where and how i set instruction to do it in .c
file?
Can someone give me a VALID LINK to a tutorial explaining how to
modify .c
Hi,
The commands/directives trapsink, trap2sink and informsink can be
specified in snmpd.conf file to let snmpd/agent know where the
traps/informs need to be send to.
You can specify trap2sink for sending snmp v2 traps, else specify
trapsink for snmp v1 traps. For sending inform notifications,
Thank you for your answer, what I need is a little bit different: I need
to change the list of sinks dinamically, I have a proprietary snmp table
(managed by subagent) where I can add or remove sinks and I want to send
traps to all the sinks in the table.
Bye,
Antonio.
>Hi,
>The commands/direc
Hi
SNMP error codes are defined in PDU definition in RFC 1905 (Protocol
Operations for SNMPv2). The header file
"include/net-snmp/library/snmp.h" has these definitions.
I am not sure if user defined errors can be sent in response to snmp
requests.
Regards,
Suresh.
-Original Message
Thank you very much for answers.
The first step i want to follow is to
CHECK ONLY if my MIB TABLE exist and can be reached by agent with
snmptranslate command.
My question is:
in order to make it possible( I
mean that snmptranslate can return me my MIB), do i need to exten the
agent or not?
Hi,
I would like to send a trap from my subagent (connected via agentX to
the net-snmp agent) to a specific sink (receiver) identified by an IP
address and UDP port.
How could it be done?
If I fill a netsnmp_session object and then I use add_trap_session from
inside the subagent, could it wor
13 matches
Mail list logo