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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
91069fff
Commit
91069fff
authored
Aug 27, 2025
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Query system info
parent
c4a0c3b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+2
-0
ci-scripts/scripts/sys-info.sh
ci-scripts/scripts/sys-info.sh
+17
-0
No files found.
ci-scripts/cls_oaicitest.py
View file @
91069fff
...
...
@@ -254,8 +254,10 @@ def IdleSleep(HTML, idle_sleep_time):
def
Deploy_Physim
(
ctx
,
HTML
,
node
,
workdir
,
script
,
options
):
logging
.
debug
(
f'Running physims on server
{
node
}
workdir
{
workdir
}
'
)
with
cls_cmd
.
getConnection
(
node
)
as
c
:
sys_info
=
c
.
exec_script
(
"scripts/sys-info.sh"
,
5
)
ret
=
c
.
exec_script
(
script
,
600
,
options
)
logging
.
debug
(
f'"
{
script
}
" finished with code
{
ret
.
returncode
}
, output:
\n
{
ret
.
stdout
}
'
)
HTML
.
CreateHtmlTestRowQueue
(
'Query system info'
,
'OK'
,
[
sys_info
.
stdout
])
with
cls_cmd
.
getConnection
(
node
)
as
ssh
:
details_json
=
archiveArtifact
(
ssh
,
ctx
,
f'
{
workdir
}
/desc-tests.json'
)
result_junit
=
archiveArtifact
(
ssh
,
ctx
,
f'
{
workdir
}
/results-run.xml'
)
...
...
ci-scripts/scripts/sys-info.sh
0 → 100755
View file @
91069fff
CORES
=
$(
nproc
)
MODEL
=
$(
lscpu |
awk
-F
:
'/Model name/ {print $2; exit}'
| xargs
)
MAX_FREQ
=
$(
lscpu |
awk
-F
:
'/CPU max MHz/ {printf "%.2f MHz", $2; exit}'
)
CURRENT_FREQ
=
$(
awk
-F
:
'/cpu MHz/ {printf " %.2f MHz", $2; exit}'
/proc/cpuinfo
)
RAM
=
$(
free
-h
--si
|
awk
'/Mem:/ {print $2}'
)
# sudo -n: non-interactive, will silently fail in case we don't have privileges
DMID
=
$(
sudo
-n
dmidecode
-t
memory 2>/dev/null
)
if
[
$?
-eq
0
]
;
then
RAM_TYPE
=
$(
echo
"
$DMID
"
|
awk
-F
:
'/Type:/ {print $2}'
|
grep
-Ev
'Unknown|Other|None'
|
head
-1
| xargs
)
else
RAM_TYPE
=
"can't query"
fi
echo
"CPU: model
${
MODEL
}
"
echo
"
${
CORES
}
cores, max CPU freq
${
MAX_FREQ
}
, current
${
CURRENT_FREQ
}
"
echo
"RAM
${
RAM
}
type
${
RAM_TYPE
}
"
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