• July 17, 2018, 07:50:29 AM
Welcome, Guest. Please login or register. Registration is free.
Did you miss your activation email?

Author Topic: Schedule PoE Shutdown  (Read 1393 times)

0 Members and 1 Guest are viewing this topic.

Offline franc308

  • Rookie
  • **
  • Posts: 2
Schedule PoE Shutdown
« on: November 23, 2017, 06:00:14 AM »
Hello!

I am using EDM to enable PoE shutdown and it is not working. I am performing the following steps:

Energy Saver Globals: Turned PoePowerSavingEnabled

Energy Saver Schedules = ScheduleDay: Weekdays | ScheduleHour: 23 | ScheduleMinute: 0 | ScheduleAction: Activate

Ports = Port: 3/19 | EnergySaverEnable: True | EnergySaverPoEStatus: Disabled

I checked the Switch's time and it's correct.

Please, can anyone help me?

Thank you very much.


Offline franc308

  • Rookie
  • **
  • Posts: 2
Re: Schedule PoE Shutdown
« Reply #1 on: November 25, 2017, 05:32:20 PM »
Please, can anyone help me?

Thank you very much.

Offline pat2012

  • Sr. Member
  • ****
  • Posts: 145
Re: Schedule PoE Shutdown
« Reply #2 on: December 04, 2017, 05:57:33 PM »
Hi franc308.

I've never used this feature so this is based solely on what I understand from the documentation - Configuring Systems.

Try to following commands to check your configuration:

show energy-saver

show energy-saver schedule

show energy-saver interface 3/19


The documentation also says that before you make any configuration changes you should first disable AES globally.

Configuring port-based AES
Before you begin
Disable AES globally.

About this task
Use this procedure to enable or disable energy saving for the accessed port, an alternate individual
port, or a range of ports.

Procedure
1. Enter Ethernet Interface Configuration mode:
enable
configure terminal
interface Ethernet <port>

2. At the command prompt, enter the following command:
[default] [no] energy-saver [enable] [port <portlist> enable]
3. Press Enter.


Configuring AES scheduling

Before you begin
Disable AES globally.

About this task
Use the following procedure to configure an on and off time interval for the switch to enter lower
power states. The time interval can be a complete week, complete weekend, or individual days.

Procedure
1. Enter Global Configuration mode:
enable
configure terminal

2. At the command prompt, enter the following command:
energy-saver schedule {weekday|weekend|monday|tuesday|wednesday|
thursday|friday|saturday|sunday} <hh:mm> {activate|deactivate}

3. Press Enter.

I hope this helps.

Offline krc

  • Rookie
  • **
  • Posts: 10
Re: Schedule PoE Shutdown
« Reply #3 on: December 06, 2017, 04:00:39 PM »
The following bash/snmp script can point you in the right direction:

#!/bin/bash

# poe blip port choice

 if [ $# -eq 0 ] ; then
        echo "USAGE: $(basename $0) <switch-name> <unit#> <PortSNMPIndex#>"
       exit 1
    fi

# poe off
echo "PoE down on Port:$2"
snmpset -v2c -c <snmp-write-string> $1 1.3.6.1.2.1.105.1.1.1.3.$2.$3 i 2

echo "sleep for 3 secs"
sleep 3

echo "PoE up on Port:$2"
snmpset -v2c -c <snmp-write-string> $1 1.3.6.1.2.1.105.1.1.1.3.$2.$3 i 1


Building from above:
You can basically do a dump of the poe ports, via snmp, then send the snmp cmd to shut them all down, then reverse that to bring them up. Then just add the two scripts to cron for whenever.




« Last Edit: December 06, 2017, 04:08:22 PM by krc »