Born in the family of a privy councilor, received home education, entered the service in 1868 in the Life Guards Semyonovsky Regiment, was promoted to ensign in 1869. He graduated from the Nikolaev Academy of the General Staff in 1878. During the Russo-Turkish War, he was an assistant to the head officer over the column-guides of the army. From 1879 to 1884 he was the headquarters officer for assignments at the headquarters of the Kharkov Military District, and from 1884 to 1887 - at the headquarters of the Moscow Military District. From 1887 to 1895 he was the chief of staff of the 13th cavalry division. From 1895 to 1897 he was the commander of the 26th Mogilev Infantry Regiment. In 1897 he was promoted to major general and appointed chief of staff of the 7th Army Corps. In 1900 he was appointed assistant chief of staff of the Odessa Military District, in 1902 he became the duty general of the headquarters of the Odessa military district. During the Russo-Japanese War, commanded the 71st Infantry Division, in December 1904 he was promoted to lieutenant general. From 1906 he was the head of the 8th Infantry Division, from 1907 to 1912 he commanded the Grenadier Corps. In 1910 he was promoted to general from infantry. Since 1912, he commanded the 7th Army Corps, at the head of which he met the First World War. It has established itself as an active comcor, combining a frontal strike with a flank bypass, and requiring subordinates to be energetic and actively maneuver. The corps of Ekk during the battles of the Battle of Galicia at Yanchin August 16 - 17, 1914, having lost 200 people killed and 1024 people wounded and missing news, defeated the Austrian 35th Infantry Division of the 12th Army Corps and 11th Infantry Division of the Kewess Army Group, capturing several thousand prisoners, 35 guns, 4 machine guns and a banner. He was awarded the Order of St. George 4th degree for the fact that in the battle of Lviv from August 25 to 30, 1914 he withstood the strong onslaught of the overwhelming forces of the enemy and on the first day of the battle he stopped the flinch units of one of the infantry divisions by personal example. In the September-October battles of 1915 on Goryn and Ikva, expelling the enemy from the Volyn province, the compound under the command of Ekk captured 285 officers, 14,590 lower ranks, 2 heavy guns, 6 bomb mortars, 2 mortars, 48 machine guns, and a lot of weapons and equipment. Ekk participated in the Brusilovsky breakthrough, and in October 1916 took command of the 23rd Army Corps. In the spring of 1917, he was "cleaned out" of the army by the Provisional Government and credited to the reserve at the headquarters of the Kiev Military District. In the Volunteer Army since 1918, chairman of the military field court at the headquarters of the commander in chief of the Armed Forces of South Russia. In exile in Yugoslavia. Head of the 4th Division of the ROVS, Chairman of the Council of the United Officer Societies. Initiator of the publication in Belgrade of the Russian Military Bulletin. In 1927 it was renamed the Tsar's Bulletin. He died in Belgrade.
Awards
Order of St. Stanislav, 3rd class with swords and bow ;
Order of St. Vladimir, 4th class with swords and bow ;
Order of St. Stanislav, 2nd art. ;
Order of St. Anna, 2nd art. ;
Order of St. Vladimir 3rd art. ;
Order of St. Stanislav 1st Art. ;
Order of St. Anna 1st Art. ;
Order of St. Vladimir, 2nd art. with swords ;
Golden weapon “For courage” ;
Order of St. George 4th Art. ;
Order of the White Eagle with swords ;
Order of St. Alexander Nevsky with diamond signs ;