The scipt you had used please for depoloying ocs windows agent 2.6 by GPO?
Thanks
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]-->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
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!
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
Здравствуйте, установил агент на телефон Nefos. Когда я отправляю данные инвентаризации, я получаю сообщение на свой телефон - не в формате GZIP, и никакие данные не отправляются. Как это исправить? Спасибо!
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.
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
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
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 !
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.