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.12.3 available

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

Missing hardware for macs

Hi,

Just installed my first ocs server. For windows agents all seems ok. But when I add a mac, info seems to be missing, RAM, HDD and so on. Any tips on what the reason can be?

Here is an example:

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

12 Answers

0 votes
Hi,

Which  version of agent have you installed? Could you please post ocsinventory-agent.log file content?

Regards

Frank
by (90.2k points)
0 votes
Hi Frank,

Thanks for taking the time. Version: 2.3.1

Regarding Log, do you mean the ocsng.log location: /var/log/ that contains the whole xlm like part?
by (600 points)
0 votes

Hi Grum

No for the moment I just need ocsinventory-agent.log file.

To obtain this file there is two ways : 

  1. use --debug option with ocsinventory-agent command in a terminal => ocsinventory-agent --debug
  2. edit /etc/ocsinventory-agent/ocsinventory-agent.cfg file. Add debug=1 in the file then save and finally launch an inventory or wait the next inventory.

Regards

Frank

by (90.2k points)
0 votes
Already had this in the cfg file

tag=Mac client
logfile=/var/log/ocsng.log
debug=1
lazy=0
ssl=1
by (600 points)
0 votes
OK. So post ocsng.log file content.

Regards

Frank
by (90.2k points)
0 votes
Thanks for your quick answers.

