Those are two different sizes. For the top one, a 12" or larger crescent (adjustable) wrench will work, for the bottom one, you need to figure out what size it is, then pick up a "spanner", which is a thinner wrench which will allow you to turn the two independently without the wrenches hitting eachother.
__________________
Shimano : Click :: Campy : Snap :: SRAM : Bang