Collecting Logs
Prerequisites
- The disaster recovery gateway of 24.6.0 or later has been installed.
- Proxy clients have been installed on target production site servers, and the proxy client version is 24.6.0 or later. All production site servers run Linux.
Procedure
In the following example, sdrs_linux_amd64_24.6.0.20240627203949.tar.gz is the proxy client package (24.6.0) used for illustration.
- Run the following command as user root to collect logs:
/opt/cloud/sdrs/sidecar/script/cmd_tools.sh log --ip=ip_list --role=role
Command parameters are described as follows:
--ip: The private IP addresses of the production site servers you want to collect logs. Separate multiple IP addresses with commas (,).
--role: The role of the process whose logs need to be collected. The value can be hostagent, drm, dra, sidecar, or all.
A complete example command is as follows:
/opt/cloud/sdrs/sidecar/script/cmd_tools.sh log --ip=192.168.0.6,192.168.0.188,192.168.0.204 --role=hostagent
- If "send cmd successfully" is returned, the command is successfully sent. View the collected log files in the /opt/cloud/sdrs/sidecar/tmp directory. Because the command is executed asynchronously, so wait for 2 minutes and then check the files.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot