Originally a military term for receiving a harsh scolding from a superior, this phrase crossed into civilian shops to describe anything in a state of chaos. It applies equally to a worker who made a massive blunder and to the broken machinery they caused. A piece of equipment described this way usually requires extensive repair or total replacement.
Heard on the job
Don't turn on that lathe until maintenance clears it because the spindle bearings are completely jacked up.