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

New Post: Get Module, Object or Entity from OID

$
0
0
Hello guys, I made a Walker requesting a network device some information.
IPEndPoint receiver = new IPEndPoint(ip, 161);
            IList<Variable> result = new List<Variable>();
            WalkMode mode = WalkMode.WithinSubtree;

            Messenger.Walk(VersionCode.V1, receiver, new OctetString(community), new ObjectIdentifier("1.3"), result, timeout, mode);
The code returns all OIDs perfectly on your device, but I needed to convert these names to OIDs.
I saw the example that makes this translation, but it uses the compilation of MIBs, I would make this translation from the list of loaded MibModule method Parser.ParseToModules (...).

How do I link this?

Viewing all articles
Browse latest Browse all 576

Trending Articles



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