wir versuchen bei uns Opsi als zentrales Software-Verteilungstool aufzusetzen und sind dabei gerade in der Testphase.
Hierfür haben wir einen Windows 7 Professional Laptop mit statischer IP sowie die Opsi VM 4.0 aufgesetzt. Dazu muss gesagt werden, dass wir nur statische IPs besitzen. Zunächst haben wir die VM mit sudo apt-get update und sudo apt-get dist-upgrade geupdatet. Die aktuelle Samba-Version auf dem Opsi-Server ist 3.4.7. Das manuelle Mounten von <opsi-server>\opt_pcbin auf dem Windows-Client hat einwandfrei funktioniert. Das Ausführen von \install\opsi-client-agent\service_setup.cmd verlief reibungslos. Im Opsi Configuration Editor wurde die richtige IP angezeigt. Nun wollten wir hwaudit und swaudit durchführen um zu überprüfen, ob wir Software per remote einspielen können. Hierfür setzten wir diese im Webinterface in setup unter 'Angefordert' und rebooteten den Client aus dem Web. Nach dem Booten allerdings konnte sich Opsi nicht mit dem Samba-/Depot-Server verbinden. Die angegebene Adresse von Opsi "opsi\opt_pcbin" in der GUI-Ausgabe bzw. im Log \tmp\opsiclientd.log stimmt nicht mit der realen Adresse überein. Wir haben einen Eintrag in der \Programme\opsi.org\opsi-client-agent\opsiclientd\opsiconfd.conf gefunden der die URL des Depot-Servers angibt und setzen diesen Eintrag auf die richtige Domain unseres Opsi-Servers. Nach einem Neustart verwendete allerdings Opsi wiederum nur die Adresse "opsi\opt_pcbin" und konnte sich nicht verbinden.
Gibt es eventuell eine andere Konf-Datei in der die Adresse eingestellt werden kann? War unserer Installationsvorgehen für auf dem Client fehlerhaft? Muss evtl. noch zusätzliche Software installiert werden?
Für eine Lösung/Hilfestellung wären wir sehr dankbar.
Anbei die Logs:
opsiclientd.log (siehe ][3] [Jan 25 15:09:25])
Code: Alles auswählen
[5] [Jan 25 15:09:19] [ action_processor_starter.exe ] Mounting depot share smb://opsi/opt_pcbin/install (action_processor_starter.py|99)
[6] [Jan 25 15:09:19] [ control server ] Worker <ocdlib.ControlServer.ControlServerJsonRpcWorker instance at 0x01DCA2D8> started processing (ControlServer.pyo|371)
[5] [Jan 25 15:09:19] [ control server ] Authorization request from hiwi-pc.wi-kassel.de@127.0.0.1 (ControlServer.pyo|320)
[5] [Jan 25 15:09:19] [ json rpc ] -----> Executing: setStatusMessage(u'1', u'Verbinde mit Depot-Freigabe smb://opsi/opt_pcbin/install') (JsonRpc.pyo|96)
[5] [Jan 25 15:09:19] [ opsiclientd ] rpc setStatusMessage: Setting status message to 'Verbinde mit Depot-Freigabe smb://opsi/opt_pcbin/install' (ControlServer.pyo|738)
[6] [Jan 25 15:09:19] [ event processing gui_startup ] sending notification 'messageChanged' to clients (Message.pyo|559)
[6] [Jan 25 15:09:19] [ json rpc ] Got result (JsonRpc.pyo|124)
[5] [Jan 25 15:09:19] [ action_processor_starter.exe ] Mounting '\\opsi\opt_pcbin' to 'p:' (Windows.pyo|437)
[6] [Jan 25 15:09:21] [ control pipe ] Creating pipe \\.\pipe\opsiclientd (ControlPipe.pyo|253)
[5] [Jan 25 15:09:21] [ json rpc ] -----> Executing: getBlockLogin() (JsonRpc.pyo|96)
[5] [Jan 25 15:09:21] [ opsiclientd ] rpc getBlockLogin: blockLogin is 'True' (ControlPipe.pyo|428)
[6] [Jan 25 15:09:21] [ json rpc ] Got result (JsonRpc.pyo|124)
[6] [Jan 25 15:09:24] [ control pipe ] Creating pipe \\.\pipe\opsiclientd (ControlPipe.pyo|253)
[5] [Jan 25 15:09:24] [ json rpc ] -----> Executing: getBlockLogin() (JsonRpc.pyo|96)
[5] [Jan 25 15:09:24] [ opsiclientd ] rpc getBlockLogin: blockLogin is 'True' (ControlPipe.pyo|428)
[6] [Jan 25 15:09:24] [ json rpc ] Got result (JsonRpc.pyo|124)
[3] [Jan 25 15:09:25] [ action_processor_starter.exe ] Failed to mount '\\opsi\opt_pcbin': (53, 'WNetAddConnection2', 'Der Netzwerkpfad wurde nicht gefunden.') (Windows.pyo|450)
[2] [Jan 25 15:09:25] [ action_processor_starter.exe ] Traceback: (Logger.pyo|710)
[2] [Jan 25 15:09:25] [ action_processor_starter.exe ] line 105 in '<module>' in file 'action_processor_starter.py' (Logger.pyo|710)
[2] [Jan 25 15:09:25] [ action_processor_starter.exe ] line 451 in 'mount' in file 'OPSI\System\Windows.pyo' (Logger.pyo|710)
[2] [Jan 25 15:09:25] [ action_processor_starter.exe ] ==>>> Failed to mount '\\opsi\opt_pcbin': (53, 'WNetAddConnection2', 'Der Netzwerkpfad wurde nicht gefunden.') (action_processor_starter.py|117)
[6] [Jan 25 15:09:25] [ control server ] Worker <ocdlib.ControlServer.ControlServerJsonRpcWorker instance at 0x01DCA418> started processing (ControlServer.pyo|371)
[5] [Jan 25 15:09:25] [ control server ] Authorization request from hiwi-pc.wi-kassel.de@127.0.0.1 (ControlServer.pyo|320)
[5] [Jan 25 15:09:25] [ json rpc ] -----> Executing: setStatusMessage(u'1', u"Failed to process action requests: Failed to mount '\\\\opsi\\opt_pcbin': (53, 'WNetAddConnection2', 'Der Netzwerkpfad wurde nicht gefunden.')") (JsonRpc.pyo|96)
[5] [Jan 25 15:09:25] [ opsiclientd ] rpc setStatusMessage: Setting status message to 'Failed to process action requests: Failed to mount '\\opsi\opt_pcbin': (53, 'WNetAddConnection2', 'Der Netzwerkpfad wurde nicht gefunden.')' (ControlServer.pyo|738)
[6] [Jan 25 15:09:25] [ event processing gui_startup ] sending notification 'messageChanged' to clients (Message.pyo|559)
[6] [Jan 25 15:09:25] [ json rpc ] Got result (JsonRpc.pyo|124)
[3] [Jan 25 15:09:25] [ action_processor_starter.exe ] Failed to process action requests: Failed to mount '\\opsi\opt_pcbin': (53, 'WNetAddConnection2', 'Der Netzwerkpfad wurde nicht gefunden.') (action_processor_starter.py|124)
[6] [Jan 25 15:09:25] [ control server ] Worker <ocdlib.ControlServer.ControlServerJsonRpcWorker instance at 0x01DCC1C0> started processing (ControlServer.pyo|371)
[5] [Jan 25 15:09:25] [ control server ] Authorization request from hiwi-pc.wi-kassel.de@127.0.0.1 (ControlServer.pyo|320)
[5] [Jan 25 15:09:25] [ json rpc ] -----> Executing: backend_exit() (JsonRpc.pyo|96)
[6] [Jan 25 15:09:25] [ json rpc ] Got result (JsonRpc.pyo|124)
[5] [Jan 25 15:09:25] [ event processing gui_startup ] Process 2160 ended with exit code 0 (Windows.pyo|1000)
[6] [Jan 25 15:09:25] [ event processing gui_startup ] Session id set to 1 (Opsiclientd.pyo|543)
[6] [Jan 25 15:09:25] [ event processing gui_startup ] sending notification 'messageChanged' to clients (Message.pyo|559)
[6] [Jan 25 15:09:27] [ control pipe ] Creating pipe \\.\pipe\opsiclientd (ControlPipe.pyo|253)
[5] [Jan 25 15:09:27] [ json rpc ] -----> Executing: getBlockLogin() (JsonRpc.pyo|96)
[5] [Jan 25 15:09:27] [ opsiclientd ] rpc getBlockLogin: blockLogin is 'True' (ControlPipe.pyo|428)
[6] [Jan 25 15:09:27] [ json rpc ] Got result (JsonRpc.pyo|124)
[6] [Jan 25 15:09:28] [ event processing gui_startup ] sending notification 'messageChanged' to clients (Message.pyo|559)
[5] [Jan 25 15:09:28] [ event processing gui_startup ] Writing log to service (Opsiclientd.pyo|780)
[6] [Jan 25 15:09:28] [ event processing gui_startup ] sending notification 'messageChanged' to clients (Message.pyo|559)
[6] [Jan 25 15:09:28] [ opsiclientd ] rebootRequested: 0 (Windows.pyo|326)
[6] [Jan 25 15:09:28] [ opsiclientd ] shutdownRequested: 0 (Windows.pyo|340)
[6] [Jan 25 15:09:28] [ event processing gui_startup ] sending notification 'messageChanged' to clients (Message.pyo|559)
[5] [Jan 25 15:09:28] [ opsiclientd ] Block login now set to 'False' (Opsiclientd.pyo|102)
[6] [Jan 25 15:09:28] [ opsiclientd ] Terminating block login notifier app (pid 1896) (Opsiclientd.pyo|129)
[6] [Jan 25 15:09:28] [ event processing gui_startup ] sending notification 'messageChanged' to clients (Message.pyo|559)
[6] [Jan 25 15:09:28] [ event processing gui_startup ] Stopping notification server (Opsiclientd.pyo|1510)
[6] [Jan 25 15:09:28] [ event processing gui_startup ] sending notification 'endConnection' to clients (Message.pyo|559)
[6] [Jan 25 15:09:30] [ control server ] client connection lost (Message.pyo|464)
[6] [Jan 25 15:09:30] [ control pipe ] Creating pipe \\.\pipe\opsiclientd (ControlPipe.pyo|253)
[5] [Jan 25 15:09:30] [ json rpc ] -----> Executing: getBlockLogin() (JsonRpc.pyo|96)
[5] [Jan 25 15:09:30] [ opsiclientd ] rpc getBlockLogin: blockLogin is 'False' (ControlPipe.pyo|428)
[6] [Jan 25 15:09:30] [ json rpc ] Got result (JsonRpc.pyo|124)
[5] [Jan 25 15:09:30] [ event processing gui_startup ] ============= EventProcessingThread for event '<ocdlib.Events.GUIStartupEvent object at 0x01C3FC30>' ended ============= (Opsiclientd.pyo|1520)
[5] [Jan 25 15:09:30] [ opsiclientd ] Done processing event '<ocdlib.Events.GUIStartupEvent object at 0x01C3FC30>' (Opsiclientd.pyo|350)
Code: Alles auswählen
[global]
base_dir = C:\Program Files\opsi.org\opsi-client-agent
block_login_notifier = %global.base_dir%\\notifier.exe -s notifier\\block_login.ini
host_id = hiwi-pc.wi-kassel.de
locale_dir = C:\Program Files\opsi.org\opsi-client-agent\locale
log_file = c:\\tmp\\opsiclientd.log
log_level = 6
opsi_host_key = d95249e9667605b4c7e42141248fdbea
wait_for_gui_timeout = 120
[config_service]
connection_timeout = 30
url = https://141.51.138.164:4447/rpc
user_cancelable_after = 30
[depot_server]
depot_id =
drive = p:
url = opsi.wi-kassel.de <- nachträglich eingetragen
username = pcpatch
[cache_service]
backend_manager_config = %global.base_dir%\\opsiclientd\\backendManager.d
product_cache_max_size = 5000000000
storage_dir = C:\opsi\cache
[control_server]
interface = 0.0.0.0
port = 4441
ssl_server_cert_file = %global.base_dir%\\opsiclientd\\opsiclientd.pem
ssl_server_key_file = %global.base_dir%\\opsiclientd\\opsiclientd.pem
static_dir = %global.base_dir%\\opsiclientd\\static_html
[notification_server]
interface = 127.0.0.1
popup_port = 45000
port = 4442
start_port = 44000
[opsiclientd_notifier]
command = %global.base_dir%\\notifier.exe -p %port%
[opsiclientd_rpc]
command = %global.base_dir%\\opsiclientd_rpc.exe "%global.host_id%" "%global.opsi_host_key%" "%control_server.port%"
[action_processor]
command = "%action_processor.local_dir%\\%action_processor.filename%" /opsiservice "%service_url%" /clientid %global.host_id% /username %global.host_id% /password %global.opsi_host_key%
create_user = True
delete_user = True
filename = winst32.exe
local_dir = %global.base_dir%\\opsi-winst
remote_dir = \\install\\opsi-winst\\files\\opsi-winst
run_as_user = SYSTEM
[event_daemon_shutdown]
active = false
type = daemon shutdown
[event_daemon_startup]
active = false
type = daemon startup
[event_gui_startup]
action_notifier_command = %opsiclientd_notifier.command% -s notifier\\action.ini
action_notifier_desktop = winlogon
action_processor_command = %action_processor.command%
action_processor_desktop = winlogon
block_login = true
cache_max_bandwidth = 0
cache_products = false
event_notifier_command = %opsiclientd_notifier.command% -s notifier\\event.ini
event_notifier_desktop = current
get_config_from_service = true
lock_workstation = false
logoff_current_user = false
message = Starting to process product actions.
message[de] = Starte die Bearbeitung von Produkt-Aktionen.
requires_cached_products = false
shutdown_notifier_command = %opsiclientd_notifier.command% -s notifier\\shutdown.ini
shutdown_notifier_desktop = current
sync_config = false
type = gui startup
update_action_processor = true
update_config_file = true
use_cached_config = false
user_cancelable = 0
write_log_to_service = true
[event_on_demand]
action_notifier_command = %opsiclientd_notifier.command% -s notifier\\action.ini
action_notifier_desktop = current
action_processor_command = %action_processor.command%
action_processor_desktop = current
block_login = true
cache_max_bandwidth = 0
cache_products = false
event_notifier_command = %opsiclientd_notifier.command% -s notifier\\event.ini
event_notifier_desktop = current
get_config_from_service = true
lock_workstation = false
logoff_current_user = false
message = Starting to process product actions. You are allowed to cancel this event a total of %user_cancelable% time(s). The event was already canceled %cancel_counter% time(s).
message[de] = Starte die Bearbeitung von Produkt-Aktionen. Sie können diese Aktion insgesamt %user_cancelable% mal abbrechen. Die Aktion wurde bereits %cancel_counter% mal abgebrochen.
requires_cached_products = false
shutdown_notifier_command = %opsiclientd_notifier.command% -s notifier\\shutdown.ini
shutdown_notifier_desktop = current
shutdown_user_cancelable = 0
shutdown_warning_message = A reboot is required to complete software installation tasks. You are allowed to delay this reboot a total of %shutdown_user_cancelable% time(s). The reboot was already delayed %shutdown_cancel_counter% time(s).
shutdown_warning_message[de] = Ein Neustart wird benötigt um die Software-Installationen abzuschliessen. Sie können diesen Neustart insgesamt %shutdown_user_cancelable% mal verschieben. Der Neustart wurde bereits %shutdown_cancel_counter% mal verschoben.
shutdown_warning_repetition_time = 3600
shutdown_warning_time = 300
sync_config = false
type = custom
update_action_processor = true
update_config_file = true
use_cached_config = false
user_cancelable = 0
write_log_to_service = true
[event_user_login]
action_notifier_command = %opsiclientd_notifier.command% -s notifier\\userlogin.ini
action_notifier_desktop = current
action_processor_command = %action_processor.command% /usercontext %event.user%
action_processor_desktop = current
action_processor_timeout = 300
action_type = login
active = false
block_login = false
cache_max_bandwidth = 0
cache_products = false
event_notifier_command = %opsiclientd_notifier.command% -s notifier\\event.ini
event_notifier_desktop = current
get_config_from_service = false
lock_workstation = false
logoff_current_user = false
message = Starting to process user login actions.
message[de] = Beginne mit der Verarbeitung der Benutzer-Anmeldungs-Aktionen.
notification_delay = 0
process_shutdown_requests = false
requires_cached_products = false
sync_config = false
type = user login
update_action_processor = false
update_config_file = false
use_cached_config = false
user_cancelable = 0
write_log_to_service = false
[event_vpn_startup]
action_notifier_command = %opsiclientd_notifier.command% -s notifier\\action.ini
action_notifier_desktop = current
action_processor_command = %action_processor.command% /service_options "%event_vpn_startup.service_options%"
action_processor_desktop = current
active = false
cache_max_bandwidth = 0
cache_products = false
event_notifier_command = %opsiclientd_notifier.command% -s notifier\\event.ini
event_notifier_desktop = current
get_config_from_service = true
message = Opsi will start software and hardware inventory on this computer. You can continue your work in the meantime.
message[de] = Opsi führt nun eine Software und Hardware-Inventarisierung auf diesem Computer durch. Sie können Ihre Arbeit in der Zwischenzeit fortsetzen.
service_options = { "actionProcessingFilter": { "productIds": ["hwaudit", "swaudit"] } }
type = custom
update_config_file = true
warning_time = 20
wql = SELECT * FROM __InstanceModificationEvent WITHIN 2 WHERE TargetInstance ISA 'Win32_NetworkAdapter' AND TargetInstance.Name = "TAP-Win32 Adapter V9" AND TargetInstance.NetConnectionStatus = 2
write_log_to_service = true