Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / net-snmp / testing / tests / T100agenthup
1 #!/bin/sh
2
3 . ../eval_tools.sh
4
5 HEADER that the agent responds properly to a kill -HUP
6
7 #
8 # Begin test
9 #
10
11 # standard V1 configuration: testcomunnity
12 . ./Sv1config
13
14 STARTAGENT
15
16 # add a agent configuration line that wouldn't have been there when
17 # the started up.
18 CONFIGAGENT syslocation not-anywhere-in-particular
19
20 # kill -HUP the agent to get it to re-read the .conf file.
21 DELAY
22 kill -HUP `cat $SNMP_SNMPD_PID_FILE` > /dev/null 2>&1
23 DELAY
24
25 # And see if it has the new value.
26 CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity -v 1 udp:localhost:$SNMP_SNMPD_PORT system.sysLocation.0"
27
28 STOPAGENT
29
30 CHECK "not-anywhere-in-particular"
31
32 FINISHED