diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2022-01-19 11:02:39 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2022-01-19 11:02:39 +0000 |
commit | 68ed083ae5bff21a814b24e5b6e8777859290ffa (patch) | |
tree | d937be1bcec01624d129aed8c8d9af28ffaef145 /regress/usr.sbin/snmpd | |
parent | f624abcd69fc655149a6eaf80d460230a2b10cb4 (diff) |
Disable regress for set requests after dropping support in new application
layer.
OK jmatthew@
Diffstat (limited to 'regress/usr.sbin/snmpd')
-rw-r--r-- | regress/usr.sbin/snmpd/snmpd.sh | 75 |
1 files changed, 39 insertions, 36 deletions
diff --git a/regress/usr.sbin/snmpd/snmpd.sh b/regress/usr.sbin/snmpd/snmpd.sh index b301a40b56a..2066260099f 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.17 2022/01/07 10:20:11 martijn Exp $ +# $OpenBSD: snmpd.sh,v 1.18 2022/01/19 11:02:38 martijn Exp $ #/* # * Copyright (c) Rob Pierce <rob@openbsd.org> # * @@ -151,19 +151,20 @@ fi # system.sysContact set with default rw community string -puffy="puffy@openbsd.org" -snmp_command="snmp set -c private -v 1 localhost system.sysContact.0 s $puffy" -echo ======= $snmp_command -eval $snmp_command > /dev/null 2>&1 -snmp_command="snmp get -v2c -cpublic localhost 1.3.6.1.2.1.1.4.0" -echo ======= $snmp_command -contact="$(eval $snmp_command)" -contact="${contact##sysContact.0 = STRING: }" -if [ "$contact" != "$puffy" ] -then - echo "Setting with default rw community string failed." - FAILED=1 -fi +# Currently no set support in snmpd +#puffy="puffy@openbsd.org" +#snmp_command="snmp set -c private -v 1 localhost system.sysContact.0 s $puffy" +#echo ======= $snmp_command +#eval $snmp_command > /dev/null 2>&1 +#snmp_command="snmp get -v2c -cpublic localhost 1.3.6.1.2.1.1.4.0" +#echo ======= $snmp_command +#contact="$(eval $snmp_command)" +#contact="${contact##sysContact.0 = STRING: }" +#if [ "$contact" != "$puffy" ] +#then +# echo "Setting with default rw community string failed." +# FAILED=1 +#fi kill $(pgrep snmpd) >/dev/null 2>&1 wait @@ -296,19 +297,20 @@ fi # system.sysContact set with non-default rw/ro community strings -puffy="puffy@openbsd.org" -snmp_command="snmp set -c non-default-rw -v 1 localhost system.sysContact.0 \ - s $puffy" -echo ======= $snmp_command -eval $snmp_command > /dev/null 2>&1 -snmp_command="snmp get -Oqv -v2c -cnon-default-ro localhost 1.3.6.1.2.1.1.4.0" -echo ======= $snmp_command -contact="$(eval $snmp_command)" -if [ "$contact" != "$puffy" ] -then - echo "Setting with default rw community string failed." - FAILED=1 -fi +# Currently no set support in snmpd +#puffy="puffy@openbsd.org" +#snmp_command="snmp set -c non-default-rw -v 1 localhost system.sysContact.0 \ +# s $puffy" +#echo ======= $snmp_command +#eval $snmp_command > /dev/null 2>&1 +#snmp_command="snmp get -Oqv -v2c -cnon-default-ro localhost 1.3.6.1.2.1.1.4.0" +#echo ======= $snmp_command +#contact="$(eval $snmp_command)" +#if [ "$contact" != "$puffy" ] +#then +# echo "Setting with default rw community string failed." +# FAILED=1 +#fi # custom oids, with a ro that we should not be able to set @@ -332,15 +334,16 @@ then FAILED=1 fi -snmp_command="snmp set -c non-default-rw -v 1 localhost \ - 1.3.6.1.4.1.30155.42.1.0 s \"bula\"" -echo ======= $snmp_command -eval $snmp_command > /dev/null 2>&1 -if [ $? -eq 0 ] -then - echo "Setting of a ro custom oid test unexpectedly succeeded." - FAILED=1 -fi +# Currently no set support in snmpd +#snmp_command="snmp set -c non-default-rw -v 1 localhost \ +# 1.3.6.1.4.1.30155.42.1.0 s \"bula\"" +#echo ======= $snmp_command +#eval $snmp_command > /dev/null 2>&1 +#if [ $? -eq 0 ] +#then +# echo "Setting of a ro custom oid test unexpectedly succeeded." +# FAILED=1 +#fi snmp_command="snmp get -Oqv -v2c -c non-default-rw localhost \ usmUserSecurityName.1.0" |