Preventive maintenance of electrical equipment