View Single Post
  #5   (View Single Post)  
Old 22nd September 2011
badguy badguy is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: MD, USA
Posts: 59
Default

So openbsd comes by default with snmpd and it looks like this is different from Net-Snmp

they have two diff man pages

Code:
net-snmp
 -n NAME Set an alternative application name (which will affect the con-
               figuration files loaded).   By  default  this  will  be  snmpd,
               regardless of the name of the actual binary.
&

default snmp
 -n      Configtest mode.  Only check the configuration file for validity.
so i was using config file for net-snmp and I was using -n from the default openbsd snmp to test the config file.

I was going nuts because I generated the config file with snmpconf and wasnt expecting to get errors.

Looking at both snmpd.confs they also have different rules

Code:
default snmp
read-only community string
             Specify the name of the read-only community.  The default value
             is public.
&

net-snmp
rouser [-s SECMODEL] USER [noauth|auth|priv [OID | -V VIEW [CONTEXT]]]
and all this hypotesis might be wrong but i guess the best thing would be to just get rid of 1 to avoid the conflicts. Quick question.. if i delete all the files that come with a default install using

find / -name 'snmp*'

Is this the correct way to get rid of a package that comes with the openbsd os by default or what is the recommended way?
Reply With Quote