Hi, all
I met another problem.
The callback function registered is a FindVarMethod type. I found its
definition in file snmp_vars.h. But I am not sure the usage. Such as how to
specify the Get or the Get-Next method?
So anyone could give the information about the usage of this function?
Thanks
Richard.
2008/6/4, 杨伟 <[EMAIL PROTECTED]>:
>
> I have seen the debug message. Thanks.
>
> Sorry for bothering.
>
> Thanks
> Richard
>
>
> 2008/6/4, 杨伟 <[EMAIL PROTECTED]>:
>>
>> Yes, I found that in some functions DEBUGMSG and DEBUGMSGTL are used. BUT
>> those parameters are fixed.
>>
>> For example, I see one usage from the net-snmp tutorial
>> DEBUGMSGTL(("nstAgentSubagentObject",
>> "Initializing the nstAgentSubagentObject module\n"));
>>
>> This format is odd. And what I want to do is to print the value of the
>> variables in a function.
>> Such as the oid , and its length. I tried some formate but do not succeed.
>>
>>
>> And another question is how to display the debug information. I run the
>> command "debug snmp trace", and receive the value I set, but couldn't see
>> the debug message printed on the screen. So I asked this question.
>>
>> Thanks
>> Richard
>>
>>
>> 在08-6-3,Dave Shield <[EMAIL PROTECTED]> 写道:
>>>
>>> 2008/6/3 杨伟 <[EMAIL PROTECTED]>:
>>> > I visited the Net-Snmp Tutorials on
>>> > http://www.net-snmp.org/wiki/index.php/Tutorials
>>> >
>>> > When I want to see some debug method, it prompt that I have to login
>>> before
>>> > edit. But I don't want to edit it.
>>>
>>> If you follow the "Debugging using GDB" link, that should display OK.
>>> You don't need to log in.
>>>
>>> If you try to follow any of the other links under the Debugging section,
>>> then you *will* be asked to log in. But that's because these pages
>>> don't
>>> yet exist. They are placeholders, waiting to be written.
>>> That's why all these links are red, rather than blue.
>>>
>>>
>>> > I want to print some message on the screen.
>>> > Should I use the DEBUGMSG?
>>>
>>> You've had an idea.
>>> Why not *try* it, rather than asking here?
>>>
>>> Dave
>>>
>>
>>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders