gam checkconnection

121 views
Skip to first unread message

Craig Millsap

unread,
Aug 22, 2022, 6:16:55 AM8/22/22
to GAM for Google Workspace
I like having the new checkconnection function.

I have two questions...

1. If any other the connections fail should it give us back an error code?

2. Is it possible to add formatjson so we can process the response in Powershell?

Before all automation runs I run "gam info domain formatjson" just to verify I can access the APIs.  Sometimes it fails... I take that as a queue that there is an issue and we skip that scheduled automation run.  

This checkconnection function looks like a much better way to verify before running.

Thanks,

Craig Millsap

Jay Lee

unread,
Aug 22, 2022, 8:07:45 AM8/22/22
to google-ap...@googlegroups.com
Interesting use case. My intention with checkconn though was for first time users dealing with corporate firewall / proxy servers. The goal being to point them in the right direction of troubleshooting their network and security software, not GAM 🙂

The feature is still in development and not in any release version yet. Currently it will always exit zero but can see about non zero exit code should any failures occur.

You certainly could run it before scheduled jobs, though I'm not certain how necessary that is.

Ross' version is what supports JSON output so it's for him to decide that.

Is your Internet connection that unstable? 

Jay

--
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/258f28c7-5263-4bcf-b541-8bf82e716234n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages