Quantcast
Channel: C# Based Open Source SNMP Library for .NET and Mono
Viewing all articles
Browse latest Browse all 576

Commented Unassigned: How to set EngineBoots? [7283]

$
0
0
Hello,

as far as I have seen in the most recent source code on GitHub, neither the EngineID, nor the EngineBoots value can be set from an external entity. One could help oneself changing the EngineID by using reflection on the private readonly member ``EngineGroup._engineId`` but EngineBoots gets calculated in the ``EngineGroup.EngineTimeData`` property. As far as I understand, the calculation returns zero until 24 days have been passed since the application's start-up. I'm sorry, but this looks pretty randomly chosen to me. According to RFC 3414, each application start-up should increase the EngineBoots value by one or use Int32.MaxValue if EngineBoots cannot be determined.

Could you please clarify the behaviour of your implementation? Will the behaviour change with the next NuGet release of the library?

Thanks in advance,
Kristian Virkus
Comments: That part was never implemented fully and expect you to implement on your own. Will try to leave some comments later in the code. You should choose your own engine ID and also determine how you would like to implement engine boots, either counting the reboots of the program or the reboots of the underlying operating system.

Viewing all articles
Browse latest Browse all 576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>