Seismic restraint of switchboards and cable tray in a plant room

Design study
A plant room twenty metres up a building holds the main switchboard, a UPS and a battery rack, with a cable tray hung above them.
The equipment has to stay in place and keep working through an earthquake. Each cabinet is anchored to the floor, and the tray is braced to the slab above.
The room keeps supplying power after the shaking stops.