×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Powerchute Business Ed Batch File for shutdown

Powerchute Business Ed Batch File for shutdown

Powerchute Business Ed Batch File for shutdown

(OP)
Hi,

I've posted this question at numerous places, even asked APC, but they are not the quickest to respond. So I wanted to give it a try here.

I want to execute a batch file (command file) using Powerchute Business Edition. I'm able to write it so that an exe file gets executed, I can logon to a remote computer, I can send a message to the remote computer in my network...

BUT the shutdown command won't execute. I've tried several different options of the shutdown command. Nothing works. At first I couldn't even make it open an exe file. then APC told me to mark something in Windows Services. After that I could execute those exe files and do a netsend.

shutdown, however, won't work.

net use \\computername /user:username password
shutdown -s -m \\computername -t 60

RE: Powerchute Business Ed Batch File for shutdown

I've have given up at trying to shutdown a computer that is not directly connected to the UPS via the data cable.  Somehow I think APC blocks the commands or the RPC commands.  My batch files are able to shutdown remote computers when I run them manually but as soon as they are triggered by APC, it doesn't work.  The only way that I know is to purchase the port expander module that allows you to connect extra data cables to the UPS from the other servers.  Either way, I started putting single 1500VA UPses for each server.  I do have one customer that I will be purchasing those port expanders shortly because they have too many servers and one very strong ups (2200VA)...

RE: Powerchute Business Ed Batch File for shutdown

(OP)
Well, I don't have that option. The devices that I want to shutdown are Lacie Ethernet drives and they WinXP Embedded installed on them. And I cannot install any other software on them. The manufacturer made sure off that.

So my only other option is to do the remote shutdown. I've heard from others that it IS possible. But for now I've done what they said, but it still won't work.

I hope I'll get a quick answer from APC. In the meantime I'm searching the forums for answers.

RE: Powerchute Business Ed Batch File for shutdown

Well I did speak to APC directly (through Online Chat) and they told me it was impossible.  The only way is to use the port expander.

RE: Powerchute Business Ed Batch File for shutdown

(OP)
Well, if that is the case I will write my own program that scans my serial port and regarding the incoming signals, I will shutdown the devices in my network.

Using Visual Basic for instance, this should be possible.

RE: Powerchute Business Ed Batch File for shutdown

(OP)
ok

On monday APC will call me so we can work it out.

In the meantime, I managed to make a program myself that will shutdon a remote computer and itself when the power to the UPS gets cut off.

I did it with Visual Basic. Now I'll expand the program so that one can choose on which COM-port the UPS is connected and maybe some other buttons like checking if the UPS can send and receive over the serial cable.

So now I have a backup program that I can use if the guy from APC tells me that it is not possible with Powerchute.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close