Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Cannot run Agent under MACOS Monterrey 12.3

Hello, I'm trying to run OCS Inventory agent under MACOS Monterrey 12.3, the installation goes good, but once run the agent I don't see any info related to this machine in the server.

Reading the logs from MACOS I found this details:

[Thu Mar 17 11:57:12 2022][error] Invalid XML: not well-formed (invalid token) at line 1679, column 19, byte 46867 at /System/Library/Perl/Extras/5.30/darwin-thread-multi-2level/XML/Parser.pm line 187.
XML::Simple called at /Applications/OCSNG.app/Contents/Resources//lib/Ocsinventory/Agent/Network.pm line 106.
[Thu Mar 17 11:57:12 2022][error] Cannot submit XML! Abort...
[Thu Mar 17 11:57:37 2022][error] Invalid XML: not well-formed (invalid token) at line 1679, column 19, byte 46867 at /System/Library/Perl/Extras/5.30/darwin-thread-multi-2level/XML/Parser.pm line 187.
XML::Simple called at /Applications/OCSNG.app/Contents/Resources//lib/Ocsinventory/Agent/Network.pm line 106.
[Thu Mar 17 11:57:37 2022][error] Cannot submit XML! Abort...
[Thu Mar 17 12:00:14 2022][error] Invalid XML: not well-formed (invalid token) at line 1679, column 19, byte 46867 at /System/Library/Perl/Extras/5.30/darwin-thread-multi-2level/XML/Parser.pm line 187.
XML::Simple called at /Applications/OCSNG.app/Contents/Resources//lib/Ocsinventory/Agent/Network.pm line 106.
[Thu Mar 17 12:00:14 2022][error] Cannot submit XML! Abort...
[Thu Mar 17 12:02:47 2022][error] Invalid XML: not well-formed (invalid token) at line 1679, column 19, byte 46867 at /System/Library/Perl/Extras/5.30/darwin-thread-multi-2level/XML/Parser.pm line 187.
XML::Simple called at /Applications/OCSNG.app/Contents/Resources//lib/Ocsinventory/Agent/Network.pm line 106.
[Thu Mar 17 12:02:47 2022][error] Cannot submit XML! Abort...

I try chose different options during the installation but I get the same error.

Any tips that could share to fix this?

OCS Server 2.9.1

This issue I have is just with MACOS.

Thanks for your support!!!

in OCS Inventory NG agent for MacOS X by (410 points)

2 Answers

0 votes
Hi klabacita,

I'm having the same problem as you under MacOS 12.3. I used the following method to find out that there are garbled codes in the memory stick hardware information of macOS obtained by OCS Inventory NG Agent, and if I change these garbled messages to normal text, it can be imported normally. So I guess there is a bug in the current Agent to get the system information of macOS.

The procedure I used to find the problem.

1, run the Agent command to export a local asset file.

Open a command line console window and run the following command

cd /Application/OCSNG.app/Contents/Resources/

sudo . /ocsinventory-agent -local=/tmp

2, open the .ocs file under /tmp with a text editor that supports xml format (e.g. BBEdit). The editor should indicate that there is an error in the format of the xml file, and you can locate the error line in the xml based on the error message in the Agent's log on your computer.
by (180 points)
0 votes

Hi 

There is good news.

OCS Inventory NG's Agent for macOS has been updated and fixed this problem we encountered.

You can download the latest version of Agent (version: 2.9.1).

Best,

Hawk

2022.04.02

by (180 points)
 
Powered by Question2Answer
...