04-04-2022 03:55 AM
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
09-28-2023 12:28 PM
go to interface
power inline auto
that will turn it back on
example of one I just did:
06-24-2024 12:54 PM
10-04-2024 01:29 PM
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
10-04-2024 01:32 PM
12-31-2024 08:54 PM
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.
01-01-2025 08:49 AM
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
04-21-2025 01:41 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide