botsense
3.2.0
RoadNarrows Client-Server Proxied Services Framework
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
man_bsloadtest.doxy
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////////////
2
//
3
// Package: BotSense
4
//
5
// File: man_bsloadtest.doxy
6
//
7
// $LastChangedDate: 2012-02-14 12:39:13 -0700 (Tue, 14 Feb 2012) $
8
// $Rev: 1801 $
9
//
10
// Description:
11
// This file contains the doxygen directives to generate the standard
12
// man pages for the bsLoadTest client.
13
//
14
////////////////////////////////////////////////////////////////////////////////
15
16
/*! \file */
17
18
/*!
19
* \ingroup example_lt
20
* \defgroup man_bsloadtest bsLoadTest Man Page
21
22
\par Name:
23
bsLoadTest - \h_botsense bsProxy load tester client.
24
25
\par Synopsis:
26
<tt>
27
bsLoadTest [OPTIONS]
28
\n
29
bsLoadTest --version\n
30
bsLoadTest --help
31
</tt>
32
33
\par Description:
34
The \h_botsense <b>bsLoadTest</b> application creates a multi-client,
35
multi-thread application to load test both the bsProxy server and the
36
libbotsense client library.
37
The <b>bsLoadTest</b> application creates <em>count</em> multiple clients.
38
Each client creates an execution thread per each device listed in
39
It also serves as an example client written in c.
40
<em>devices</em>.
41
42
\par Options:
43
Mandatory arguments to long options are also mandatory for short options.
44
\htmlonly
45
<table class="rnr-opts">
46
<tr><td class="rnr-opts-grp">Tests</td></tr>
47
<tr><td class="rnr-opts-opt">
48
-p, --proxy=<em>addr</em>[:<em>port</em>
49
</td></tr>
50
<tr><td>
51
Proxy Server's network address. The format of the address can be either a
52
network hostname or a dotted IP address number. If port is not
53
specfied, then the default port 9195 is used.
54
<br>
55
DEFAULT: <tt>localhost</tt>
56
</td></tr>
57
58
<tr><td class="rnr-opts-opt">
59
-c, --count=<em>count</em>
60
</td></tr>
61
<tr><td>
62
Number of client's to create and run.
63
<br>
64
DEFAULT: <tt>1</tt>
65
</td></tr>
66
67
<tr><td class="rnr-opts-opt">
68
--devices=<em>list</em>
69
</td></tr>
70
<tr><td>
71
List of proxied devices where each client will create a thread and load test.
72
Format:<br>
73
<table class="rnr-opts" style="text-align:left">
74
<tr>
75
<td>list:</td>
76
<td>dev[,dev...]</td>
77
</tr>
78
<tr>
79
<td>dev:</td>
80
<td>server i2c null serial</td>
81
</tr>
82
</table>
83
<br>
84
DEFAULT: <tt>server,null</tt>
85
</td></tr>
86
87
<tr><td class="rnr-opts-opt">
88
--fixeddiag
89
</td></tr>
90
<tr><td>
91
Fix message tracing and logging diagnostics to
92
the values set when bsLoadTest was invoked.
93
<br>
94
DEFAULT: <tt>false</tt>
95
</td></tr>
96
97
<tr><td class="rnr-opts-opt">
98
--serdev=<em>dev</em>
99
</td></tr>
100
<tr><td>
101
Proxied serial device. The interface module is fixed at libbserver_serial.
102
<br>
103
DEFAULT: <tt>/dev/ttyS0</tt>
104
</td></tr>
105
106
<tr><td class="rnr-opts-opt">
107
--i2cdev=<em>dev</em>
108
</td></tr>
109
<tr><td>
110
Proxied I2C device. The interface module is fixed at libbserver_i2c.
111
<br>
112
DEFAULT: <tt>/dev/i2c-0</tt>
113
</td></tr>
114
115
116
<tr><td class="rnr-opts-grp">Logging</td></tr>
117
<tr><td class="rnr-opts-opt">
118
-l <em>level</em>, --log=<em>level</em>
119
</td></tr>
120
<tr><td>
121
Set logging threshold level. All logging events
122
with priority ≤ <em>level</em> will be logged. All
123
others will be ignored. Error events are
124
always logged. The <em>level</em> is one of:<br>
125
<table class="rnr-opts" style="text-align:left">
126
<tr>
127
<td>'off' or 0</td>
128
<td>Disable all logging.</td>
129
</tr>
130
<tr>
131
<td>'error' or 1</td>
132
<td>Enable error logging.</td>
133
</tr>
134
<tr>
135
<td>'diag1' or 2</td>
136
<td>Enable diagnostics 1 logging.</td>
137
</tr>
138
<tr>
139
<td>'diag2' or 3</td>
140
<td>Enable diagnostics 2 logging.</td>
141
</tr>
142
<tr>
143
<td>'diag3' or 4</td>
144
<td>Enable diagnostics 3 logging.<br>
145
The libSkewlZone library logs at this level</td>
146
</tr>
147
<tr>
148
<td>'diag4' or 5</td>
149
<td>Enable diagnostics 4 logging.</td>
150
</tr>
151
<tr>
152
<td>'diag5' or 6</td>
153
<td>Enable diagnostics 5 logging.</td>
154
</tr>
155
<tr>
156
<td>>6</td>
157
<td>Enable user-defined logging.</td>
158
</tr>
159
</table>
160
DEFAULT: off
161
</td></tr>
162
<tr><td class="rnr-opts-opt">
163
--logfile=<em>file</em>
164
</td></tr>
165
<tr><td>
166
Set log output file to <em>file</em>.
167
Special <em>file</em> names are:
168
<table class="rnr-opts" style="text-align:left">
169
<tr>
170
<td>'stderr'</td>
171
<td>log to standard error.</td>
172
</tr>
173
<tr>
174
<td>'stdout'</td>
175
<td>log to standard output.</td>
176
</tr>
177
</table>
178
DEFAULT: stderr
179
</td></tr>
180
181
<tr><td class="rnr-opts-grp">Information</td></tr>
182
<tr><td class="rnr-opts-opt">
183
--help
184
</td></tr>
185
<tr><td>
186
Display command help and exit.
187
</td></tr>
188
<tr><td class="rnr-opts-opt">
189
--version
190
</td></tr>
191
<tr><td>
192
Output version information and exit.
193
</td></tr>
194
</table>
195
\endhtmlonly
196
197
\par Examples:
198
\htmlonly
199
<pre class="fragment"><div class="fragment"><span
200
class="comment"># Example
201
# Start 8 clients, each load tesing the server-terminated services,
202
# and the serial, I2C, and null message protocols and libraries.
203
# The diagnotic level and message tracing states are fixed.
204
$
205
$ bsLoadTest --log=diag1 --fixeddiag --count=8 \
206
--devices=server,serial,i2c,null --serdev=/dev/ttyUSB0
207
208
...
209
<span style="color:#aaaaaa; font-style:italic;"><INTR></span>
210
$
211
</div></pre>
212
\endhtmlonly
213
214
* \{
215
*/
216
217
/*! \} */
docs
doxy
man_bsloadtest.doxy
Generated on Fri Aug 10 2018 13:54:32 for botsense by
1.8.11
©2018 RoadNarrows LLC
www.roadnarrows.com