| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
. ../support/simple_eval_tools.sh |
| 4 |
|
| 5 |
HEADER that the agent responds properly to a kill -HUP |
| 6 |
|
| 7 |
SKIPIF NETSNMP_DISABLE_SNMPV1 |
| 8 |
|
| 9 |
SKIPIFNOT HAVE_SIGHUP |
| 10 |
|
| 11 |
# |
| 12 |
# Begin test |
| 13 |
# |
| 14 |
|
| 15 |
# standard V1 configuration: testcomunnity |
| 16 |
. ./Sv1config |
| 17 |
|
| 18 |
STARTAGENT |
| 19 |
|
| 20 |
# add a agent configuration line that wouldn't have been there when |
| 21 |
# the started up. |
| 22 |
CONFIGAGENT syslocation not-anywhere-in-particular |
| 23 |
|
| 24 |
# kill -HUP the agent to get it to re-read the .conf file. |
| 25 |
DELAY |
| 26 |
kill -HUP `cat $SNMP_SNMPD_PID_FILE` > /dev/null 2>&1 |
| 27 |
DELAY |
| 28 |
|
| 29 |
# And see if it has the new value. |
| 30 |
CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity -v 1 $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.6.0" |
| 31 |
|
| 32 |
STOPAGENT |
| 33 |
|
| 34 |
CHECK "not-anywhere-in-particular" |
| 35 |
|
| 36 |
FINISHED |