Powerchute serial shutdown command file (2024)

Help

  • Explore Community
  • Get started
  • Ask the Community
  • Contact Support

Login / Register

Powerchute serial shutdown command file (1)

APC UPS for Home and Office Forum

Support forum to share knowledge about installation and configuration of APC offers including Home Office UPS, Surge Protectors, UTS, software and services.

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Showonly | Search instead for

Did you mean:

Options

  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page

Invite a Co-worker

Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.

Send Invite Cancel

Top Experts

UserCount
BillP
2129
UnexpectedBill_apc
87
voidstar_apc
83
Techie_apc
83

View All

Related Products

Schneider Electric Back-UPS

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Powerchute serial shutdown command file (13)

Back to APC UPS for Home and Office Forum

Powerchute serial shutdown command file (14)

samfleur

Cadet

Posted: ‎2024-01-2911:55 AM

356

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-01-2911:55 AM

Powerchute serial shutdown command file

Goodday,

After recently installing a new BACK-UPS BX950MI, I wanted to write a command file to shutdown my NAS & mail server. I made two files; shutdownfile.cmd & shutdownbat.bat

In the Serial Shutdown software, under the shutdown settings I have set the following settings (see attached screenshot):
After the UPS has been on battery for 60 seconds, execute command file shutdownfile.cmd. Time required for command file to run 90 seconds.

In the shutdownfile.cmd is the following line:
@START "" "C:\Program Files\APC\PowerChute Serial Shutdown\agent\cmdfiles\shutdownbat.bat"

In the shutdownbat.bat is the following code:

@echo on
ECHO Power failure detected - UPS shutdown
putty.exe -ssh -pw PASSWORD sam@IPADRESS -m "C:\Program Files\APC\PowerChute Serial Shutdown\agent\cmdfiles\shutdownnascommand.txt"

timeout /t 10

shutdown /m \\HP-MAILSERVER/s /c "Power failure detected - UPS shutdown" /t 5

Running the line of code mentioned in the shutdownfile.cmd in a command prompt, everything works as expected and the NAS and mailserver shutdown. But when I press the test button in the Powerchute software or a real power failure occurs, nothing happens with the shutdownfile.cmd and neither the NAS or mailserver shutdown.

Hope anyone can help out or mention what I am missing.

Kind regards,
Sam

Attachments

Labels

  • Labels:
  • Tags:
  • english

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Replies 0

Powerchute serial shutdown command file (15)

Powerchute serial shutdown command file (16)

To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Schneider Electric Wiser

Knowledge Center

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • Experts Leaderboard
  • Contact Support

Subscribing is a smart move!

You can subscribe to this forum after you log in or create your free account.

Powerchute serial shutdown command file (18)

Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Privacy Notice Change your Cookie Settings © 2024 Schneider Electric, Inc

