Add some rccn-functions
This commit is contained in:
parent
16a61d5462
commit
c20386a289
1 changed files with 7 additions and 0 deletions
|
@ -59,6 +59,10 @@ o() {
|
||||||
sudo -i bash -c "cd /etc/osmocom; exec bash --login"
|
sudo -i bash -c "cd /etc/osmocom; exec bash --login"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
f() {
|
||||||
|
tmux new-session -n SIP "sudo sngrep -d any" \; splitw -p 60 "fs_cli -r" \; select-window -t SIP \;
|
||||||
|
}
|
||||||
|
|
||||||
rk_ext() {
|
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]")
|
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
|
echo $IMSI
|
||||||
|
@ -73,3 +77,6 @@ rk_imsi() {
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_trx() {
|
||||||
|
echo "show trx" | nc -q1 localhost 4242 | awk 'BEGIN { RS="TRX"; } /OK/ { print "BTS"$4" TRX"$1": OK"; }'
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue