Installation OCS Unix Agent 2.1 rc1 sur Linux Debian

Installation d'OCS Unix Agent 2.1 rc1 sur Linux Debian 6.

Publié le 02/10/2013

Ce tutorial vise à mettre en place la solution d'inventaire OCS Unix Agent sur une Debian.

1 - Installation de gcc, linux-header et make

apt-get install gcc make linux-headers-$(uname -r)

2 - Installation des paquets nécessaires

apt-get install dmidecode libxml-simple-perl libcompress-zlib-perl libnet-ip-perl libwww-perl libdigest-md5-perl libnet-ssleay-perl libcrypt-ssleay-perl libnet-snmp-perl libproc-pid-file-perl libproc-daemon-perl net-tools libsys-syslog-perl pciutils smartmontools read-edid nmap 

3 - Installation de l'agent ocs


wget https://launchpad.net/ocsinventory-unix-agent/stable-2.1/2.1rc1/+download/Ocsinventory-Unix-Agent-2.1rc1.tar.gz --no-check-certificate
tar -xvf Ocsinventory-Unix-Agent-2.1rc1.tar.gz
cd Ocsinventory-Unix-Agent-2.1rc1

Installation non-interactive de l'agent :


env PERL_AUTOINSTALL=1 perl Makefile.PL
make
make install

Installation interactive de l'agent :


perl Makefile.PL
make 
make install

Configuration de l'agent :


Do you want to configure the agent
Please enter 'y' or 'n'?> [y] y
Where do you want to write the configuration file?
 0 -> /etc/ocsinventory
 1 -> /usr/local/etc/ocsinventory
 2 -> /etc/ocsinventory-agent
?>  1
Do you want to create the directory /usr/local/etc/ocsinventory?
Please enter 'y' or 'n'?> [y] y
Should the old linux_agent settings be imported ?
Please enter 'y' or 'n'?> [y] n
[info] The config file will be written in /usr/local/etc/ocsinventory/ocsinventory-agent.cfg,
What is the address of your ocs server?>  192.168.0.103
Do you need credential for the server? (You probably don't)
Please enter 'y' or 'n'?> [n] n
Do you want to apply an administrative tag on this machine
Please enter 'y' or 'n'?> [y] y
tag?>  debian test
Do yo want to install the cron task in /etc/cron.d
Please enter 'y' or 'n'?> [y] y
Where do you want the agent to store its files? (You probably don't need to change it)?> [/var/lib/ocsinventory-agent]
Do you want to create the /var/lib/ocsinventory-agent directory?

Please enter 'y' or 'n'?> [y] y
Should I remove the old linux_agent
Please enter 'y' or 'n'?> [n] y
Do you want to activate debug configuration option ?
Please enter 'y' or 'n'?> [y] n
Do you want to use OCS Inventory NG UNix Unified agent log file ?
Please enter 'y' or 'n'?> [y] n
Do you want disable SSL CA verification configuration option (not recommended) ?
Please enter 'y' or 'n'?> [n] y
Do you want to set CA certificate chain file path ?
Please enter 'y' or 'n'?> [y] n
Do you want to use OCS-Inventory software deployment feature?
Please enter 'y' or 'n'?> [y] n
Do you want to use OCS-Inventory SNMP scans feature?
Please enter 'y' or 'n'?> [y] y
Do you want to send an inventory of this machine?
Please enter 'y' or 'n'?> [y] y

Sources :