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

Smart-UPS 1500VA w/ Interface Expander AP9607 & Powerchute Command File

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
  • Smart-UPS 1500VA w/ Interface Expander AP9607 & Powerchute Command File
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
Anonymous user
Not applicable

Posted: ‎2021-06-28 10:47 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
14
2132
  • 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-28 10:47 PM . Last Modified: ‎2024-03-14 04:00 AM

Smart-UPS 1500VA w/ Interface Expander AP9607 & Powerchute Command File

OK, this setup is taking years off my life due to the stress I'm encountering in trying to get it working properly.

We have a Smart-UPS 1500VA with two Windows 2003 servers and one Windows XP Pro server sucking power through it. One 2003 server is a DC, the other a NAS. The XP server is a Proxy and AntiVirus server. The DC is connected directly to the UPS VIA serial port. The Proxy & NAS are connected to the UPS's AP9607 Interface Expander VIA serial ports with the supplied cables. We are running PowerChute Business Edition Basic 7.0.2 build 110 (The software CD that came with the UPS) with the Agent/Server/Console on the DC. The Agent is also installed on the Proxy and NAS, along with the console on my desktop PC so I can administer everything without having to log into the DC.

In the Device list Configuration wizard, the Proxy & NAS are visible under Discovered Devices - but when added to Current Device List fail with the error +"Failed to apply the configuration profile to servername.domainname.local"+. therefor, I am unable to get the other two servers to gracefully shutdown. When we had a power failure several days ago, our DC gracefully shut down, but the Proxy & NAS went down hard. I've had problems with this happening in the past and resorted to using a command file to shut down the two servers over the network (since our backbone is on another UPS). Unfortunately, it seems that this took a hike also.

In the shutdown sequence, I have the Command File (ShutdownServers.cmd) to execute immediately and run for a duration of 1 minute. The command file works beautifully if ran; but PowerChute seems not to play nice with it. This is the contents of ShutdownServers.cmd:



-----
@echo off
for /f %%a in (c:\computers.txt) do call :shutdown %%a
goto :eof

:shutdown
echo Shutting down: %1
ping -n 1 -w 800 %1
if not errorlevel 1 goto MachineOK
echo Cannot ping machine %1. Aborting.
goto Fini

:MachineOK
shutdown.exe -s -f -m \\%1 -t 300 -D p:6:12 -c "A POWER FAILURE HAS BEEN DETECTED - SERVER SHUTDOWN INITIATED!"
Shutdown OK %1

:Fini
-----




I have a computers.txt file at the root of c: that has a list of the servers to shut down (this is handy because we have other computers on the network that are run of "dumb APCs" and this allows me to shut them down over the network also). In the services of the DC (which all this is running on) I have APC PBE Agent and APC PBE Server log on a domain administrator account (has full admin rights to EVERY computer on the network). I previously tried using Local System Account and having Allow service to interact with desktop, but that didn't work either. I have restarted the service every time I've made changes.


We are having this exact problem in multiple locations throughout the company, where PowerChute would gracefully shut down ALL servers - but it seems that the configuration took a hike on every single server (Windows Update anyone?)

Message was edited by: ChrisInVT

Labels
  • Labels:
  • Smart-UPS & Symmetra LX | RM
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
Anonymous user
Not applicable

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 03:59 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 03:59 AM

OK, this setup is taking years off my life due to the stress I'm encountering in trying to get it working properly.

We have a Smart-UPS 1500VA with two Windows 2003 servers and one Windows XP Pro server sucking power through it. One 2003 server is a DC, the other a NAS. The XP server is a Proxy and AntiVirus server. The DC is connected directly to the UPS VIA serial port. The Proxy & NAS are connected to the UPS's AP9607 Interface Expander VIA serial ports with the supplied cables. We are running PowerChute Business Edition Basic 7.0.2 build 110 (The software CD that came with the UPS) with the Agent/Server/Console on the DC. The Agent is also installed on the Proxy and NAS, along with the console on my desktop PC so I can administer everything without having to log into the DC.

In the Device list Configuration wizard, the Proxy & NAS are visible under Discovered Devices - but when added to Current Device List fail with the error +"Failed to apply the configuration profile to servername.domainname.local"+. therefor, I am unable to get the other two servers to gracefully shutdown. When we had a power failure several days ago, our DC gracefully shut down, but the Proxy & NAS went down hard. I've had problems with this happening in the past and resorted to using a command file to shut down the two servers over the network (since our backbone is on another UPS). Unfortunately, it seems that this took a hike also.

