Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

PowerChute not executing

APC UPS Data Center & Enterprise Solutions Forum

Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS Data Center & Enterprise Solutions Forum
  • PowerChute not executing
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
BillP
Administrator BillP Administrator
5060
voidstar_apc
Janeway voidstar_apc
196
Erasmus_apc
Sisko Erasmus_apc
112
TheNotoriousKMP_apc
Sisko TheNotoriousKMP_apc
108
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to APC UPS Data Center & Enterprise Solutions Forum
Solved
dave_08_apc
Ensign dave_08_apc
Ensign

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:20 AM

0 Likes
7
1251
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:20 AM

PowerChute not executing

Hello. I've read several posts, some old,  with the same problem, but couldn't find a solution that works for me.

I'm using PowerChute Business Edition 9.2 on a windows 7 pc and I had it configured to shutdown some linux servers using a command file in "shutdown sequence". It had been working fine but yesterday I noticed it didn't run the commands as expected.

I'm using a execute.bat file with the following contents:

----------------------------

echo "shutdown started at %date%, %time%" >>C:\LOGS\shutdown_log.txt

@start putty -load my.server1.ip -m c:\commands.txt

@start putty -load my.server2.ip -m c:\commands.txt

...

echo "shutdown finished at %date%, %time%" >>C:\LOGS\shutdown_log.txt

--------------------------
The commands file looks like this:

commands.txt

sudo /sbin/shutdown -h +1 2> stderr.txt

----------------------------------------------------------

If I execute it manually, it will work. If the power fails or I execute it at the "configure shutdown sequence" TEST button, It only executes the echo shutdown started/finished at %date%, %time%" >>C:\shutdown_log.txt.

Can someone please help me out?

Thanks and regards.

Labels
  • Labels:
  • UPS Management Devices & PowerChute Software
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
dave_08_apc
Ensign dave_08_apc
Ensign

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

0 Likes
0
1250
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

The solution described in

http://forums.apc.com/spaces/15/universal-transfer-switch/forums/general/976/scripting-remote-server...

works for me. Still, I'll try to adapt to my previous solution so that I don't have to insert passwords in the apc command file.

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 7
dave_08_apc
Ensign dave_08_apc
Ensign

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:20 AM

0 Likes
0
1250
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:20 AM

Meanwhile, I changed the permissions of the PAC PBE Agent service so it would run with "Administrator" instead of "Local System", but it is the same thing.

So, running execute.bat works fine, but the "TEST" button or when the power fails, won't.

Please, any ideas?

Thanks and regards.

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:20 AM

0 Likes
0
1250
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:20 AM

Hi,

When PowerChute executes a command file it is run in session zero since PowerChute is a service per Microsoft security. This link explains session 0 in Windows https://www.2brightsparks.com/resources/articles/understanding-windows-sessions.pdf 

It is possible the Putty is launching to the session zero desktop and requires permissions to do so.

Another thought, you wrote in your initial post that the command file was working when launched by PowerChute and now does not. What changed? Since you can see that PowerChute is launching the command file by creating the text file I would look to see if a change made to the system or the remote systems that would causing the failure.

Reply

Link copied. Please paste this link to share this article on your social media post.

dave_08_apc
Ensign dave_08_apc
Ensign

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

0 Likes
0
1250
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

Thanks for the reply!

My "Terminator" machine, as I call it, was upgraded a year ago from XP to windows 7. Luckily, we haven't experienced  power loss of more than 1 or 2 minutes. Maybe that's the reason I  haven't noticed this problem yet.

I'll take a look at the link you sent. Thanks.

Regards

Reply

Link copied. Please paste this link to share this article on your social media post.

dave_08_apc
Ensign dave_08_apc
Ensign

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

0 Likes
0
1250
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

That information you provided about "Session 0" was very useful.  I'm now trying to replace my "execute.bat" putty instructions with plink.

I'll report if this will solves my problem.

Thanks.

Reply

Link copied. Please paste this link to share this article on your social media post.

dave_08_apc
Ensign dave_08_apc
Ensign

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

0 Likes
0
1250
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

Not working either... 😞

Works from the execute.bat though....

Reply

Link copied. Please paste this link to share this article on your social media post.

dave_08_apc
Ensign dave_08_apc
Ensign

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

0 Likes
0
1250
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

Hello again.

Still working on this. Any idea on how to make this work?

  • Tags:
  • shutdown
Reply

Link copied. Please paste this link to share this article on your social media post.

dave_08_apc
Ensign dave_08_apc
Ensign

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

0 Likes
0
1251
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 05:54 AM . Last Modified: ‎2024-03-13 12:19 AM

The solution described in

http://forums.apc.com/spaces/15/universal-transfer-switch/forums/general/976/scripting-remote-server...

works for me. Still, I'll try to adapt to my previous solution so that I don't have to insert passwords in the apc command file.

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of