#! /bin/sh
MODE=$1
case $MODE in
on)
MODE=1
;;
off)
MODE=2
esac
snmpset -v 1 -c private 192.168.222.240 PowerNet-MIB::sPDUOutletCtl.1 i $MODE