From 68cc461ac11e4529b4196c1a5125004164c61c82 Mon Sep 17 00:00:00 2001 From: "Wile E. Coyote" Date: Sat, 17 Nov 2018 09:09:57 +0000 Subject: [PATCH] Add handy shell function to watch RCCN log. --- modules/rhizo_base/templates/rccn-functions.sh.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/rhizo_base/templates/rccn-functions.sh.erb b/modules/rhizo_base/templates/rccn-functions.sh.erb index 78f6a40..2367c04 100644 --- a/modules/rhizo_base/templates/rccn-functions.sh.erb +++ b/modules/rhizo_base/templates/rccn-functions.sh.erb @@ -43,6 +43,14 @@ hlr() { sudo /usr/bin/sqlite3 -column -header $OSMO_HLR } +tl() { + if [ "$1" == "" ] ; then + tail -f /var/log/rccn/*log + else + tail -f /var/log/rccn/$1.log + fi +} + rk_ext() { IMSI=$(curl -X GET http://10.23.0.3:8098/buckets/hlr/index/msisdn_bin/$1 2>/dev/null| sed -e 's/[^0-9]//g') echo $IMSI