Is there a term for the noisy bringing up of phlegm in preparation to spit?
You can use 咳 (ke) for the sound of clearing one's throat. It's the same character in 咳嗽, which is "cough". It is also the character used when people clear their throat to draw others attention to themselves. In this case, it is 咳咳.