 Standby power on the 747-400 is provided by two batteries and inverters.The captain performed the engine restart procedure, which failed on the first few attempts, and repeated it until restart was achieved.On some of the attempts, as one or more (but not all) engines started to operate, the main generator switched back on.