ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    APC Shutdown Command

    Scheduled Pinned Locked Moved IT Discussion
    3 Posts 1 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by

      So we just installed a new APC UPS.

      And installed the Agent onto our servers. In the setup of the Agent you tell the agent use "default.cmd" to shutdown the server as a test.

      Now this default.cmd literally has nothing in it of value.

      	@echo off
      rem
      rem   Maximize for best viewing
      rem   This command file provides examples of proper command file syntax
      rem
      rem   Command Files run by PowerChute Business Edition must be placed in this directory.
      rem
      rem   Use the full path name of executable programs and external command files.
      rem
      rem   The @START command must be used to run executable programs (see example below).
      rem   For the @START command, path names that include spaces must be enclosed in quotes; 
      rem   arguments for the executable must be outside the quotes.  A double quote must
      rem   precede the quoted path name.  For example, to execute a command file in 
      rem   c:\Program Files\APC\PowerChute Business Edition\agent\cmdfiles called myShut.exe,
      rem   the following line should be entered in the command file:
      rem
      rem   @START "" "c:\Program Files\APC\PowerChute Business Edition\agent\cmdfiles\myShut.exe"
      rem
      @echo on
      

      So what would work here.

      shutdown /l /s /f
      

      I'm assuming it would, but not certain.

      Sadly I can't test today on this server, so my machine is the Ginny-pig.

      Thanks

      1 Reply Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403
        last edited by

        Maybe

        shutdown /l /s /f /d p:6:12
        

        For a power outage, unplanned.

        1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403
          last edited by

          Got it I think

            shutdown /s /f d p:6:12
          
          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post