He subsequently served at intervals in various staff appointments in the West Indies, in Ireland, in Canada, and at Gibraltar, in the course of which he was promoted Lieutenant-Colonel in December, 1865, and Colonel in August, 1873. In May, 1877, he proceeded to the Cape of Good Hope as D.A. and Q.M.G., and in that capacity served throughout the Xhosa War of 1877–78, commanding the combined forces on the eastern frontier of the Cape Colony from December, 1877, to March, 1878. Having been repeatedly mentioned in despatches, he was nominated a C.B. as the reward of his services.