SNMP4JR 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/SNMP4JR.gemspec +1 -1
- data/lib/SNMP4JR.rb +3 -2
- metadata +1 -1
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('SNMP4JR', '0.0.
|
5
|
+
Echoe.new('SNMP4JR', '0.0.19') do |p|
|
6
6
|
p.description = "High Performance SNMP Library for JRuby which wraps SNMP4J"
|
7
7
|
p.url = "http://github.com/awksedgreep/SNMP4JR"
|
8
8
|
p.author = "Mark Cotner"
|
data/SNMP4JR.gemspec
CHANGED
data/lib/SNMP4JR.rb
CHANGED
@@ -76,7 +76,7 @@ end
|
|
76
76
|
|
77
77
|
class SNMPTarget
|
78
78
|
attr_accessor :host, :community, :timeout, :version, :max_repetitions, :non_repeaters, :port
|
79
|
-
attr_reader :request_type, :snmp, :result, :pdus_sent
|
79
|
+
attr_reader :request_type, :snmp, :result, :pdus_sent, :pdu
|
80
80
|
|
81
81
|
DEFAULTS = {:host => '127.0.0.1', :community => 'public', :timeout => 2000,
|
82
82
|
:version => SNMP4JR::MP::Version2c, :transport => 'udp', :port => 161,
|
@@ -324,7 +324,6 @@ class SNMPTarget
|
|
324
324
|
output
|
325
325
|
end
|
326
326
|
|
327
|
-
private
|
328
327
|
def pdu
|
329
328
|
@pdu = SNMP4JR::PDU.new
|
330
329
|
@oids.each do |oid|
|
@@ -335,6 +334,8 @@ class SNMPTarget
|
|
335
334
|
@pdu.type = @request_type
|
336
335
|
@pdu
|
337
336
|
end
|
337
|
+
|
338
|
+
private
|
338
339
|
|
339
340
|
def reset_session
|
340
341
|
@pdu = nil unless @oids.nil?
|