Update rest api url's
replace execute function to avoid pexpect timing issue in pingHost command