I am trying to figure out the SNMP OID commands to turn off power to some one or more ports via snmpset. I am able to do snmpwalk but being a total newbie have not been able to figure out how to turn power on and off. I have looked at the CISCOSBpoe.mib and do not see the equivalent of the
power inline never
power inline auto
that I use to remotely reboot. I have used the commands
snmpset -v 2c -c .... <IP_addr> 1.3.6.1.2.1.2.2.1.7.51 i 2
snmpset -v 2c -c .... <IP_addr> 1.3.6.1.2.1.2.2.1.7.51 i 1
to turn the line on and off but that does not turn off the power.
Any help is most appreciated.
Edit to add: I was using the incorrect MIB. If you use
snmpset -v 2c -c .... <IP_addr> 1.3.6.1.2.1.105.1.1.1.3.1.51 i 2
snmpset -v 2c -c .... <IP_addr> 1.3.6.1.2.1.105.1.1.1.3.1.51 i 1
it works. I found this solution at: http://www.g1fef.co.uk/turning-poe-on-and-off-on-the-cisco-3750-via-snmp/