User Tools

Site Tools


aix:install_glpi_agent

This is an old revision of the document!


Install GLPI agent with perl modules

# ./glpi-inventory > ${HOSTNAME}.xml
[info] New inventory from vm-aix72-2022-11-15-11-49-43 for local0

# oslevel -s
7200-05-04-2219

Need a gcc compiler or IBM xlC

From Toolbox

  • Install wget, expat (dependency with perl package)
  • Install GNU tar, required for untar for cpanm (do not replace AIX tar, use better a PATH including first this binary, AIX tar is required for boot process)
  • Install GNU CC 8
  • Install Perl from Toolbox, set also the PATH variable to version Toolbox

/usr/bin/perl → /opt/freeware/bin/perl5.34.1

  • Add /opt/freeware/bin into PATH (/etc/environnement)

Download CPANM

  • wget [site cpanmin.us] > /opt/freeware/bin/cpanm + chmod 755 /opt/freeware/bin/cpanm

https://github.com/glpi-project/glpi-agent/blob/develop/README.md

Download GLPI Agent from source GLPI
Follow the procedure for FusionInventory (install from sources)

Pour les dépendances Perl, le mieux est de désactiver les tests (cela ira plus vite) donc depuis le répertoire des sources :

root@vm-aix72:/tmp/glpi-agent-1.4$ cpanm -n .
(now you have time ... many minutes)

Ensuite les :

perl Makefile.PL
make && make install

Reste à voir si cela se bundle bien en binaire et si cela va fonctionner sur des vrai LPAR AIX 7.2

aix/install_glpi_agent.1699810859.txt.gz · Last modified: 2023/11/12 18:40 by manu