Thanks for your help!!!! Its worked as expected.....
One more question.....this is for the host that can not be connected to.
But if connection to a host is successful, in this case it does not return the prompt and looks freeze because prompt is now available on host mentioned in usrun command.
I want to return back to my actual prompt where the command executed from.
Actually I've a list of hostnames (around 1000) and need to check how many of these hostnames allow to connect.
I need to create a report for these hostnames.
I also tried to write a perl script and used 'exit' command in it but could not return to actual prompt.