Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dana-saracut opened this issue Nov 29, 2018 · 2 comments
Open

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

dana-saracut opened this issue Nov 29, 2018 · 2 comments

Comments

@dana-saracut
Copy link

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 <msofficekey.vbs>
================= TRACE START ===============

================= TRACE STOP ===============
EXECUTABLE PLUGIN => Plugin <msofficekey.vbs> 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
Copy link

Draktann commented Feb 7, 2019

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
Copy link
Contributor

gehasia commented Apr 1, 2019

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants