[Users] what is a fast alternative for zmprov that works on the cli w/o authentication?

Barry de Graaff info at barrydegraaff.tk
Fri Sep 22 11:04:54 CEST 2017


Thanks!

Kind regards, 

Barry de Graaff
Zeta Alliance Founder
zetalliance.org | github.com/Zimbra-Community

+31 617 220 227
Fingerprint: 97f4694a1d9aedad012533db725ddd156d36a2d0

----- Original Message -----
From: "Ludo" <ludo at nomennesc.io>
To: "Barry de Graaff" <info at barrydegraaff.tk>
Cc: users at lists.zetalliance.org
Sent: Wednesday, 20 September, 2017 20:22:49
Subject: Re: [Users] what is a fast alternative for zmprov that works on the cli w/o authentication?

Hey Barry,

Prepare your commands in a separate file and then run them through zmprov all in one go, for instance:

zmprov -l gaa |sed -e 's/^\(.*\)$/ma \1 displayName Uniformity/' > /tmp/batch
zmprov < /tmp/batch

This will set all your users' displayName to 'Uniformity', whilst only having to call zmprov twice, which is a lot faster than something like:

for i in `zmprov -l gaa`;do zmprov ma $i displayName Uniformity;done

Which calls zmprov for every account on your system, causing the dreaded twenty second startuptime of zmprov for every iteration.

Cheers,

Ludo


On Wed, Sep 20, 2017 at 08:01:01PM +0200, Barry de Graaff wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Hi All,
> 
> What is a fast alternative for zmprov that works on the cli w/o authentication?
> 
> Or how can we speed it up? If I want to do a batch of commands?
> 
> Kind regards,
> 
> Barry de Graaff
> Zeta Alliance Founder
> zetalliance.org | github.com/Zimbra-Community
> 
> +31 617 220 227
> Fingerprint: 97f4694a1d9aedad012533db725ddd156d36a2d0
> -----BEGIN PGP SIGNATURE-----
> Version: OpenPGP.js v2.5.4
> Comment: http://openpgpjs.org
> 
> wkYEAREIABAFAlnCrNoJEHJd3RVtNqLQAAAN1gCdGOVrQLYDNxpZZa4012KS
> RG69EnsAn0KO9IJo4CfBJTWT0X6W8B9SWz9v
> =BUGe
> -----END PGP SIGNATURE-----
>




More information about the Users mailing list