Axle with Square Edges and Round ends?
If you are talking about the part foremost in your image then a quality adjustable spanner (with parallel faces) is what I use, with an open end spanner on the flats on the shaft which will be below the cable device held on by that nut.