3 PATH=$path:/bin:/usr/bin:/usr/ucb
5 PLACE=".1.3.6.1.4.1.2021.255"
8 if [ "$1" = "-s" ]; then
9 echo $* >> /tmp/passtest.log
13 if [ "$1" = "-n" ]; then
15 $PLACE) RET=$PLACE.1 ;;
16 $PLACE.1) RET=$PLACE.2.1 ;;
17 $PLACE.2.1) RET=$PLACE.2.2 ;;
18 $PLACE.2.2) RET=$PLACE.3 ;;
19 $PLACE.3) RET=$PLACE.4 ;;
20 $PLACE.4) RET=$PLACE.5 ;;
21 $PLACE.5) RET=$PLACE.6 ;;
33 $PLACE.1) echo "string"; echo "life the universe and everything"; exit 0 ;;
34 $PLACE.2.1) echo "integer"; echo "42"; exit 0 ;;
35 $PLACE.2.2) echo "objectid"; echo ".1.3.6.1.4.42.42.42"; exit 0 ;;
36 $PLACE.3) echo "timeticks"; echo "363136200"; exit 0 ;;
37 $PLACE.4) echo "ipaddress"; echo "127.0.0.1" ;;
38 $PLACE.5) echo "counter"; echo "42"; exit 0 ;;
39 $PLACE.6) echo "gauge"; echo "42"; exit 0 ;;
40 *) echo "string"; echo "ack... $RET $REQ"; exit 0 ;;