SharpSnmpPro.Mib Assembly Full Version Reviewers’ Guide¶
By Lex Li
This page shows you a guide on SharpSnmpPro.Mib assembly full version.
The Full version is sent to registered users only via emails, and is packaged up with latest #SNMP Library. So below are the assemblies in the ZIP package,
Unlike the Compiler Pro which requires .NET 4.5 and Windows, this product can be used on multiple platforms,
.NET Core 3.1 and .NET 5 (via .NET Standard 2.0)
.NET Framework 4.7.1 and above
.NET Framework 4.6.1 and above (via .NET Standard 2.0)
Xamarin.iOS Unified (via .NET Standard 2.0)
Xamarin.Android (via .NET Standard 2.0)
Xamarin.Mac (via .NET Standard 2.0)
Other platforms that are compliant to .NET Standard 2.0.
More information about .NET Standard 2.0 can be found from Microsoft .
You learn how SNMP operations can be done by consuming the open source SNMP API. A question then is what values MIB documents provide, as they are said to be an important part of SNMP protocol but not seem to be utilized anywhere if we solely use #SNMP Library.
Well, a rough answer is MIB documents mean everything,
They tell what each object identifiers (OID) mean.
They tell which OID is for a table, a row, and a column.
They tell which kind of data we should expect for an object,
OCTET STRINGor any other valid types.
Thus, a MIB specific library such as SharpSnmpPro.Mib can help build a much more powerful SNMP manager.
To test it out, we reuse the default test projects for Trial version, which can be found at GitHub.
It can be cloned to a local folder, such as
cd %temp% git clone https://github.com/lextudio/sharpsnmppro-samples.git cd sharpsnmppro-samples git checkout release_2.1
Then extract all the files from the ZIP package to that folder (
%temp%\sharpsnmppro-samples for example).
Lastly, execute an extra script to prepare the NuGet local feed,
Tests.csproj is an NUnit project that shows the below,
How to compile and load MIB documents.
How to query entity by name.
How to check description of entities.
How to verify data against entities. (note that the trial edition only support simple entities, while the full edition supports all entities).
How to check OBJECT-TYPE macro specific properties.
To make the test project work with Full version, the following changes need to be made,
SharpSnmpPro.Mibas package reference, instead of
sharpsnmppro.txtfollowing the instructions in the email.
TRIALfrom “Conditional compilation symbols”, which then enables Full version only test cases.