| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
. ../support/simple_eval_tools.sh |
| 4 |
|
| 5 |
HEADER swap on Solaris using HOST-RESOURCES |
| 6 |
|
| 7 |
if test `uname -s` != "SunOS" ; then |
| 8 |
SKIP "not running solaris" |
| 9 |
fi |
| 10 |
|
| 11 |
ISDEFINED USING_HOST_HR_STORAGE_MODULE || ISDEFINED USING_HOST_HRH_STORAGE_MODULE || SKIP "Not using hrStorage" |
| 12 |
|
| 13 |
SKIPIF NETSNMP_DISABLE_SNMPV1 |
| 14 |
|
| 15 |
# |
| 16 |
# Begin test |
| 17 |
# |
| 18 |
|
| 19 |
# standard V1 configuration: testcommunity |
| 20 |
. ./Sv1config |
| 21 |
|
| 22 |
STARTAGENT |
| 23 |
|
| 24 |
# ask for hrStorageSize.10 which reports overall swap size |
| 25 |
CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity -v 1 $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.25.2.3.1.5.10" |
| 26 |
|
| 27 |
STOPAGENT |
| 28 |
|
| 29 |
CHECKORDIE "^.1.3.6.1.2.1.25.2.3.1.5.10 = INTEGER:" |
| 30 |
|
| 31 |
FINISHED |