For the generator working in order, maintenance at fixed period is very important. The diesel generator is consisted of a diesel engine, alternator, control panel, frame, etc. Please read the relative manual for the maintenance.
Before maintaining the generator, stop the engine. The surrounding condition of the generator is of better ventilation because engine exgaust includes harmful CO. After stopping the generator, clean it immediately to prevent corrosion and remove the sediment.