Page MenuHomePhabricator
Paste P12826

mw-groups
ActivePublic

Authored by Kormat on Sep 29 2020, 8:59 AM.
Tags
None
Referenced Files
F32367413: mw-groups
Sep 29 2020, 8:59 AM
Subscribers
None
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage:"
echo " ${0##*/} INSTANCE [...]"
exit 0
fi
while [ $# -gt 0 ]; do
printf "%-20s" "$1"
dbctl instance "$1" get | jq -r '.. | .groups? | select(.) | keys | join(",")'
shift
done

Event Timeline

$ mw-groups db2138:3312 db2104
db2138:3312         contributions,logpager,recentchanges,recentchangeslinked,watchlist
db2104              api
$ bin/mw-section-groups s2                                                                                                                      
db1074              api
db1076              api
db1090:3312         dump,vslow
db1095:3312         ERROR
db1105:3312         contributions,logpager,recentchanges,recentchangeslinked,watchlist                                                                                 
db1122              <none>
db1125:3312         ERROR
db1129              api
db1146:3312         contributions,logpager,recentchanges,recentchangeslinked,watchlist                                                                                 
db2088:3312         contributions,logpager,recentchanges,recentchangeslinked,watchlist                                                                                 
db2095:3312         ERROR
db2098:3312         ERROR
db2104              api
db2107              <none>
db2108              dump,vslow
db2125              api
db2126              api
db2138:3312         contributions,logpager,recentchanges,recentchangeslinked,watchlist