You'd have noticed that DEBUGMSGTL takes as input two strings and variable list
of arguments in a printf like fashion. The first of these two strings is the
the debug token.
Even thought you set dodebugging to 1, you'll only see output from registered
tokens. You can do this by adding the following to your conf file
debugTokens TOKEN[,TOKEN...]
Where TOKEN is the first string in your DEBUGMSGTL call. In this way you can
easily turn on and off different debug tokens, categorize your debug messages,
etc...
You can achieve this programatically using debug_register_tokens and
snmp_set_do_debugging functions.
Jordi López
-----Mensaje original-----
De: ESWAR RAO [mailto:eswar7...@gmail.com]
Enviado el: lunes, 17 de enero de 2011 14:37
Para: Net-snmp-users
Asunto: Reg. DEBUGMSGTL messages of the sub-agent
Hi,
My code is running as a subagent(openhpi-subagent).
I have started the net-snmp master agent with debugging enabled.
(/usr/sbin/snmpd -Lsd -Lf /var/log/snmp1.log -p /var/run/snmpd.pid -a -D )
When I am running the subagent with -d option (or in /var/log/messages), I can
see only the messages of snmp_log(...).
Please let me know if there is any means so that I can observe the DEBUGMSGTL
messages of the subagent code.
( In the subagent's configuration file I included "dodebugging 1" also.)
Also in /var/log/snmp1.log I could see only the below message:
Turning on AgentX master support.
NET-SNMP version 5.4
Connection from UDP: [127.0.0.1]:32821
No debug messages are logged by the master agent.
Regards,
Eswar
______________________________________________________________________
IMAGO GROUP
This email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________
______________________________________________________________________
IMAGO GROUP www.imagoscreens.com
This email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users