Giter VIP home page Giter VIP logo

snmpsharpnet's People

Contributors

luqq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

snmpsharpnet's Issues

Null results if returned Hex-STRING

Hello!

I'm try to get "1.3.6.1.4.1.14988.1.1.11.1.1.6" OID by walking. It's neighbors of network device. Hardware is RouterBoard (Mikrotik).

If I use linux snmpwalk with: "snmpwalk -v2c -c public 192.168.10.20 1.3.6.1.4.1.14988.1.1.11.1.1.6" - i'm got neighbors with STRING-type results, but one returned as Hex-STRING (TP-Link device).

But with SnmpSharpNet (by your's and original) results returned NULL.

Code is simple:

var client = new SimpleSnmp("192.168.10.20", "public");
client.Retry = 5;
client.Timeout = 1000;
var snmpResult = client.Walk(SnmpVersion.Ver2, "1.3.6.1.4.1.14988.1.1.11.1.1.6");

SetRandom() in Integer32 was setting very high high value and its getting rejected by some SNMP Devices

During my uses of this library i found that some devices was not returning same request id in response, this was due to SetRandom() was setting very high value thus requestid to server was getting set as 0.

to fix this i have changed

                public void SetRandom()
                {
                        Random rand = new Random();
-                       _value = rand.Next();
+                       _value = rand.Next(0, 9999);
                }

will further analyse this issue then will create a pull request for the same.

Read MIB file

Is there possible with this library read a MIB file??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.