Wednesday, November 10, 2010

PoE Control via SNMP

A simple way to toggle the power on a power-over-Ethernet (PoE) switch port using the IETF POWER-EHTERNET-MIB (RFC 3621) object pethPsePortAdminEnable.

Here is an excerpt from POWER-EHTERNET-MIB:

pethPsePortAdminEnable OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"true (1) An interface which can provide the PSE functions.
false(2) The interface will act as it would if it had no PSE
function."

Setting the object to false (2) on a port turns off the power; Setting it to true (1) turns the power on.

Simple enough. The next thing is to convert an interface name (e.g., Fa0/10) to the port index (e.g., 12) -- That is different on different switches.

No comments:

Post a Comment