snmpdumper 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/snmpwalk_reader.rb +3 -3
  2. metadata +42 -8
@@ -17,7 +17,7 @@ module SnmpDumper
17
17
  raise value if Regexp.last_match(0).nil?
18
18
  SNMP::TimeTicks.new(Integer(Regexp.last_match(1)))
19
19
  }, "INTEGER" => lambda { |value|
20
- /^(.*\()*(\d+).*$/ =~ value
20
+ /^(.*\()*(-?\d+)(\))*$/ =~ value
21
21
  return nil if Regexp.last_match(0).nil?
22
22
  SNMP::Integer.new(Integer(Regexp.last_match(2)))
23
23
  },
@@ -70,7 +70,7 @@ module SnmpDumper
70
70
  #{line}\n
71
71
  Format for input:\n
72
72
  <numerical oid> = <Type>: <value>\n
73
- Example: .1.3.6.1.2.1.1.1.0 = STRING: Linux lom0.taa-edu.local 2.6.17.6 #1 SMP Thu Mar 8 15:32:13 CET 2007 i686\n
73
+ Example: .1.3.6.1.2.1.1.1.0 = STRING: Linux host.local 2.6.17.6 #1 SMP Thu Mar 8 15:32:13 CET 2007 i686\n
74
74
  snmpwalk command example: snmpwalk -v 3 -u user -A PW -X PW -a MD5 -x DES -l authPriv -On -Oa 192.168.1.1" unless @options.force
75
75
  end
76
76
 
@@ -82,4 +82,4 @@ module SnmpDumper
82
82
 
83
83
  end
84
84
  end
85
- end
85
+ end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snmpdumper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 4
9
+ version: 0.0.4
5
10
  platform: ruby
6
11
  authors:
7
12
  - Sebastian de Castelberg
@@ -9,11 +14,38 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-01-22 00:00:00 +01:00
17
+ date: 2010-03-23 00:00:00 +01:00
13
18
  default_executable:
14
- dependencies: []
15
-
16
- description: ""
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: snmp
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 0
30
+ - 2
31
+ version: 1.0.2
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: builder
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 2
43
+ - 1
44
+ - 2
45
+ version: 2.1.2
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ description: Dump snmp walks in various formats
17
49
  email: snmpdumper@kpricorn.org
18
50
  executables:
19
51
  - snmpdumper
@@ -44,18 +76,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
44
76
  requirements:
45
77
  - - ">="
46
78
  - !ruby/object:Gem::Version
79
+ segments:
80
+ - 0
47
81
  version: "0"
48
- version:
49
82
  required_rubygems_version: !ruby/object:Gem::Requirement
50
83
  requirements:
51
84
  - - ">="
52
85
  - !ruby/object:Gem::Version
86
+ segments:
87
+ - 0
53
88
  version: "0"
54
- version:
55
89
  requirements: []
56
90
 
57
91
  rubyforge_project:
58
- rubygems_version: 1.3.5
92
+ rubygems_version: 1.3.6
59
93
  signing_key:
60
94
  specification_version: 3
61
95
  summary: Dumps SNMP walk output in different format.