Hundreds of thousands of Iranians rallied on Friday to swear allegiance to the clerical establishment following U.S. President Donald Trump's warning that he had put the Islamic Republic "on notice", state TV reported.