Collecting Logs
Prerequisites
- The disaster recovery gateway has been installed. For Linux clients, the gateway version must be 24.6.0 or later. For Windows clients, the gateway version must be 24.9.0 or later.
- Proxy clients have been installed on target production site servers. For Linux clients, the client version must be 24.6.0 or later. For Windows clients, the client version must be 24.9.0 or later.
- The total size of collected log files on a single client cannot exceed 400 MB.
Procedure
In the following example, sdrs_xxxx_24.9.0.xxxx.tar.gz is the proxy client package (24.9.0) used for illustration.
- Log in to the gateway server and run the following command as user root to collect logs in a batch:
/opt/cloud/sdrs/sidecar/script/cmd_tools.sh log --ip=ip_list --role=role
Parameter description:
--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