summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/openbsd.rb30
1 files changed, 8 insertions, 22 deletions
diff --git a/lib/oxidized/model/openbsd.rb b/lib/oxidized/model/openbsd.rb
index 898e9e3..1b863dc 100644
--- a/lib/oxidized/model/openbsd.rb
+++ b/lib/oxidized/model/openbsd.rb
@@ -24,38 +24,24 @@ class Openbsd < Oxidized::Model
cfg = add_comment('HOSTNAME FILE')
cfg += cmd('cat /etc/myname')
- cfg += add_comment('HOSTS FILE')
- cfg += cmd('cat /etc/hosts')
-
- cfg += add_comment('INTERFACE FILES')
- cfg += cmd('tail -n +1 /etc/hostname.*')
-
cfg += add_comment('RESOLV.CONF FILE')
cfg += cmd('cat /etc/resolv.conf')
cfg += add_comment('NTP.CONF FILE')
cfg += cmd('cat /etc/ntp.conf')
- cfg += add_comment('IP ROUTES PER ROUTING DOMAIN')
- cfg += add_small_comment('Routing Domain 0')
- cfg += cmd('route -T0 exec netstat -rn')
- cfg += add_small_comment('Routing Domain 1')
- cfg += cmd('route -T1 exec netstat -rn')
- cfg += add_small_comment('Routing Domain 2')
- cfg += cmd('route -T2 exec netstat -rn')
- cfg += add_small_comment('Routing Domain 3')
- cfg += cmd('route -T3 exec netstat -rn')
- cfg += add_small_comment('Routing Domain 4')
- cfg += cmd('route -T4 exec netstat -rn')
- cfg += add_small_comment('Routing Domain 5')
- cfg += cmd('route -T5 exec netstat -rn')
+ cfg += add_comment('PF FILE')
+ cfg += cmd('cat /etc/pf.conf')
+
+ cfg += add_comment('HOSTS FILE')
+ cfg += cmd('cat /etc/hosts')
+
+ cfg += add_comment('INTERFACE FILES')
+ cfg += cmd('tail -n +1 /etc/hostname.*')
cfg += add_comment('SNMP FILE')
cfg += cmd('cat /etc/snmpd.conf')
- cfg += add_comment('PF FILE')
- cfg += cmd('cat /etc/pf.conf')
-
cfg += add_comment('MOTD FILE')
cfg += cmd('cat /etc/motd')