Power over Ethernet (PoE) Commands


Note

Power ove Ethernet (PoE) is available on on certain models:


This chapter contains the following sections:

power inline

To configure the inline power administrative mode on an interface, use the power inline Interface Configuration mode command.

Syntax

power inline auto [time-range NAME]

power inline never

Parameters

auto—Turns on the device discovery protocol and applies power to the device.

NAME—Specify the name of time-range settings. When the time range is not in effect the power is not supplied the attached device. If a time range is not specified, there is no time range bounded to the port. (Range: 1–32 characters.)

never—Turns off the device discovery protocol and stops supplying power to the device.

Default Configuration

The default is auto.

Command Mode

Interface Configuration (Ethernet) mode

Example

The following example turns on the device discovery protocol on port 1:

switch(config)# interface gi1
switch(config-if)# power inline auto
The example shows how to apply workhour time-range to an interface.
Switch(config)# interface gi1
Switch(config-if)# power inline auto time-range workhour
Use the following command to verify your configuration.
Switch(config-if)# do show power inline interface gi1
Port State Status     Priority Class   Max.Power (Admin) Device
                                       (mW)
---- ----- ---------- -------- ------- ----------------- --------
gi1  Auto  off        low      class0  30000 (30000)     N/A
Port Overload Short Current Power Denied MPS Absent Invalid Sig.
---- ------------- ------------- ------------- ------------- ---
gi1  0             0             0             0             0
Port Time Range                       Status
---- -------------------------------- --------
gi1  workhour                         Active

power inline legacy enable

To enable supporting legacy powered devices, use the power inline legacy enable Global Configuration mode command.

To disable supporting legacy powered devices, use the no form of this command.

Syntax

power inline legacy enable

no power inline legacy enable

Default Configuration

Power inline legacy is disabled.

Command Mode

Global Configuration mode

User Guidelines

This feature only works when establishing the autonegotiation connection. For the legacy powered devices that are already connected, disabling this feature only takes effect after you unplug their cables.

Example

switchxxxxxx(config)# power inline legacy enable

power inline limit

To limit the power consumption on an interface, use the power inline limit Interface Configuration mode command.

To revert to its default setting, use the no form of the command.

Syntax

power inline limit power

no power inline limit

Parameters

power—Maximum amount of power consumption in milliwatts on the interface. (Range: 0 to 30000 milliwatts)

Default Configuration

30000 milliwatts for 802.3at ports and 15400 milliwatts for other ports.

Command Mode

Interface Configuration (Ethernet) mode

Example

switchxxxxxx(config)# interface gi1
switchxxxxxx(config-if)# power inline limit 20000

power inline limit-mode

To set the power limit mode, use the power inline limit-mode Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

power inline limit-mode {class | port}

no power inline limit-mode

Parameters

class—Specifies that the power limit of a port is based on the class of the Power Device (PD) as detected during the classification process.

port—Specifies that the power limit of a port is fixed regardless of the class of the discovered PD.

Command Mode

Global Configuration mode

Example

The following example limits the power per port in class mode:

switchxxxxxx(config)# power inline limit-mode class

power inline priority

To configure the inline power management priority for an interface, use the power inline priority Interface Configuration (Ethernet) mode command.

Syntax

power inline priority {critical | high | low}

Parameters

critical—Specifies that the powered device operation is critical.

high—Specifies that the powered device operation is high priority.

low—Specifies that the powered device operation is low priority.

Default Configuration

The default is low.

Command Mode

Interface Configuration (Ethernet) mode

Example

The following example sets the inline power management priority for port 4 to high:

switchxxxxxx(config)# interface gi4
switchxxxxxx(config-if)# power inline priority high

power inline traps enable

To enable inline power traps, use the power inline traps enable Global Configuration mode command.

To disable inline power traps, use the no form of this command.

Syntax

power inline traps enable

no power inline traps enable

Default Configuration

Inline power traps are disabled by default.

Command Mode

Global Configuration mode

Example

switchxxxxxx(config)# power inline traps enable

power inline usage-threshold

