Debian Codegraph @

testing/fulltests/default/T057trapdauthtest2_simple

raw
1 #!/bin/sh
2
3 . ../support/simple_eval_tools.sh
4
5 SKIPIFNOT NETSNMP_SECMOD_USM
6
7 HEADER snmptrapd discards of unauthorized notification types
8
9 #
10 # Begin test
11 #
12
13 CONFIGTRAPD createUser testuser
14 CONFIGTRAPD authuser log testuser noAuthNoPriv .1.3.6.1.6.3.1.1.5.2
15 CONFIGTRAPD agentxsocket /dev/null
16
17 STARTTRAPD
18
19 CAPTURE "snmptrap -Ci -t $SNMP_SLEEP -d -v 3 -u testuser -l nanp $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPTRAPD_PORT 0 .1.3.6.1.6.3.1.1.5.1 system.sysContact.0 s blah"
20
21 STOPTRAPD
22
23 CHECKTRAPDCOUNT 0 "coldStart"
24
25 FINISHED