Changes

Jump to navigation Jump to search
519 bytes removed ,  00:10, 10 November 2007
Line 22: Line 22:     
==www/ocs/install.php bugs==
 
==www/ocs/install.php bugs==
''ocsagent.exe'' is not needed if you plan to use the Agent as a service...
+
First, you need to import the file in the database. Go to www/ocs/install.php and relaunch the install (this is harmless) '''with an mysql admin account''' (I use phpmyadmin so this is ''admin'')
 +
 
   −
This file allows you to make inventories of computers '''without''' having the Agent installed.
+
If you get a warning, refresh and you should see a successful import. ''ocsagent.exe'' is now in the database. Actually, to allow download, OCS need to authenticate... That's why this file is in the database in binary code!
   −
Once installed in ocs, you can use the standalone executable ''OCSLogon.exe'' to inventory a single computer without having to install the service (better control for logon scripts and think of what you can do with a simple USB key!)
+
Once imported, the file should be deletable... But I need to verify that. Next time the agent version changes, then an update will be needed!
   −
First, you need to import the file in the database. Go to www/ocs/install.php and relaunch the install (this is harmless) '''with an mysql admin account''' (I use phpmyadmin so this is ''admin'')
+
So, file is imported '''but the install reseted password to 'ocs''''
   −
After a 1st warning, refresh and the agent.exe should import itself in mysql database. Not sure about what is does, the only thing I've noticed is that ocsweb's database grows of 1.5MB after this!!! So I guess the file is imported in mysql, this is really strange but it do the job!
+
You need to apply changes:
 +
signal-event domain-modify
   −
Once imported, the file should be deletable...
     −
Forgot this: '''www/ocs/install.php will reset default password to 'ocs' => reapply changes'''
  −
signal-event domain-modify ;-)
     −
I think the 1st error screen can be fixed, maybe with raising the good value, mysql tries to import 1.5MB, this is huge!
+
=> Why  do we need really an admin account? Why can't we use ocs?
 +
If you encounter any problem with files insertion, try setting the global max_allowed_packet mysql value to at least 2M in your server config file.
 +
How to set this value for ocs only?
 +
----
    +
Here's 3 screenshot already taken that I will use for the article when all of this will be clear.
   −
=> Verified! Here's how it works:
+
Install.php
*rename ocslogon.exe into yourdomain.com.exe
  −
*on a computer without the Agent, launch:
  −
c:\your_path\yourdomain.com.exe /np /debug /tag
  −
*Server sends ocsagent.exe and unzip needed files in c:\ocs-ng
  −
*client can inventory himself, then send his inventory.
      +
[[Image:OCS-installphp.png]]<br>
 
----
 
----
why not just have all the files on the USB key or Disk in the first place ?
+
Default MaxUpload can be seen here & ocsagent.exe not present
But if this is how it works then just document it
+
[[Image:OCS-installphp-warning.png]]<br>
 
+
----
Do we really have use install.php, can you just put the ocsagent.exe in /files.
+
ocsagent.exe present - successful import
I only used it looking for errors long ago,
+
[[Image:OCS-installphp-ocsagent.png]]<br>
install.php probably should be deleted, as the rpm does the setup
  −
 
  −
stephen
   
----
 
----
  
498

edits

Navigation menu