summaryrefslogtreecommitdiff
path: root/testing/tests/T150solarishostcpu
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/T150solarishostcpu')
-rw-r--r--testing/tests/T150solarishostcpu31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/tests/T150solarishostcpu b/testing/tests/T150solarishostcpu
new file mode 100644
index 0000000..a28e939
--- /dev/null
+++ b/testing/tests/T150solarishostcpu
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+. ../eval_tools.sh
+
+HEADER 1st CPU on Solaris using HOST-RESOURCES
+
+if test "x`uname -s`" != "xSunOS" ; then
+ SKIP
+fi
+
+SKIPIF NETSNMP_DISABLE_SNMPV1
+SKIPIFNOT USING_HOST_HR_DEVICE_MODULE
+
+#
+# Begin test
+#
+
+# standard V1 configuration: testcommunity
+. ./Sv1config
+
+STARTAGENT
+
+# ask for the description of the first CPU in the system
+
+CAPTURE "snmpgetnext -On $SNMP_FLAGS -c testcommunity -v 1 $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.25.3.2.1.3.767"
+
+CHECKORDIE " = STRING: CPU "
+
+STOPAGENT
+
+FINISHED