Re: Need help with snmp_log() msgs from snmp_agent.c

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/5/28 Joan Landry <[email protected]>:
> -f -Le -Dhandler:inject -Ddebug or
> -f /tmp/snmp.log -Le -Dhandler:inject -Ddebug or
> -Lo -Dhandler:inject -Ddebug
>   yeilded no log file

which is as expected....
(Note that the second invocation is invalid - please re-read
 the meaning of the "-f" flag")


> - all msgs went to screen but only had the output from snmp_log
>  msgs - none from the DEBUG handler:inject

so the issue is with the choice of debug flags, not the logging options.

Try using a debug token that appears in the MIB module that you
are actually wanting to use.

Both with
    -f -Le -D{token}
                   (to check that the debug message is output)
and then with
    -Lf /tmp/snmp.log -D{token}
                   (to check that it's logged to the file)


Dave

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.