Debian Codegraph @

testing/fulltests/default/T150solarishostcpu_simple

raw
1 #!/bin/sh
2
3 . ../support/simple_eval_tools.sh
4
5 HEADER 1st CPU on Solaris using HOST-RESOURCES
6
7 if test "x`uname -s`" != "xSunOS" ; then
8 SKIP "not running solaris"
9 fi
10
11 SKIPIF NETSNMP_DISABLE_SNMPV1
12 SKIPIFNOT USING_HOST_HR_DEVICE_MODULE
13
14 #
15 # Begin test
16 #
17
18 # standard V1 configuration: testcommunity
19 . ./Sv1config
20
21 STARTAGENT
22
23 # ask for the description of the first CPU in the system
24
25 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"
26
27 CHECKORDIE ' = STRING: "*CPU '
28
29 STOPAGENT
30
31 FINISHED