John O'Shea's first international goal for 10 years helped the Republic of Ireland end a disappointing World Cup qualifying campaign with a victory.
- Related Content
The 32-year-old struck for just the second time in 93 appearances for his country as Ireland came from behind to beat Kazakhstan 3-1 at the Aviva Stadium and give themselves an excellent chance of being seeded among the second group for the Euro 2016 draw.
Miroslav Beranek's men had threatened to ruin the home side's evening by taking a 13th-minute lead in spectacular style when Dmitriy Shomko lashed home an unstoppable shot from 25 yards.
But as so often in the past, the Republic were able to rely upon returning skipper Robbie Keane to get them out of trouble.
The 33-year-old, who missed Friday night's 3-0 Group C defeat in Germany with an ankle injury, converted a 16th-minute penalty for his 61st goal in the famous green shirt.
However, it was O'Shea, whose last and only previous senior international strike came against Australia in 2003, who fired the Republic ahead from point-blank range as he pounced on keeper Andrey Sidelnikov's 26th-minute error.
Ireland dominated the second half and might have increased their lead on several occasions before the unfortunate Shomko turned substitute Aiden McGeady's cross into his own goal.
It all meant interim boss Noel King emerged from his two-game spell in charge with the win he craved, and with the approach he took largely vindicated.
It was he who decided to call-up midfielder Andy Reid and striker Anthony Stokes, who had been discarded by Giovanni Trapattoni, to the squad with Reid in particular making the most of his first game for his country since November 2007.
However, another of the men he invited back in from the cold, midfielder Darron Gibson, departed prematurely in far less auspicious circumstances after he collapsed in agony following a 35th-minute challenge and, in front of watching Everton manager Roberto Martinez, was carried from the field on a stretcher with suspected knee ligament damage.
An FAI statement issued via its Twitter account said: "Darron Gibson has been assessed by our team doc and will return to his club tomorrow for a scan with suspected knee ligament damage."
Ireland launched what had proved to be a disappointing game in Kazakhstan when they needed Keane and Kevin Doyle to get them out of jail at the death as they both struck inside the final two minutes to snatch a 2-1 victory from the jaws of a 1-0 defeat.
That evening should perhaps have served notice of the troubles ahead, and what they hoped would be a home game in which they would have a play-off place to either clinch or cement was effectively a dead rubber in World Cup terms.
However, there were still Euro 2016 seeding matters and pride for which to play, and both were dented within 13 minutes.
Kazakhstan had arrived with nothing to lose and still smarting from their late capitulation in Astana, and they set about their task with some relish.
They got their reward when, after Seamus Coleman had made a mess of clearing his lines, Shomko ran on to the loose ball and smashed a left-foot shot across the helpless David Forde and inside the far post.
However, the Kazakhs delirious celebrations were short-lived and the Republic were back in it within three minutes, and in predictable fashion.
Defender Alexander Kislitsyn, claiming in vain for a push in the back, met Andy Reid's free-kick with his hand inside the penalty area and Latvia referee Vadims Direktorenko wasted little time in pointing to the spot.
Keane, whose goal in Kazakhstan had also come from 12 yards, expertly sent Sidelnikov the wrong way to restore parity, and a measure of calm was restored.
There was slightly less inevitability about the way in which the home side got their noses in front with 26 minutes gone, however, when Sidelnikov, who had endured a less than convincing opening to the game, pushed Richard Dunne's header straight to O'Shea, and he made no mistake from close range.
Gibson's premature departure eight minutes before the break cast a cloud over proceedings, but his team-mates could not afford to allow their focus to slip as they attempted to wrap up the points.
Keane was at less than his clinical best when he sliced harmlessly wide within seconds of the restart after being allowed to connect with a long ball out of defence, but Ireland returned intent on building sustained pressure.
Whelan and Stokes both went close as the Kazakhs found themselves pinned back deep inside their own half, and Sidelnikov was mightily relieved to see Reid's speculative 64th-minute effort clear his cross bar as he scrambled back towards his line.
But he was beaten again with 13 minutes remaining when Shomko could only help substitute Aiden McGeady's cross into his own net under extreme pressure from Doyle and Keane.