AnsweredAssumed Answered

Cloud Agent Migration from One Account to Other Account

Question asked by Nitinkumar Balar on Jun 13, 2019

I had an EC2 instance added in one of my Qualys Cloud Account by Cloud Agent, now I have uninstalled the Cloud Agent, Cleared the /etc/qualys  and willing to add the same instance in a new Qualys Gaurd Cloud Account. 

 

I have downloaded a new .deb file from new account, have installed it on EC2 Instance, however, I can see that the Qualys-cloud-agent logs show below logs and I cannot find any agent being reported on Qualys Gaurd > Cloud Agent > Dashboard.

 

2019-06-14 05:25:16.906 [qualys-cloud-agent][25710]:[Information]:Start CAPI event
2019-06-14 05:25:16.906 [qualys-cloud-agent][25710]:[Information]:CAPI request json payload:
{"Data":{"Agent":{"CustomerID":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","AgentID":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","ActivationID":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","ProvisioningKey":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","AgentVersion":"2.3.4.2","Platform":"LINUX_UBUNTU","CapiVersion":"1.2"},"Client":{"ComputerName":"mapio-worker1","NetBiosName":"","IPv4":"172.31.0.25","IPv6":"::1","MacAddress":"","BiosSerialNumber":"","MotherBoard":"","OS":"Ubuntu Linux","OsVersion":"16.04.4","Architecture":"x64"},"Provider":{"ProviderName":"AWS","InstanceID":"i-062d26d18defb06d1"},"Synchronization":{"Sequence":1,"RetryCount":307},"Resources":{"Config":"00000000-0000-0000-0000-000000000000","Binary":"00000000-0000-0000-0000-000000000000"},"Status":{"Capi":{"Time":"2019-06-14T05:23:36Z","OsStatus":100001,"HttpStatus":0,"RetryCount":0},"Provision":{"Time":"2019-06-14T05:23:36Z","OsStatus":0,"HttpStatus":204,"RetryCount":0},"ConfigDownload":{"ID":"00000000-0000-0000-0000-000000000000","Time":"1970-01-01T00:00:00Z","OsStatus":0,"HttpStatus":0,"RetryCount":0},"SelfPatchDownload":{"ID":"00000000-0000-0000-0000-000000000000","Time":"1970-01-01T00:00:00Z","OsStatus":0,"HttpStatus":0,"RetryCount":0},"Setup":{"ID":"00000000-0000-0000-0000-000000000000","Time":"1970-01-01T00:00:00Z","OsStatus":0,"HttpStatus":0,"RetryCount":0}},"ScanManagement":{"Resources":{},"Status":{"ManifestDownload":{}}},"FIMManagement":{}}}
2019-06-14 05:25:17.460 [qualys-cloud-agent][25710]:[Information]:Finished curl request
2019-06-14 05:25:17.460 [qualys-cloud-agent][25710]:[Information]:Http request accepted, return code: 204
2019-06-14 05:25:17.461 [qualys-cloud-agent][25710]:[Information]:Agent provision: retry
2019-06-14 05:25:17.461 [qualys-cloud-agent][25710]:[Information]:CAPI event: retry
2019-06-14 05:25:17.466 [qualys-cloud-agent][25710]:[Information]:Last event time: 1560489917, current time: 1560489917, intervalSeconds: 100, diff:0
2019-06-14 05:25:17.466 [qualys-cloud-agent][25710]:[Information]:INTERVAL_EVENT_CAPI timeout: 100 seconds
2019-06-14 05:25:17.466 [qualys-cloud-agent][25710]:[Information]:Next event: INTERVAL_EVENT_CAPI, time left: 100 seconds

Outcomes