Below are the findings on the issue where HCP communication test was failing during the agent install.
1) In Hcpconfig.scr file the IP and Port details where on a single line as mentioned below.
TimeoutInMins=200
FailureWaitTimeInMins=10
NumAckRetries=3
FileWatcherEODProcTime=20:2
NumFailuresBeforeHealing=10
WaitBeforeDDUpdateInSecs=120
HTTPSCall=false
DomainIP=208.224.249.84Port=8080
2) Then we edited the file and made port details into a new line as mentioned below.
TimeoutInMins=200
FailureWaitTimeInMins=10
NumAckRetries=3
FileWatcherEODProcTime=20:2
NumFailuresBeforeHealing=10
WaitBeforeDDUpdateInSecs=120
HTTPSCall=false
DomainIP=208.224.249.84
Port=8080
Result 1) When the agent was installed using step 1, HCP communication check was failing during agent install.
Result 2) When we tried the step 2 , HCP communication check was success during agent install.