| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
. ../support/simple_eval_tools.sh |
| 4 |
|
| 5 |
DEFSECURITYLEVEL=authPriv |
| 6 |
|
| 7 |
HEADER "SNMPv3 informs (authPriv) received and sent by tools" |
| 8 |
|
| 9 |
SKIPIFNOT NETSNMP_CAN_DO_CRYPTO |
| 10 |
SKIPIFNOT NETSNMP_ENABLE_SCAPI_AUTHPRIV |
| 11 |
|
| 12 |
# |
| 13 |
# Begin test |
| 14 |
# |
| 15 |
|
| 16 |
. ./Sv3usmconfigtrapd |
| 17 |
CONFIGTRAPD authuser log $TESTPRIVUSER $DEFSECURITYLEVEL |
| 18 |
CONFIGTRAPD agentxsocket /dev/null |
| 19 |
|
| 20 |
STARTTRAPD |
| 21 |
|
| 22 |
CAPTURE "snmptrap -Ci -t $SNMP_SLEEP -d $TESTPRIVARGS $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" |
| 23 |
|
| 24 |
STOPTRAPD |
| 25 |
|
| 26 |
CHECKTRAPD "received_inform_$DEFSECURITYLEVEL" |
| 27 |
|
| 28 |
FINISHED |