Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

Close
Important Announcement: WELCOME to the new Schneider Electric Community! Community is now no longer part of Exchange, and is now rebranded under se.com. If you have any bookmarks and links saved, we request you to update them to ensure that you continue accessing our community from this new location. For any issues that you might encounter as part of this change, please reach out to SchneiderCommunity.Support@se.com, and the team will help to get your issues resolved.
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
82473members
350045posts

Windows receives the shutdown command a minute later than PowerChute calls it

APC UPS for Home and Office Forum

Schneider Electric support forum for our APC offers including Home Office UPS, Surge Protectors, UTS, software and services and associated products designed to share knowledge, installation, and configuration.

yurybx_apc
Cadet
0 Likes
1
1005

Windows receives the shutdown command a minute later than PowerChute calls it

We had a power outage today and PowerChute didn't seem to work properly. Colleagues, I ask you to help me understand why this happened. To understand the situation, I compared the PowerChute and Windows logs, and saw a discrepancy.
There is an event in the PowerChute logs:
08:46:39 Shutdown process started
There is a corresponding event in the Windows logs:
8:47:44 The process wininit.exe (127.0.0.1) has initiated the power off of computer HSERVER on behalf of user NT AUTHORITY\SYSTEM for the following reason: Legacy API shutdown.
Thus, we see that for some reason the server received the shutdown command more than a minute later than it was generated by PowerChute. Because of this, the server did not have time to completely shut down. Why did this happen?
My equipment: Smart-UPS 750 connected to the server via COM port, Supermicro SYS-5038R-T server, Microsoft Hyper-V 2012 R2 operating system (core).
My config: 

Time Required For Shutdown Sequence 15 Minutes
Low Battery Signal 2 Minutes
Command File Enabled No
OS Shutdown Duration 1:30 Minutes:Seconds
OS Shutdown Type Shutdown and Off
Enable OS Reboot Yes
UPS Turn On Battery Capacity 0 %
UPS Turn On Delay 1 Minutes
Enable SMTP E-mail No
Enable Logging Yes

Tags (1)
1 Reply 1
BillP
Administrator Administrator
Administrator

Re: Windows receives the shutdown command a minute later than PowerChute calls it

@yurybx_apc 

 

When PowerChute starts the shutdown process it sends this command

 

shutdown /s /f /d UP:6:12 /c "PowerChute Business Edition has initiated a system shutdown."

 

If you want the system to shut down immediately change the shutdown command to 

 

shutdown /s /t 0 /c "PowerChute Business Edition has initiated a system shutdown."  /f /d UP:6:12 

 

By adding /t 0 there will be no delay.

 

The file to edit is in C:\Program Files (x86)\APC\PowerChute Business Edition\agent\bin and is named shutdown 

 

To test the command open a command prompt as an administrator and you can run each command to see the difference. 

 

When you run shutdown /s /f /d UP:6:12 /c "PowerChute Business Edition has initiated a system shutdown." a pop appears warning you the system is going down. 

When you run shutdown /s /t 0 /c "PowerChute Business Edition has initiated a system shutdown."  /f /d UP:6:12  There is no warning and the system powers off immediately. 

Tags (1)