Scripts in this directory helps you find data from Google Cloud easily.
- https://goto.google.com/cloudsdk (for Googlers)
- https://cloud.google.com/sdk/downloads (for Others)
- Run
gcloud init
and choose the project:chromeos-factory
.
- Run the following command
curl --location --fail "https://chromium.googlesource.com/chromiumos/platform/factory/+/HEAD/devtools/instalog/get_attachments.py?format=TEXT" |
base64 --decode > get_attachments.py &&
chmod +x get_attachments.py
- Or copy the script from here, and save as
get_attachments.py
.
- Run
./get_attachments.py 'a01' 'TESTID'
. - Check if there has a file in the directory
factory_attachments
. - Check the content in the file is
Hello World!
Hello ChromeOS Factory!
- If it is, congratulation; otherwise, check the logs when running the script.
- https://cloud.google.com/sdk/downloads
- Download Windows with Python bundled, if you don't have Python2.7.
- Extract the contents of the file to any location on your file system.
- Run
google-cloud-sdk\install.bat
- Run
google-cloud-sdk\bin\gcloud init
and choose the project:chromeos-factory
.
- Copy the script from here, and save as
get_attachments.py
.
- Run
google-cloud-sdk\platform\bundledpython\python.exe get_attachments.py --bq_path google-cloud-sdk\bin\bq.cmd --gsutil_path google-cloud-sdk\bin\gsutil.cmd a01 TESTID
- Please run
./get_attachments.py --help
for the details.
- All attachments are named by
ServerReceiveTime_AttachmentKey_SerialNumber_MD5Sum