1#!/bin/bash 2 3if [ -z "$BM_POE_INTERFACE" ]; then 4 echo "Must supply the PoE Interface to power down" 5 exit 1 6fi 7 8if [ -z "$BM_POE_ADDRESS" ]; then 9 echo "Must supply the PoE Switch host" 10 exit 1 11fi 12 13SNMP_KEY="1.3.6.1.4.1.9.9.402.1.2.1.1.1.$BM_POE_INTERFACE" 14SNMP_ON="i 1" 15SNMP_OFF="i 4" 16 17snmpset -v2c -r 3 -t 30 -cmesaci $BM_POE_ADDRESS $SNMP_KEY $SNMP_OFF 18