Here are the ascent/antrix ID's for some of the main class trainers.
I saved them all so I thought I might as well post them here as well for anyone who cant be bothered looking.
Ally Warrior Trainer - .npc spawn 17504
Ally Rogue Trainer - .npc spawn 13283
Ally Paladin Trainer - .npc spawn 8140
Ally Priest Trainer - .npc spawn 11406
Ally Mage Trainer - .npc spawn 7312
Ally Warlock Trainer - .npc spawn 5172
Ally Hunter Trainer - .npc spawn 5516
Ally Druid Trainer - .npc spawn 5504
Ally Shaman Trainer - .npc spawn 20407
Horde Warrior Trainer - .npc spawn 985
Horde Rogue Trainer - .npc spawn 3401
Horde Shaman Trainer - .npc spawn 13417
Horde Priest Trainer - .npc spawn 16658
Horde Mage Trainer - .npc spawn 16653
Horde Warlock Trainer - .npc spawn 16648
Horde Hunter Trainer - .npc spawn 3039
Horde Druid Trainer - .npc spawn 16655
Horde Paladin Trainer - .npc spawn 16681
And also the Weapon Masters for each city.
Alliance:
Buliwyf Stonehand - .npc spawn 11865
Bixi Wobblebonk - .npc spawn 13084
Handiir - .npc spawn 16773
Woo Ping - .npc spawn 11867
Illyenia Moonfire - .npc spawn 11866
Horde:
Ansekhwa - .npc spawn 11869
Hanashi - .npc spawn 2704
Sayok - .npc spawn 11868
Archibald - .npc spawn 11870
Duelist Larenis - .npc spawn 17005
I usually add all of them to a macro and use .npc possess or .npc come to move them to desired positions.
Although the .learn all command is also useful for learning all required spells, if you want people in your server to learn their spells in one spot without them being a GM this might help.
(also the .learn all command doesn’t let me learn other abilities such as dual wield or plate mail)
Please don’t hesitate to post any trouble you have or questions you might want answered.
p.s. I did look around and I'm pretty sure no one else has posted these, sorry if they have but i did search them all myself