In the shutdown sequence, I have the Command File (ShutdownServers.cmd) to execute immediately and run for a duration of 1 minute. The command file works beautifully if ran; but PowerChute seems not to play nice with it. This is the contents of ShutdownServers.cmd:



-----
@echo off
for /f %%a in (c:\computers.txt) do call :shutdown %%a
goto :eof

:shutdown
echo Shutting down: %1
ping -n 1 -w 800 %1
if not errorlevel 1 goto MachineOK
echo Cannot ping machine %1. Aborting.
goto Fini

:MachineOK
shutdown.exe -s -f -m \\%1 -t 300 -D p:6:12 -c "A POWER FAILURE HAS BEEN DETECTED - SERVER SHUTDOWN INITIATED!"
Shutdown OK %1

:Fini
-----




I have a computers.txt file at the root of c: that has a list of the servers to shut down (this is handy because we have other computers on the network that are run of "dumb APCs" and this allows me to shut them down over the network also). In the services of the DC (which all this is running on) I have APC PBE Agent and APC PBE Server log on a domain administrator account (has full admin rights to EVERY computer on the network). I previously tried using Local System Account and having Allow service to interact with desktop, but that didn't work either. I have restarted the service every time I've made changes.


We are having this exact problem in multiple locations throughout the company, where PowerChute would gracefully shut down ALL servers - but it seems that the configuration took a hike on every single server (Windows Update anyone?)

Message was edited by: ChrisInVT

See Answer In Context

Reply

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

Replies 14
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 10:47 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:47 PM . Last Modified: ‎2024-03-14 04:00 AM

Welcome to the APC Forum Chris,

