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

Answered: New build for the 2.7.0.0 Windows Agent

$
0
0
Hi 7octal,

The scipt you had used please for depoloying ocs windows agent 2.6 by GPO?

Thanks

Answered: Utorrent Software can't show in software inventory

$
0
0
Hi,

Installation of this software is correct ? as usual ? Do you find it in Control Panel / Applications ?

Regards

Frank

Echec deploiement agent ocs par GPO

$
0
0

Bonjour,

Je viens d'installer le serveur OCS 2.7 sur une machine ubuntu 20.04 en mode https.

J'ai déployé l'agent ocs 2.7 manuellement sur quelques postes Windows. La solution fonctionne parfaitement.

Comme j'ai un parc composé d'environ 3500 postes, j'ai voulu automatisé l'installation de l'agent ocs par GPO, sachant que les utilisateurs ont des droits restreints sur leurs postes (pas droit d'installer des programmes).  voila ce que j ai fait comme manip:

- j'ai crée ocspakage.exe et le l'ai publié sur  le serveur OCS avec la configuration suivante

/S /NP /DEBUG=2 /NOTAG /SSL=1 /server=https://IP_Server/ocsinventory /NOSPLAH /NO_SYSTRAY  /NOW

 *Emails are not allowed*ine, compte qui appartient au groupe "Administrateurs" local des postes

- J'ai crée une GPO sur l'OU contenant des ordinateurs de lamanière suivante:

Dans "Configuration ordinateur/stratégies/paramètres Windows/scripts/démarrage", j'ai indiquer ocslogon.exe que j'ai renomé en IP_server.exe avec syntaxe :

/pakager /GPO /deploy=2.7.0.0 /server=https://ip_server/ocsinventory

Quand je fait un gpupdate /force sur un poste, l'agent ne s'installe pas

Je ne sais pas d'où vient le problème:

- ocslogon.exe fonctionne toujours avec la nouvelle version de OCS?

- le fait que l'utilisateur n'est pas admin de son poste pose problème ?

J'ai executé ocspakage.exe sur un poste aprés avoir saisir un compte admin, l'agent s'install correctement.

I need Help

Thanks

<!--[if gte mso 9]> <![endif]--><!--[if gte mso 9]> Normal 0 21 false false false FR X-NONE AR-SA <![endif]--><!--[if gte mso 9]> <![endif]--><!--[if gte mso 10]>

<![endif]-->

The TAG update how does it work?

$
0
0
Hi,

The TAG update how does it work?

I set this on the server: OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT = 1

I have a workstation. I install an agent with TAG: OLD. The 'OLD' TAG is displayed on the web interface.

I am uninstalling the existing agent. I am installing another one. Its  TAG: NEW. The TAG is not updated on the web interface. I tried to force. I deleted the machine from the database. Unfortunately, the old tag reappeared.

Server: 2.6, Agent: 2.6.0.1

Please, help me!

Not sub network scan.

$
0
0

Conf: cat /etc/ocsinventory/ocsinventory-agent.cfg

ssl=1

ca=/etc/ssl/certs/ca.pem

basevardir=/var/lib/ocsinventory-agent

debug=1

server=https://ocs.xxxx.com.br/ocsinventory/

tag=TI

logger=Stderr

logfile=/var/log/ocsinventory-agent/ocsinventory-agent.log

SNMP_SWITCH=ON

SNMP_NETWORK=192.168.5.0/24 , 192.168.21.0/27

