cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
63775
Views
25
Helpful
21
Replies

How to switch off and on POE on a device

Entrust Dave
Level 1
Level 1

Dear Sirs

I would like to switch off and back on again the POE function on one channel of my Cisco 2960 Catalyst switch.

I have a number of Latte Panda PCs attached and sometimes one may need to be powered down and powered up again without switching the entire switch off and back on. I can access the Management port and should be able to do this via this port.

I have trawled through some YouTube stuff but to no avail. I was wondering if I could limit the power going to a particular port and set it to zero watts and then switch it back to "auto". This, I think, could have the desired effect.

Is there a written procedure I could follow?

Many thanks in advance for your help.

Kindest Regards

Dave Berry

21 Replies 21

go to interface
power inline auto

that will turn it back on

example of one I just did:

IDF_SW2.1(config-if)#int g4/0/41
​‌IDF_SW2.1(config-if)#power inline never
IDF_SW2.1(config-if)#power inline auto

christionFly
Level 1
Level 1

These notes should help. 

Play around with some of the commands and see what works for your unique situation without really breaking anything of course.

Configuration Note for Catalyst 2960 Switch Power over Ethernet Ports, Rel. 12.2(44)SE - Cisco

Berkeloid
Level 1
Level 1

Since this is one of the top Google results, I just wanted to add a method that makes it much easier to script PoE state changes, by doing it over SNMP.

To power cycle port 10 on the switch with IP address 1.2.3.4:

snmpset -v2c -c private 1.2.3.4 1.3.6.1.2.1.105.1.1.1.3.1.10 i 2
sleep 1
snmpset -v2c -c private 1.2.3.4 1.3.6.1.2.1.105.1.1.1.3.1.10 i 1

To list the PoE status of all ports (and to see if your switch supports this) use:

snmpwalk -v2c -c public 1.2.3.4 1.3.6.1.2.1.105.1.1.1.3.1

A value of 1 means is PoE enabled, 2 means power disabled.

Replace "public"/"private" with the SNMP password you configured the switch to use, noting that the password must have write access in order to set the PoE status.

There is more explanation on the page where I found this: https://g1fef.co.uk/turning-poe-on-and-off-on-the-cisco-3750-via-snmp/

The switch used on that page starts with port 1 on SNMP OID .3, while mine puts it on OID .1, so you might have to experiment a bit to figure out what offset your switch uses.  To work this out, I used the "power inline never" configuration command on an unused port, then used the snmpwalk command above to see which one changed value from 1 to 2 and that gave me my offset.

Devaa
Spotlight
Spotlight

If you don't wanna shut and unshut the port, below is the way to disable PoE only and enable it back. 

! Turn OFF PoE in a port
conf t
 int TenGigabitEthernetX/Y/Z
  power inline never
end

 

! Turn ON PoE in a port
conf t
 int TenGigabitEthernetX/Y/Z
  power inline auto
end

 

Hi Dave, to switch POE off and on for a single port on your Cisco 2960 switch, you can use the command line interface. First, access the switch via the management port using SSH or console. Then enter global configuration mode by typing configure terminal. Next, go to the specific interface with interface FastEthernet0/1 (replace with your actual port). To turn off POE, type power inline never, and to turn it back on, type power inline auto. Exit the interface and save the configuration with write memory. This will power cycle the POE on just that one port without affecting the others.