summaryrefslogtreecommitdiff
path: root/testing/tests/T049snmpv3informauth
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/T049snmpv3informauth')
-rw-r--r--testing/tests/T049snmpv3informauth25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/tests/T049snmpv3informauth b/testing/tests/T049snmpv3informauth
new file mode 100644
index 0000000..ab67ff5
--- /dev/null
+++ b/testing/tests/T049snmpv3informauth
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+. ../eval_tools.sh
+
+DEFSECURITYLEVEL=authNoPriv
+
+HEADER "SNMPv3 informs ($DEFSECURITYLEVEL) received and sent by tools"
+
+#
+# Begin test
+#
+
+. ./Sv3usmconfigtrapd
+CONFIGTRAPD authuser log $TESTAUTHUSER $DEFSECURITYLEVEL
+CONFIGTRAPD agentxsocket /dev/null
+
+STARTTRAPD
+
+CAPTURE "snmptrap -Ci -t $SNMP_SLEEP -d $TESTAUTHARGS $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPTRAPD_PORT 0 .1.3.6.1.6.3.1.1.5.1 system.sysContact.0 s received_inform_$DEFSECURITYLEVEL"
+
+STOPTRAPD
+
+CHECKTRAPD "received_inform_$DEFSECURITYLEVEL"
+
+FINISHED