Page 1 of 1

[RESOLVED] - How to confirm power chords and power supplies are plugged in

Posted: 2020/12/30 21:12:03
by warron.french
I have a few servers that are running with two power supplies, and one power chord/power supply; basically two power supplies total and two power chords total.

Should I not be able to use

Code: Select all

dmidecode  --type  39
to determine if a power chord is unplugged, or similarly, if a power supply has been partially pulled from the chassis -- so long as one of the power supplies is still fully engaged with a power chord plugged in?

I work in an environment where we cannot set up a Nagios server. Not yet anyway.

Re: How to confirm power chords and power supplies are plugged in

Posted: 2021/01/05 19:56:33
by warron.french
I also tried using

Code: Select all

dmesg -w
where nothing showed up there either.

Re: How to confirm power chords and power supplies are plugged in

Posted: 2021/01/05 20:11:11
by avij
For starters, I would prefer that PMs be left for those things that need private attention of someone. If a general support topic does not get responses in a timely manner, it's not really a reason for PMing people.

That said, the power supply issue usually depends on server hardware vendor. Many of them have their own tools for managing the server. For example, Dell has OpenManage, which, among other things, provides the omreport and omconfig commands. On my old R320 running C7, I can do this:

Code: Select all

$ omreport chassis pwrsupplies
Power Supplies Information

Power Supply Redundancy
Redundancy Status : Full

Individual Power Supply Elements
Index                    : 0
Status                   : Ok
Location                 : PS1 Status
Type                     : AC
Rated Input Wattage      : 432 W
Maximum Output Wattage   : 350 W
Firmware Version         : 05.07.0D
Online Status            : Presence Detected
Power Monitoring Capable : Yes

Index                    : 1
Status                   : Ok
Location                 : PS2 Status
Type                     : AC
Rated Input Wattage      : 432 W
Maximum Output Wattage   : 350 W
Firmware Version         : 05.07.0D
Online Status            : Presence Detected
Power Monitoring Capable : Yes

Re: How to confirm power chords and power supplies are plugged in

Posted: 2021/01/05 20:26:42
by warron.french
I also just tried:

Code: Select all

sudo lshw --class power
no change in state.

Re: How to confirm power chords and power supplies are plugged in

Posted: 2021/01/05 21:06:54
by hunter86_bg
The best way would be to access the IPMI (iDRAC, iLO,etc) over ssh and obtain the necessary information from there.
Usually IPMI supports e-mail & snmp traps - so you should be able to monitor it properly.

From Linux perspective - if there is no info from the HW , you cannot obtain such info.

Re: How to confirm power chords and power supplies are plugged in

Posted: 2021/01/06 12:19:42
by warron.french
Thank you both.