Commit 0c71d2ab authored by Lionel Gauthier's avatar Lionel Gauthier

Itti logs

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4937 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 5183702a
...@@ -144,7 +144,11 @@ fi ...@@ -144,7 +144,11 @@ fi
ip rule add fwmark 5 table lte ip rule add fwmark 5 table lte
ip route add default dev $LTEIF table lte ip route add default dev $LTEIF table lte
ITTI_LOG_FILE=/tmp/itti_enb.log
rotate_log_file $ITTI_LOG_FILE
#gdb --args #gdb --args
$OPENAIR_TARGETS/SIMU/USER/oaisim -a -u1 -l7 -O $MME_IP_ADDRESS_FOR_S1_MME $OPENAIR_TARGETS/SIMU/USER/oaisim -a -u1 -l7 -K $ITTI_LOG_FILE -O $MME_IP_ADDRESS_FOR_S1_MME
...@@ -161,4 +161,8 @@ else ...@@ -161,4 +161,8 @@ else
fi fi
fi fi
cd $OPENAIRCN_DIR/$OBJ_DIR cd $OPENAIRCN_DIR/$OBJ_DIR
$OPENAIRCN_DIR/$OBJ_DIR/OAI_EPC/oai_epc -c $MME_CONFIG_FILE
ITTI_LOG_FILE=/tmp/itti_mme.log
rotate_log_file $ITTI_LOG_FILE
$OPENAIRCN_DIR/$OBJ_DIR/OAI_EPC/oai_epc -K $ITTI_LOG_FILE -c $MME_CONFIG_FILE
...@@ -122,6 +122,15 @@ extract() { ...@@ -122,6 +122,15 @@ extract() {
return 0 return 0
} }
rotate_log_file () {
if [ -f $1 ]; then
TIMESTAMP=`date +%Y-%m-%d.%Hh_%Mm_%Ss`
NEWLOGFILE=$1.$TIMESTAMP
mv $1 $NEWLOGFILE
cat /dev/null > $1
nohup gzip -f -9 $NEWLOGFILE &
fi
}
set_openair() { set_openair() {
path=`pwd` path=`pwd`
...@@ -339,11 +348,11 @@ build_openvswitch_network() { ...@@ -339,11 +348,11 @@ build_openvswitch_network() {
# | |cpenb0+------------------+cpmme0| | +------+ | | # | |cpenb0+------------------+cpmme0| | +------+ | |
# | +------+ |bridge| +------+ +----+ +---+ | # | +------+ |bridge| +------+ +----+ +---+ |
# | |upenb0+-------+ | | | +----------+ # | |upenb0+-------+ | | | +----------+
# +-----------+------+ | | | +-+-------+-+ # | +------+ | | | +-+-------+-+
# | | +----------------| s11mme|---+ # | | | | +----------------| s11mme|---+
# | | +---+---+ | # | | | | +---+---+ |
# | | (optional)| | # | | | | (optional)| |
# | | +---+---+ | # +-----------+ | | +---+---+ |
# +---|------------------ | s11sgw|---+ router.eur # +---|------------------ | s11sgw|---+ router.eur
# | +-+-------+-+ | +--------------+ # | +-+-------+-+ | +--------------+
# | | S+P-GW | v | ROUTER | # | | S+P-GW | v | ROUTER |
...@@ -423,6 +432,7 @@ test_openvswitch_network() { ...@@ -423,6 +432,7 @@ test_openvswitch_network() {
echo_success "NETWORK TEST SUCCESS (openvswitch) between MME and S-GW S11" echo_success "NETWORK TEST SUCCESS (openvswitch) between MME and S-GW S11"
fi fi
pkill iperf 2>&1 > /dev/null pkill iperf 2>&1 > /dev/null
return 0
} }
build_epc_network() { build_epc_network() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment