How to launch the OCS agent at PC startup?

Solved/Closed
madlove40 Posted messages 29 Status Member -  
madlove40 Posted messages 29 Status Member -
Hello,

Well, I set up an OCS-GLPI server on Debian 6.0 and installed the OCS agent on the client machines, but upon booting these machines, nothing happens! I mean, the OCS agent does indeed start at boot and is visible in the taskbar, but the inventory does not take place; I have to manually right-click on the OCS agent icon and choose "Run OCS inventory NG Agent now," and only at that moment does the inventory take place. When I connect to my OCS server, I can view the details of my machines, but how can I get the inventory to launch automatically after the machines boot up in the morning? I have client machines, some running XP and others running 7.
P.S. I even modified the OCS .ini configuration file but to no avail.

Configuration: Windows XP / Firefox 3.5.19

5 answers

  1. anonymous
     
    Personally, I did a bit of tinkering to make it work.
    I created a .bat file that runs at startup on the PCs.

    net stop "OCS Inventory Service" (stops the OCS service to copy the file)

    copy \\SERVER_IP_OCS\ocs\ocsinventory.ini C:\ProgramData\"OCS Inventory NG"\Agent (copying the file on seven)

    copy \\SERVER_IP_OCS\ocs\ocsinventory.ini C:\"Documents and Settings"\"All Users"\"Application Data"\"OCS Inventory NG"\Agent (copying the file for XP)

    net start "OCS Inventory Service" (restarts the service)

    After that, for the names of the folders, it's up to you, they probably aren't the same as mine. You can do it your way!

    In any case, it worked for me on the first try.
    1
  2. madlove40 Posted messages 29 Status Member 1
     
    Hello and thank you for your response, I tried what you said but unfortunately it didn't work! Apparently there's something else that's wrong.
    0
  3. madlove40 Posted messages 29 Status Member 1
     
    I have already tried the bats, and in principle, they work, but there is something else that is wrong that escapes me, m3r<i in any case.
    0
  4. madlove40 Posted messages 29 Status Member 1
     
    finalement the solution was very simple I just had to create a scheduled task for it to work.
    0