in addition to his appointment as the Inspector () of Yong Province. Pulling back from a campaign against Shu In 244, Guo Huai served as the vanguard commander when Xiahou Xuan led Wei forces to attack Shu. During the campaign, Guo Huai sensed that the Wei army was at a disadvantage so he pulled back his troops, and therefore was not greatly defeated. He was conferred imperial authority by the Wei government after returning from the campaign. Second Shu invasion In 247, the Qiang tribes, led by Ehe (), Shaoge (), Fatong (), Ezhesai () and others, started a rebellion against Wei in four commanderies: Longxi, Nan'an (南安; around present-day Wushan County, Gansu), Jincheng (金城; around present-day Lanzhou, Gansu) and Xiping (西平; around present-day Xining, Qinghai). They attacked several cities and towns in the area, and called for Shu forces to support them. The Wei government ordered Xiahou Ba to lead troops to garrison at the flank. When Guo Huai and his forces showed up at Didao (狄道; around present-day Lintao County, Gansu), his advisers suggested that they should attack Fuhan County (枹罕縣; in present-day Linxia County, Gansu) and pacify the Qiang tribes first before dealing with the Shu invaders. Guo Huai predicted that Jiang Wei would attack Xiahou Ba's position, so he headed south to reinforce Xiahou Ba. As he expected, Jiang Wei did attack Xiahou Ba at the west of the Tao River, but retreated when Guo Huai and his reinforcements showed up. Guo Huai then moved on to attack the Qiang rebels, killed Ehe and Shaoge, and forced the thousands of Qiang clans to surrender. Third Shu invasion In 248, Qiang rebels led by Ezhesai () occupied fortresses in Heguan (河關; in the vicinity of present-day Dingxi, Gansu) and Baitu (白土; in present-day Minhe County, Qinghai) counties and used them as defences against Wei forces across the Tao River. Guo Huai pretended that he was going to attack from upstream, but actually secretly ordered his troops to cross the river downstream to attack Baitu. The assault was successful and the rebels were defeated. Zhiwudai () led his tribal forces to attack Wuwei Commandery but left his family in Xihai Commandery (西海郡; near the Juyan Lake Basin, Inner Mongolia). When Guo Huai learnt about it, he led his troops to attack Xihai Commandery, but encountered Zhiwudai and his forces, who were on their way back from Wuwei Commandery.