Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers in OCS Inventory NG agent
Viewing all 4573 articles
Browse latest View live

Answered: How to get the version of the installed agent

$
0
0
Great! Thanks!

Your solution did the trick!

Agent upgraded but indicates the old version back

$
0
0
Hello,
We have a major issue when we realised that after upgrading many ocs agents from 2.1.1.1 to 2.3.1.1 on Windows 8 so that we communicate with our new ocs server 2.4.1. The upgrade actually went well and we were able to see inventories of all our machines on the ocs server. After a while we started to miss many inventories. We took one machine as an exemple and we found out that the ocsinventory.ini was successfully upgraded but in the log we are seing all our updates on the ocs agent conf except that the logs are indicating the old ocs agent version ! We looked to the service and it is using the old version of the agent as well as all the files under C:\Program Files\OCS Inventory Agent\ indicating old dates so probably those werent updated as well ?
Do you have an idea what happened and how we can fix this?

Thank you so much.

Answered: Agent upgraded but indicates the old version back

$
0
0
Thank you for your reply,
That's exactly the link that i used to update the agent but still we had this issue for some machines. Since we are manipulating a huge number of ocs agents REMOTELY we can't uninstall agents...

how to push agent with ssl certificate

$
0
0
Dear All,

how to configure agent for pushing using certificate, i mean only agent communicated with certificate not browser.

is there any tutorial using ssl on centos 7..?

thanks

Answered: Agent upgraded but indicates the old version back

$
0
0
i created a script long time ago which uses  scheduled tasks to uninstalls the old agent and reinstalls the new agent.

If everything is ok(ocs-inventory service is removed) if you manually uninstall the agent and reinstall the agent that "scheduled tasks" are the way to do it.

Kind regards

Answered: Where is ocslogon.exe in agent release 2.4.0.0 ?

$
0
0

@sip_mw :

"Hey guys,

I had the the same problem but I did compile from the github sources.
Just follow the requirements and compile...

Regards

sip_mw"

==>

Could you explain to me how to compile ?

                       

OCS Inventory agent - iOS

$
0
0
Bonjour,

Une version iOS (iphone) de l'agent est-elle prévue comme celle sortie sur Android ?
Si non, est-ce un choix ?

Merci de votre réponse,

Guillaume

How to install OCS agent in a CentOS server?

$
0
0

Hi guys!

When I download the ocsinventory-agent...rpm, the system says that have some dependecies. Then I download the first one, perl-Ocsinventory-Agent, then ask for perl(XML::Simple), and then  perl-5.10.1-144.el6.x86_64.rpm.

All of these archieves were downloaded but when I try to install the perl-5.10.1-144.el6.x86_64.rpm, the same that perl(:MODULE_COMPAT_5.10.1), it says:

 libgdbm.so.2()(64bit) are requered by perl-4:5.10.1-144.el6.x86_64
        perl-libs = 4:5.10.1-144.el6 are requered by perl-4:5.10.1-144.el6.x86_64
        perl < 4:5.16.1-234 conflits with (installed) perl-podlators-2.5.1-3.el7.noarch

Somebody have other manner to install the ocsagent in a CentOS?


Answered: Probleme de numéro de serie sur machine HP

$
0
0
la suite:

================= TRACE STOP ===============
AGENT => Prolog successfully sent
    AGENT => Prolog Frequency set to 24 hour(s)
    AGENT => Inventory on startup option set to 1
