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.
Posted: 2021-06-30 07:04 AM . Last Modified: 2024-03-07 11:33 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 07:04 AM . Last Modified: 2024-03-07 11:33 PM
We have four servers running off a single APC through PowerChute Business edition using a serial connection. I feel I have the PowerChute settings set where I want them; however, when the shutdown is initiated the script doesn't complete as expected. I am using the initial cmd file to call the batch script(below):
net stop "BlackBerry Synchronization Service"
net stop "BlackBerry Policy Service"
net stop "BlackBerry Dispatcher"
net stop "Microsoft Exchange Information Store"
net stop "Microsoft Exchange Management"
net stop "Microsoft Exchange MTA Stacks"
net stop "Microsoft Exchange Routing Engine"
net stop "Microsoft Exchange System Attendant"
shutdown -s -m \\server1
shutdown -s -m \\server2
shutdown -s -m \\server3
shutdown -s
The script will shutdown the services but after that all hell breaks loose. The net stop continually tries to stop the already stopped service, the shutdown command seems to run but never actually shuts down any of the computers. The batch window will scroll with these commands until i manually stop it. The service is using the domain admin as it's credentials.
I am very inexperience with batch scripting and any help would be greatly appreciated.
Message was edited by: huntmattheww
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 07:04 AM . Last Modified: 2024-03-07 11:33 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 07:04 AM . Last Modified: 2024-03-07 11:33 PM
We have four servers running off a single APC through PowerChute Business edition using a serial connection. I feel I have the PowerChute settings set where I want them; however, when the shutdown is initiated the script doesn't complete as expected. I am using the initial cmd file to call the batch script(below):
net stop "BlackBerry Synchronization Service"
net stop "BlackBerry Policy Service"
net stop "BlackBerry Dispatcher"
net stop "Microsoft Exchange Information Store"
net stop "Microsoft Exchange Management"
net stop "Microsoft Exchange MTA Stacks"
net stop "Microsoft Exchange Routing Engine"
net stop "Microsoft Exchange System Attendant"
shutdown -s -m \\server1
shutdown -s -m \\server2
shutdown -s -m \\server3
shutdown -s
The script will shutdown the services but after that all hell breaks loose. The net stop continually tries to stop the already stopped service, the shutdown command seems to run but never actually shuts down any of the computers. The batch window will scroll with these commands until i manually stop it. The service is using the domain admin as it's credentials.
I am very inexperience with batch scripting and any help would be greatly appreciated.
Message was edited by: huntmattheww
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 07:04 AM . Last Modified: 2024-03-07 11:33 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 07:04 AM . Last Modified: 2024-03-07 11:33 PM
I'm not a scripting expert either, but I was curious if your script works as intended if you just run it manually outside of PowerChute software. I thought I remembered an APC Kbase that suggested calling scripts no longer than one or two lines directly from PowerChute, and that if you needed to run a larger script, have PowerChute run a script that calls your main script in a single line if possible. I can't seem to find that K-Base at the moment, but perhaps this one might help some. Good Luck.
APC K-Base doc for Windows scripts in PowerChute:
http://nam-en.apc.com/cgi-bin/nam_en.cfg/php/enduser/std_adp.php?p_faqid=1784
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 07:04 AM . Last Modified: 2024-03-07 11:33 PM
Here is the kbase you were referring to.
http://nam-en.apc.com/cgi-bin/nam_en.cfg/php/enduser/std_adp.php?p_faqid=7712
It states "There have also been instances where multiple line command files do not properly execute. In this configuration, a single line command file should be used to call the subsequent multiple line command file."
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 07:04 AM . Last Modified: 2024-03-07 11:33 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 07:04 AM . Last Modified: 2024-03-07 11:33 PM
We have four servers running off a single APC through PowerChute Business edition using a serial connection. I feel I have the PowerChute settings set where I want them; however, when the shutdown is initiated the script doesn't complete as expected. I am using the initial cmd file to call the batch script(below):
net stop "BlackBerry Synchronization Service"
net stop "BlackBerry Policy Service"
net stop "BlackBerry Dispatcher"
net stop "Microsoft Exchange Information Store"
net stop "Microsoft Exchange Management"
net stop "Microsoft Exchange MTA Stacks"
net stop "Microsoft Exchange Routing Engine"
net stop "Microsoft Exchange System Attendant"
shutdown -s -m \\server1
shutdown -s -m \\server2
shutdown -s -m \\server3
shutdown -s
The script will shutdown the services but after that all hell breaks loose. The net stop continually tries to stop the already stopped service, the shutdown command seems to run but never actually shuts down any of the computers. The batch window will scroll with these commands until i manually stop it. The service is using the domain admin as it's credentials.
I am very inexperience with batch scripting and any help would be greatly appreciated.
Message was edited by: huntmattheww
Link copied. Please paste this link to share this article on your social media post.
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.