[ngw] [External] Re: Script to Run GWCheck Mailbox Statistics for Resources
DGerisch at tularecounty.ca.gov
Sat Dec 19 00:57:57 UTC 2020
This is the route I would take. Enable the job on one of the scheduled events pages. Then figure out the scheduled event ID by visiting
That will show you the ID of something like this: SCHEDULED_EVENT.4a0c317f
Then you can do a REST PUT call with your script to https://your-domain-server-here:9710/gwadmin-service/domains/your-domain-here/postoffices/your-post-office-here/poas/your-poa-name-here/refevents/4a0c317f
The REST PUT call needs a payload to say to add SCHEDULED_EVENT.4a0c317f
I'm using XML, so my payload looks like '<batchupdate><add>SCHEDULED_EVENT.4a0c317f</add></batchupdate>'
But the URL you are writing to needs to have the ID number in the end of it; so it isn't just blah/refevents/ - it is blah/refevents/4a0c317f
Hope this helps.
>>> "Joshua Pitlick" <jpitlick at bop.gov> 12/9/2020 6:15 AM >>>
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Thank you for the response. I considered your option and will have to use it if I can't find an easier way to accomplish my task. When I was checking the Scheduled Events, I discovered that I already had a Mailbox Statistics definition, it just isn't associated with any scheduled jobs at the moment. I was trying to avoid hitting 120 POAs if I could use scripting to get it done.
>>> Laura Buckley <Laura at laurabuckley.co.za> 12/9/2020 7:09 AM >>>
You could investigate creating a scheduled maintenance task and enabling it
on each of the POAs concerned. I'm not sure if that will work for you but
perhaps just take a look.
On Tue, Dec 8, 2020 at 9:32 PM Joshua Pitlick <jpitlick at bop.gov> wrote:
> My GroupWise system has roughly 17,000 resources spread across about 120
> post offices. I am trying to find a way to script running the Mailbox
> Statistics GWCheck report against all of these accounts. My other option
> is to just manually run the report from each post office and parse the data
> that I need out of the resulting files. Any help is appreciated. Thanks.
> Joshua Pitlick
> IT Specialist
> Nationwide Network Support Section
> Network Management Branch
> Office of Information Technology
> Information, Policy & Public Affairs Division
> Federal Bureau of Prisons
> ngw mailing list
> ngw at ngwlist.com
ngw mailing list
ngw at ngwlist.com
More information about the ngw