- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Servers - General
- >
- ups shutdown script
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
03-31-2014 02:38 AM - last edited on 04-02-2014 06:43 PM by Maiko-I
03-31-2014 02:38 AM - last edited on 04-02-2014 06:43 PM by Maiko-I
ups shutdown script
Hi everybody,
I am trying nearly everything at the moment....
HP 1500 G3 connected to a 2008 R2 Server.
I want to create a script which is shutting down two servers. One of this servers is the management server. But I think this doesn' matter at all.
At first I tried to use an "old school" batch file (shutdown /s /....) - script works out of the HP Power Protector Software but doesn't have any effect within the software.
Then I tried the java script thing. This also doesn't work.
Beginning with the example script it looks this:
UserScript = { name: "MyScript", enabled: false, // Set this property to true to enable the script. onEvent: true, // If true the script is called each time an event occurs. delay: 0, // This property can be used to delay first execution of the action in milliseconds. interval: 10000, // and every 10s from that onStart: function() // Startup function (optional) { exec("C:\Windows\System32\shutdown.exe /s /t 30 /m \\<server>"); }, action: function() // Script action definition { exec("C:\Windows\System32\shutdown.exe /s /t 30 /m \\<server>");
}, onStop: function() // Ender function (optional) { // Use this place to insert finalization code } }
I also tried to start my original batch file (with some echo command for the log file)
I'm completely stuck now. Please give advice, thanks a lot!
regards
Stephan
P.S. This post has been split off from other thread, and moved to Servers > general. - Hp Forum Moderator