Looking for proper cable for Graceful / Safe Shutdown of pfSense server
-
The PDU manufacturer would have the pinout. The DB9/RS-232 serial pinout at the other end is standard.
NUT or apcupsd have to support the protocol being used by the PDU so what is that?
Steve
-
@stephenw10 said in Looking for proper cable for Graceful / Safe Shutdown of pfSense server:
The PDU manufacturer would have the pinout. The DB9/RS-232 serial pinout at the other end is standard.
Already asked, just waiting answer...
Unfortunately, I cannot able to find ANY information regarding that RJ11 connector in ANY user manuals/tech docs on that particular PDU, legacy and newest PDUs from that company.... Spending around 4h of total screen time :)
But I asking here because have a tough that in nowadays that may be something standardized, like this, because most of hardware solutions made from “other OEM blocks”.
NUT or apcupsd have to support the protocol being used by the PDU so what is that?
Please confirm that DB9-F/RS-232-F pinout for both apcupsd and nut are identical by design of both protocols.
-
Yes, it probably is a standard cable. You can probably 'see' which pins are connected.
The DB-9 end is standard.
The pinout is irrelevant to the protocol unless it's using more lines than just Rx and Tx. The PDU could be sending anything though. Unless NUT claims to support it specifically I would not expect it to work.
What is this device?
Steve
-
@stephenw10 said in Looking for proper cable for Graceful / Safe Shutdown of pfSense server:
Yes, it probably is a standard cable. You can probably 'see' which pins are connected.
Thank You to confirm!
I’ll try to test PCB of a device on which contacts of RJ11 was soldering. I just try to avoid this pesky procedure because of lack of time...
The DB-9 end is standard.
The pinout is irrelevant to the protocol unless it's using more lines than just Rx and Tx. The PDU could be sending anything though. Unless NUT claims to support it specifically I would not expect it to work.
Ok, thanks!
What is this device?
Sorry not able to share, because NDA of this client. In other case, I doing this in first message not to waste Your time. ;)
-
@sergei_shablovsky Obviously I don't know the device or any specifics but to me it could be one of two things. There could actually be a protocol running on the serial interface, which you capture with a terminal window, I'd start with the standard "8N1, no hardware flow control". That would give you a chance to guess at the right things.
As for the pin mappings, if it's a standard DB9 serial connector, you can find lots of information on the internet. A voltmeter works nicely for a simple continuity checker.
-
Pretty old forum thread, but if not solved out it all depends on the mainboard you are using and his given capabilities.
As an example you may search for the "normal" power
on/off PINs on your mainboard, as an example shown in
the photo below like on my PC Engines APU.Inside of the zip package is a small .txt file and the
code must be adjusted by your according to your
hardware (PID) and running services for sure.Alternatively you may be open to find out what
is going on if you are inside of the console menue
and what process is started pressing the number
(6) "Halt system", then you can set up a small own
script that triggers or starts that script behind this
function (6 in console menue).Many mainboard are sorted with a push button by
default or owns some PIN outs on the mainboards
often market as PWR reset or PWR on/off. -
@A Former User said in Looking for proper cable for Graceful / Safe Shutdown of pfSense server:
Pretty old forum thread, but if not solved out it all depends on the mainboard you are using and his given capabilities.
As an example you may search for the "normal" power
on/off PINs on your mainboardThank You for suggestions, but as You May read in first my question, the goals are making FreeBSD Graceful Shutdown when receiving the appropriate signal on COM port:
on a SDU/PDU there are RJ11 port and manual says tat device able to sending “Safe Shutdown” signal to any PC/server that have an a COM-port and able to make “Graceful Shutdown”. So from one side of cable there must be are RJ11, and the DB9 on opposite end. But I do not know the pinout.
-
UPDATE
As I able to know from
UPS Signalling Bundle for IBM AS/400 & IBMi (IBM Power Systems)document, there are some standard in UPS signaling, like
If the value is 0 - no UPS is detected.
If the value is 8 - UPS detected and everything is normal.
If the value is 9 - UPS detected and battery is low.
If the value is A - UPS detected and in bypass mode.
If the value is B - UPS detected, in bypass mode, and battery is low.
If the value is C - UPS detected and power has failed.
If the value is D - UPS detected, power has failed, and battery is low.If this real, may be not ordinary 3-wire used, but all 9 pins?
-
It's almost certainly a standard com port and requires some sort of program listening on the client device to shut it down. You can't shutdown a PC just by setting some of the pins on it's com port high/low.
Steve
-
@stephenw10 said in Looking for proper cable for Graceful / Safe Shutdown of pfSense server:
It's almost certainly a standard com port and requires some sort of program listening on the client device to shut it down. You can't shutdown a PC just by setting some of the pins on it's com port high/low.
The proper RJ11 connector are on SCDU/PDU unit, and this unit would communicate with server (in our case FreeBSD) to send him so called “graceful shutdown”/“safe shutdown” signal.
I have a logical conclusion that there are some standard of this “graceful shutdown”/“safe shutdown” signal. And a daemon on pfSense/FreeBSD that listening certain COM port.
So, as exist some standard on “shutdown” signal, would be standard for cable wiring. I just try to find proper wiring scheme or cable for this.
-
They must provide a client application to run on whatever is being shutdown.
The cable probably only needs 3 connections and one will be GND so you can test for that. You can probably 'find' Tx and Rx with some experimentation.