Debian Codegraph @

testing/fulltests/default/T049snmpv3inform_simple

raw
1 #!/bin/sh
2
3 . ../support/simple_eval_tools.sh
4
5 SKIPIFNOT NETSNMP_SECMOD_USM
6
7 DEFSECURITYLEVEL=noAuthNoPriv
8
9 HEADER "SNMPv3 informs (noAuthNoPriv) received and sent by tools"
10
11 #
12 # Begin test
13 #
14
15 CONFIGTRAPD createUser testuser
16 CONFIGTRAPD authuser log testuser $DEFSECURITYLEVEL
17 CONFIGTRAPD agentxsocket /dev/null
18
19 STARTTRAPD
20
21 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 .1.3.6.1.2.1.1.4.0 s received_inform_$DEFSECURITYLEVEL"
22
23 STOPTRAPD
24
25 CHECKTRAPD "received_inform_$DEFSECURITYLEVEL"
26
27 FINISHED