diff options
author | 2019-09-18 10:03:55 +0000 | |
---|---|---|
committer | 2019-09-18 10:03:55 +0000 | |
commit | dd27a176106115110b0c189e37494fd16ad85603 (patch) | |
tree | 267b92c4bfeacbc0eb0a51bc751bd4d6693c6b4c | |
parent | Add support for some HP LaserJet systems. These systems don't return the (diff) | |
download | wireguard-openbsd-dd27a176106115110b0c189e37494fd16ad85603.tar.xz wireguard-openbsd-dd27a176106115110b0c189e37494fd16ad85603.zip |
Let snmpd's regress test make use of our very own brand new SNMPv3/USM
support in snmp(1).
-rw-r--r-- | regress/usr.sbin/snmpd/snmpd.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/regress/usr.sbin/snmpd/snmpd.sh b/regress/usr.sbin/snmpd/snmpd.sh index 5d0007e1b2e..d9498a68d07 100644 --- a/regress/usr.sbin/snmpd/snmpd.sh +++ b/regress/usr.sbin/snmpd/snmpd.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: snmpd.sh,v 1.9 2019/08/09 07:58:26 martijn Exp $ +# $OpenBSD: snmpd.sh,v 1.10 2019/09/18 10:03:55 martijn Exp $ #/* # * Copyright (c) Rob Pierce <rob@openbsd.org> # * @@ -198,10 +198,10 @@ fi # get with SHA authentication os="$(uname -s)" -snmpget_command="snmpget -Oq -l authNoPriv -u hans -a SHA -A password123 \ +snmp_command="snmp get -v3 -Oq -l authNoPriv -u hans -a SHA -A password123 \ localhost system.sysDescr.0" -echo ======= $snmpget_command -system="$(eval $snmpget_command | awk '{ print $2 }')" +echo ======= $snmp_command +system="$(eval $snmp_command | awk '{ print $2 }')" if [ "$system" != "$os" ] then echo "Retrieval test with seclevel auth and SHA failed." @@ -234,10 +234,10 @@ sleep ${SLEEP} # get with SHA authentication and AES encryption os="$(uname -s)" -snmpget_command="snmpget -Oq -l authPriv -u hans -a SHA -A password123 -x AES \ +snmp_command="snmp get -v3 -Oq -l authPriv -u hans -a SHA -A password123 -x AES \ -X 321drowssap localhost system.sysDescr.0" -echo ======= $snmpget_command -system="$(eval $snmpget_command | awk '{ print $2 }')" +echo ======= $snmp_command +system="$(eval $snmp_command | awk '{ print $2 }')" if [ "$system" != "$os" ] then echo "seclevel auth with SHA failed" |