summaryrefslogtreecommitdiff
path: root/testing/tests/T152hostuptime
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/T152hostuptime')
-rw-r--r--testing/tests/T152hostuptime27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/tests/T152hostuptime b/testing/tests/T152hostuptime
new file mode 100644
index 0000000..1e90d3f
--- /dev/null
+++ b/testing/tests/T152hostuptime
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+. ../eval_tools.sh
+
+HEADER uptime using HOST-RESOURCES
+
+SKIPIFNOT USING_HOST_HR_SYSTEM_MODULE
+
+SKIPIF NETSNMP_DISABLE_SNMPV1
+
+#
+# Begin test
+#
+
+# standard V1 configuration: testcommunity
+. ./Sv1config
+
+STARTAGENT
+
+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.1.1.0"
+
+STOPAGENT
+
+CHECKORDIE "^.1.3.6.1.2.1.25.1.1.0 = Timeticks:"
+
+FINISHED
+