');}var cardWrapper = $('.hover-card-container');var error = false;var thisUserID = '';var cardTimer;allHoverCardTriggers.live({mouseenter: function() {var thisEl = $(this);cardTimer = setTimeout(function(){var docWidth = $(document).width();var rightSide = false;//return user idvar userLink = thisEl.attr('href'); if($('.ViewProfilePage').length && $('img.lia-user-avatar-profile',thisEl).length){var userLink = document.location.href;} else if(thisEl.attr('href')=='#'){return false;}else if(thisEl.attr('href')=='#'|| thisEl.closest('.user-navigation-settings-dropdown-link').length > 0){return false;}var thisLen = (userLink).split('/');thisUserID = (thisLen)[thisLen.length-1];var thisCard = $('.profileCard[data-user='+thisUserID+']',cardWrapper);var thisElLeftOffset = Math.round(thisEl.offset().left+(thisEl.width()));var thisElTopOffset = Math.round(thisEl.offset().top+(thisEl.height()/2)-94);if((thisElLeftOffset+325)>=docWidth){//hover card is too far to the right of the screenvar thisElLeftOffset = Math.round(thisEl.offset().left-325);rightSide = true;}if(thisCard.length && $('.profileCard[data-user='+thisUserID+'] .preloader',cardWrapper).length<1){$('.profileCard',cardWrapper).hide();rightSide?thisCard.addClass('rightArrow'):thisCard.removeClass('rightArrow');thisCard.delay(500).css({'top':thisElTopOffset,'left':thisElLeftOffset}).stop().show();} else {var ajaxReturn = '';//just in casethisCard.remove();//hover card wrapper markupvar rightArrowClass = rightSide?'rightArrow':'';var profileCardHtml = '
';$.when(//get the background$.ajax({type: 'GET',url: userApiUrl+thisUserID,dataType: 'html',success: function(data) {$('.profileCard',cardWrapper).hide();ajaxReturn = data;}, beforeSend: function (xhr) { xhr.setRequestHeader("X-Robots-Tag", "noindex"); }})).done(function(){cardWrapper.append(profileCardHtml);$('.profileCard[data-user='+thisUserID+']',cardWrapper).eq(0).empty().html(ajaxReturn);if($('.profileCard[data-user='+thisUserID+'] .preloader',cardWrapper).length){$('.profileCard[data-user='+thisUserID+'] .preloader',cardWrapper).parents('div.profileCard').remove();}}).fail(function(){//uh oh - bail out!$('.profileCard',cardWrapper).hide();});}},400);}, mouseleave: function() {clearTimeout(cardTimer);if($('.profileCard[data-user='+thisUserID+']',cardWrapper).length){$('.profileCard[data-user='+thisUserID+']',cardWrapper).delay(500).fadeOut('fast');}}}); //Follow $(document).on('click',"#follow-featured-user",function(){var followVal = $(this).text().trim(); var userID = $(this).find('a').attr('data-id'); var This = $(this);$.ajax({url: '/plugins/custom/schneider/schneider/grz-featured-user-ep?tid=3258698900866823557',type: 'POST',dataType: 'json',data: {"id":userID,"currentUser":'-1',"val":followVal},async: false,success: function(data) { if(followVal === 'Unfollow'){ $(This).find('a').html('Follow'); }else{ $(This).find('a').html('Unfollow'); } }, beforeSend: function (xhr) { xhr.setRequestHeader("X-Robots-Tag", "noindex"); }}); }); }}window.common = common;$(document).ready(function() {common.profileCard();});})(LITHIUM.jQuery); (function($) { var user_type = "anonymous"; var page_name = "others"; $(document).ready(function(){ if( user_type=="anonymous"){ $(".lia-button-image-kudos-not-kudoed").append(''); $(document).on("click", ".subscribe-btn", function(e){ console.log("testing only") e.preventDefault() localStorage.setItem('subscribeButton', '0'); var registerLink='', loginLink=''; registerLink='/plugins/custom/schneider/schneider_openidconnectsso/sso_registration_redirect?referer=https%3A%2F%2Fcommunity.se.com%2Ft5%2FAPC-UPS-for-Home-and-Office-Forum%2FPowerchute-serial-shutdown-command-file%2Ftd-p%2F460895%3Fsubscribe'; loginLink='/plugins/custom/schneider/schneider_openidconnectsso/sso_login_redirect?referer=https%3A%2F%2Fcommunity.se.com%2Ft5%2FAPC-UPS-for-Home-and-Office-Forum%2FPowerchute-serial-shutdown-command-file%2Ftd-p%2F460895%3Fsubscribe'; $(".repyLoginIntercept .main-header .container-inner span").text("Subscribing is a smart move!") $(".repyLoginIntercept .main-header .container-inner div").text("You can subscribe to this forum after you log in or create your free account.") $($('.repyLoginIntercept .main-header span')[0]).addClass('closeIconHolder icon-close') $(".repyLoginIntercept .main-content .container-inner .popup-service-icon").show(); $(".repyLoginIntercept .main-content .container-inner .popup-service-text p").html("Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.") $(".repyLoginIntercept .main-content .container-inner .popup-service-login").removeClass('intercept') $(".repyLoginIntercept .main-content .container-inner .popup-service-login").html("