To configure the threshold for initiating inline power usage alarms, use the power inline usage-threshold Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

power inline usage-threshold percent

no power inline usage-threshold

Parameters

percent—The usage threshold in percentage of the power limit. An alarm is initiated if the power exceeds this value. (Range: 1 to 99)

Default Configuration

The default threshold is 95 percent.

Command Mode

Global Configuration mode

Example

switchxxxxxx(config)# power inline usage-threshold 90

show env all

To show the environment temperature, the temperature thresholds, and the fan speeds, use the show env all Privileged EXEC mode command.

Syntax

show env all

Parameters

N/A

Default Configuration

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx(config)# show env all
FAN is OK
TEMPERATURE is OK

show power inline

To display information about the inline power for all interfaces or for a specific interface, use the show power inline Privileged EXEC mode command.

Syntax

show power inline [interface-id]

Parameters

interface-id—Specifies an interface ID. The Interface ID must be an Ethernet port.

Default Configuration

Show information for all ports.

Command Mode

Privileged EXEC mode

Example

Example 1—The following example shows the inline power settings for all interfaces:

SwitchXXXXXX# show power inline
Power management mode: Class limit mode
Legacy device support: Disabled
Unit  Power  Status   Nominal     Allocated      Consumed     Available     Usage    Traps
                      Power       Power          Power        Power       Threshold
---- ------- ------ --------- ---------------- ----------- -------------  ------   --------
 1      On   Normal 375Watts   15Watts (4%)      5Watts     360Watts      95      Disable
Port    State      Status    Priority  Class  Max. Power (mW)  Alloc. Power (mW) Device
----- ----------- ---------- -------- ------- ---------------- ----------------- ------------------------
fa1    Auto       On         Low      Class3  15400            15400             AIR-CAP3502I-T-K9
fa2    Auto       On         Low      Class3  15400            15400             Ieee PD
fa3    Auto       Off        Low      N/A     30000            0                 N/A
fa4    Auto       Off        Low      N/A     30000            0                 N/A
fa5    Auto       Off        Low      N/A     15400            0                 N/A
fa6    Auto       Off        Low      N/A     15400            0                 N/A
fa7    Auto       Off        Low      N/A     15400            0                 N/A
fa8    Auto       Off        Low      N/A     15400            0                 N/A
--More-

Example 2—The following example shows the inline power settings for port fa1-2:

SwitchXXXXXX# show power inline interfaces fa1-2
Port State Status     Priority Class   Max.Power Alloc.Power Device
                                       (mW)      (mW)
---- ----- ---------- -------- ------- --------- ----------- ----------------
fa1  Auto  searching  low      N/A     30000     0           N/A
fa2  Auto  on         low      class3  15400     15400       Ieee PD
Port Overload      Short Current  Power Denied  MPS Absent    Invalid Sig.
---- ------------- ------------- ------------- ------------- -------------
fa1  0             0             0             0             0
fa2  0             0             0             0             0
Port Time Range                       State
---- -------------------------------- --------
fa1
fa2  TimebasedPoE                     Active

show power inline consumption

To show the inline power consumption for all interfaces or for a specific interface, use the show power inline consumption Privileged EXEC mode command.

Syntax

show power inline consumption [interfaces interface-id]

Parameters

interfaces interface-id—(Optional) Specifies an interface ID or a list of interface IDs. The interface must be an Ethernet port.

Default Configuration

N/A

Command Mode

Privileged EXEC mode

Example

The following example displays the inline power consumption for port 1:

switchxxxxxx# show power inline consumption interfaces gi1
Port Max.Power (Admin) Power    Voltage  Current
      (mW)                 (mW)     (mV)     (mA)
---- ----------------- -------- -------- --------
gi1  30000 (30000)       0        0        0

The following table describes the significant fields shown in the example:

Field

Description

Port

Interface number.

Max. Power (Admin)

Maximum amount of power in milliwatts allocated to the selected interface.

Power

Amount of power in milliwatts assigned to the powered device connected to the selected interface.

Voltage

Voltage of the power.

Current

Current in milliampere of the power.