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

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

Deployment and Execution on Linux Clients

Hello,

According to the documentation, package deployment and script execution have only been tested with the OCS Inventory NG Agent for Windows service. It also states that using the login script method may cause issues, such as blocking due to background downloads and lack of administrative privileges.

Given this limitation for Windows clients, I would like to ask:

Is the package deployment and script execution feature fully supported and functional on Linux clients? Are there any known issues or special considerations when using this feature on Linux systems?

Thank you in advance.

Best regards,
Will
ago in OCS Inventory NG agent for Unix by (360 points)

2 Answers

+1 vote
I haven't tried it with Linux, but it shouldn't be a problem.
Package deployment and script execution are supported and functional on Linux clients,
but the agent must be installed locally (or via automation tools) and run with root privileges for most deployment tasks.

https://wiki.ocsinventory-ng.org/05.Deployment/Introduction/

https://wiki.ocsinventory-ng.org/05.Deployment/Linux/Summary/
ago by (25.3k points)
edited ago by
0 votes
Perfect.

I've noticed that on Linux, specifically on Ubuntu 22.04 and 24.04, I can only perform the deploy as root. If I try using sudo, I get errors like the one below:

$ sudo ocsinventory-agent -i -f

[Wed Jun  4 13:32:49 2025][debug] =END=SERVER RET======
[Wed Jun  4 13:32:49 2025][debug] Calling handlers : `end_handler'
[Wed Jun  4 13:32:49 2025][debug] [snmpscan] Calling snmp_end_handler
[Wed Jun  4 13:32:49 2025][debug] [download] Calling download_end_handler
[Wed Jun  4 13:32:49 2025][info] [download] Beginning work. I am 3701.
[Wed Jun  4 13:32:49 2025][debug] [download] Checking timeout for 1748455030... OK
[Wed Jun  4 13:32:49 2025][debug] [download] New period. Nb of cycles: 10
[Wed Jun  4 13:32:49 2025][debug] [download] Now pausing for a cycle latency => 2 seconds
[Wed Jun  4 13:32:51 2025][debug] [download] Now pausing for a cycle latency => 2 seconds
[Wed Jun  4 13:32:53 2025][debug] [download] Now pausing for a cycle latency => 2 seconds
[Wed Jun  4 13:32:55 2025][debug] [download] Now pausing for a cycle latency => 2 seconds
[Wed Jun  4 13:32:57 2025][debug] [download] Downloading 1748455030-1
...
[Wed Jun  4 13:32:58 2025][debug] Success downloading 1748455030-1 file...
[Wed Jun  4 13:32:58 2025][debug] [download] Now pausing for a fragment latency => 2 seconds
[Wed Jun  4 13:33:00 2025][debug] [download] Now pausing for a cycle latency => 2 seconds
[Wed Jun  4 13:33:02 2025][debug] [download] Now pausing for a cycle latency => 2 seconds
[Wed Jun  4 13:33:04 2025][debug] [download] Now pausing for a cycle latency => 2 seconds
[Wed Jun  4 13:33:06 2025][debug] [download] Now pausing for a cycle latency => 2 seconds
[Wed Jun  4 13:33:08 2025][debug] [download] Now pausing for a cycle latency => 2 seconds
[Wed Jun  4 13:33:10 2025][debug] [download] Download of 1748455030... Finished.
[Wed Jun  4 13:33:10 2025][debug] [download] Execute orders for package 1748455030.
[Wed Jun  4 13:33:10 2025][info] [download] Building package for 1748455030.
[Wed Jun  4 13:33:10 2025][info] [download] Checking signature for ./1748455030/tmp/build.tar.gz.
[Wed Jun  4 13:33:10 2025][debug] [download] Digest format: Hexadecimal
[Wed Jun  4 13:33:10 2025][debug] [download] Digest algo: MD5
[Wed Jun  4 13:33:10 2025][debug] [download] Digest OK...
[Wed Jun  4 13:33:10 2025][error] [download] Cannot extract 1748455030 with tar, trying with unzip.
[Wed Jun  4 13:33:10 2025][error] [download] Cannot extract 1748455030 with unzip.
[Wed Jun  4 13:33:10 2025][debug] [download] Sending message for 1748455030, code=ERR_BUILD.
[Wed Jun  4 13:33:10 2025][info] [download] Cleaning 1748455030 package.
[Wed Jun  4 13:33:10 2025][debug] [download] Now pausing for a fragment latency => 2 seconds
[Wed Jun  4 13:33:12 2025][debug] [download] Now pausing for a cycle latency => 2 seconds
[Wed Jun  4 13:33:15 2025][info] [download] No more package to download.
[Wed Jun  4 13:33:15 2025][debug] [download] End of work...

Is there a specific command to force the agent to deploy a package only, without requiring inventory or network scanning?
ago by (360 points)
 
Powered by Question2Answer
...