In general, when you are introduced to someone it is polite to say "how are you?". If it is someone that you have been told about, you might make a comment along the lines.If someone has forgotten to introduce you, there is nothing wrong with introducing yourself and explaining how you know the host if you are at a party