
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
= Sloth::Snmp
Sloth::Snmp is yet another wrapper library for snmp.
== Features
== Installation
Add this line to your application's Gemfile:
And then execute:
$ bundle install
Or install it yourself as:
$ gem install sloth-snmp
or
$ gem install -l sloth-snmp-x.x.x.gem
== Usage
=== New
require "sloth/snmp"
=== Get
require "sloth/snmp"
=== Set
require "sloth/snmp"
snmp = Sloth::Snmp.new peer = "127.0.0.1" tuple = { topic: "sysName.0", type: SNMP::OctetString, value: Time.now.to_s }, snmp.set( peer, tuple )
=== Walk
require "sloth/snmp"
=== Trap
require "sloth/snmp"
snmp = Sloth::Snmp.new( bind: 1162 ) snmp.trap( "snmpInTraps", "snmpOutTraps" ) do |trapname, source_ip, tuples| p [:trapname, trapname] p [:source_ip, source_ip] tuples.each do |oid, tuple| p tuple end end
== Reference
=== Create a new Sloth::Snmp.
Result:
Parameter: ** mibs: Additional MIB file path, or array of the paths. (default: nil) ** bind: Bind host and port for trap. (default: "0.0.0.0:162") ** rocommunity: Community string for Read Only. (default: "public") ** rwcommunity: Community string for Read/Write. (default: "private")
=== SNMP Get.
Result:
Parameter: ** peer: Target IP address and port. (default port: 162) ** topics: Topic(s) for SNMP Get Request. ** community: Community string. (default: nil) ** bindto: Interface address. (default: nil) ** device: Interface name. (default: nil)
=== SNMP Set.
Result:
Parameter: ** peer: Target IP address and port. (default port: 162) ** tuple: Hash of topic, type, value for SNMP Set Request. ** community: Community string. (default: nil) ** bindto: Interface address. (default: nil) ** device: Interface name. (default: nil)
=== SNMP Walk.
Result: ** Hash of key=>oid, value=>{name, value}.
Parameter: ** peer: Target IP address and port. (default port: 162) ** topic: Topic for SNMP Get Next. ** community: Community string. (default: nil) ** bindto: Interface address. (default: nil) ** device: Interface name. (default: nil)
=== SNMP Trap.
Result: ** nil.
Parameter: ** topics: The topic(s) that enables trap monitoring. ** block: Callback action.
=== SNMP Untrap.
Result: ** nil.
Parameter: ** topics: The topic(s) that disables trap monitoring.
== Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/arimay/sloth-snmp.
== License
The gem is available as open source under the terms of the http://opensource.org/licenses/MIT[MIT License].
Copyright (c) ARIMA Yasuhiro arima.yasuhiro@gmail.com
FAQs
Unknown package
We found that sloth-snmp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.