143 lines
6.3 KiB
HTML
143 lines
6.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<!-- Write your comments here -->
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='index.css') }}">
|
|
<link rel="shortcut icon" href="{{ url_for('static', filename='pic/favicon.ico') }}">
|
|
|
|
<label class="swmu">
|
|
<pre>environment: {{ environment }}</pre>
|
|
</label>
|
|
|
|
<div style="text-align: center;">
|
|
<label class="logo">SWMU</label>
|
|
</div>
|
|
<head>
|
|
|
|
<style>
|
|
body {
|
|
background-color: WhiteSmoke;
|
|
}
|
|
</style>
|
|
|
|
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"> </script>
|
|
<!-- <script type=text/javascript> $(function() { $("#mybutton").click(function (event) { $.getJSON('/swmu_run', { },
|
|
function(data) { }); return false; }); }); </script> -->
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Audiowide">
|
|
|
|
<title>SWMU</title>
|
|
</head>
|
|
<body>
|
|
|
|
<div>
|
|
<pre>
|
|
SWMU examples:
|
|
|
|
Example for 5 Software Mobile Units and server host `localhost`:
|
|
$ runswmu 5 --mode run
|
|
$ runswmu 5 --mode sim --log ./test_log.log
|
|
$ runswmu 5 --mode simfast --log ./test_log.log --simulate_pause 0.25
|
|
|
|
Other examples:
|
|
$ runswmu 1 --mode run --server-host localhost --start-id32 3567779841
|
|
$ runswmu 1 --mode sim --server-host localhost --start-id32 3567779841 --log ./test_log.log
|
|
$ runswmu 1 --mode run --server-host 10.48.172.135 --start-id32 3567779841 --bt-spontaneous-timeout 5 --simulate_pause 0.25
|
|
$ LOG_LEVEL="INFO" runswmu 5 --mode sim --server-host localhost --start-id32 3567779871 --bt-spontaneous-timeout 5 --simulate_pause 0.25 --log ./test_log.log
|
|
$ LOG_LEVEL="INFO" runswmu 2500 --mode run --server-host 10.48.172.135 --bt-spontaneous-timeout 20 --sigma 3 --sta True --sta-pause 60 --x01-pause 11 --x1d-pause 250 --x1a-pause 18 --x1a-type 1
|
|
--domain DE00 --near_by_domain CZ00 --start-id32 3567779841
|
|
$ runswmu 1 --mode run --server-host 10.48.172.135 --start-id32 3567779841 --bt-spontaneous-timeout 5 --simulate_pause 0.25
|
|
$ runswmu 50 --mode simfast --server-host localhost --start-id32 3567779841 --log ./test_log.log --simulate_pause 0.25
|
|
|
|
how to create pod (k8s):
|
|
$ kubectl [-n namespace] run [name_of_pod] --rm -i --tty --image [name_of_image] -- /bin/bash
|
|
$ kubectl -n uhura-azure-wagexp run swmu --namespace=uhura-azure-wagexp --image=principazureacr.azurecr.io/uhura/swmu-0.1.0 --requests=cpu=100m,memory=512Mi --limits=cpu=200m,memory=2048Mi --rm -i --tty -- /bin/bash
|
|
$ kubectl -n uhura-azure-wagexp run swmu --rm -i --tty --image=python -- /bin/bash
|
|
|
|
how to add mulog_file to k8s pod:
|
|
$ kubectl [-n namespace] cp [path to mulog file] [pod_name]:/
|
|
$ kubectl -n uhura-azure-wagexp cp /home/directory/test_log.log swmu:/data
|
|
|
|
|
|
|
|
|
|
SWMU arguments (command runswmu -h):
|
|
|
|
mandatory arguments:
|
|
UNITS unit amount
|
|
--mode MODE mode run | sim | simfast
|
|
|
|
optional arguments for "run" mode:
|
|
--latitude LATITUDE latitude (default 47.687622035085916)
|
|
--longitude LONGITUDE
|
|
longitude (default 17.744894027593666)
|
|
--domain DOMAIN current domain (default HU00)
|
|
--near_by_domain NEAR_BY_DOMAIN
|
|
near by domain (default HU00)
|
|
--x01 GENERATE_X01 generate x01 (default True)
|
|
--x01-pause X01_PAUSE
|
|
x01 pause in seconds (default 5s)
|
|
--units-wo-x1a UNITS_WO_X1A
|
|
amount of units that will not generate x1a (default 0)
|
|
--x1a-pause X1A_PAUSE
|
|
x1a pause in seconds (default 10s)
|
|
--x1a-mask X1A_MASK x1a mask-type of log: 01 - without Regain signal flag; 17 - with Regain signal flag (default)
|
|
--x1a-type X1A_TYPE x1a type of log (number of positions): 0 - (default); 1 - 17pos; 2 - 33pos
|
|
--x1d GENERATE_X1D generate x1d (default True)
|
|
--x1d-pause X1D_PAUSE
|
|
x1d pause in seconds (default 60sec)
|
|
--x1d-weight_axles X1D_WEIGHT_AXLES
|
|
x1d weight + number of axles: 'auto' - generate 2-10 (default); '42' - set weight 4, axle 2; '76' - set weight 7, axle 6;
|
|
|
|
optional arguments for "sim" or "simfast" mode:
|
|
--log IMPORT_DIR path to simulated log (obligatory with "sim" and "simfast" mode)
|
|
--simulate_pause SIMULATE_PAUSE
|
|
used for mode "simfast" to set delay between each message in seconds (default 2s)
|
|
--sim_time_check SIM_TIME_CHECK
|
|
used for mode 'sim' to check timestamp:
|
|
1) if 'no' is set, there is no changes in timestamp (default)
|
|
2) if 'max' is set, the the wait between two messages cannot be greater than 60s
|
|
3) if 'max_y' is set, the messages older then 5 years are ignored
|
|
--sim_stop SIM_STOP turn off/on auto-loop-close for sim/simfast mode (default True)
|
|
|
|
|
|
shared arguments:
|
|
-h, --help show this help message and exit
|
|
--server-host SERVER_HOST
|
|
server host (default localhost)
|
|
--server-port SERVER_PORT
|
|
server port (default 31001)
|
|
--start-id32 START_ID32
|
|
start id32 (default 3567779840)
|
|
--start-port START_PORT
|
|
start port (default 1024)
|
|
--bt-spontaneous-timeout BT_SPONTANEOUS_TIMEOUT
|
|
BT spontaneous timeout in seconds (default 20)
|
|
--sigma SIGMA sigma in seconds (default 0.2)
|
|
--sta SEND_STA send sta (default True)
|
|
--sta-pause STA_PAUSE
|
|
STA pause in seconds (default 30sec)
|
|
|
|
|
|
</pre>
|
|
</div>
|
|
|
|
<form action="/" method="get">
|
|
<div class="navbar">
|
|
<a href="/home" >Home</a>
|
|
<a href="/info" >info</a>
|
|
<a href="/helpswmu" class="active" >helpswmu</a>
|
|
<a href="/mulog_read" >mulog read</a>
|
|
|
|
<!--<a href="#examples">examples -->
|
|
<!--<a href="#about">about</a> -->
|
|
<a class="navbar-brand pull-sm-right m-r-0" style="float:right" href="https://gitlab.princip.cz/lab/sw/uhura/swmu" target="_blank">
|
|
<i class="fa fa-gitlab" aria-hidden="true"><span> </span>Gitlab</i>
|
|
</a>
|
|
<a href="https://muid.princip.cz/" style="float:right" target="_blank">muidconv</a>
|
|
<a href="https://xxxlog.cml.princip.cz/" style="float:right" target="_blank">xxlog</a>
|
|
</div>
|
|
</form>
|
|
|
|
</body>
|
|
</html> |