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

Answered: Agent question

$
0
0
Yes i check !!

################################################################################
#
# OCS Inventory NG Communication Server Perl Module Setup
#
# Copyleft 2006 Pascal DANEK
# Web: http://www.ocsinventory-ng.org
#
# This code is open source and may be copied and modified as long as the source
# code is always made freely available.
# Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
################################################################################

<IfModule mod_perl.c>

  # Which version of mod_perl we are using
  # For mod_perl <= 1.999_21, replace 2 by 1
  # For mod_perl > 1.999_21, replace 2 by 2
  PerlSetEnv OCS_MODPERL_VERSION 2

  # Master Database settings
  # Replace localhost by hostname or ip of MySQL server for WRITE
  PerlSetEnv OCS_DB_HOST localhost
  # Replace 3306 by port where running MySQL server, generally 3306
  PerlSetEnv OCS_DB_PORT 3306
  # Name of database
  PerlSetEnv OCS_DB_NAME ocsweb
  PerlSetEnv OCS_DB_LOCAL ocsweb
  # User allowed to connect to database
  PerlSetEnv OCS_DB_USER ocs
  # Password for user
  PerlSetVar OCS_DB_PWD ocs

Answered: Create OCS windows Agent less them 300kb

$
0
0
Hi

Remote server can accpet upto 1mb size of file.

Operating system installed date

$
0
0
Hi
We need to display operating system installed date in glpi. This date is not captured in ocs agent.

Please let me know how I can get operating system installed date in ocs server and glpi.

Win Agent 2.1.1 TLS 1.1 with OCS Server 2.1.2?

$
0
0
Hi,

We have an OCS Server 2.1.2 (CentOS) and the UNIX Agent and MaCOS Agents can report without problems using TLS 1.1 or 1.2, but I haven´t found how to do it with the Windows Agent. I have downloaded the Windows Agent 2.3 but does not work, can't connect with the server. Is it possible to set up the Windows Agent with TLS 1.1 or 1.2 and report to our OCS Server 2.1.2? Or should we update our server to OCS Server 2.3or higher?

Thanks a lot and great work!!

Deployment doesn't work with OS X agent

$
0
0

[Server]

OCSInventory-Server 2.4.1

CentOS Linux 7 (Core)

  • Linux x86_64 3.10.0-693.2.2.el7.x86_64
  • [Agent]
  • Mac OS : High Sierra 10.13.3
  • Agent : OCS-NG_unified_unix_agent_v2.3.1

[Issue]

Hi,

My Agent for OS X doesn't download the package.

The "Active Status" of the package remains "Notified" for several days. 

Agent for Windows can download the same package with same cacert.pem.

Both Agents for OS X and Windows can upload the inventory information to the server.

Any idea ?

Best Regards,

>>>>>>>>Log for Agent(same characters are Japanese) >>>>>>>>>>>>>>>>>>>

