Last active
August 29, 2015 14:06
-
-
Save almet/8bc90b189f7f12bf0d00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
host=$1 | |
redis-cli -h $host info | |
echo -e "========\n\n" | |
for key in "spurl" "callurl" "userUrls" "call" "userCalls" "callstate" "hawkuser" "userid" "hawk" "oauth.token" "oauth.state" | |
do | |
echo -n "Number of keys for $key " | |
redis-cli -h $host KEYS "$key.*" | wc -l | sort -k 2 -nr | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
!/bin/bash
host=$1
redis-cli -h $host info
echo -e "========\n\n"
for key in "spurl" "callurl" "userUrls" "call" "userCalls" "callstate" "hawkuser" "userid" "hawk" "oauth.token" "oauth.state"
do
echo -n "Number of keys for $key "
redis-cli -h $host KEYS "$key.*" | wc -l | sort -k 2 -nr
done