ups shutdown signal --> shutdown other computers - windows-server-2008

Our UPS will send shutdown signal to the computer on the serial port when the UPS power is about to drop.
Can this computer be configured to shut down any other computers before itself upon this signal?

you would need additional logic on that or a third party application maybe. basically my idea is to use Powershell to shutdown other computer remotely. i would create a program to listen if the computer is shutting down and it will call the powershell script to shutdown remote computer. hope it helps.

Related

Node-red "serial port temporarily unavailable, cannot lock serial port" problem

I am trying to control some sensors and a hydraulic system and a vane with a servo via raspberry pi and arduino. I use serial node to communicate with arduino. One serial node for incoming data from arduino and one for sending data to arduino over node-red. The problem is node-red cannot lock the usb serial port and cannot communicate with arduino while arduino ide can do it. In Node-red forum They have advised me to closed other programs that can use the serial port. I have closed arduino ide and reset Pi 4 but nothing changed. I have restart them but problem still stands.
Is there a way to solve this locking problem?
How can I see the serial ports and the programs that use the ports?
Can I prevent them to use these ports with a javascript or a python function code?
I have found the problem and fix it. There is no other program or software was using serial port /dev/ttyACM0 was being used by another flow in a passive node-red window. I have to delete that page and nodes.

JProfiler: why can't I attach to running JVM?

I just downloaded JProfiler and tried to connect to a remote JVM.
When I click "OK" I get an error message saying:
"Another application is listening on port 8888. Please check your port configuration".
I also succeeded to profile this machine with 8888 with Java Mission Control (JMC). However, JMC asked me for a username and password and only then allowed the connection.
JProfiler does not use JMX to connect to a profiled JVM, it uses its own protocol. Also, you can only use the attach mode in your screen shot if the profiling agent is already loaded. You would either have to start the profiled JVM with the -agentpath=... VM parameter as given by "Session->Integration Wizards->New Remote Integration" or run the command line tool bin/jpenable on the remote machine to prepare a selected process for profiling. This will tell you the port you have to connect to.
Alternatively, you can use the "quick attach" feature in the start center to connect to any remote unrprofiled JVM through SSH. Then you do not have to prepare the JVM for profiling.
If you use the JProfiler in local Windows machine ,may be you can try run the jprofiler.exe and then click "session - Start center - Quick Attach ",then pick the Process Name that associated to your program.

Jprofiler: how to detach jprofiler from a java process

I am evaluating Jprofiler.
In this process, i tried to attach a profiling scheme to a java process on a remote machine.
it provided a profiling port number, using which could connect to remote process and proceed.
But, once a profiling port is attached, i did not find anyway to de-associate the profiling port from the java process.
I would like to know if there is anyway to remove the profiling port from the java process without killing the java process.
Would appreciate your response.
Thank you very much.
Dev
There is no way to do that because the JVM does not provide a way to unload an agent.

Run code when MacBook lid is closed with external monitor connected

I want to get a notification for when my MacBook's lid is closed, when an external monitor is connected.
Lion prevents the computer from sleeping when an external monitor is plugged in, so I can't listen for sleep notifications.
You can use Quartz Display Services to watch for changes to the display configuration. See CGDisplayRegisterReconfigurationCallback().

Windows RSVP QoS service is stopped when no QoS-socket active. Can that be changed?

We have a program that uses QoS-sockets, our softphone application uses QoS for the RTP.
That application is normally left running, sometimes however it is restarted. (Stop, wait 300ms, start.)
We have found that when the softphone-application is stopped that the last one useing QoS on the server, so the RSVP QoS-service on windows is stopped as well.
When we restart our application the RSCP QoS-service normally starts really fast, however sometimes the service start takes a full 30 seconds, causing our application to start slowly as well.
Anyone know if I can configure the service not to stop each time?
The computer is Windows XP SP3, with Windows Firewall turned on. (Our application do have an exception in the firewall.)
Regards
Leif
In the end this was solved with a workaround.
In the main-application we now open a QoS-socket, which we keep open until the main-application ends. That way the RSVP service cannot be closed, since it's in use.
(I found that opening the socket without bind()-ing works, so we don't need any port.)