MHristova Trusted Contributor.
Trusted Contributor.
1192 views

< (MC) Support Tip > How to collect device logs from Linux machine?

Dear All,

Please find below the steps for collecting Android or iOS device logs from Linux machine.

To collect Android device logs on Linux:

 
1. To see the list of devices use the following command:

 ./adb devices -l

2. To collect the device log:  

 a)navigate to:

             cd /opt/hpmc_3rd_party/android-sdk-linux/platform-tools

 b) Run the following command:

            adb -s [device id] logcat  > [filename]

     where the file name should contain the path to the file, for example= /tmp/device_log.txt

 

To collect iOS device logs on Linux:

 
1. To see the list of devices use the following command:

 a) navigate to :

/opt/hpmc/server/libimobiledevice/linux-amd64/

b) run the following command:

idevice_id –l

2. To collect the device log:  

 a) navigate to:

 cd /opt/hpmc/connector/libimobiledevice/linux-amd64/

 b) Run the following command:

 idevicesyslog -u [UDID] >[file name]

               where the file name should contain the path to the file, for example= /tmp/device_log.txt

 

Kind regards,

Mariya

 

HP Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.