Debian Codegraph @

testing/fulltests/default/T151solarishostdisk_simple

raw
1 #!/bin/sh
2
3 . ../support/simple_eval_tools.sh
4
5 HEADER initial load device on Solaris using HOST-RESOURCES
6
7 if test `uname -s` != "SunOS" ; then
8 # a bogus skip for !suns
9 SKIP "not running solaris"
10 fi
11
12 SKIPIFNOT USING_HOST_HR_SYSTEM_MODULE
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 the index of the initial device (hrSystemInitialLoadDevice.0)
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.1.3.0"
26
27 STOPAGENT
28
29 CHECKORDIE "^.1.3.6.1.2.1.25.1.3.0 = INTEGER:"
30
31 FINISHED