The motor geared into the shaft is the turning gear (or jacking gear). It is used to lock the moving parts in position when people are inside in case another ship's wake or something caused the prop to turn, and also to turn the crank & pistons for maintenance.
The engine also has several blowers to provide combustion air at slow speed before the turbochargers have enough speed to take over the duties, about 40 rpm on a 90 or 100 rpm engine.
By the way, the 57,500 hp Sulzer I sailed consumed about a ton of the 60 wt cylinder oil daily. This 70 TBN oil was continuously injected into ports in the liners to lube the pistons, liners, and rings. Miking the liners showed wear at about a 20 year lifespan, and this engine ran 24 hours a day about 25 days a month burning 3% sulfur black fuel oil. We were running transpacific--L.A., Oakland, Yokohama, Kobe, Pusan (Korea), Kaohsiung (Taiwan), Hong Kong, back to Japan, back to California in five weeks running between 21 and 26 knots.