forked from hallidave/ruby-snmp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up documentation and Rakefile
- Loading branch information
Showing
9 changed files
with
149 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
doc | ||
web/web | ||
web/site | ||
pkg | ||
*.ipr | ||
*.iml | ||
*.iws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
########################################################################### | ||
# | ||
# snmpd.conf | ||
# | ||
# - created by the snmpconf configuration program | ||
# | ||
########################################################################### | ||
# SECTION: Access Control Setup | ||
# | ||
# This section defines who is allowed to talk to your running | ||
# snmp agent. | ||
|
||
# rocommunity: a SNMPv1/SNMPv2c read-only access community name | ||
# arguments: community [default|hostname|network/bits] [oid] | ||
|
||
rocommunity public localhost | ||
|
||
# rwcommunity: a SNMPv1/SNMPv2c read-write access community name | ||
# arguments: community [default|hostname|network/bits] [oid] | ||
|
||
rwcommunity private localhost | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
########################################################################### | ||
# SECTION: Agent Operating Mode | ||
# | ||
# This section defines how the agent will operate when it | ||
# is running. | ||
|
||
# agentaddress: The IP address and port number that the agent will listen on. | ||
# By default the agent listens to any and all traffic from any | ||
# interface on the default SNMP port (161). This allows you to | ||
# specify which address, interface, transport type and port(s) that you | ||
# want the agent to listen on. Multiple definitions of this token | ||
# are concatenated together (using ':'s). | ||
# arguments: [transport:]port[@interface/address],... | ||
|
||
agentaddress localhost:1061 | ||
|
||
|
||
|
||
########################################################################### | ||
# SECTION: System Information Setup | ||
# | ||
# This section defines some of the information reported in | ||
# the "system" mib group in the mibII tree. | ||
|
||
# syslocation: The [typically physical] location of the system. | ||
# Note that setting this value here means that when trying to | ||
# perform an snmp SET operation to the sysLocation.0 variable will make | ||
# the agent return the "notWritable" error code. IE, including | ||
# this token in the snmpd.conf file will disable write access to | ||
# the variable. | ||
# arguments: location_string | ||
|
||
syslocation "Test Location" | ||
|
||
# syscontact: The contact information for the administrator | ||
# Note that setting this value here means that when trying to | ||
# perform an snmp SET operation to the sysContact.0 variable will make | ||
# the agent return the "notWritable" error code. IE, including | ||
# this token in the snmpd.conf file will disable write access to | ||
# the variable. | ||
# arguments: contact_string | ||
|
||
syscontact "Test Contact" | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module SNMP | ||
VERSION = "1.0.4.dev" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$:.unshift File.expand_path("../lib", __FILE__) | ||
|
||
require 'snmp/version' | ||
|
||
PKG_FILES = FileList[ | ||
'Rakefile', | ||
'README.rdoc', | ||
'setup.rb', | ||
'lib/**/*.rb', | ||
'test/**/test*.rb', | ||
'test/**/*.yaml', | ||
'examples/*.rb', | ||
'data/**/*.yaml'] | ||
|
||
Gem::Specification.new do |s| | ||
s.platform = Gem::Platform::RUBY | ||
s.summary = "A Ruby implementation of SNMP (the Simple Network Management Protocol)." | ||
s.name = 'snmp' | ||
s.version = SNMP::VERSION | ||
s.files = PKG_FILES.to_a | ||
s.extra_rdoc_files = ['README.rdoc'] | ||
s.rdoc_options << '--main' << 'README.rdoc' << | ||
'--title' << 'SNMP Library for Ruby' | ||
s.description = "A Ruby implementation of SNMP (the Simple Network Management Protocol)." | ||
s.author = 'Dave Halliday' | ||
s.email = 'hallidave@gmail.com' | ||
s.rubyforge_project = 'snmplib' | ||
s.homepage = 'http://snmplib.rubyforge.org' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
scp -r web/* davehal@rubyforge.org:/var/www/gforge-projects/snmplib | ||
scp -r site/* davehal@rubyforge.org:/var/www/gforge-projects/snmplib |