summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md10
-rw-r--r--extra/oxidized.logrotate7
-rw-r--r--lib/oxidized/model/hpebladesystem.rb10
3 files changed, 20 insertions, 7 deletions
diff --git a/README.md b/README.md
index 076c4d5..ce4d1a3 100644
--- a/README.md
+++ b/README.md
@@ -95,9 +95,7 @@ gem install oxidized-script oxidized-web
### FreeBSD
-[Use RVM to install Ruby v2.1.2](#installing-ruby-2.1.2-using-rvm)
-
-Install all required packages and gems.
+[Use RVM to install Ruby v2.1.2](#installing-ruby-212-using-rvm), then install all required packages and gems:
```shell
pkg install cmake pkgconf
@@ -105,6 +103,12 @@ gem install oxidized
gem install oxidized-script oxidized-web
```
+Oxidized is also available via [FreeBSD ports](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203374):
+
+```shell
+pkg install rubygem-oxidized rubygem-oxidized-script rubygem-oxidized-web
+```
+
### Build from Git
```shell
diff --git a/extra/oxidized.logrotate b/extra/oxidized.logrotate
new file mode 100644
index 0000000..8c76dee
--- /dev/null
+++ b/extra/oxidized.logrotate
@@ -0,0 +1,7 @@
+/var/log/oxidized/*.log {
+ weekly
+ rotate 3
+ size 10M
+ compress
+ delaycompress
+}
diff --git a/lib/oxidized/model/hpebladesystem.rb b/lib/oxidized/model/hpebladesystem.rb
index 5e34de8..27673de 100644
--- a/lib/oxidized/model/hpebladesystem.rb
+++ b/lib/oxidized/model/hpebladesystem.rb
@@ -4,10 +4,10 @@ class HPEBladeSystem < Oxidized::Model
prompt /.*> /
comment '# '
- expect /^\s*--More--\s+.*$/ do |data, re|
- send ' '
- data.sub re, ''
- end
+ #expect /^\s*--More--\s+.*$/ do |data, re|
+ # send ' '
+ # data.sub re, ''
+ #end
cmd :all do |cfg|
cfg = cfg.delete("\r").each_line.to_a[0..-1].map{|line|line.rstrip}.join("\n") + "\n"
@@ -40,6 +40,7 @@ class HPEBladeSystem < Oxidized::Model
end
cmd 'show network' do |cfg|
+ cfg.gsub! /Last Update:.*$/i, ''
comment cfg
end
@@ -78,6 +79,7 @@ class HPEBladeSystem < Oxidized::Model
end
cfg :telnet, :ssh do
+ post_login "set script mode on"
pre_logout "exit"
end
end