- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Servers - General
- >
- Trying to Execute a Custom Script upon Power Failu...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- 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