Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
103
Merge Requests
103
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
a8dd93cb
Commit
a8dd93cb
authored
Nov 21, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simpleran: set limit to 200M for eNB logs
parent
77c00979
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
software/simpleran/buildout.hash.cfg
software/simpleran/buildout.hash.cfg
+2
-2
software/simpleran/config/enb.jinja2.cfg
software/simpleran/config/enb.jinja2.cfg
+1
-1
software/simpleran/instance-enb.jinja2.cfg
software/simpleran/instance-enb.jinja2.cfg
+6
-2
No files found.
software/simpleran/buildout.hash.cfg
View file @
a8dd93cb
...
...
@@ -60,7 +60,7 @@ md5sum = 52da9fe3a569199e35ad89ae1a44c30e
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
006ece7d2feea460648289598b4889e2
md5sum =
b116b58365600f12129d458750b57c71
[template-ors-enb]
_update_hash_filename_ = instance-ors-enb.jinja2.cfg
...
...
@@ -88,7 +88,7 @@ md5sum = dd50b4e4780830ddbde28b84af118f18
[enb.jinja2.cfg]
filename = config/enb.jinja2.cfg
md5sum =
9c77f0565080e7b0322d9d5fcf4818b0
md5sum =
573cb004c21aa5f9ad8baf7b4dbbeb43
[drb_lte.jinja2.cfg]
filename = config/drb_lte.jinja2.cfg
...
...
software/simpleran/config/enb.jinja2.cfg
View file @
a8dd93cb
...
...
@@ -139,7 +139,7 @@
{%- else -%}
phy.level=info
{%- endif -%}
,file.rotate=
1G,file.path=/dev/null
",
,file.rotate=
200M
",
log_filename: "{{ directory['log'] }}/enb.log",
{# instantiate radio units #}
...
...
software/simpleran/instance-enb.jinja2.cfg
View file @
a8dd93cb
...
...
@@ -113,11 +113,15 @@ inline =
(AMARISOFT_PATH=/dev/null {{ enb }}/lteenb ${directory:etc}/enb.cfg 2>&1 >/dev/null | sed -n 's/^.*\(Host ID.*\)$/\1/gp') >> ${:enb-info-log}
echo "System info: $(uname -a)" >> ${:enb-info-log}
({{ sdr }}/sdr_util version && echo) >> ${:enb-info-log}
# Remove obsolete logs
rm -f ${directory:log}/enb-2024*
rm -f ${directory:log}/gnb*
rm -f ${directory:log}/enb-output.log
# Keep the 50 latest enb radio log
stat ${:enb-start-date} && mv ${:enb-radio-log} ${directory:log}/enb
-$(cat ${:enb-start-date}).log
stat ${:enb-start-date} && mv ${:enb-radio-log} ${directory:log}/enb
.log.$(cat ${:enb-start-date})
rm -f $(ls -1t ${directory:log}/enb-2* | tail -n+50)
rm -f $(ls -1t ${directory:log}/enb-info-2* | tail -n+50)
date +"%Y
-%m-%d-
%T" > ${:enb-start-date}
date +"%Y
%m%d.
%T" > ${:enb-start-date}
# Trim enb info log to 500k and keep a 100M archive of enb info log
head -c -500k ${:enb-info-log} >> ${:enb-info-archive-log}
tail -c 500k ${:enb-info-log} > ${:enb-info-log}.tmp
...
...
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