diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2012-09-18 10:03:46 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2012-09-18 10:03:46 +0000 |
commit | 5063b1deb803177e10f62e33626c3106151ad7e4 (patch) | |
tree | 9b7ce4293ed31d188755e23c6f9e2bb7c977da2f /usr.sbin/snmpd | |
parent | ff5e5da222f0f843d39505881fe50c120d6fa8a4 (diff) |
Add SNMPv3 in the EXAMPLES section.
Diffstat (limited to 'usr.sbin/snmpd')
-rw-r--r-- | usr.sbin/snmpd/snmpd.conf.5 | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/snmpd.conf.5 b/usr.sbin/snmpd/snmpd.conf.5 index 92663ac9a0f..2c038eccdc7 100644 --- a/usr.sbin/snmpd/snmpd.conf.5 +++ b/usr.sbin/snmpd/snmpd.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: snmpd.conf.5,v 1.20 2012/09/17 21:09:33 jmc Exp $ +.\" $OpenBSD: snmpd.conf.5,v 1.21 2012/09/18 10:03:45 reyk Exp $ .\" .\" Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: September 17 2012 $ +.Dd $Mdocdate: September 18 2012 $ .Dt SNMPD.CONF 5 .Os .Sh NAME @@ -281,6 +281,21 @@ system services 74 oid 1.3.6.1.4.1.30155.42.1 name myName read-only string "humppa" oid 1.3.6.1.4.1.30155.42.2 name myStatus read-only integer 1 .Ed +.Pp +The next example will enforce SNMPv3 with authenticated and encrypted +communication and the user-based security model. +The configuration defines two users, +the first one is using the +.Ic aes +encryption algorithm and the second one the default +.Ic des +algorithm. +.Bd -literal -offset indent +seclevel enc + +user "xaver" authkey "password123" enc aes enckey "321drowssap" +user "traudl" authkey "password456" enckey "654drowssap" +.Ed .Sh SEE ALSO .Xr snmpctl 8 , .Xr snmpd 8 |