Dear friend, you have written your post with slight confusion. Who exactly passed disparaging comments against you? Was it the HR Manager or someone else? Are you referring to your HR Manager as "boss"? Anyway, I interpret the remark of your boss in the following way:
a) Your boss could be uncouth in general. Therefore, while telling you to leave the office, he did so in a very unprofessional manner. How is his conduct with others? Did you hear a similar comment while talking to others as well?
b) If the general conduct of the boss is okay with others but he passed an unsavoury remark only against you, then it shows somehow he is frustrated with you. How is your relationship with him? Is it strained?
Whatever the reason may be, the boss must maintain professional conduct at the workplace. In fact, if some other employee behaves unprofessionally or casts a disparaging remark, then seniors should step in. Unfortunately, it is the other way around.
I recommend you send an email to the boss asking for a personal meeting. In the personal meeting, give him feedback. Make sure that there is no one else in the room. Lodge your protest on his remarks but be polite. In case he wavers, tell him that this meeting is only for this remark and nothing else. Do not talk about any other subject. Record the conversation between both of you but do this surreptitiously. Once you reach home, take the backup of this audio file.
For Kamesh: The remarks are in Marathi. The direct translation would be "Hey bull, quit the office." But if translated loosely, it could mean "Hey idiot, leave the office now."
For Mr. Nathrao: Indirectly, you have advised to wait and if he repeats such remarks, then give him feedback. However, if such tendencies are nipped in the bud, the better. If the originator of the posts downplays the comments, then it could embolden the boss further. In case the boss is the MD of the company, then there is a risk of the boss taking the feedback personally. However, sometimes we have to take the bull by the horns.
General comments: As of now, we do not know whether the boss is the HR Manager or someone else. Nevertheless, it was wrong on the part of that person to refer to the originator of this post in an offensive manner. In many companies, systematic training is conducted on workplace etiquette or corporate behavior. Far from it, here we have either HR or someone from leadership passing a contemptuous remark against the junior. While the junior may suppress his/her feelings at that time, they give vent to it when they get the opportunity. Those who witnessed this incident must have been appalled. These incidents may appear small but have the capacity to degrade the culture of the company!
Thanks,
Dinesh Divekar