To my knowledge our software can only execute a single line command file only. My suggestion for you is to create a single line command file which will then call your multi-line command file. If you need help using and or writing command files please take a look at this knowledge base article --> [http://nam-en.apc.com/cgi-bin/nam_en.cfg/php/enduser/std_adp.php?p_faqid=7712].

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 10:47 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:47 PM . Last Modified: ‎2024-03-14 04:00 AM

Chris,

Would it be okay if you post a screenshot of your PCBE configuration and on what event are you calling these command files? Can you also attach the command files you've made, if I find time today I will try to simulate it here in our lab. Also are you calling these files on the PCBE Agent that are on the basic or advance port?

Reply

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

Anonymous user
Not applicable

Posted: ‎2021-06-28 10:47 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:47 PM . Last Modified: ‎2024-03-14 04:00 AM

All operations are done on the DC which is hooked up to the advanced port of the UPS. The DC talks to the APC perfectly, but the two servers that are on the basic ports of the AP9607 don't even know they're connected to anything.

I have attached some screenshots and the batch files. I have PowerChute trying to execute shutdown.bat, which executes ShutdownServers.bat, which pulls the computer list from the computers.txt file. I can run shutdown.bat outside of PowerChute and it'll execute ShutdownServers.bat and our proxy server will start the shutdown sequence. For some reason, I just cannot get PowerChute to execute any command files during the shutdown sequence.

(Screenshots only in this post)

Attachments
Reply

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

Anonymous user
Not applicable

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

Jon,

I originally made a Shutdown.bat file to call the multi-line one, but that didn't seem to work (I actually have that KB article printed out in filed in my "APC" folder).

I've tried the following 6 lines (one at a time) in my Shutdown.bat file:

@START "" "C:\ShutdownServers.com"
@START "" "C:\ShutdownServers.bat"
"C:\ShutdownServers.com"
"C:\ShutdownServers.bat"
C:\ShutdownServers.com
C:\ShutdownServers.bat


I've even tried what the article said to do and created a test.bat file with the following line in it:

time /T >> C:\apctest\cmdtest.txt

I then created the apctest folder at the root of C: and killed the power to the UPS. I waited about 30 seconds before restoring the power to the unit and checking the server. The apctest foder was empty, and no cmdtest.txt file was created.

Reply

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

Anonymous user
Not applicable

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

All files at the root of C: other than the single line file for PCBE which I have in C:\Program Files\APC\PowerChute Business Edition\agent\cmdfiles.

I'm using my domain admin account so I have full administrative rights to every PC on the network. I have the PCBE services using domain admin credentials also.

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

Thanks Chris, I'll let you know once I've tested these command files. Also, where did you saved the shutdown.bat on your PC is it on the default cmd files folder of PCBE? I assume that you already have admin rights on the PC that you are trying to shutdown because I tried a shutdown command before and it only pushed through once I added the username that I am using on the remote computer.

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

Chris,

I used that application to open the command files and I am studying it's flow to make sure that the necessary credentials are available on the remote PC that I am going to shutdown.

Reply

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

Anonymous user
Not applicable

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

I think JonPro disappeared....


Does anyone have any other ideas?

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

Chris,

I'm still present though I still haven't tried the command files in our lab as it is being used for almost a month for training purposes. I found a slot this coming Monday to try these command files. Also, I'm still trying to figure out how should I edit these command files so that it can use the names of the PCs in the lab.

Reply

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

Anonymous user
Not applicable

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

Editing them in notepad would be easiest.

Reply

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

Anonymous user
Not applicable

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

If your on a domain you need domain administrator credentials. If you'r not on a domain, you need the credentials of a local account on the PC your trying to shut down

Reply

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

Anonymous user
Not applicable

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

Can anyone offer some insight? I've had this ticket opened for almost a month now with no resolution. I need to get this fixed like, two months ago.

Reply

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

Anonymous user
Not applicable

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

0 Likes
0
2130
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 04:00 AM

So everyone that has a Smart UPS with an Interface Expander has absolutely no problems?

Reply

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

Anonymous user
Not applicable

Posted: ‎2021-06-28 10:48 PM . Last Modified: ‎2024-03-14 03:59 AM

0 Likes
0
2131
  • 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-28 10:48 PM . Last Modified: ‎2024-03-14 03:59 AM

OK, this setup is taking years off my life due to the stress I'm encountering in trying to get it working properly.

We have a Smart-UPS 1500VA with two Windows 2003 servers and one Windows XP Pro server sucking power through it. One 2003 server is a DC, the other a NAS. The XP server is a Proxy and AntiVirus server. The DC is connected directly to the UPS VIA serial port. The Proxy & NAS are connected to the UPS's AP9607 Interface Expander VIA serial ports with the supplied cables. We are running PowerChute Business Edition Basic 7.0.2 build 110 (The software CD that came with the UPS) with the Agent/Server/Console on the DC. The Agent is also installed on the Proxy and NAS, along with the console on my desktop PC so I can administer everything without having to log into the DC.

In the Device list Configuration wizard, the Proxy & NAS are visible under Discovered Devices - but when added to Current Device List fail with the error +"Failed to apply the configuration profile to servername.domainname.local"+. therefor, I am unable to get the other two servers to gracefully shutdown. When we had a power failure several days ago, our DC gracefully shut down, but the Proxy & NAS went down hard. I've had problems with this happening in the past and resorted to using a command file to shut down the two servers over the network (since our backbone is on another UPS). Unfortunately, it seems that this took a hike also.

In the shutdown sequence, I have the Command File (ShutdownServers.cmd) to execute immediately and run for a duration of 1 minute. The command file works beautifully if ran; but PowerChute seems not to play nice with it. This is the contents of ShutdownServers.cmd:



-----
@echo off
for /f %%a in (c:\computers.txt) do call :shutdown %%a
goto :eof

:shutdown
echo Shutting down: %1
ping -n 1 -w 800 %1
if not errorlevel 1 goto MachineOK
echo Cannot ping machine %1. Aborting.
goto Fini

:MachineOK
shutdown.exe -s -f -m \\%1 -t 300 -D p:6:12 -c "A POWER FAILURE HAS BEEN DETECTED - SERVER SHUTDOWN INITIATED!"
Shutdown OK %1

:Fini
-----




I have a computers.txt file at the root of c: that has a list of the servers to shut down (this is handy because we have other computers on the network that are run of "dumb APCs" and this allows me to shut them down over the network also). In the services of the DC (which all this is running on) I have APC PBE Agent and APC PBE Server log on a domain administrator account (has full admin rights to EVERY computer on the network). I previously tried using Local System Account and having Allow service to interact with desktop, but that didn't work either. I have restarted the service every time I've made changes.


We are having this exact problem in multiple locations throughout the company, where PowerChute would gracefully shut down ALL servers - but it seems that the configuration took a hike on every single server (Windows Update anyone?)

Message was edited by: ChrisInVT

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