AGENT => Inventory required
AGENT => Launching hardware and software checks
    INVENTORY => Loading Download history
    INVENTORY => Logged on user ID is <admin.vcharrier>
    INVENTORY => Operating System is <Microsoft Windows Server 2012 Standard Edition 6.2.9200 >, description <>
    INVENTORY => Operating System uses 32 bits memory address width
    WARNING *** INVENTORY => Failed to retrieve computer domain or workgroup
    WARNING *** INVENTORY => Failed to retrieve user domain
    INVENTORY => System Manufacturer <HP>, System Model <ProLiant DL360p Gen8>, System S/N <ProLiant>, Bios Manufacturer <>, Bios Date <09/18/2013>, Bios Version <P71>, Motherboard Manufacturer <>, Motherboard Model <>, Motherboard S/N <>
    INVENTORY => 8 processor(s) Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz [1 core(s) x86] at 2394 MHz
    INVENTORY => OS Memory 32733 MB, OS Swap size 44525 MB
    WARNING *** INVENTORY => Failed to retrieve memory slots
    INVENTORY => 4 input device(s) found
    INVENTORY => 1 system port(s) found
    WARNING *** INVENTORY => Failed to retrieve system slots
    INVENTORY => 8 system controller(s) found
    INVENTORY => 2 storage peripheral(s) found
    WARNING *** INVENTORY => Failed to retrieve sound devices
    WARNING *** INVENTORY => Failed to retrieve modems
    INVENTORY => 2 network adapter(s) found
    INVENTORY => 1 system printer(s) found
    INVENTORY => 1 video adapter(s) found
    INVENTORY => 1 system monitor(s) found
    INVENTORY => Default IPv4 address is <10.10.129.57>
    INVENTORY => Registered company <>, registered owner <Windows User>, Product ID <00252-60...>
    INVENTORY => Product key <NBBBB-BB...>
    INVENTORY => 30 software found
    WARNING *** INVENTORY => Failed to retrieve computer/VM UUID
    INVENTORY => Computer seems to be Microsoft virtual host
    INVENTORY => Reading last inventory state
    WARNING *** INVENTORY => Failed to load/parse inventory state from file <C:\ProgramData\OCS Inventory NG\Agent\last_state>
    WARNING *** INVENTORY => Failed to load/parse plugin state from file <C:\ProgramData\OCS Inventory NG\Agent\last_state>
    EXECUTABLE PLUGIN => Searching for VBS script(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    EXECUTABLE PLUGIN => Searching for PS1 script(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
AGENT => Sending Inventory
    INVENTORY => Checking last inventory state
    INVENTORY => Hardware inventory state changed
    INVENTORY => Bios inventory state changed
    INVENTORY => System controllers inventory state changed
    INVENTORY => Monitors inventory state changed
    INVENTORY => System ports inventory state changed
    INVENTORY => Storage peripherals inventory state changed
    INVENTORY => Logical drives inventory state changed
    INVENTORY => Input peripherals inventory state changed
    INVENTORY => Network adapters inventory state changed
    INVENTORY => Printers inventory state changed
    INVENTORY => Video adapters inventory state changed
    INVENTORY => Software inventory state changed
    INVENTORY => CPU inventory state changed
INVENTORY => Inventory changed since last run
    INVENTORY => Generating XML document with Device properties
    INVENTORY => XML Update BIOS
    INVENTORY => XML Update 8 CPU(s)
    INVENTORY => XML Update 0 Memory Slot(s)
    INVENTORY => XML Update 4 Input Device(s)
    INVENTORY => XML Update 1 System Port(s)
    INVENTORY => XML Update 8 System Controller(s)
    INVENTORY => XML Update 0 System Slot(s)
    INVENTORY => XML Update 0 Sound Device(s)
    INVENTORY => XML Update 2 Storage Peripheral(s)
    INVENTORY => XML Update 2 Logical Drive(s)
    INVENTORY => XML Update 0 Modem(s)
    INVENTORY => XML Update 2 Network Adapter(s)
    INVENTORY => XML Update 1 Video Adapter(s)
    INVENTORY => XML Update 1 Monitor(s)
    INVENTORY => XML Update 1 Printer(s)
    INVENTORY => XML Update 31 Software
    INVENTORY => XML Update 0 Registry Value(s)
    INVENTORY => XML Update Administrative Information(s)
    INVENTORY => XML Update common Device properties
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending HTTP Post request to URL <https://ocsinventory.domain.biz/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============
<?xml version='1.0' encoding='UTF-8'?>
<REPLY>
  <RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>

================= TRACE STOP ===============
AGENT => Inventory successfully sent
    INVENTORY => Writing new inventory state
AGENT =>  Communication Server asked for Package Download
    DOWNLOAD => Package history file successfully cleaned for duplicate IDs
    DOWNLOAD => Download disabled by server
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

CentOS 7.6 OCS agent 2.6.0 errors after updates;

$
0
0

I noticed my centos servers havent updated since April, so i went on to test the agent and im getting perl errors on all of my servers

 more /etc/centos-release

CentOS Linux release 7.6.1810 (Core)

/usr/sbin/ocsinventory-agent

Use of uninitialized value $password in concatenation (.) or string at /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Network.pm line 52.

any help would be appreciated with this, my ocs inventory server doesnt require a password .. at least it was working a few months ago .. my ubuntu servers work fine;

Ocslogon for Ocs inventory agent 2.4

$
0
0
hello
I am looking for ocslogon for ocs inventory agent 2.4 or a script that allows to launch the ocspakage generated via GPO.

with version ocs agent 2.1 everything works fine but with ocs agent 2.4 the generated package does not run with ocslogon.

a script please

Answered: Compatibility Agent 2.0.5 with Server 2.6?

$
0
0
yes the client in version 2.0.5 is compatible - only some advanced deployment features doesn't work with 2.05

PS: it is always possible to use an old client version and a new ocs-inventory server

kind regards

 sokatra

Answered: CentOS 7.6 OCS agent 2.6.0 errors after updates;

$
0
0
Have you try to install the agent with the RPM ?

Query with Database

$
0
0
Hi,

I have installed plugins in my OCS Inventory Server but i am unaware about where does it reflects..?!

and also i need to know the up time and down time of my applications running on agents in the server console..

Thanks in advance.

Answered: Compatibility Agent 2.0.5 with Server 2.6?

$
0
0
Thank you Sokatra for your response.

We'll proceed with OCS Invenrorty 2.6 installation.

How to detect virtual machine (VM)?

$
0
0

Hi,

TLDR

I am looking for information about a way to detect the virtual machines that are installed on hosts that run an agent (linux and windows).

Context

I have a few hosts (Windows and Linux) where I have installed OCS agent. All my hosts runs virtual machine (Windows and/or Linux) on a hypervisor (VirtualBox for linux and some Windows host, Hyper-V for windows host).

All my hosts are able to report to my OCS server, but there is a problem. They do not report about the fact that they host virtual machine.

Question

I am wandering if there is a way to discover virtual machine. If so, how to discover virtual machines?

Search

I've found in the source code of agents (windows and linux) that there is a module that scan for VMs. I haven't found the way to run that module. Maybe it is always launch?


Thanks

Answered: Ocsagent 2.4.2 shows no OS version in Ubuntu 18.04

$
0
0

Hi,

I have a related question.

OCS server version :

  • PHP Version : 7.3.4
  • Web Server : Apache/2.4.38 (Debian)
  • Database Server : Debian 10 version 10.3.15-MariaDB-1
  • Version OCSReports: 2.6RC

System is :

Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

Client package version is :

ii  ocsinventory-agent                   2:2.4.2-3                     amd64        Hardware and software inventory tool (client)

With clients previous to the one packaged in Debian 10, the ocsinventory-agent seemed to report the "description" line of lsb_release, and the running kernel version in the version field.

With the new client (based on 2.4.2), it reports only Debian, and the version number.

In the line saying "Debian GNU/Linux 10 (buster)", I changed the file /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Linux/Distro/LSB.pm to call "lsb_release -ds" instead of "lsb_release -is" in order to get the description.

Question is, why has this change happened ? Would it be possible to keep a similar behaviour to what was existing in older clients, so that the information displayed remains consistent?

Regards,

Stephane

No hard disk information

$
0
0
I was using agent version 2.4, but I had some information missing. There was no information about the HD, the monitors and software installation date(it was set to zero).

I tried updated the agent to the version 2.6 and the software installation date is correct now :). However, the other information are still missing. Can anyone help me?

Other thing that happened when updating to 2.6 is that now in the hardware section instead of showing 1 processor with 8 logical CPUs, is showing 8 processors with 0 logical CPUs.

OS: ubuntu 18.04

Server: 2.6

Agent: 2.6

Here is the ocs_agent.log in a part that shows fail:

obs: I tried installing Parse::EDID and the error remains the same.

[Mon Jul 29 12:33:25 2019][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.6.0
[Mon Jul 29 12:33:25 2019][debug] Log system initialised (File)
[Mon Jul 29 12:33:25 2019][debug] --scan-homedirs missing. Don't scan user directories
[Mon Jul 29 12:33:25 2019][debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__192.168.0.241_ocsinventory/ocsinv.adm
[Mon Jul 29 12:33:25 2019][debug] OCS Agent initialised
[Mon Jul 29 12:33:25 2019][debug] Turns hooks on for /etc/ocsinventory-agent/modules.conf
[Mon Jul 29 12:33:25 2019][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.6.0
[Mon Jul 29 12:33:25 2019][debug] Log system initialised (File)
[Mon Jul 29 12:33:25 2019][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.6.0
[Mon Jul 29 12:33:25 2019][debug] Log system initialised (File)
[Mon Jul 29 12:33:25 2019][debug] Calling handlers : `start_handler'
[Mon Jul 29 12:33:25 2019][debug] [download] Calling download_start_handler
[Mon Jul 29 12:33:25 2019][debug]  - LWP loaded
[Mon Jul 29 12:33:25 2019][debug]  - LWP::Protocol::https loaded
[Mon Jul 29 12:33:25 2019][debug] [snmp] Calling snmp_start_handler
[Mon Jul 29 12:33:25 2019][debug]  - Net::SNMP loaded
[Mon Jul 29 12:33:25 2019][debug] Compress::Zlib is available.
[Mon Jul 29 12:33:25 2019][debug] Calling handlers : `prolog_writer'
[Mon Jul 29 12:33:25 2019][debug] sending XML
[Mon Jul 29 12:33:25 2019][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>joao-desktop-2019-07-29-10-13-25</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>
[Mon Jul 29 12:33:26 2019][debug] =BEGIN=SERVER RET======
[Mon Jul 29 12:33:26 2019][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
  <OPTION>
    <NAME>DOWNLOAD</NAME>
    <PARAM CYCLE_LATENCY="60" FRAG_LATENCY="10" PERIOD_LENGTH="10" EXECUTION_TIMEOUT="120" PERIOD_LATENCY="1" ON="0" TYPE="CONF" TIMEOUT="30" />
  </OPTION>
  <INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>
  <RESPONSE>SEND</RESPONSE>
  <PROLOG_FREQ>24</PROLOG_FREQ>
</REPLY>
';
[Mon Jul 29 12:33:26 2019][debug] =END=SERVER RET======
[Mon Jul 29 12:33:26 2019][debug] PROLOG_FREQ has not changed since last process
[Mon Jul 29 12:33:26 2019][debug] Calling handlers : `prolog_reader'
[Mon Jul 29 12:33:26 2019][debug] [download] Calling download_prolog_reader
[Mon Jul 29 12:33:26 2019][debug] [download] <?xml version='1.0' encoding='UTF-8'?>
<REPLY>
  <OPTION>
    <NAME>DOWNLOAD</NAME>
    <PARAM CYCLE_LATENCY="60" FRAG_LATENCY="10" PERIOD_LENGTH="10" EXECUTION_TIMEOUT="120" PERIOD_LATENCY="1" ON="0" TYPE="CONF" TIMEOUT="30" />
  </OPTION>
  <INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>
  <RESPONSE>SEND</RESPONSE>
  <PROLOG_FREQ>24</PROLOG_FREQ>
</REPLY>
[Mon Jul 29 12:33:26 2019][debug] [download] Writing config file.
[Mon Jul 29 12:33:26 2019][info] [download] Download is off.
[Mon Jul 29 12:33:26 2019][debug] [snmp] Calling snmp_prolog_reader
[Mon Jul 29 12:33:26 2019][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: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/local/share/perl/5.26.1/Ocsinventory/Agent/Backend/OS/MacOS/Video.pm line 4.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.26.1/Ocsinventory/Agent/Backend/OS/MacOS/Video.pm line 4.
Compilation failed in require at (eval 133) line 1.
BEGIN failed--compilation aborted at (eval 133) line 1.
[Mon Jul 29 12:33:26 2019][debug] Failed to load Ocsinventory::Agent::Backend::OS::Generic::Screen: Can't locate Parse/EDID.pm in @INC (you may need to install the Parse::EDID module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/local/share/perl/5.26.1/Ocsinventory/Agent/Backend/OS/Generic/Screen.pm line 5.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.26.1/Ocsinventory/Agent/Backend/OS/Generic/Screen.pm line 5.
Compilation failed in require at (eval 214) line 1.
BEGIN failed--compilation aborted at (eval 214) line 1.

Search a specific Registry in Windows

$
0
0
Hi guys,

I have a demand for to know who is Administrator users on my lan! Could I know it with OCS, setting it to search a specific register?

Problem with agent 2.6 start

$
0
0

Hi 

I wonder if you could help with the error below, which has appeared recently when trying to start an agent on the multiple hosts (after first installation):

# ocsinventory-agent 

Use of uninitialized value $password in concatenation (.) or string at /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Network.pm line 52.

We have been using ocsinventory software for quite a while and have been deploying it on different servers, however recently we noticed this error during the agent first startup. To be specific it affects version 2.6, as when downgraded to 2.4 it seemed to work

# rpm -qa | grep ocsinventory-agent

ocsinventory-agent-2.6.0-1.el7.ocs.x86_64

ocsinventory-agent-core-2.6.0-1.el7.ocs.x86_64

In this case it affects OS below:

# cat /etc/redhat-release 

Red Hat Enterprise Linux Server release 7.6 (Maipo)

3.10.0-957.27.2.el7.x86_64

I've seen similar posts, but didn't find any resolution. Would you  please be able to help?

Regards

Michal

Viewing all 4573 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>