Mancity 3-2 Bayern
Agüero 21′ (pen), 85′, 90′ --------------- Alonso 40′Lewandowski 45′
Aguero scores a hat-trick to seal win
City striker scores twice in final few minutes
Three sides level on five points in Group E
Win and Bayern beating CSKA will see City progress
Paris St G 3-1 Ajax
Paris St G 3= Cavani 33′, 83′ Ibrahimovic 78′
Ajax 1= Klaassen 67′
Zlatan Ibrahimovic scored against his former club Ajax as Paris St-Germain secured a fourth straight Champions League win to stay top of Group F.
Edinson Cavani opened the scoring for the hosts before Davy Klaassen levelled with a powerful header midway through the second half.
But Sweden striker Ibrahimovic made it 2-1 with a cool finish before Cavani added another after a poor backpass.
Elsewhere, Shakhtar Donetsk qualified despite losing 1-0 to Athletic Bilbao.
There were also wins for Sporting Lisbon and Porto, while CSKA Moscow held Roma in Russia.
Paris St-Germain will advance to the knockout phase as group winners if they avoid defeat against Barcelona when the two sides meet at the Nou Camp on 10 December.
Apoel 0 - 4 Bercelona
Goals: Suárez 27′Messi 38′, 58′, 87′
Barcelona's Lionel Messi became the Champions League's all-time top scorer with a hat-trick against Apoel Nicosia.
Messi went into the Group F game in Cyprus level on 71 goals with former Real Madrid forward Raul.
Luis Suarez had already opened the scoring with his first goal for the club when Messi diverted Rafinha's 38th-minute shot past the keeper.
Messi netted his second in the 58th-minute with a low right-foot finish before tapping home from close range.
Messi's records
Champions League top scorer:74
La Liga top scorer: 253
Barcelona's top goalscorer: 368
Most goals in a La Liga season: 50
Most goals in a season: 73
Most consecutive La Liga matches scored in: 21
Most Ballon d'Or titles: 4
Most goals in a single European Cup game: 5 (joint with Luiz Adriano)
Most European Cup top scorer awards: 4 (with Gerd Muller)
Most goals in Clasicos: 21
Most La Liga hat-tricks in a season: 8
Most goals in Club World Cup: 4 (held jointly with Denilson)
Most goals in a calendar year: 91
Group E
Bayern Munich, 12 pts
AS Roma, 5 pts
CSKA Moscow, 5 pts
Manchester City, 5 pts
Group F
Paris Saint-Germain, 13 pts
Barcelona, 12 pts
Ajax, 2 pts
APOEL, 1 pt
Group G
Chelsea, 11 pts
Sporting CP, 7 pts
Schalke, 5 pts
Maribor, 3 pts
Group H
Porto, 13 pts
Shakhtar Donetsk, 8 pts
Athletic Bilbao, 4 pts
BATE Borisov, 3 pts