opsi manual opsi version 4.0.2 - opsi Download - uib
opsi manual opsi version 4.0.2 - opsi Download - uib
opsi manual opsi version 4.0.2 - opsi Download - uib
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>opsi</strong> <strong>manual</strong> <strong>opsi</strong> <strong>version</strong> <strong>4.0.2</strong><br />
’’’<br />
135 / 193<br />
if latency:<br />
minValue = 1000<br />
for (depot, value) in latency.items():<br />
if (value < minValue):<br />
minValue = value<br />
selectedDepot = depot<br />
logger.notice(u"Choosing depot %s with minimum latency %0.3f ms" % (selectedDepot, minValue\<br />
*1000))<br />
return selectedDepot<br />
def getDepotSelectionAlgorithm(self):<br />
#return depotSelectionAlgorithmByLatency<br />
return depotSelectionAlgorithmByNetworkAddress<br />
17.8 Logging<br />
If the dynamic depot assignment is activated, there are some logs from the depot assignment in <strong>opsi</strong>clientd.log.<br />
In this shortened example log, the server bonifax.<strong>uib</strong>.local is config server and master depot for the client<br />
pctrydetlef.<strong>uib</strong>.local. As a master server the server has the network address 192.168.1.0/255.255.255.0.<br />
As an alternative depot the server stb-40-srv-001.<strong>uib</strong>.local is available with the network address<br />
192.168.2.0/255.255.255.0. The client pctry4detlef.<strong>uib</strong>.local has the IP address 192.168.2.109, which is<br />
in the network of the alternative depot.<br />
(...)<br />
[6] [Dec 02 18:25:27] [ <strong>opsi</strong>clientd ] Connection established to: 192.168.1.14 (HTTP.pyo|421)<br />
[5] [Dec 02 18:25:28] [ event processing gui_startup ] [ 1] product <strong>opsi</strong>-client-agent: setup (EventProcessing.\<br />
pyo|446)<br />
[5] [Dec 02 18:25:28] [ event processing gui_startup ] Start processing action requests (EventProcessing.pyo|453)<br />
[5] [Dec 02 18:25:28] [ event processing gui_startup ] Selecting depot for products [u’<strong>opsi</strong>-client-agent’] (Config.\<br />
pyo|314)<br />
[5] [Dec 02 18:25:28] [ event processing gui_startup ] Selecting depot for products [u’<strong>opsi</strong>-client-agent’] (__init__\<br />
.pyo|36)<br />
(...)<br />
[6] [Dec 02 18:25:28] [ event processing gui_startup ] Dynamic depot selection enabled (__init__.pyo|78)<br />
(...)<br />
[6] [Dec 02 18:25:28] [ event processing gui_startup ] Master depot for products [u’<strong>opsi</strong>-client-agent’] is bonifax.<strong>uib</strong>\<br />
.local (__init__.pyo|106)<br />
[6] [Dec 02 18:25:28] [ event processing gui_startup ] Got alternative depots for products: [u’<strong>opsi</strong>-client-agent’] (\<br />
__init__.pyo|110)<br />
[6] [Dec 02 18:25:28] [ event processing gui_startup ] 1. alternative depot is stb-40-srv-001.<strong>uib</strong>.local (__init__.\<br />
pyo|112)<br />
(...)<br />
[6] [Dec 02 18:25:28] [ event processing gui_startup ] Verifying modules file signature (__init__.pyo|129)<br />
[5] [Dec 02 18:25:28] [ event processing gui_startup ] Modules file signature verified (customer: <strong>uib</strong> GmbH) (\<br />
__init__.pyo|143)<br />
(...)<br />
[6] [Dec 02 18:25:28] [ event processing gui_startup ] Choosing depot from list of depots: (|4)<br />
[6] [Dec 02 18:25:28] [ event processing gui_startup ] Master depot: (|5)<br />
[6] [Dec 02 18:25:28] [ event processing gui_startup ] Alternative depot: (|7)<br />
[5] [Dec 02 18:25:28] [ event processing gui_startup ] Choosing depot with networkAddress 192.168.2.0/255.255.255.0 \<br />
for ip 192.168.2.109 (|40)<br />
[5] [Dec 02 18:25:28] [ event processing gui_startup ] Selected depot is: (__init__.pyo|171)<br />
(...)<br />
[5] [Dec 02 18:25:28] [ event processing gui_startup ] Mounting depot share smb://stb-40-srv-001/opt_pcbin/install (\<br />
EventProcessing.pyo|415)<br />
(...)