Most electrical equipment requires 10 feet of clearance in front and at least 3 feet on the remaining 3 sides. The front is where the equipment opens (door, lid, cover, etc.) and the front should contain a padlock.
Be sure not to obstruct the front of the equipment. Obstructions create safety risks to the personnel trying to access the equipment, delay service restoration during power outages, and cause problems during routine maintenance.