PluginsOCSInventory-NG / officepack

Retrieve microsoft office keys
GNU General Public License v2.0
15 stars 27 forks source link

Ocs agent doesn't generate xml containing the office key #48

Open dana-saracut opened 5 years ago

dana-saracut commented 5 years ago

HI,

I installed and configured officepack plugin for OCS. However I do not see any keys being managed under the plugin. I started debugging with running the .vbs locally and I received the correct information. Then I run the ocs agent and I noticed that although it finds the .vbs script and it runs it, it doesn’t produce any output to send it to the server: EXECUTABLE PLUGIN => Searching for VBS script(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins> EXECUTABLE PLUGIN => Found executable plugin ================= TRACE START ===============

================= TRACE STOP =============== EXECUTABLE PLUGIN => Plugin executed successfully EXECUTABLE PLUGIN => Searching for PS1 script(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins> AGENT => Sending Inventory Could someone give me an idea on how I could fix this? Or what else should I check? The ocs server is the 2.5 version installed on a debian stretch with the latest officepack plugin (2.0.0)

Thank you in advance for your help.

Best regards, Dana

Draktann commented 5 years ago

Hi Dana,

There is no .xml output for officepack, there is a .txt output in "C:\Users\YourUser" named "output.txt". Hope it helps !

Best regards, Antoine.

gehasia commented 5 years ago

Hi Dana,

There is no .xml output for officepack, there is a .txt output in "C:\Users\YourUser" named "output.txt". Hope it helps !

Best regards, Antoine.

No that's not true. Every OCS plugin must output XML, as it's the plugin format to send information back to server. OfficePlugin generate an output.txt when it runs the OSPP command, and then it get the informations from this output.txt to generate XML data. So, if the plugin find an office instance it must display XML data in standard output when you run the script manually.

@dana-saracut If you run this command (after creating the C:\temp directory if non-existant) : ocsinventory.exe /local=C:\temp /xml=c:\temp Do you have datas in the generated XML ? Like this (it should be near the beginning of the file) :

<OFFICEPACK>
            <OFFICEVERSION>Office 15, RETAIL channel</OFFICEVERSION>
            <PRODUCT>Office 15, OfficeProfessionalR_Retail edition</PRODUCT>
            <PRODUCTID />
            <TYPE>1</TYPE>
            <OFFICEKEY>XXXXX-XXXXX-XXXXX-XXXXX-76BFM</OFFICEKEY>
            <GUID>44bc70e2-fb83-4b09-9082-e5557e0c2ede</GUID>
            <INSTALL>1</INSTALL>
            <NOTE />
</OFFICEPACK>