remove riak related shell functions

This commit is contained in:
Keith Whyte 2023-03-17 20:22:13 +01:00
parent 25ee22f9e5
commit 50520dd3c2

View file

@ -83,24 +83,6 @@ f() {
tmux new-session -s SIP "sudo sngrep -d any" \; splitw -p 60 "fs_cli -r" \; select-window -t SIP \;
}
rk_ext() {
IMSI=$(curl -X GET http://10.23.0.3:8098/buckets/hlr/index/msisdn_bin/$1 2>/dev/null| python -c "import sys, json; print json.load(sys.stdin)['keys'][0]")
echo "IMSI: [$IMSI]"
if [ "$IMSI" != "" ]; then
rk_imsi $IMSI
fi
}
rk_imsi() {
JSON=$(curl -X GET http://10.23.0.3:8098/buckets/hlr/keys/$1 2>/dev/null)
echo $JSON
echo -n "That's a Last Update of: ["
echo $JSON | cut -d\ -f6 | gawk '{print strftime("%c", $0, 1)}' | tr -d '\n'
echo -n "] / Mexico City Time: ["
TZ=America/Mexico_City date -d @`echo $JSON | python -c "import sys, json; print(json.load(sys.stdin)['updated'])"` | tr -d '\n'
echo "]"
}
check_trx() {
echo "show trx" | nc -q1 localhost 4242 | awk 'BEGIN { RS="TRX"; } /OK/ { print "BTS"$4" TRX"$1": OK"; }'
}