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

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

How to run .bat

Bonjour,

Je tente désespérément de lancer plusieurs .bat depuis OCS Server.

J'essaie plusieurs moyens, je tape le script manuellement, j'upload le script manuellement, mais rien ne se produit sur le poste client.

Je remarque malgré tout un "success", et je précise que mon script fonctionne en local.

Egalement, la fonction "stockage" fonctionne parfaitement ainsi que "déploiement" de soft.

Quels peuvent être les éléments de blocages ?

----------

Server information

Operating system

  • OS Name :
  • Version :
  • RAM installed :
  • Free RAM :
  • CPU :
  • Distribution :
  • Linux x86_64
  • 4.19.0-21-amd64
  • 7978 MB
  • 6572 MB
  • Intel(R) Xeon(R) Gold 6208U CPU @ 2.90GHz
  • Debian GNU/Linux 10 (buster)

Software

  • PHP Version :
  • Web Server :
  • Database Server :
  • Version OCSReports:
  • 7.3.31
  • Apache/2.4.38 (Debian)
  • Debian 10 version 10.3.36-MariaDB-0+deb10u2
  • 2.10.0

in OCS Inventory NG server for Windows by (380 points)

3 Answers

0 votes
.cmd ? (.bat c'était pour Win98 ?)

NB : j'utilise toujours l'ancienne méthode de package : zip des fichiers + création package lancement .cmd + activation + télédéployement
by (17.9k points)
0 votes

Salut

by (380 points)
0 votes
Voici le détail de mon log :

Starting OCS Inventory Package Download and Setup Tool on Friday, April 28, 2023 11:21:02.
DOWNLOAD => Running OCS Inventory Download Version 2.10.1.0
DOWNLOAD => Using OCS Inventory FrameWork Version 2.10.1.0
DOWNLOAD => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
DOWNLOAD => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.10.1.0>
DOWNLOAD => Starting new period of 10 cycles
    DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
    DOWNLOAD => Verifying package <C:\ProgramData\OCS Inventory NG\Agent\download\1682673538>
DOWNLOAD => Package <1682673538> verified and added to process queue
    DOWNLOAD => Processing packages for cycle 1 on Friday, April 28, 2023 11:21:02
    DOWNLOAD => Pausing for cycle latency (20 seconds)
    DOWNLOAD => Processing packages for cycle 2 on Friday, April 28, 2023 11:21:22
    DOWNLOAD => Pausing for cycle latency (20 seconds)
    DOWNLOAD => Processing packages for cycle 3 on Friday, April 28, 2023 11:21:42
    DOWNLOAD => Pausing for cycle latency (20 seconds)
    DOWNLOAD => Processing packages for cycle 4 on Friday, April 28, 2023 11:22:02
    DOWNLOAD => Pausing for cycle latency (20 seconds)
    DOWNLOAD => Processing packages for cycle 5 on Friday, April 28, 2023 11:22:22
DOWNLOAD => Downloading package fragment <1682673538-1>
    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:\0_OCS\cacert.pem>
    COM SERVER => Sending fileGet request to URL <hidden>
    COM SERVER => fileGet response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
    DOWNLOAD => Pausing for fragment latency (10 seconds)
    DOWNLOAD => Pausing for cycle latency (20 seconds)
    DOWNLOAD => Processing packages for cycle 6 on Friday, April 28, 2023 11:22:52
    DOWNLOAD => Pausing for cycle latency (20 seconds)
    DOWNLOAD => Processing packages for cycle 7 on Friday, April 28, 2023 11:23:12
    DOWNLOAD => Pausing for cycle latency (20 seconds)
    DOWNLOAD => Processing packages for cycle 8 on Friday, April 28, 2023 11:23:32
    DOWNLOAD => Pausing for cycle latency (20 seconds)
    DOWNLOAD => Processing packages for cycle 9 on Friday, April 28, 2023 11:23:52
    DOWNLOAD => Pausing for cycle latency (20 seconds)
    DOWNLOAD => Processing packages for cycle 10 on Friday, April 28, 2023 11:24:12
DOWNLOAD => Building package <1682673538>
    PACKAGE => Verifying fragment files of package <1682673538>
    PACKAGE => Checking free disk space for package <1682673538>
    PACKAGE => Building ZIP for package <1682673538>
    PACKAGE => Verifying ZIP signature for package <1682673538>
    DOWNLOAD => Package <1682673538> built successfully
    DOWNLOAD => Notifying user for package <1682673538>
    NOTIFY_USER => OcsNotifyUser exit code is 0
DOWNLOAD => Executing action <LAUNCH> for package <1682673538>
    PACKAGE => Launching command <Latest_Dir.bat> for package <1682673538> on <Friday, April 28, 2023 11:24:22>
    PACKAGE => Package <1682673538> successfully launched. Command exit code is <0>. Package return code is <SUCCESS>
    PACKAGE => No post execution command provided for package <1682673538>
DOWNLOAD => Sending result code <SUCCESS> for package <1682673538>
    DID_CHECK => Read DeviceID <hidden-499-2021-08-20-16-58-53> and MACs <B0:7B:25:1A:4A:07> 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:\0_OCS\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <hidden>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
    DOWNLOAD => Result code request successfully sent
    DOWNLOAD => Pausing for fragment latency (10 seconds)
    DOWNLOAD => Pausing for cycle latency (20 seconds)
    DOWNLOAD => Pausing for period latency (1 seconds)
DOWNLOAD => Starting new period of 10 cycles
    DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:03:55.
by (380 points)
 
Powered by Question2Answer
...