Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

UPS / Battery Backup: Safe phone controller shutdown?

So, apparently it is a bad thing to just directly pull the plug on a Cisco Unified Communications phone controller.

Apparently it is possible to corrupt CUE and to possibly have it go so far as to corrupting the flash memory and losing all stored phone messages and even the system configuration.

But I don't see a simple and easy way to use battery backup, with a controlled shutdown process, to safely power down a controller.

,

I am thinking something may be easily possible to tell a Cisco phone controller always do a safe shutdown when the UPS goes on battery, using one of the cheap microcontrollers that are now available, such as Rasberry Pi.

Most UPS have a serial port status monitoring capability that reports when the UPS is on battery. So write a tiny program for the microcontroller that looks something like this:

Loop forever:

     Sleep 1 second

     Check serial port #1 for UPS state.

     If UPS on battery then

          add 1 to ShutdownDelay

     else

          set ShutdownDelay to zero.   

     If ShutdownDelay > 60 seconds then

          Open serial port #2 to UC560 console port

          Logon to router

               If error, try to logon again.

          Shut down cue: service-module integrated-Service-Engine 0/0 shutdown

               Wait for successful command completion. If error, try again.

          Write logging info to flash memory on Rasberry Pi.

          Send command to UPS to turn off and go to into sleep mode until power is restored

Is there any such already existing thing? I'm not finding anything with my web searching.

Everyone's tags (6)
1 REPLY
Hall of Fame Super Gold

UPS / Battery Backup: Safe phone controller shutdown?

As you say, you would need to write a custom script for that.

256
Views
0
Helpful
1
Replies
CreatePlease to create content