The application discloses a fault alarm method and device and a storage medium, relates to the technical field of facility operation and maintenance, and comprises the following steps: based on a preset
neighbor discovery protocol, completing equipment identity detection of a
baseboard management controller (BMC) and a
smart power distribution unit (PDU) by an exchange
machine, constructing and dynamically updating a global mapping table corresponding to each device in a fault
monitoring system; periodically monitoring
network connectivity with the BMC through the exchange
machine, detecting a network cable physical connection state when the
connectivity fails, and based on the global mapping table, querying power supply and power-on states of the PDU and the jack associated with the BMC; performing fault
root cause analysis on the network cable physical connection state and the power supply and power-on states, generating fault alarm information, and sending the fault alarm information to a preset
management system. The application can realize automatic construction and
dynamic maintenance of a
server power supply link topology, break the information island of a traditional
monitoring system, and realize accurate positioning and rapid alarm of multi-dimensional faults such as network cables, PDU jacks and BMCs.