Re: [GAM] Update Chromebook by assetid

437 views
Skip to first unread message
Message has been deleted

John Warf

unread,
Jul 12, 2016, 3:10:49 PM7/12/16
to google-ap...@googlegroups.com
I did the very thing this morning pulling information on CROS.....

Pull report of all devices....
gam print cros > cros-info.csv

Open the report in Excel or Spreadsheet of choice.  Create a column updating with the commands needed.

Create a bat or just copy paste to a command line from an Excel column.....
gam update cros <devcice id> ou <new org unit>

You have to update via the long 8-4-4-4-12 character ID.

Also look into the Google Spreadsheet Add-On called Chromebook Inventory as it's great for updating OU and Info for CROS devices.  Just takes a while when doing large numbers.

Thanks

John


On Tue, Jul 12, 2016 at 2:52 PM, Scott Meyer <scott...@roughers.net> wrote:
I am attempting to update the OU for 4300 chromebooks by assetid and not having much luck.

I have been provided a csv file with the assetid of each chromebook.  Each csv is for a separate OU.  Sounds easy so far...

I test my script logic with doing a print first, just to check on my logic...

gam print cros query:Asset_ID:123456

After about 10 minutes I still have no response from the CLI.  Ok, let's try it this way:

gam print cros query 'Asset_ID = 123456'
same results

gam print cros query 'asset_id = 123456'
same results

gam print cros query 'assetid = 123456'
same results


Just attempting to make sure I have some correct syntax and/or logic I tried:
gam print cros query "assetid='123456'"
Retrieving All Chrome OS Devices for organization (may take some time for large accounts)...
Got 0 Chrome devices...

but if I enter the 123456 in the admin console the chromebook shows up.  Somewhere I have something wrong...

Taking the CSV out of the question...

gam update cros query "assetid='123456'" ou "/Site1/Students"
Error: assetid='123456' is not a valid argument for gam update cros

Does this mean that I cannot get there from here?  Do I need to create a query that will pull all of the serials from the assetid's?  Or deviceid's?

Surely we can get there, even if we have to take a step or two inbetween.




--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/93f1a2f2-7cb3-46d5-91ef-eaeb3e012b84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages