[erlang-patches] SNMP erlNodeReductions defined too narrow

Stefan Zegenhagen <>
Mon Jul 15 13:19:43 CEST 2013


Dear Tobias,

> this patch fixes the problem I posted to the erlang-bugs mailing list earlier today. In short, this fix simply converts the type of erlNodeReductions from Counter32 to Counter64 in the OTP-MIB.mib file. This patch also removes some warnings discovered by smilint (regarding timestamp formats) and it introduces a new test suite for the otp_mibs application (quite similar to the os_mon_mib suite).
> 
> git fetch https://github.com/schlagert/otp.git snmp_fix_node_reduction_type
> 
> https://github.com/schlagert/otp/compare/erlang:maint...snmp_fix_node_reduction_type
> https://github.com/schlagert/otp/compare/erlang:maint...snmp_fix_node_reduction_type.patch

Unfortunately, (integer) numbers in Erlang never wrap. So even the
Counter64 type will overflow at some point (I've tested that with other
counters in SNMP). It seems to be required to change the instrumentation
function to manually truncate numbers, or change the erlang SNMP stack
to implicitely truncate long integers.


Kind regards,

-- 
Dr. Stefan Zegenhagen

arcutronix GmbH
Garbsener Landstr. 10
30419 Hannover
Germany

Tel:   +49 511 277-2734
Fax:   +49 511 277-2709
Email: 
Web:   www.arcutronix.com

*Synchronize the Ethernet*

General Managers: Dipl. Ing. Juergen Schroeder, Dr. Josef Gfrerer -
Legal Form: GmbH, Registered office: Hannover, HRB 202442, Amtsgericht
Hannover; Ust-Id: DE257551767.

Please consider the environment before printing this message.



More information about the erlang-patches mailing list