summaryrefslogtreecommitdiff
path: root/cleopatre/application/spidnetsnmp/testing/tests/T049snmpv3inform
blob: e762d13f5e905869b31c55d850d9b0b9d2daecd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

. ../eval_tools.sh

DEFSECURITYLEVEL=noAuthNoPriv

HEADER "SNMPv3 informs ($DEFSECURITYLEVEL) received and sent by tools"

#
# Begin test
#

CONFIGTRAPD createUser testuser
CONFIGTRAPD authuser log testuser $DEFSECURITYLEVEL
CONFIGTRAPD agentxsocket /dev/null

STARTTRAPD

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 received_inform_$DEFSECURITYLEVEL"

STOPTRAPD

CHECKTRAPD "received_inform_$DEFSECURITYLEVEL"

FINISHED