[ngw] [External] Re: Script to Run GWCheck Mailbox Statistics for Resources
David Gerisch
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
https://your-domain-server-here:9710/gwadmin-service/domains/your-domain-here/postoffices/your-post-office-here/poas/your-poa-name-here/refevents/
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.
David Gerisch
>>> "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.
______________________________________________________________________
Laura,
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.
Josh
>>> Laura Buckley <Laura at laurabuckley.co.za> 12/9/2020 7:09 AM >>>
Hi Joshua,
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.
Cheers,
Laura
Lifelong Learner
https://urldefense.com/v3/__https://protect2.fireeye.com/v1/url?k=06faeb8c‑5961d341‑06fdcf69‑ac1f6b017728‑07de09c3d5c09d37&q=1&e=95d16f5f‑2f8b‑48dd‑a381‑3a95fd597c86&u=http*3A*2F*2Fwww.laurabuckley.co.za*2F__;JSUlJQ!!HOHAxFA!D3YILZX44yKgAbdkw80Xh0hdHP707KiwfjCnOiTrZJhVzfddACf0kTTSFj8IIoY0U7UpWw$
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
> https://urldefense.com/v3/__https://protect2.fireeye.com/v1/url?k=6c14c22c‑338ffae1‑6c13e6c9‑ac1f6b017728‑4d721afde7187c39&q=1&e=95d16f5f‑2f8b‑48dd‑a381‑3a95fd597c86&u=http*3A*2F*2Fngwlist.com*2Fmailman*2Flistinfo*2Fngw__;JSUlJSUl!!HOHAxFA!D3YILZX44yKgAbdkw80Xh0hdHP707KiwfjCnOiTrZJhVzfddACf0kTTSFj8IIoZ9e1_W1A$
>
_______________________________________________
ngw mailing list
ngw at ngwlist.com
https://urldefense.com/v3/__https://protect2.fireeye.com/v1/url?k=db4d0d26‑84d635eb‑db4a29c3‑ac1f6b017728‑805e759f66b7b044&q=1&e=95d16f5f‑2f8b‑48dd‑a381‑3a95fd597c86&u=http*3A*2F*2Fngwlist.com*2Fmailman*2Flistinfo*2Fngw__;JSUlJSUl!!HOHAxFA!D3YILZX44yKgAbdkw80Xh0hdHP707KiwfjCnOiTrZJhVzfddACf0kTTSFj8IIoZCkXQNyA$
More information about the ngw
mailing list