Quantcast
Channel: PowerEdge General HW Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5887

Dell ULNM Won't Run Shutdown Script

$
0
0

I have a Poweredge R610 running Windows Server 2012 R2 plugged into a Dell 1000W Tower UPS.  ULNM is installed on the server and runs fine.  When set to the "Shutdown" shutdown mode, ULNM shuts down the server according to the parameters with no issue.

However, I have other devices that I want to shut down at the same time, and have written scripts that work in the command line and as batch files to shut down those devices.  My goal is to configure ULNM into the "Script" shutdown mode so that ULNM runs my script when a shutdown is triggered.

Thus far, I have been unable to get ULNM to trigger any scripts.  While I have working versions of the final scripts, I've scaled all the way back to just a script that will shut down the local server, and cannot even get Dell ULNM to run that script.  Here is the current form:

Shutdown1.bat - runas /env /savecred /user:Administrator C:\Shutdown2.bat

Shutdown2.bat - shutdown -s -f

Please note that these commands need separated into two commands due to a strange Windows Server 2012 R2 issue that would cause Shutdown2.bat to just repeatedly spam a command prompt with the command with no effect.  Wrapping it in the run as administrator command solves this issue while manually running the batch files.  I did not experience this issue in Windows Server 2008 R2.  That being said, I tried pointing Dell ULNM first to Shutdown1.bat and second to Shutdown2.bat with no effect using either.

After batch files failed, I also wrote a Powershell script to accomplish the same thing, also with no result.  The Dell ULNM User Guide does not specify what file type of script is preferred.

In summary, I want Dell ULNM to run a script when a shutdown is triggered, but have not yet had any luck.  Any help is very much appreciated. If this should be directed to another forum, please let me know. Thanks for your time!


Viewing all articles
Browse latest Browse all 5887

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>