[Wed Jan 17 12:01:23 2018][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.3.1
[Wed Jan 17 12:01:23 2018][debug] Log system initialised (File)
[Wed Jan 17 12:01:23 2018][debug] --scan-homedirs missing. Don't scan user directories
[Wed Jan 17 12:01:23 2018][debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__xxxx_ocsinventory/ocsinv.adm
[Wed Jan 17 12:01:23 2018][debug] OCS Agent initialised
[Wed Jan 17 12:01:23 2018][debug] Failed to load `/etc/ocsinventory-agent/modules.conf': 0
[Wed Jan 17 12:01:23 2018][debug] No modules will be used.
[Wed Jan 17 12:01:23 2018][debug] Compress::Zlib is not available! The data will be compressed with
             gzip instead but won't be accepted by server prior 1.02
[Wed Jan 17 12:01:23 2018][debug] sending XML
[Wed Jan 17 12:01:23 2018][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>mac-se-jenbel-2018-01-16-13-13-52</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>
[Wed Jan 17 12:01:24 2018][debug] =BEGIN=SERVER RET======
[Wed Jan 17 12:01:24 2018][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
  <RESPONSE>SEND</RESPONSE>
  <PROLOG_FREQ>24</PROLOG_FREQ>
  <OPTION>
    <NAME>DOWNLOAD</NAME>
    <PARAM FRAG_LATENCY="10" ON="0" CYCLE_LATENCY="60" PERIOD_LATENCY="1" TIMEOUT="30" PERIOD_LENGTH="10" EXECUTION_TIMEOUT="120" TYPE="CONF" />
  </OPTION>
  <INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>
</REPLY>
';
[Wed Jan 17 12:01:24 2018][debug] =END=SERVER RET======
[Wed Jan 17 12:01:24 2018][debug] PROLOG_FREQ has not changed since last process
[Wed Jan 17 12:01:25 2018][debug] Failed to load Ocsinventory::Agent::Backend::OS::MacOS::Video: Can't locate Parse/EDID.pm in @INC (you may need to install the Parse::EDID module) (@INC contains: /Applications/OCSNG.app/Contents/Resources//lib/ /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /Applications/OCSNG.app/Contents/Resources//lib/Ocsinventory/Agent/Backend/OS/MacOS/Video.pm line 4.
BEGIN failed--compilation aborted at /Applications/OCSNG.app/Contents/Resources//lib/Ocsinventory/Agent/Backend/OS/MacOS/Video.pm line 4.
Compilation failed in require at (eval 226) line 1.
BEGIN failed--compilation aborted at (eval 226) line 1.
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::IpDiscover::IpDiscover ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::IpDiscover::Nmap ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::AIX ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::BSD ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Dmidecode ignored
[Wed Jan 17 12:01:25 2018][debug]  - Sys::Hostname loaded
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Ipmi ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Lspci ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Lsusb ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::BSDpkg ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::Deb ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::Gentoo ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::Pacman ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::RPM ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Printers::Cups ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Generic::Screen ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::HPUX ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Linux ignored
[Wed Jan 17 12:01:25 2018][debug]  - Mac::SysProfile loaded
[Wed Jan 17 12:01:25 2018][debug]  - Mac::SysProfile loaded
[Wed Jan 17 12:01:25 2018][debug]  - Mac::SysProfile loaded
[Wed Jan 17 12:01:25 2018][debug]  - Mac::SysProfile loaded
[Wed Jan 17 12:01:25 2018][debug] runWithTimeout(): unexpected error: Undefined subroutine &Ocsinventory::Agent::Backend::OS::MacOS::Mem::can_load called at /Applications/OCSNG.app/Contents/Resources//lib/Ocsinventory/Agent/Backend/OS/MacOS/Mem.pm line 6.
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::MacOS::Mem ignored
[Wed Jan 17 12:01:25 2018][debug]  - ifconfig found
[Wed Jan 17 12:01:25 2018][debug]  - Net::IP qw(:PROC) loaded
[Wed Jan 17 12:01:25 2018][debug]  - Mac::SysProfile loaded
[Wed Jan 17 12:01:25 2018][debug]  - Mac::SysProfile loaded
[Wed Jan 17 12:01:25 2018][debug]  - Mac::SysProfile loaded
[Wed Jan 17 12:01:25 2018][debug]  - Mac::SysProfile loaded
by (600 points)
0 votes
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::OS::Solaris ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Docker ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Jails ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Libvirt ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Lxc ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Parallels ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Qemu ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::SolarisLdoms ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::SolarisZones ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::VirtualBox ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareDesktop ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareESX ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareWorkstation ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Vmsystem ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Xen::XL ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Xen::XM ignored
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::Virtualization::XenCitrixServer ignored
[Wed Jan 17 12:01:25 2018][debug] Running Ocsinventory::Agent::Backend::AccessLog
[Wed Jan 17 12:01:25 2018][debug] Running Ocsinventory::Agent::Backend::DeviceID
[Wed Jan 17 12:01:25 2018][debug] Running Ocsinventory::Agent::Backend::IpDiscover
[Wed Jan 17 12:01:25 2018][debug] Ocsinventory::Agent::Backend::IpDiscover has no run() function -> ignored
[Wed Jan 17 12:01:25 2018][debug] Running Ocsinventory::Agent::Backend::OS::Generic
[Wed Jan 17 12:01:25 2018][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Hostname
[Wed Jan 17 12:01:25 2018][debug]  - Sys::Hostname loaded
[Wed Jan 17 12:01:25 2018][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging
[Wed Jan 17 12:01:25 2018][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging::ByHand
[Wed Jan 17 12:01:25 2018][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Users
[Wed Jan 17 12:01:25 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS
[Wed Jan 17 12:01:25 2018][debug]  - Mac::SysProfile loaded
[Wed Jan 17 12:01:26 2018][debug]  - ioreg found
[Wed Jan 17 12:01:26 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Bios
[Wed Jan 17 12:01:26 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::CPU
[Wed Jan 17 12:01:26 2018][debug] PROCESSORN, PROCESSORS and PROCESSORT shouldn't be set directly anymore. Please use addCPU() method instead.
[Wed Jan 17 12:01:26 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Camera
[Wed Jan 17 12:01:27 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Controllers
[Wed Jan 17 12:01:28 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Domains
[Wed Jan 17 12:01:28 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Drives
[Wed Jan 17 12:01:28 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Hostname
[Wed Jan 17 12:01:28 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::IPv4
[Wed Jan 17 12:01:28 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Networks
[Wed Jan 17 12:01:28 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Packages
[Wed Jan 17 12:01:37 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Printers
[Wed Jan 17 12:01:38 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Slots
[Wed Jan 17 12:01:38 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Sound
[Wed Jan 17 12:01:38 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Storages
[Wed Jan 17 12:01:39 2018][debug] Running Ocsinventory::Agent::Backend::OS::MacOS::Uptime
[Wed Jan 17 12:01:39 2018][debug] Running Ocsinventory::Agent::Backend::Virtualization::Xen
[Wed Jan 17 12:01:39 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Xen has no run() function -> ignored
[Wed Jan 17 12:01:39 2018][debug] Section SOFTWARES has changed since last inventory
[Wed Jan 17 12:01:39 2018][debug] Section CONTROLLERS has changed since last inventory
[Wed Jan 17 12:01:39 2018][debug] Section NETWORKS has changed since last inventory
[Wed Jan 17 12:01:39 2018][debug] Section HARDWARE has changed since last inventory
[Wed Jan 17 12:01:39 2018][debug] sending XML
[Wed Jan 17 12:01:39 2018][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <CONTENT>
    <ACCOUNTINFO>
      <KEYNAME>TAG</KEYNAME>
      <KEYVALUE>Mac client</KEYVALUE>
    </ACCOUNTINFO>
    <BIOS>
      <BVERSION>MBP142.0167.B00</BVERSION>
      <SMANUFACTURER>Apple Inc</SMANUFACTURER>
      <SMODEL>MacBookPro14,2</SMODEL>

Then a lot of tags....

<QUERY>INVENTORY</QUERY>
</REQUEST>
[Wed Jan 17 12:01:39 2018][debug] =BEGIN=SERVER RET======
[Wed Jan 17 12:01:39 2018][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
  <RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>
';
[Wed Jan 17 12:01:39 2018][debug] =END=SERVER RET======

Do you need all the tags also?
by (600 points)
0 votes
Hi,

Install this module Parse::EDID available from CPAN. There is a bug in the file Mem.pm. Search this file, apply this correction https://github.com/OCSInventory-NG/UnixAgent/pull/82/files

Regards

Frank
by (90.2k points)
0 votes
Thanks Frank,

Sorry for the extreme respons time. Got pulled of this to another project, but now im back
by (600 points)
0 votes

Hi Frank,

So regarding module Parse::EDID, on server or agent? 

by (600 points)
 
Powered by Question2Answer
...