bulk chromebook reenable quota Exceeded

65 views
Skip to first unread message

Todd Allen

unread,
Aug 8, 2023, 12:03:33 PM8/8/23
to GAM for Google Workspace
Hi, and thank you in advance. 
every school year we disable all chromebooks to force them to be returned to the schools for re inventory and cleaning/repairs/replacements. When I do the disable in bulk around 40K devices and or reenable them, i am always getting an error "Temporary error: quotaExceeded - Quota exceeded for quota metric 'Change device state requests for Chrome Devices' and limit 'Change device state requests for Chrome Devices per minute per user' of service 'admin.googleapis.com' for consumer 'project_number:524457631619'., Backing off: 32 seconds, Retry: 5/10"

This is the command I use, 
gam csv CBReEnable.csv gam update cros cros_sn ~"SerialNumber" action reenable acknowledge_device_touch_requirement

I have not learned more advanced programming to pull in a large CSV and process it in smaller chunks. 

Is there a more advanced way to do this disable/reenable that will avoid the quotaExceeded error.

I thank you and greatly appreciate all your wisdom.

Ross Scroggs

unread,
Aug 8, 2023, 12:10:48 PM8/8/23
to google-ap...@googlegroups.com
Todd,

How is CBReEnable.csv created? Using cros_sn ~"SerialNumber"  requires an additional API call per device. Do you have the device IDs? With them, you avoid the additional API call.
gam csv CBReEnable.csv gam update cros "~deviceId" action reenable acknowledge_device_touch_requirement

Send me a Meet/Zoom invitation if you'd like to discuss your options.

Ross

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/7e65f66d-d079-44cc-b6fe-b3fca4b174b0n%40googlegroups.com.


--

Todd Allen

unread,
Aug 8, 2023, 1:12:37 PM8/8/23
to GAM for Google Workspace
Thanks for the wisdom you shared on the call. greatly appreciated.

Todd Allen

unread,
Aug 8, 2023, 1:17:15 PM8/8/23
to GAM for Google Workspace
here is a much cleaner version of the command that Ross helped me on. 
gam redirect stdout ./reenable.txt multiprocess redirect stderr stdout csv CBReEnable.csv gam update cros query "id:~~SerialNumber~~ status:DISABLED" action reenable acknowledge_device_touch_requirement

my CSV file is a simple file with just one field:

SerialNumber
SNXXXX#### 
SNYYYY####
Reply all
Reply to author
Forward
0 new messages