Shafts are turned work: a CNC lathe or turning center holds the round stock between chuck and tailstock (or in a steady rest for long, slender shafts). Add live tooling for keyways and cross holes, and a sub-spindle to finish both ends complete. Long shafts need adequate bed length and center support.
For small precise shafts in volume, a Swiss lathe excels. Match bar/turning length to your parts and value candidates at The Machine Blue Book.
Get a real number from a Machine Blue Book specialist — free, no obligation.