Quote:
|
...is there a script that will collect all the groups information and print it out to a one file.
|
I was looking for something exactly like that early this week. I'm awful with scripting, but here's what I kludged together.
It outputs a file named groupslist.txt into the /tmp directory that has first and last names of the people in the groups.
Code:
#!/bin/sh
echo > /tmp/groupslist.txt
for LISTNAME in `zmprov gadl`
do
echo $LISTNAME >> /tmp/groupslist.txt
echo ------------------------------- >> /tmp/groupslist.txt
for LISTMEMBER in `zmprov gdl $LISTNAME | grep zimbraMailForwardingAddress | cut -f2 -d " "`
do
DISPLAYNAME=`zmprov ga $LISTMEMBER | grep displayName | cut -f2,3 -d " "`
echo $DISPLAYNAME >> /tmp/groupslist.txt
done
echo >> /tmp/groupslist.txt
done