Hi Simon,

Hope you're doing well.

These weird looking messages are actually representation of the data that
is sent from an snmpd agent to a sub-agent or vice versa.

Generally, when I'm starting my snmpd agent's binary I use the following
command:

*./snmpd -d -Lo -f -c /{Path_to_snmp.conf}/snmpd.conf*

Note the flag -d which indicates that debug mode is on, and the agent will
log/print all the incoming or outgoing packets byte by byte.

To disable these debug messages, you can skip the -d flag and instead use
the following command:

*./snmpd -Lo -f -c /{Path_to_snmp.conf}/snmpd.conf*

Hope it solves your problem.
(By the way, I'm just a beginner with SNMP protocol and net-snmp library.
So pardon me for some mistakes, which might be there in my understanding.
@snmp devs: please correct me, if I've misinterpret something.)

Thanks & Regards,

Ashutosh Kumar

On Fri, Apr 6, 2018 at 1:52 AM, Simon Chamlian <simon.chaml...@mpbc.ca>
wrote:

> Hi,
>
> I am seeing some weird messages in the log file generated by snmpd.
>
> Example:
>
> Sending 194 bytes to UDP: [172.27.37.227]:60682->[172.27.42.214]:161
> 0000: 30 81 BF 02  01 03 30 0D  02 01 0A 02  02 05 C0 04
>  0.....0.........
> 0016: 01 01 02 01  03 04 2E 30  2C 04 0D 80  00 1F 88 80
>  .......0,.......
> 0032: 23 29 E6 83  5A C5 2C 68  02 01 0A 02  01 48 04 05
>  #)..Z.,h.....H..
> 0048: 41 64 6D 69  6E 04 0C 8D  14 AF 4A EF  E3 C7 E0 13
> hello.....J.....
> 0064: 8D 33 96 04  00 30 7B 04  0D 80 00 1F  88 80 23 29
>  .3...0{.......#)
> 0080: E6 83 5A C5  2C 68 04 00  A2 68 02 01  0A 02 01 00
>  ..Z.,h...h......
> 0096: 02 01 00 30  5D 30 17 06  0F 2B 06 01  04 01 A2 70
>  ...0]0...+.....p
> 0112: 02 03 04 01  01 01 02 08  40 04 C0 03  01 FD 30 17
>  ........@.....0.
> 0128: 06 0F 2B 06  01 04 01 A2  70 02 03 04  01 01 01 02
>  ..+.....p.......
> 0144: 08 40 04 C0  03 01 FD 30  13 06 0F 2B  06 01 04 01
>  .@.....0...+....
> 0160: A2 70 02 03  04 01 01 01  03 08 04 00  30 14 06 0F
>  .p..........0...
> 0176: 2B 06 01 04  01 A2 70 02  03 04 01 01  01 04 08 02
>  +.....p.........
> 0192: 01 02                                                 ..
>
>
> Received 192 byte packet from UDP: [172.27.37.227]:60682->[172.27.42.214]:161
>
> ....
>
>
> How can I disable these messages?
>
> I cannot even find them in source code to comment them out.
>
> Thanks,
> S
>
>
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to