log ocs agent 
[Mon May 11 15:22:41 2020][debug] =END=SERVER RET======
[Mon May 11 15:22:41 2020][debug] Calling handlers : `end_handler'
[Mon May 11 15:22:41 2020][debug] [snmp] Calling snmp_end_handler
[Mon May 11 15:22:41 2020][debug] [snmp] Snmp: Scanning network
[Mon May 11 15:22:41 2020][debug] [snmp] Snmp: Ending Scanning network
[Mon May 11 15:22:41 2020][debug] [snmp] Scanning 172.16.1.86 device
[Mon May 11 15:23:05 2020][debug] [snmp] Failure in scanning Device 172.16.1.86: no snmp communication
[Mon May 11 15:23:05 2020][debug] [snmp] Scanning 172.16.1.24 device
[Mon May 11 15:23:29 2020][debug] [snmp] Failure in scanning Device 172.16.1.24: no snmp communication
[Mon May 11 15:23:29 2020][debug] [snmp] Scanning 172.16.1.70 device
[Mon May 11 15:23:53 2020][debug] [snmp] Failure in scanning Device 172.16.1.70: no snmp communication
[Mon May 11 15:23:53 2020][debug] [snmp] Scanning 172.16.1.53 device
[root@ocs ~]# ocsinventory-agent -V
Ocsinventory unified agent for UNIX, Linux and MacOSX (2.4.2)
Even with the subnet registered manually, the Agent cannot scan the network in question 192.168.21.0/27

Answered: not in GZIP format

$
0
0
Hello, I have installed an agent on the Nefos phone. When I submit inventory data, I get a message on my phone - not in GZIP format, and no data is being sent. How to fix it? Thank!

not in GZIP format android

$
0
0

Hello, I have installed an agent on the Nefos phone. When I submit inventory data, I get a message on my phone - not in GZIP format, and no data is being sent. How to fix it? Thank!

Answered: ssl no longer working for my ubuntu agents

$
0
0

I incorrectly though that the connection issue is related to the error in Deb.pm. Why do some of my Debian devices have connection issues with:

[Mon May  4 09:23:01 2020][error] Cannot establish communication : 500 Can't connect to server.example.com:443 
(LWP::Protocol::https::Socket: SSL connect attempt failed because
 of handshake problems error:14004410:SSL 
routines:CONNECT_CR_SRVR_HELLO:sslv3 alert handshake failure

OCS agent without installing

$
0
0
Hi - Can we copy the ocs inventory agent package on any host, run it without installing it to send just the report to server?

I tried the below command after copying the unix agent,
#./ocsinventory-agent -s http://ocsinvserver.example.com/ocsinventory --basevardir=/var/lib/ocsinventory-agent

and got the below error

Failed to load Ocsinventory::Agent, Can't locate Ocsinventory/Agent.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 1) line 1.

BEGIN failed--compilation aborted at (eval 1) line 1.

Any help is greatly appreciable!

Thanks

you can run the agent directly for its source directory with --devlib

Answered: The TAG update how does it work?

$
0
0
I also experienced this on server v2.7. Step by step:

- install new machine, for example TAG: cat

- I will reboot after installation

- OCS Inventory web dashboard displays TAG: cat

- I am uninstall OCS agent and I am install new OCS agent with new TAG: dog

- admininfo.conf contains the TAG well (dog).

- reboot machine

- The old TAG is still visible on the console. The admininfo.conf has been rewritten to the old TAG (cat). Why???

- If I rewrite it after that, it will be rewritten everywhere.

Please help me!

Android agent reads a wrong mac address

$
0
0
The problem is that MAC addresses informed by all android devices are wrong. It's the same mac for all devices: 02:00:00:00:00:00

When I check in the device agent, the address is wrong too.

Thank you for any help you can give me.

How to install an agent on an android phone

$
0
0

Здравствуйте, установил агент на телефон Nefos. Когда я отправляю данные инвентаризации, я получаю сообщение на свой телефон - не в формате GZIP, и никакие данные не отправляются. Как это исправить? Спасибо!

How to install the agent on Android correctly

$
0
0
Hello, I have installed the agent on the Nefos phone. When I submit inventory data, I receive a message on my phone - not in GZIP format, and no data is being sent. How to fix it? Thank!

Erro 1053 in OCS Inventory Agent on Windowns

$
0
0

Good afternoon, after creating the OCS server I installed the OCS Agent on windows, but no information is being captured on the server and when I try to open the OCS Agent it opens a window with error 1053.

Package deployment with Squid Proxy

$
0
0

Hello,

I try to use deployment package with OCS Inventory. It works.

But now I would like to deploy packages with a Squid proxy.

So I've configured my Squid server which work good for internet navigation but when I try to configure it for OCS agent it is not working.

I have this message in access.log squid : 

TCP_DENIED/407 3944 CONNECT myOCSserver.domain.lan:443 - HIER_NONE/- text/html

My ocsinventory.ini is configured like this :

[OCS Inventory Agent]

ComProvider=ComHTTP.dll

Debug=1

Local=

NoSoftware=0

HKCU=0

NoTAG=0

IpDisc=

[HTTP]

Server=https://myOCSserver.domain.lan/ocsinventory

SSL=1

CaBundle=cacert.pem

AuthRequired=0

User=

Pwd=

ProxyType=1

Proxy=mySQUIDserver.domain.lan

ProxyPort=3128

ProxyAuthRequired=1

ProxyUser=*encrypted user*

ProxyPwd=*encrypted password*

[OCS Inventory Service]

PROLOG_FREQ=10

INVENTORY_ON_STARTUP=0

OLD_PROLOG_FREQ=10

TTO_WAIT=180

And I'm not able to send synchronization from agent to OCS server
If I remove proxy setting in the .ini file, synchronization works fine


Agent version vs server version ?

$
0
0
Hi,

In our company, we have a OCS server ver 2.1.2 that i can't manage.

What version of agent can i install on our local Windows machines ? Will the latest 2.7.0.1 work ?

Thanks,

Debian 10 vhost

$
0
0

Greethings,

several years ago a collegue of mine installed OCS in our company. Sadly nobody accualy used it till 3 months. Now i recognized the Version is pretty old and even it's OS is no longer supported.

So i decided to install a new one.

Therefore i've chosen an allready existing Debian 10 Webserver.

My VHost is called "ocs.localdomain.tld".

It's location on the server itself is "/opt/ocs.localdomain.tld/ocsreports"

I wanted to cut off the "/ocsreports"-suffix from the url wich acctually works, i guess.

But my agents aren't able to connect to the server.

Here is a short snippit from it's logfile:


==============================================================================
Starting OCS Inventory NG Agent on Tuesday, May 12, 2020 17:12:38.
AGENT => Running OCS Inventory NG Agent Version 2.6.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.6.0.0
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\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\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.6.0.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <w10x64-2020-03-17-13-02-00> and MACs <D2:D5:53:18:A1:6C> in file <ocsinventory.dat>
    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 <http://ocs.localdomain.tld>
    WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't resolve host name>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============


I thought the "/ocsreports" - suffix could be a problem so i improvised a litle ;)

I created a symbolic link inside the VHosts root directory wich points to itself, so it should work even if it's hardcoded somewhere. And i modified the ini file of the agent itself so that it connects to the "ocsreports" suffix.

And yes the agent log looks better, but it still wont work:


==============================================================================
Starting OCS Inventory NG Agent on Tuesday, May 12, 2020 11:12:38.
AGENT => Running OCS Inventory NG Agent Version 2.6.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.6.0.0
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\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\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.6.0.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <w10x64-2020-03-17-11-02-00> and MACs <D2:D5:53:18:A1:6C> in file <ocsinventory.dat>
    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 <http://ocs.localdomain.tld/ocsreports>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============


Here are some more informations:

ocsinventory.ini


[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=2
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=
http://ocs.localdomain.tld

SSL=0
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
PROLOG_FREQ=10
OLD_PROLOG_FREQ=10
TTO_WAIT=33960
INVENTORY_ON_STARTUP=0


Virtualhost


root@debian:~# ls -lah /opt/ocs.localdomain.tld/
insgesamt 16K
drwxr-xr-x  3 www-data www-data 4,0K Mai 11 15:02 .
drwxr-xr-x  7 www-data www-data 4,0K Mai 11 14:47 ..
drwxr-xr-x 18 www-data www-data 4,0K Mai 11 17:41 ocsreports
root@debian:~# ls -lah /opt/ocs.localdomain.tld/ocsreports/
insgesamt 568K
drwxr-xr-x 18 www-data www-data 4,0K Mai 11 17:41 .
drwxr-xr-x  3 www-data www-data 4,0K Mai 11 15:02 ..
drwxr-xr-x  2 root     www-data 4,0K Mai 11 14:48 ajax
-rwxr-xr-x  1 root     www-data 1,2K Mai 11 14:48 ajax.php
drwxr-xr-x  6 root     www-data 4,0K Mai 11 14:48 backend
-rwxr-xr-x  1 root     www-data  26K Mai 11 14:48 Changes
-rwxr-xr-x  1 root     www-data  430 Mai 11 14:48 composer.json
drwxr-xr-x  4 www-data www-data 4,0K Mai 11 14:48 config
-rwxr-xr-x  1 root     www-data 1,1K Mai 11 14:48 Contributors
drwxr-xr-x  2 root     www-data 4,0K Mai 11 14:48 crontab
drwxr-xr-x  2 root     www-data 4,0K Mai 11 14:48 css
-rw-rw-r--  1 root     www-data  368 Mai 11 16:19 dbconfig.inc.php
drwxr-xr-x  2 root     www-data 4,0K Mai 11 14:48 extensions
-rwxr-xr-x  1 root     www-data 362K Mai 11 14:48 favicon.ico
drwxr-xr-x  3 root     www-data 4,0K Mai 11 14:48 files
drwxr-xr-x  2 root     www-data 4,0K Mai 11 14:48 image
-rwxr-xr-x  1 root     www-data 1,7K Mai 11 14:48 index.php
-rwxr-xr-x  1 root     www-data  21K Mai 11 14:48 ipdiscover-util.pl
drwxr-xr-x  2 root     www-data 4,0K Mai 11 14:48 js
drwxr-xr-x  9 root     www-data 4,0K Mai 11 14:48 libraries
-rwxr-xr-x  1 root     www-data  18K Mai 11 14:48 LICENSE
lrwxrwxrwx  1 root     root        1 Mai 11 17:41 ocsreports -> .
drwxr-xr-x  7 root     www-data 4,0K Mai 11 14:48 plugins
-rwxr-xr-x  1 root     www-data 4,3K Mai 11 14:48 README.md
drwxr-xr-x 24 root     www-data 4,0K Mai 11 14:48 require
drwxr-xr-x  2 root     www-data 4,0K Mai 11 14:48 templates
drwxr-xr-x  3 root     www-data 4,0K Mai 11 14:48 themes
drwxr-xr-x  2 root     www-data 4,0K Mai 11 14:48 tools
-rwxr-xr-x  1 root     www-data 4,8K Mai 11 14:48 update.php
-rwxr-xr-x  1 root     www-data 5,0K Mai 11 14:48 var.php
drwxr-xr-x  6 root     www-data 4,0K Mai 11 14:48 vendor


I don't know why my agents cant connect to my server, anyone got an idea which logfile i could check to solve this issue?

----

n811

Answered: Agent version vs server version ?

$
0
0
no . agent version must be lower or eqal than server version

Answered: Agent version vs server version ?

$
0
0

Thanks sokatra.
I checked in the log file and noticed a #400 error... Searching for that, i found out that it is a version error... Learned it the hard way ! sad

Private/custom MIBs not utilized by Unix agents

$
0
0

Hello,

I´m struggling with OCS Inventory´s SNMP scan of special network devices like APC UPS NMCs, Netgear smart managed switches, WD My Cloud NAS and Mediatrix VoIP Gateways. The elected or dedicated Unix agents obviously do not use the available private/custom MIBs for these devices although „snmpget“ and „snmpwalk“ commands do work as expected.

Server: v2.7,  Debian 10, PHP 7.3.19, Apache 2.4.38, Debian 10 version 10.3.23-MariaDB-0+deb10u1, VMware 15.5 platform

Agents: v2.6.1, Ubuntu 18.04.5 LTS on VMware 15.5 platform and Raspbian GNU/Linux 10 (Raspberry Pi OS Lite Linux Kernel 5.4.51) on Raspberry Pi ARMv6 platform

Those devices appear in agent´s debug log as:
[time-stamp][debug] [snmp] Scanning <IP-Address> device
[time-stamp][debug] [snmp] Launching Default
[time-stamp][debug] [snmp] Running Default MIB module
[time-stamp][debug] [snmp] Launching If_Mib
[time-stamp][debug] [snmp] Running If MIB module

The server´s SNMP inventory does contain these devices but with very poor information only (basically network interfaces and in case of NAS some drive and memory information too).

Interestingly our RICOH printer devices appear in agent´s debug log as:
[time-stamp][debug] [snmp] Scanning <IP-Address> device
[time-stamp][debug] [snmp] Launching Default
[time-stamp][debug] [snmp] Running Default MIB module
[time-stamp][debug] [snmp] Launching If_Mib
[time-stamp][debug] [snmp] Running If MIB module
[time-stamp][debug] [snmp] Launching Host_Resources_Mib
[time-stamp][debug] [snmp] Running Host Resources MIB module
[time-stamp][debug] [snmp] Launching Printer_Mib
[time-stamp][debug] [snmp] Running Printer MIB module

These devices show up with some more information in the server´s SNMP inventory.

I´ve tried to setup some SNMP types and labels in the SNMP configuration using the private/custom MIBs but that doesn´t have any effect. It seems to me that I don´t understand OCS Inventory´s  functionality right (yes I read the documentation thoroughly more than once!).

Is there any more detailed documentation about the SNMP functionality? Probably some working examples? Where´s my fault? 

Thanks a lot!

PS:
Agent console errors (debug mode):

pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
Argument "" isn't numeric in multiplication (*) at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm line 62.  
(<--- Yes I read post #12017 but still there on interactively installed agents with corrected Deb.pm ...)
Use of uninitialized value in subroutine entry at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 342.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 459.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 463.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 464.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 465.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 466.
Use of uninitialized value $system_oid in concatenation (.) or string at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 470.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 496.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 540.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 542.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 543.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 548.
Use of uninitialized value $system_oid in concatenation (.) or string at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 549.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 548.
Use of uninitialized value $system_oid in concatenation (.) or string at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 549.
Use of uninitialized value $system_oid in hash element at /usr/local/share/perl/5.28.1/Ocsinventory/Agent/Modules/Snmp.pm line 573.

Viewing all 4573 articles
Browse latest View live


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