This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Remote Shutdown Help Please

Hello All.

   I have been a happy user and beta tester of the ASG for a long time now and love it to bits [[:)]] 

  I have a question for you and need a bit of help.

I have three servers running in my rack. 2 windows 2003 servers and my ASG all running of a 3kva UPS. Both the 2003 boxes run a controled shutdown when a power outage lasts to long.

I want to know if there is a way using a script or command line switch that I can perform a remote full shutdown of the astaro box as aposed to it just shutting down suddenly when the power from the UPS fails. I cannot connect the ASG to the UPS as it has no usb interface.

Any help on this one would be very much appreciated [[:)]]

NB im not to hot on linux (waits for people reading to cry) [:D]


This thread was automatically locked due to age.
  • Ok guys. Thanks to this post I have solved the problem.

    After running the above command I have this command line in my shutdown batch file.

    plink.exe -ssh -batch loginuser@192.168.0.1 -pw password /sbin/shutdown -h now

    This shuts down the box perfectly.. And for reference. I have had my box refuse to boot after a suden powerdown, The interfaces just dont come up agian so to have this is a major relief. I believe its better to shut the box down properly contrary to the many threads of advice on here stating that a sudden powerdown does no harm... [:O]

    One question....... I understant that what I have done has changed shutdown permisions for loginuser. What happens after a firmware update on my ASG ? Is the change I have made perminent or will I have to run the command again.

    Many many many many thanks to all of you for your exelent help and to astaro for a briliant bit of kit [[:)]] [[:)]]
  • Any news on my question ?

    I am about to move the UPS I have so the ASG wont have a UPS. I am getting a little woried.
  • I think the sudo settings would survive most firmware up2dates... I wouldn't think they would tinker with any of that except when they release major versions.

    It might be a "cool" suggestion for Astaro to include a configurable network agent for APC UPS units (common here in the US, not sure what's used elsewhere--include the tools most commonly needed for Europe, etc. too)... that way no more tinkering needed.  I don't think APC would restrict the redistribution or inclusion of such an agent... it'd motivate users to buy their brand of UPS... not to mention most data centers I've been in here use APC units -- with the odd Liebert unit.
  • I agree 100%. Even a nice .exe that could be run from a server and authenticated via a key file or something like that.

    Curiosly I have £3000 worth of UPS units (APC) and all of them has rs232 interfaces. The only UPS's I have seen with USB are the cheap nasty 600VA models.

    Even if they do sort this powerdown problem I just dont like the idea of sudenly powering down and machine or server ! Its just not the right way to do it.

    It seems the be one of the few features that the ASG is not supporting properly. Could the APC linux client not be installed ? Or just give us a way to shutdown using a .exe file as above.

    Thanks for the info. Will have to remeber to check after the next firmware update that my batch file still works [:)]