Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Black
OpenXG-RAN
Commits
1affd5ff
Commit
1affd5ff
authored
Mar 19, 2019
by
Boris Djalal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Printing information from the UE log file.
Signed-off-by:
Boris Djalal
<
boris.djalal@eurecom.fr
>
parent
6d93c9c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
12 deletions
+42
-12
ci-scripts/main.py
ci-scripts/main.py
+42
-12
No files found.
ci-scripts/main.py
View file @
1affd5ff
...
@@ -1877,7 +1877,7 @@ class SSHConnection():
...
@@ -1877,7 +1877,7 @@ class SSHConnection():
self
.
htmleNBFailureMsg
+=
rrcMsg
+
'
\n
'
self
.
htmleNBFailureMsg
+=
rrcMsg
+
'
\n
'
if
rrcReconfigRequest
>
0
or
rrcReconfigComplete
>
0
:
if
rrcReconfigRequest
>
0
or
rrcReconfigComplete
>
0
:
rrcMsg
=
'eNB requested '
+
str
(
rrcReconfigRequest
)
+
' RRC Connection Reconfiguration(s)'
rrcMsg
=
'eNB requested '
+
str
(
rrcReconfigRequest
)
+
' RRC Connection Reconfiguration(s)'
logging
.
debug
(
'
\u001B
[1;30;43m '
+
rrcMsg
+
'
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1;30;43m '
+
rrcMs
i
g
+
'
\u001B
[0m'
)
self
.
htmleNBFailureMsg
+=
rrcMsg
+
'
\n
'
self
.
htmleNBFailureMsg
+=
rrcMsg
+
'
\n
'
rrcMsg
=
' -- '
+
str
(
rrcReconfigComplete
)
+
' were completed'
rrcMsg
=
' -- '
+
str
(
rrcReconfigComplete
)
+
' were completed'
logging
.
debug
(
'
\u001B
[1;30;43m '
+
rrcMsg
+
'
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1;30;43m '
+
rrcMsg
+
'
\u001B
[0m'
)
...
@@ -1929,7 +1929,6 @@ class SSHConnection():
...
@@ -1929,7 +1929,6 @@ class SSHConnection():
pdcpFailure
=
0
pdcpFailure
=
0
ulschFailure
=
0
ulschFailure
=
0
no_cell_sync_found
=
False
no_cell_sync_found
=
False
marker1
=
False
for
line
in
ue_log_file
.
readlines
():
for
line
in
ue_log_file
.
readlines
():
result
=
re
.
search
(
'[Ss]egmentation [Ff]ault'
,
str
(
line
))
result
=
re
.
search
(
'[Ss]egmentation [Ff]ault'
,
str
(
line
))
if
result
is
not
None
:
if
result
is
not
None
:
...
@@ -1955,25 +1954,58 @@ class SSHConnection():
...
@@ -1955,25 +1954,58 @@ class SSHConnection():
if
result
is
not
None
:
if
result
is
not
None
:
no_cell_sync_found
=
True
no_cell_sync_found
=
True
# MIB Information => FDD, NORMAL, NidCell 421, N_RB_DL 50, PHICH DURATION 0, PHICH RESOURCE 1/6, TX_ANT 2
# MIB Information => FDD, NORMAL, NidCell 421, N_RB_DL 50, PHICH DURATION 0, PHICH RESOURCE 1/6, TX_ANT 2
# mask --> FDD NORMA
l
421 50 0 1/6 2
# mask --> FDD NORMA
L
421 50 0 1/6 2
result
=
re
.
search
(
"MIB Information => ([a-zA-Z]{1,10}), ([a-zA-Z]{1,10}), NidCell (?P<nidcell>\d{1,3}), N_RB_DL (?P<n_rb_dl>\d{1,3}), PHICH DURATION (?P<phich_duration>\d), PHICH RESOURCE (?P<phich_resource>
\d/\d
), TX_ANT (?P<tx_ant>\d)"
,
str
(
line
))
result
=
re
.
search
(
"MIB Information => ([a-zA-Z]{1,10}), ([a-zA-Z]{1,10}), NidCell (?P<nidcell>\d{1,3}), N_RB_DL (?P<n_rb_dl>\d{1,3}), PHICH DURATION (?P<phich_duration>\d), PHICH RESOURCE (?P<phich_resource>
.{1,4}
), TX_ANT (?P<tx_ant>\d)"
,
str
(
line
))
if
result
is
not
None
:
if
result
is
not
None
:
if
result
.
group
(
0
)
!=
'FDD'
or
result
.
group
(
1
)
!=
'NORMAL'
or
result
.
group
(
'nidcell'
)
!=
'421'
or
result
.
group
(
'n_rb_dl'
)
!=
'421'
or
result
.
group
(
'phich_duration'
)
!=
'0'
or
result
.
group
(
'phich_resource'
)
!=
'1/6'
or
result
.
group
(
'tx_ant'
)
!=
'2'
:
try
:
marker1
=
True
print
(
'
\033
[94m'
+
"MIB Information: "
+
result
.
group
(
1
)
+
', '
+
result
.
group
(
2
)
+
'
\033
[0m'
)
print
(
'
\033
[94m'
+
"nidcell = "
+
result
.
group
(
'nidcell'
)
+
'
\033
[0m'
)
print
(
'
\033
[94m'
+
"n_rb_dl = "
+
result
.
group
(
'n_rb_dl'
)
+
'
\033
[0m'
)
print
(
'
\033
[94m'
+
"phich_duration = "
+
result
.
group
(
'phich_duration'
)
+
'
\033
[0m'
)
print
(
'
\033
[94m'
+
"phich_resource = "
+
result
.
group
(
'phich_resource'
)
+
'
\033
[0m'
)
print
(
'
\033
[94m'
+
"tx_ant = "
+
result
.
group
(
'tx_ant'
)
+
'
\033
[0m'
)
except
Exception
as
e
:
print
(
'
\033
[91m'
+
"a marker was not found"
+
'
\033
[0m'
)
# Measured Carrier Frequency 816000688 Hz (offset 12 Hz)
# Measured Carrier Frequency 816000688 Hz (offset 12 Hz)
# mask --> 816000688i
# mask --> 816000688i
result
=
re
.
search
(
"Measured Carrier Frequency (?P<measured_carrier_frequency>\d{1,15}) Hz"
,
str
(
line
))
if
result
is
not
None
:
try
:
print
(
'
\033
[94m'
+
"Measured Carrier Frequency = "
+
result
.
group
(
'measured_carrier_frequency'
)
+
'
\033
[0m'
)
except
Exception
as
e
:
print
(
'
\033
[91m'
+
"Measured Carrier Frequency not found"
+
'
\033
[0m'
)
# Found Orange FR (name from internal table)
# Found Orange FR (name from internal table)
# mask Orange FR
# mask Orange FR
result
=
re
.
search
(
"Found (?P<operator>[\w,\s]{1,15}) \(name from internal table\)"
,
str
(
line
))
if
result
is
not
None
:
try
:
print
(
'
\033
[94m'
+
"The operator is: "
+
result
.
group
(
'operator'
)
+
'
\033
[0m'
)
except
Exception
as
e
:
print
(
'
\033
[91m'
+
"Operator name not found"
+
'
\033
[0m'
)
# SIB5 InterFreqCarrierFreq element 0/3
# SIB5 InterFreqCarrierFreq element 0/3
# mask -- 0 and 3
# mask -- 0 and 3
result
=
re
.
search
(
"SIB5 InterFreqCarrierFreq element (.{1,4})/(.{1,4})"
,
str
(
line
))
if
result
is
not
None
:
try
:
print
(
'
\033
[94m'
+
"SIB5 InterFreqCarrierFreq element "
+
result
.
group
(
1
)
+
'/'
+
result
.
group
(
2
)
+
'
\033
[0m'
)
except
Exception
as
e
:
print
(
'
\033
[91m'
+
"SIB5 InterFreqCarrierFreq element not found"
+
'
\033
[0m'
)
# DL Carrier Frequency/ARFCN : 2645000000/3000
# DL Carrier Frequency/ARFCN : 2645000000/3000
# mask 2645000000
# mask 2645000000
result
=
re
.
search
(
"DL Carrier Frequency/ARFCN : (?P<carrier_frequency>)\d{1,15}/\d{1,4}"
,
str
(
line
))
if
result
is
not
None
:
try
:
print
(
'
\033
[94m'
+
"DL Carrier Frequency is: "
+
result
.
group
(
'carrier_frequency'
)
+
'
\033
[0m'
)
except
Exception
as
e
:
print
(
'
\033
[91m'
+
"DL Carrier Frequency not found"
+
'
\033
[0m'
)
# AllowedMeasBandwidth : 100
# AllowedMeasBandwidth : 100
# mask 100
# mask 100
result
=
re
.
search
(
"AllowedMeasBandwidth : (?P<allowed_bandwidth>\d{1,7})"
,
str
(
line
))
if
result
is
not
None
:
try
:
print
(
'
\033
[94m'
+
"AllowedMeasBandwidth: "
+
result
.
group
(
'allowed_bandwidth'
)
+
'
\033
[0m'
)
except
Exception
as
e
:
print
(
'
\033
[91m'
+
"AllowedMeasBandwidth not found"
+
'
\033
[0m'
)
ue_log_file
.
close
()
ue_log_file
.
close
()
self
.
htmlUEFailureMsg
=
''
self
.
htmlUEFailureMsg
=
''
if
uciStatMsgCount
>
0
:
if
uciStatMsgCount
>
0
:
...
@@ -2008,8 +2040,6 @@ class SSHConnection():
...
@@ -2008,8 +2040,6 @@ class SSHConnection():
logging
.
debug
(
'
\u001B
[1;37;41m '
+
rlcMsg
+
'
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1;37;41m '
+
rlcMsg
+
'
\u001B
[0m'
)
self
.
htmlUEFailureMsg
+=
rlcMsg
+
'
\n
'
self
.
htmlUEFailureMsg
+=
rlcMsg
+
'
\n
'
return
ENB_PROCESS_REALTIME_ISSUE
return
ENB_PROCESS_REALTIME_ISSUE
if
marker1
:
logging
.
debug
(
'
\u001B
[1;37;41m Wrong MIB Information line!
\u001B
[0m'
)
return
0
return
0
def
TerminateeNB
(
self
):
def
TerminateeNB
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment