>
> Why?
> What exactly are you trying to do?
>
I wanted to direct that set request for that OID to some other agent on some
other machine. Thats why i was preparing a SET request pdu using the
requests list
Anyway i found out that the agent stopped working because the pdu create and
pdu add vari
Oh wait. Is it because i create the pdu in the reserve1 pass and add
variables to it in reserve2? Now since pdu is a local variable it somehow
get lost?
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Micros
hi all
Suppose you have registered a handler for a particular OID will the
requests->requestvb contain the name and name_length of that OID. I
registered my handler for a particular OID and inside my handler i direct
the SET request somewhere else. for that i need to add a variable using
snmp_add_
I have registered my handler for a particular oid. I was having a doubt on
how exactly am i supposed to handle set requests. Is it necessary to do
something in all the requests modes (ie SET_RESERVE, SET_COMMIT,SET_ACTION
etc) . if i just change the variable in case the mode is SET_ACTION and do
no
>
> It depends on the helper that you are using.
> But in general, most helpers will have APIs to do this, yes.
>
>
OK. One more question. How exactly can a user do this from command line. I
mean for set/get we have commands like snmpset and snmpget but what about
similar command line tools for cr
Hi all
Does netsnmp provide function (like get and set) for creating and deleting
tables/rows too. I saw the generic API for that but that is just a
framework. Does it mean that we have to make our own handlers in case we
want these functions, using the generic API framework.
Regards ,
Devvrat
-
>
>
> > dhandler->contextName=strdup(pdu->contextName);
>
> The same holds true here.
>
Does that explain why my handler was never called? Because i never actually
registered it for that context but something else ?
-
This SF.
I wanted to register my handler for incoming requests in case they have a
context. For that i put some code in the netsnmp_agent_check_parse (as
suggested by dave).
This is what i did
if(pdu->contextName)
{
snmp_log(LOG_DEBUG,"received request directed to %s
contextlen
Hi all
I was going through the netsnmp_variable_list structure and i found two
elements called name and name_loc. I cannot understand what is the
difference between them. Which one of them is the oid of that variable. In
general while defining any oid we do
static oid some_oid[]={1.3.6.}
This value
Hi all
I have an snmp agent on one system and i want all the traps being received
by that agent to be forwarded to some other agent on some other machine. Is
there any way of doing this using the configuration file. Can you suggest
possible ways of doing this.
regards
Devvrat
--
On Jan 17, 2008 3:05 PM, Dave Shield <[EMAIL PROTECTED]> wrote:
> On 17/01/2008, Devvrat Tripathi <[EMAIL PROTECTED]> wrote:
> > For example if i have registered 1.3.6.1.2 the control is passed
> > to the handler only when 1.3.6.1.2 is requested. If the request
On Jan 17, 2008 3:55 AM, Dave Shield <[EMAIL PROTECTED]> wrote:
> On 14/01/2008, Devvrat Tripathi <[EMAIL PROTECTED]> wrote:
> > Is is possible to register a MIB tree with a particular handler function
> > which gets called whenever any node in i
Is is possible to register a MIB tree with a particular handler function
which gets called whenever any node in its subtree is accessed? The
netsnmp_create_handler_registration just creates a Node handler whereas i
wanted a MIB handler. Is there any way of doing that?
Kindly help
-
I wanted to know how exactly a proxy agent which can translate v1 queries
into v3 and vice versa works. Can anyone suggest a SNMP proxy agent. I would
like to go through the source code.
regards
Devvrat
-
SF.Net email is spon
while going through the netsnmp code i found that once the daemon receives a
packet it generates the corresponding pdu which is then passed to the
callback routine for this session.
What are these callback routines. Are they responsible for generating
response pdu's. I was looking for functions whi
hi
I was searching for some examples on how to use handler functions but i
could not get much information. Is it possible to change the value of a
particular oid whenever it is requested by using these handler functions. It
will be very helpful if i could get some information on these functions an
When we create an MIB and load it, say by agentx support then is there any
way to find out when any OID created by us is being accessed and also to
dynamically change the value of that OID depending on some condition. The
example at net-snmp site says that while registering the instance you can
sp
Hi i am new to net-snmp and i have been trying to compile an MIB using
agentx. I was trying the example program given at
http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent
i have followed exactly the same procedure as they say but when i do
snmpget localhost NET-SNMP-TUTORIAL-M
Hi i am new to snmp and i have just installed the net snmp package. Now now
when i try to start the snmpd daemon it always says
snmpd: symbol lookup error: snmpd: undefined symbol: smux_listen_sd . I am
not able to find the cause of the problem. Is it because of some problem
with snmpconf? if yes,
when i try to start the snmp agent i get the following error.
symbol lookup error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd
I am new to net snmp and i cant figure out why this happens. I will be
really thankful if someone can help me with this
regards
Devvrat
-
when i start snmpd i get the following error
snmpd: symbol lookup error: snmpd: undefined symbol: smux_listen_sd
can anybody tell what can be the possible solution for this.
regards
devvrat
-
This SF.net email is sponsored
I just installed the net-snmp package. Since this is the first time i am
using this package i tried to run the example program given at the net snmp
site. When i run the makefile provided at the site i get the following
error.
gcc -I. `/usr/local/bin/net-snmp-config --cflags`test1.c -o test1
22 matches
Mail list logo