Born in Esztergom, Hungary in 1738, Ott joined Andlau Infantry Regiment # 57 as a Fahnrich in 1757. He was a veteran of the Seven Years' War, having fought at the battles of Landshut and Liegnitz, being wounded in the latter action. In the War of the Bavarian Succession he served in the Kálnoky Hussar Regiment # 2 as a Major. While still serving with the Kálnoky Hussars as the Oberst-Leutnant, he led his horsemen in numerous actions during the Austro-Turkish War. After directing the hussars in a successful action at Valje Muliere, he earned promotion to Oberst of the regiment. He was awarded the Military Order of Maria Theresa for an action against the Turks at Calafat, Wallachia in modern Romania. In 1791, he was elevated to the noble rank of Freiherr.
In 1793 Ott served on the upper Rhine in actions at Offenbach, Schaid and Brumath. On 1 January 1794, he received promotion to General-Major. He continued to serve in the same theater in 1794-1795.
Italy 1796-1797
Ott transferred to the Italian campaign against Napoleon Bonaparte in 1796. In the operations that resulted in the Battle of Lonato during the Castiglione campaign, he commanded one of the four brigades under the orders of Peter Quasdanovich. On 29 July he defeated a French brigade near Salò and advanced south along the banks of the Chiese River. On 31 July he attacked and seized Lonato del Garda though he was later driven out of the latter place by superior French forces under Hyacinthe Despinoy and Claude Dallemagne. On 3 August, his reinforced brigade repulsed the attacks of Despinoy and Dallemagne near Paitone and Gavardo. Unfortunately for the Austrians, the battle went badly for them at Lonato and Salò, compelling Quasdanovich to order a retreat. After Dagobert von Wurmser's defeat at the Battle of Bassano on 8 September, Ott led the Austrian advance guard with great distinction during Wurmser's dash to Mantua. At Cerea, he held off a French intercepting column long enough for Wurmser to arrive and defeat it. The next day, Ott ambushed the 12th Light Demi-Brigade, killing its commander, Brigadier General Charles-François Charton and capturing 400 men. During the battle under the walls of Mantua on 15 September, he commanded the left flank at La Favorita. His force was the last part of the Austrian army to retreat. He led a sortie on 23 September which suffered heavy losses at Governolo. In February 1797, he surrendered with the garrison at the unsuccessful conclusion of the Siege of Mantua. On 1 March 1797, Emperor Francis II appointed Ott Feldmarschal-Leutnant.
After the Austrian army of Michael von Melas invested a French army in Genoa during April 1800, Ott was given command of the siege operations. Ordered to raise the Siege of Genoa on 2 June, he disobeyed orders and remained in position. As he hoped, a few hours later, André Masséna asked for terms and formally surrendered to Ott on 4 June. In the bitterly fought Battle of Montebello on 9 June, a French force led by Jean Lannes defeated Ott's corps. He had fought the battle against orders. When the Austrian chief of staff begged him to withdraw at the beginning of the action, Ott replied, "My outposts are attacked. I march to succor them." At the Battle of Marengo on 14 June, Ott commanded the Austrian left wing. Because of congestion in the bridgehead, it took a long time for the left wing to deploy. However, once his attack at mid-day got underway, it broke the French right flank and helped convince them to retreat from Marengo. Later in the battle, when French reinforcements defeated the Austrian main body, Ott withdrew in good order and brought his command off in safety. This was his last active command.
Retirement
In 1801, he became the proprietor of the Ott Hussar Regiment # 5. He retired from the army in 1805. The Ott Hussars served in Italy and Hungary during the War of the Fifth Coalition in 1809. Ott died in Buda on 10 May of that year.