Register today for FREE

Register Now

Already have an account?Login

") $(".repyLoginIntercept").fadeIn(); }); var link='/plugins/custom/schneider/schneider_openidconnectsso/sso_login_redirect?referer=https%3A%2F%2Fcommunity.se.com%2Ft5%2FAPC-UPS-for-Home-and-Office-Forum%2FPowerchute-serial-shutdown-command-file%2Ftd-p%2F460895'; $(".lia-component-message-view-widget-quick-reply-button .lia-button-secondary,.kudoButtonWrapper").attr('href',link); } $(document).on("click",".closeIconHolder,.closeModal", function(){ $(".repyLoginIntercept").fadeOut(); }) if(page_name=="focusEditPages"){ $('.lia-form-subject-input').focus(); $('#token-input-lia-products').prop('disabled',true); $('#token-input-lia-products').addClass('disabled-input'); $('.lia-content.lia-token-input-dropdown.lia-products-items-list').addClass('focus-remove'); } else if (page_name=="focusReplyPages"){ tinyMCE.get("tinyMceEditor").focus(); $('#token-input-lia-products').prop('disabled',true); $('#token-input-lia-products').addClass('disabled-input'); $('.lia-content.lia-token-input-dropdown.lia-products-items-list').addClass('focus-remove'); } $('.lia-token-input-list.lia-products-field-token-list').click(function(){ $('#token-input-lia-products').prop('disabled',false); $('.lia-content.lia-token-input-dropdown.lia-products-items-list').removeClass('focus-remove'); }); }); })(LITHIUM.jQuery); (function($) { $(document).ready(function(){ var wordsToAvoidTranslations=["Exchange","Ecostruxure IT","EcoStruxure IT","ecostruxure IT","EcoStruxure","Ecostruxure","ecoStruxure","ecostruxure","exchange","SEE Electrical Building+"]; $.each(wordsToAvoidTranslations,function(index,value){ $(".lia-search-filter-bread-crumb-link:contains("+value+"),.subscription a:contains("+value+"), .subscription .subscription-thread a:contains("+value+"),.board-info a:contains("+value+"),.lia-breadcrumb-node a:contains("+value+"),.lia-breadcrumb-node span:contains("+value+"),.message-subject-board a:contains("+value+"),.lia-component-forums-widget-community-node-tree-item:contains("+value+"),.lia-message-board-link:contains("+value+"),.label a:contains("+value+"),.lia-node-metadata:contains("+value+"),.lia-common-dropdown-toggle-link:contains("+value+"),.lia-user-rank span a:contains("+value+"),.label-link:contains("+value+"),span.label:contains("+value+"),.lia-component-common-widget-page-title span:contains("+value+"),.lia-node-search-results-block .lia-node-board-count:contains("+value+")").each(function(){var a=$(this).text().replace(value,''+value+'');$(this).html(a)}); }); $( ".lia-user-name-link,.authors a, .messageauthorusername a, a.lia-user-name-link, .js-latest-post-by-from a, .user-online-list li a, a.UserAvatar,.customUsersOnline a, #authors a,.author-name,.lia-form-recipient-scopes-entry .lia-token-input-list, .lia-product-card-title,.lia-product-card-manufacturer,.lia-product-title,.lia-product-manufacturer ,.lia-products-top-associated-container,.lia-users-profile-card-login,.lia-quilt-row-profile-card" ).attr( 'translate','no' ); }); $(document).on('click','.language-option',function(){ $( ".lia-user-name-link,.authors a, .messageauthorusername a, a.lia-user-name-link, .js-latest-post-by-from a, .user-online-list li a, a.UserAvatar,.customUsersOnline a, #authors a,.author-name,.lia-form-recipient-scopes-entry .lia-token-input-list, .lia-product-card-title,.lia-product-card-manufacturer,.lia-product-title,.lia-product-manufacturer" ).attr( 'translate','no' ); }); })(LITHIUM.jQuery); (function($) { const queryString = window.location.search; if(queryString.includes('GDN') || queryString.includes('electrical_engineering_portal')){ }else{ loginLink='/plugins/custom/schneider/schneider_openidconnectsso/sso_login_redirect?referer=https%3A%2F%2Fcommunity.se.com%2Ft5%2FAPC-UPS-for-Home-and-Office-Forum%2FPowerchute-serial-shutdown-command-file%2Ftd-p%2F460895%3FhiddenContent'; var referer = document.referrer; const url = referer? new URL(document.referrer) : ''; const arr =['www.google.com','www.bing.com','duckduckgo.com','in.search.yahoo.com','www.qwant.com','www.ecosia.org','search.brave.com','www.startpage.com','yandex.com','www.baidu.com','presearch.com','www.mobilesearchers.com','']; $(document).on('click','.closeIconHolder.guestInteraction',function() { const item = { value: 1, expiry: new Date().getTime() + 86400000, } localStorage.setItem('urlcounts', JSON.stringify(item)); window.dataLayer.push({ "event": "communityInteraction", "interactionCategory": "login", "interactionType": "ContinueAsGuest" }) }); function getWithExpiry(key) { const itemStr = localStorage.getItem(key) if (!itemStr) { return null } const item = JSON.parse(itemStr) const now = new Date() if (now.getTime() > item.expiry) { localStorage.removeItem(key) return null } return item.value } let isIncludedInArr = arr.includes(url.host); let isReferrerIncluded = arr.includes(referer); let urlCountsExpired = getWithExpiry("urlcounts") === null; let isReferEmail = document.URL.includes('referrer=email'); function showPopup(message, text, loginLink, includeGuestContent) { let loginText = isReferEmail ? "Login" : "LOGIN / Register"; let tooltipHtml = isReferEmail ? "" : "