[Wed Jun  6 10:43:47 2018][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.3.1

[Wed Jun  6 10:43:47 2018][debug] Log system initialised (File)

[Wed Jun  6 10:43:47 2018][debug] --scan-homedirs missing. Don't scan user directories

[Wed Jun  6 10:43:48 2018][debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__inventory.cldpbx.com_ocsinventory/ocsinv.adm

[Wed Jun  6 10:43:48 2018][debug] OCS Agent initialised

[Wed Jun  6 10:43:48 2018][debug] Failed to load `/etc/ocsinventory-agent/modules.conf': 0

[Wed Jun  6 10:43:48 2018][debug] No modules will be used.

[Wed Jun  6 10:43:48 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 Jun  6 10:43:48 2018][debug] sending XML

[Wed Jun  6 10:43:48 2018][debug] sending: <?xml version="1.0" encoding="UTF-8"?>

<REQUEST>

  <DEVICEID>hamaguchi-mac-6-2018-06-01-19-16-31</DEVICEID>

  <QUERY>PROLOG</QUERY>

</REQUEST>

[Wed Jun  6 10:44:02 2018][debug] =BEGIN=SERVER RET======

[Wed Jun  6 10:44:02 2018][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>

<REPLY>

  <OPTION>

    <NAME>DOWNLOAD</NAME>

    <PARAM FRAG_LATENCY="10" PERIOD_LATENCY="1" ON="1" TYPE="CONF" CYCLE_LATENCY="60" TIMEOUT="30" PERIOD_LENGTH="10" EXECUTION_TIMEOUT="120" />

    <PARAM ID="1528249165" SCHEDULE="" CERT_FILE="INSTALL_PATH/cacert.pem" TYPE="PACK" INFO_LOC="inventory.cldpbx.com/download" CERT_PATH="INSTALL_PATH" PACK_LOC="inventory.cldpbx.com/download" FORCE="0" POSTCMD="" />

  </OPTION>

  <RESPONSE>SEND</RESPONSE>

  <INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>

  <PROLOG_FREQ>24</PROLOG_FREQ>

</REPLY>

';

[Wed Jun  6 10:44:02 2018][debug] =END=SERVER RET======

Can you help me with my AGENT

$
0
0

I have a debian server with OCS.I install agent (windows 7) and set user(admin) and password.But the agent do not report.I check database everything is look ok.I attach logs .Can you help me PLEASE



ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Wed Jun 06 00:09:20.862397 2018] [mpm_prefork:notice] [pid 4997] AH00163: Apache/2.4.25 (Debian) mod_perl/2.0.10 Perl/v5.24.1 configured -- resuming normal operations
[Wed Jun 06 00:09:20.862504 2018] [core:notice] [pid 4997] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 06 00:09:20.880011 2018] [:error] [pid 7265] avahi_entry_group_add_service_strlst("10.90.1.251") failed: Invalid host name
 

********************************************************
Starting OCS Inventory NG Agent 2.3.1.1 setup on 06/06/2018 at 8:54:00
Checking if setup not already running...OK.
Checking Operating System...OK, Windows 2000 or higher.
Command line is: "C:\Users\aangelov\Desktop\OCSNG-Windows-Agent-2.3.1.1\OCS-NG-Windows-Agent-Setup.exe"
Parsing command line arguments...OK.
Checking for silent mode...Disabled.
Checking for splash screen...Enabled.
Checking if logged in user has Administrator privileges...OK.
Creating directory <C:\ProgramData\OCS Inventory NG\Agent>...
SetACL allowing Users / Power users read/write permissions on <C:\ProgramData\OCS Inventory NG\Agent>...Result: error
SetACL propagating inherited permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: error
Trying to determine if service was previously installed...Yes.
Trying to stop service and kill processes...
Is Service <OCS Inventory Service> running...Yes.
Trying to stop Service <OCS Inventory Service>...Ok
Is Service <OCS Inventory Service> running...No - Waiting 1 second(s) for Service to stop...
Trying to kill process OcsSystray.exe...Result: 0
Trying to kill process OcsSystray.exe...Result: 603
Trying to kill process OcsService.exe...Result: 603
Trying to kill process OCSInventory.exe...Result: 603
Trying to kill process download.exe...Result: 603
Trying to kill process inst32.exe...Result: 603
Waiting 10 seconds for processes to terminate...
Copying new files to directory <C:\Program Files (x86)\OCS Inventory Agent>...
Windows XP or higher detected, installing default cURL library and MS CRT/MFC 9.0...
Copying new files status is ;-)
Writing agent configuration file by launching ocsinventory.exe /SAVE_CONF...Result: 0
Windows Advanced Firewall is not available (Vista or higher). Skip adding custom rules.
Creating startup menu shortCut <C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\OCS Inventory NG Systray.lnk> to start Systray applet...
Checking if service OCS Inventory Service is registered into Windows Service Manager...Yes
Service is installed, so unregistering OCS Inventory Service from Windows Service Manager...Result: 0.
Registering OCS Inventory Service into Windows Service Manager...Result: 0.
Starting OCS Inventory Service...Ok.
SUCCESS: OCS Inventory NG Agent 2.3.1.1 successfully installed on 06/06/2018 at 8:55:48
;-)
 

Answered: Operating system installed date

$
0
0

another way is to let ocs search for this registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate

But you must convert the unix time

for  example

1357790033

Is equivalent to:

01/10/2013

 

All the registry key can be imported by glpi

the advantage is that you can collect many different informations

for example keyboard layout, display language, os language, et cetera from registry, and you can search in glpi for all of this kind of stuff

kind regards

Answered: Create OCS windows Agent less them 300kb

$
0
0
im am interested why this size is stinted on server?

Message 'https' is not supported' - Unix Packager

$
0
0

Hi,

I am utilizing the OCSNG Unix Packager 1.0 (also tried 1.1) to create an Agent package for Ubuntu 16.04.4. The package works when using 'http' to connect to the OCSNG Inventory Server but does not when using 'https' (SSL).


client:~$ sudo /opt/ocsinventory/ocsinventory-agent -s https://OCSNGServer/ocsinventory 
--basevardir=/opt/ocsinventory/var/lib/ocsinventory-agent 

--tag=UbuntuServer --lazy --ca=/opt/ocsinventory/files/cacert.pem


[error] Cannot establish communication : 501 Protocol scheme 'https' is not supported 

(LWP::Protocol::https not installed)

[info] No previous PROLOG_FREQ found - using fallback delay(3600 seconds)

The needed Perl module is included in the Agent Package in '/opt/ocsinventory/perl/lib/5.26.0/URI/https.pm', so what's the problem?

agent message from batch file

Answered: Install Microsoft Office using deployment

$
0
0

the user account under which the ocs agent works DOES have Network access

The account(Local System) act as the computer account on Network - so perhaps you only must give access to everyone or to the computer accounts on the share.

Answered: Can you help me with my AGENT

$
0
0
Please give the OCSInventory.log

You can find it on C:\ProgramData\OCS Inventory NG\Agent\

Win Agent 2.1.1 TLS 1.1 with OCS Server 2.1.2?

$
0
0
Hi,

We have an OCS Server 2.1.2 (CentOS) and the UNIX Agent and MaCOS Agents can report without problems using TLS 1.1 or 1.2, but I haven´t found how to do it with the Windows Agent. I have downloaded the Windows Agent 2.3 but does not work, can't connect with the server. Is it possible to set up the Windows Agent with TLS 1.1 or 1.2 and report to our OCS Server 2.1.2? Or should we update our server to OCS Server 2.3or higher?

Thanks a lot and great work!!

Issue with SNMP scan on remote network

$
0
0
Hello,

I have some troubles configuring SNMP scan for remote network as explained in the documentation: https://wiki.ocsinventory-ng.org/index.php?title=Documentation:SNMP#Configuring_custom_parameters

After following the documentation and running a scan, if I check the logs, the SNMP remote network parameter seems to be OK:

[...]
<PARAM TYPE="NETWORK" SUBNET="10.62.224.0/24" />
[...]

but nothing else in the logs telling me that the SNMP scan is actually done for this specific network (10.62.224.0/24):

[...]

[snmp] Calling snmp_end_handler

[Mon Apr  9 09:59:06 2018][debug] [snmp] Scanning 10.62.208.170 device

[Mon Apr  9 09:59:18 2018][debug] [snmp] Scanning 10.62.208.171 device

[Mon Apr  9 09:59:30 2018][debug] [snmp] Scanning 10.62.208.5 device

[Mon Apr  9 09:59:42 2018][debug] [snmp] Scanning 10.62.208.160 device

[Mon Apr  9 09:59:48 2018][debug] [snmp] Running Linux (8072) MIB module

[Mon Apr  9 09:59:48 2018][debug] [snmp] Running Host Resources MIB module

[Mon Apr  9 09:59:48 2018][debug] [snmp] Scanning 10.62.208.91 device

[Mon Apr  9 10:00:00 2018][debug] [snmp] Scanning 10.62.208.2 device

[Mon Apr  9 10:00:12 2018][debug] [snmp] Scanning 10.62.208.100 device
[...]

Could you please help me solving this problem?

Thanks in advance,

Jonas

Answered: Can you help me with my AGENT

$
0
0
==============================================================================
Starting OCS Inventory NG Agent on Wednesday, June 06, 2018 15:06:21.
AGENT => Running OCS Inventory NG Agent Version 2.3.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.3.1.1
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.3.1.1>
    AGENT => Sending getLabel request
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL with server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending fileGet request to URL <http://10.90.1.251/ocsinventory/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #500>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #500>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <PCBSYS025-2018-05-31-12-55-35> and MACs <50:7B:9D:B0:EE:4300:00:00:00:00:0000:00:00:00:00:0000:00:00:00:00:0000:00:00:00:00:0000:00:00:00:00:00> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL with server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://10.90.1.251/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #500>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Answered: Deployment doesn't work with OS X agent

$
0
0
Hi hamaguchi,

I have the same issue on test platform that we start to use. We have a old version in production environnement that works well (inventory and deployment with Windows and MacOS computer).

In test environnement, we use the same version as you (OCS server 2.4.1 on CentOS 7, Windows 10 with last agent version and MacOS 10.11 with last version agent).

Inventory works for both Windows and Mac computer but download only work with Windows (same cacert.pem but we use the SSL=0 option).

We made test with old version of the Mac Agent (2.0.3) and that gave us this log :

[Thu Jun  7 12:59:58 2018][debug] [download] Making working directory for 1528204141.
[Thu Jun  7 12:59:58 2018][debug] [download] Retrieving info file for 1528204141
[Thu Jun  7 12:59:58 2018][debug] [download] Initialize ssl layer...
[Thu Jun  7 12:59:58 2018][debug] [download] Connect to server: ocsinventory.va.mars/download...
[Thu Jun  7 12:59:58 2018][debug] [download] Starting SSL connection...
[Thu Jun  7 12:59:58 2018][debug] [download] Sending message for 1528204141, code=ERR_DOWNLOAD_INFO.
[Thu Jun  7 12:59:58 2018][error] [download] Error: SSL hanshake has failed

So, we can see that the handshake ssl process does not work and the deployment status goes to ERR_DOWNLOAD_INFO (we use the same cacert.pem).

With the last agent, we do not have any information about this handshake ... We work on this issue.

Do you have more information or solution about this issue ?

Answered: Pb remontée information réseau AIX 7.1

$
0
0
Merci,

J'avais bien déjà installé manuellement le package ifconfig. J'ai finalement résolu mon problème en prenant le .tar.gz sur github. La version sur apt-get était la 2.0.5 qui n'est pas à jour. Et cela fonctionne à présent. Merci.

Answered: Can you help me with my AGENT

Inventory does not work on Windows 10 1709

$
0
0

I use OCS inventory (ocs agent .3.1.1) on many computers with different versions of Windows (Windows 7,8.1, XP, 10 (V10586, V14393 and 15063) and works correctly, the server shows updated inventories.

in Windows 10 1709 (Fall creators update) the inventar does  not appear on the server.
What can it be? Incompatibility with the latest version of Windows 10?  Any suggestions for solving the problem?     
           ..

How to deploy windows agent using vpn

$
0
0
I have a project using OCS Inventory for all our clients in different locations. We have a datacenter that all the virtual machines of all our clients are installed. Don't know how the tools and configuration to done this. Hope someone can help me about this problem. thanks
Viewing all 4573 articles
Browse latest View live


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