- Community Home
- >
- Servers and Operating Systems
- >
- Servers - General
- >
- Trying to Execute a Custom Script upon Power Failu...
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-08-2013 08:27 AM - last edited on 07-10-2013 06:26 PM by Maiko-I
07-08-2013 08:27 AM - last edited on 07-10-2013 06:26 PM by Maiko-I
Trying to Execute a Custom Script upon Power Failure w/ R/T3000
I have created a .bat script that remotely shuts down several servers on my network when power is lost. I have placed this script in c:\shutdown\shut.bat. I can manually execute this script and it runs just fine, but I can't get it to run in the HP UPS webapp. I have changed the Shutdown Type from the default "shutdown" to "Script" and I have set the box for script location to reflect where my script is: "c:\shutdown\shut.bat" I then press test shutdown and nothing happens, aka the script does not run. I know it does not run because I checked the log file and there were no new entries (aside from the times I manually ran the script by clicking on it). What can I do to get the UPS to run this .bat script for me? Any help is appreciated. Thank you
PS This is my script (it works, but just posting it in case)
::VMs
psshutdown.exe -t 10 -u Administrator -p emats2 @VMNormList.txt -s -f -m "Power Failure, All systems automatically shutting down. SAVE ALL YOUR WORK."
::Systems
psshutdown.exe -t 150 -u Administrator -p emats2 @ServNormList.txt -s -f -m "Power Failure, All systems automatically shutting down. SAVE ALL YOUR WORK."
ECHO.%DATE%:%TIME%:Shutdown Initiated >> c:\shutdown\log.txt
P.S. This thread has been moved from Tape Backup (Small and Medium Business) to to Servers > general. - HP Forum Moderator
- Tags:
- UPS
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP