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

"Joan Landry" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <A9FCB77F97940A418A61FD9BB71E4170013A5B97@dexbe012-6.exch012.intermedia.net>
Dave,
Thanks for trying to help me figure this out.
The -Dall or -Dall did not work
The get of versionConfigureOptions is:

***** SNMP QUERY STARTED *****
1: versionConfigureOptions.0 (octet string)
'--host=powerpc-wrs-linux-gnu' '--build=i686-crosscompile-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--datadir=/usr/share'
'--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=wrs_config_cache'
'--enable-static' '--enable-shared'
'--with-cc=powerpc-wrs-linux-gnu-ppc_e500v2-glibc_cgl-gcc'
'--with-cflags=-g -O2 -fomit-frame-pointer -D__USE_STRING_INLINES -pipe'
'--with-ar=powerpc-wrs-linux-gnu-ppc_e500v2-glibc_cgl-ar'
'--with-sys-location=Unknown' '--with-logfile=/var/log/snmpd.log'
'--with-persistent-directory=/var/net-snmp' '--with-mib-modules=host
agentx smux<09><09>    ucd-snmp/diskio disman/event disman/schedule
tcp-mib udp-mib mibII/mta_sendmail'
'--with-libwrap=/mnt/local/scotth/wrs-workspace-2.0/Stella-mgmt-0_prj/ho
st-cross/powerpc-wrs-linux-gnu/sysroot/usr/lib' '--sysconfdir=/etc'
'--enable-ipv6' '--en
[27.2D.2D.68.6F.73.74.3D.70.6F.77.65.72.70.63.2D.77.72.73.2D.6C.69.6E.75
.78.2D.67.6E.75.27.20.27.2D.2D.62.75.69.6C.64.3D.69.36.38.36.2D.63.72.6F
.73.73.63.6F.6D.70.69.6C.65.2D.6C.69.6E.75.78.2D.67.6E.75.27.20.27.2D.2D
.70.72.6F.67.72.61.6D.2D.70.72.65.66.69.78.3D.27.20.27.2D.2D.70.72.65.66
.69.78.3D.2F.75.73.72.27.20.27.2D.2D.65.78.65.63.2D.70.72.65.66.69.78.3D
.2F.75.73.72.27.20.27.2D.2D.62.69.6E.64.69.72.3D.2F.75.73.72.2F.62.69.6E
.27.20.27.2D.2D.73.62.69.6E.64.69.72.3D.2F.75.73.72.2F.73.62.69.6E.27.20
.27.2D.2D.64.61.74.61.64.69.72.3D.2F.75.73.72.2F.73.68.61.72.65.27.20.27
.2D.2D.69.6E.63.6C.75.64.65.64.69.72.3D.2F.75.73.72.2F.69.6E.63.6C.75.64
.65.27.20.27.2D.2D.6C.69.62.64.69.72.3D.2F.75.73.72.2F.6C.69.62.27.20.27
.2D.2D.6C.69.62.65.78.65.63.64.69.72.3D.2F.75.73.72.2F.6C.69.62.65.78.65
.63.27.20.27.2D.2D.6C.6F.63.61.6C.73.74.61.74.65.64.69.72.3D.2F.76.61.72
.27.20.27.2D.2D.73.68.61.72.65.64.73.74.61.74.65.64.69.72.3D.2F.75.73.72
.2F.63.6F.6D.27.20.27.2D.2D.6D.61.6E.64.69.72.3D.2F.75.73.72.2F.73.68.61
.72.65.2F.6D.61.6E.27.20.27.2D.2D.69.6E.66.6F.64.69.72.3D.2F.75.73.72.2F
.73.68.61.72.65.2F.69.6E.66.6F.27.20.27.2D.2D.63.61.63.68.65.2D.66.69.6C
.65.3D.77.72.73.5F.63.6F.6E.66.69.67.5F.63.61.63.68.65.27.20.27.2D.2D.65
.6E.61.62.6C.65.2D.73.74.61.74.69.63.27.20.27.2D.2D.65.6E.61.62.6C.65.2D
.73.68.61.72.65.64.27.20.27.2D.2D.77.69.74.68.2D.63.63.3D.70.6F.77.65.72
.70.63.2D.77.72.73.2D.6C.69.6E.75.78.2D.67.6E.75.2D.70.70.63.5F.65.35.30
.30.76.32.2D.67.6C.69.62.63.5F.63.67.6C.2D.67.63.63.27.20.27.2D.2D.77.69
.74.68.2D.63.66.6C.61.67.73.3D.2D.67.20.2D.4F.32.20.2D.66.6F.6D.69.74.2D
.66.72.61.6D.65.2D.70.6F.69.6E.74.65.72.20.2D.44.5F.5F.55.53.45.5F.53.54
.52.49.4E.47.5F.49.4E.4C.49.4E.45.53.20.2D.70.69.70.65.27.20.27.2D.2D.77
.69.74.68.2D.61.72.3D.70.6F.77.65.72.70.63.2D.77.72.73.2D.6C.69.6E.75.78
.2D.67.6E.75.2D.70.70.63.5F.65.35.30.30.76.32.2D.67.6C.69.62.63.5F.63.67
.6C.2D.61.72.27.20.27.2D.2D.77.69.74.68.2D.73.79.73.2D.6C.6F.63.61.74.69
.6F.6E.3D.55.6E.6B.6E.6F.77.6E.27.20.27.2D.2D.77.69.74.68.2D.6C.6F.67.66
.69.6C.65.3D.2F.76.61.72.2F.6C.6F.67.2F.73.6E.6D.70.64.2E.6C.6F.67.27.20
.27.2D.2D.77.69.74.68.2D.70.65.72.73.69.73.74.65.6E.74.2D.64.69.72.65.63
.74.6F.72.79.3D.2F.76.61.72.2F.6E.65.74.2D.73.6E.6D.70.27.20.27.2D.2D.77
.69.74.68.2D.6D.69.62.2D.6D.6F.64.75.6C.65.73.3D.68.6F.73.74.20.61.67.65
.6E.74.78.20.73.6D.75.78.09.09.20.20.20.20.75.63.64.2D.73.6E.6D.70.2F.64
.69.73.6B.69.6F.20.64.69.73.6D.61.6E.2F.65.76.65.6E.74.20.64.69.73.6D.61
.6E.2F.73.63.68.65.64.75.6C.65.20.74.63.70.2D.6D.69.62.20.75.64.70.2D.6D
.69.62.20.6D.69.62.49.49.2F.6D.74.61.5F.73.65.6E.64.6D.61.69.6C.27.20.27
.2D.2D.77.69.74.68.2D.6C.69.62.77.72.61.70.3D.2F.6D.6E.74.2F.6C.6F.63.61
.6C.2F.73.63.6F.74.74.68.2F.77.72.73.2D.77.6F.72.6B.73.70.61.63.65.2D.32
.2E.30.2F.53.74.65.6C.6C.61.2D.6D.67.6D.74.2D.30.5F.70.72.6A.2F.68.6F.73
.74.2D.63.72.6F.73.73.2F.70.6F.77.65.72.70.63.2D.77.72.73.2D.6C.69.6E.75
.78.2D.67.6E.75.2F.73.79.73.72.6F.6F.74.2F.75.73.72.2F.6C.69.62.27.20.27
.2D.2D.73.79.73.63.6F.6E.66.64.69.72.3D.2F.65.74.63.27.20.27.2D.2D.65.6E
.61.62.6C.65.2D.69.70.76.36.27.20.27.2D.2D.65.6E (hex)]
***** SNMP QUERY FINISHED *****

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Dave Shield
Sent: Friday, May 29, 2009 3:24 AM
To: Joan Landry
Cc: [email protected]
Subject: Re: Need help with snmp_log() msgs from snmp_agent.c

2009/5/28 Joan Landry <[email protected]>:
>... to make things really simple I decided to see if I could get a  
>debug msg out of the agent_trap.c file....

> I used OPTIONS="-Lo -Dtrap
>
> And sent a trap - and verified that the trap was sent.
> And there was no trap debug msg on the output screen or to the log
when I used -Lf /tmp/snmp.log -Dtrap.

Hmmm...

Can you try with
     OPTIONS="-Lo -Dall"
?
Do you see any debug messages at all?
(If you're not sure, then the answer is no.
 Believe me, you'll know if you're getting debug output with "-Dall" !)



> So for some reason I am not able to get any of the DEBUG msgs.

Please run an "snmpget" request on
UCD-SNMP-MIB::versionConfigureOptions.0
What is the value of this object?

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.