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

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

Problem ocs agent in Ubuntu in non-interactive

Hi to everyone

I am trying to install OCS agents in Ubuntu machines in a non-interactive way to do it in an automatic process. I have followed the indications shown on the official website http://wiki.ocsinventory-ng.org/03.Basic-documentation/Setting-up-the-UNIX-agent-using-repository-on-client-computers/

I have downloaded the compressed package in the corresponding version, I have unzipped it, I have changed permissions just in case, and I have executed the following command to do the process non-interactively with the following parameters

# sudo env PERL_AUTOINSTALL = 1 perl Makefile.PL && make && make install && perl postinstl.pl --nowizard --server = http: //ocs-server.domain.com/ocsinventory --crontab --logfile = / var / log / ocs-inventory-agent.log --tag = "Ubuntu_Servers" --now

And after launching it, I get the following error, that the postinstl.pl file cannot be opened.

cp ocsinventory-agent blib / script / ocsinventory-agent "/ usr / bin / perl" "-Iinc" -MExtUtils :: MY -e 'MY-> fixin (shift)' - blib / script / ocsinventory-agent Manifying 1 pod document Manifying 6 pod documents Manifying 1 pod document Manifying 6 pod documents Appending installation info to /usr/local/lib/x86_64-linux-gnu/perl/5.30.0/perllocal.pod [! -f run-postinst] || / usr / bin / perl postinst.pl Can't open perl script "postinstl.pl": No such file or directory

I check that this file is inside the decompressed one and with the correct permissions. That could be happening?

Thanks in advanced!
in OCS Inventory NG agent for Unix by (180 points)

1 Answer

0 votes

Set postinst.pl and not postinstl.pl your command.

by (88.2k points)
Powered by Question2Answer