Why logging in?

  • You enable the complete set of features available, such as posting, sharing, subscribing, private messaging and more.
  • You unlock the access to the whole content that Schneider Electric Community has to offer, including the gated items and the special events.

And it’s free of charge!!!

"; $(".repyLoginIntercept .main-header .container-inner span").text(message); $(".repyLoginIntercept .main-header .container-inner div").text(""); $(".repyLoginIntercept .main-content .container-inner .popup-service-icon").hide(); if(isReferEmail){ $(".repyLoginIntercept .main-content .container-inner .popup-service-text").removeClass("popup-service-text").addClass("referEmailtext"); $(".repyLoginIntercept .main-content .container-inner .referEmailtext p").html(text); }else{ $(".repyLoginIntercept .main-content .container-inner .popup-service-text p").html(text); } $(".repyLoginIntercept .main-header .icon-close").removeClass(); $(".repyLoginIntercept .main-content .container-inner .popup-service-login").html("

"+loginText+"

" + tooltipHtml + (includeGuestContent ? "

OR

Continue as a guest

" : "")); $(".repyLoginIntercept").fadeIn(); } if ((isIncludedInArr && urlCountsExpired) || (isReferrerIncluded && urlCountsExpired)) { showPopup("Welcome to Schneider Electric Community.", "You have two options to continue your visit.", loginLink, true); } if (isReferEmail) { console.log("khorosEmailNotify", "https://community.se.com/t5/APC-UPS-for-Home-and-Office-Forum/Powerchute-serial-shutdown-command-file/td-p/460895") loginLink='/plugins/custom/schneider/schneider_openidconnectsso/sso_login_redirect?referer=https%3A%2F%2Fcommunity.se.com%2Ft5%2FAPC-UPS-for-Home-and-Office-Forum%2FPowerchute-serial-shutdown-command-file%2Ftd-p%2F460895'; loginLink = loginLink.includes('?referrer=email') || loginLink.includes('%3Freferrer=email') || loginLink.includes('%3Freferrer%3Demail') ? loginLink : loginLink + '?referrer=email'; showPopup("Welcome to Schneider Electric Community.", "Welcome back!
Since you already have a Schneider Electric account and you are registered in Schneider Electric Community, we kindly request that you sign in so to enable the complete set of features available, such as posting, sharing, subscribing, private messaging and more.", loginLink, false); // Interceptor Shown window.dataLayer.push({ event: "communityInteraction", interactionCategory: "login", interactionType: "emailReferrerInterceptor" }); // Login clicked: Sending two events $(".referEmail").live("click", function() { window.dataLayer.push({ event: "communityInteraction", interactionCategory: "login", interactionType: "emailReferrerLogin" }); window.dataLayer.push({ event: "communityInteraction", interactionCategory: "login", interactionType: "interceptorLogin" }); }); } if($('.popup-service-login').children().hasClass('tooltip')){ $(".popup-service-login").addClass("intercept"); } } })(LITHIUM.jQuery); (function($) { sessionStorage.removeItem("se.exchange.user"); })(LITHIUM.jQuery);LITHIUM.PartialRenderProxy({"limuirsComponentRenderedEvent":"LITHIUM:limuirsComponentRendered","relayEvent":"LITHIUM:partialRenderProxyRelay","listenerEvent":"LITHIUM:partialRenderProxy"});LITHIUM.AjaxSupport({"ajaxOptionsParam":{"event":"LITHIUM:partialRenderProxyRelay","parameters":{"javascript.ignore_combine_and_minify":"true"}},"tokenId":"ajax","elementSelector":document,"action":"partialRenderProxyRelay","feedbackSelector":false,"url":"https://community.se.com/t5/forums/v5/forumtopicpage.liabase.basebody.partialrenderproxy:partialrenderproxyrelay?t:ac=board-id/home-office-forum/thread-id/27450","ajaxErrorEventName":"LITHIUM:ajaxError","token":"sDDY3ZTiEnvGhv5KcuApFy2kbkqnlv4x_V8H2_6KtCE."});LITHIUM.Auth.API_URL = "/t5/util/authcheckpage";LITHIUM.Auth.LOGIN_URL_TMPL = "/plugins/custom/schneider/schneider_openidconnectsso/sso_login_redirect?referer=https%3A%2F%2FREPLACE_TEXT";LITHIUM.Auth.KEEP_ALIVE_URL = "/t5/status/blankpage?keepalive";LITHIUM.Auth.KEEP_ALIVE_TIME = 300000;LITHIUM.Auth.CHECK_SESSION_TOKEN = 'hfjvZJbtCQcTNzy2moiK1VOoSV-GbRCmdOr_kbeh_qg.';LITHIUM.AjaxSupport.useTickets = false;LITHIUM.Cache.CustomEvent.set([{"elementId":"link_14","stopTriggerEvent":false,"fireEvent":"LITHIUM:labelSelected","triggerEvent":"click","eventContext":{"uid":1477,"selectedLabel":"home & office - ups & software","title":"Home & Office - UPS & Software"}}]);LITHIUM.Form.focusFieldByRules([{"id":"tinyMceEditor_73db88a8d3d017","priority":"optional"},{"id":"parentMessageRef_73db88a8d3d017","priority":"optional"},{"id":"containerId_73db88a8d3d017","priority":"optional"},{"id":"mediaSnippetUrl_73db88a8d3d017","priority":"optional"},{"id":"products_73db88a8d3d017","priority":"optional"}]);LITHIUM.Loader.runJsAttached();// -->
Powerchute serial shutdown command file (2024)
Top Articles
Latest Posts
Article information

Author: Mr. See Jast

Last Updated:

Views: 5335

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.