OCS Inventory en Debian Lenny (AGENTE)

Posted by Unknown | Posted on 16:13

El agente de ocsinventory se encarga de enviar la información de nuestro equipo al servidor ocs donde sera almacenado.
Para la instalación lo primero que debemos realizar es bajarnos el archivo del agente de la pagina de ocs inventory. http://www.ocsinventory-ng.org.
 #wget -c http://launchpad.net/ocsinventory-unix-agent/stable/ocsinventory-unix-agent-1.1.2/+download/Ocsinventory-Agent-1.1.2.tar.gz

Instalamos los paquetes necesarios para la instalacion del agente.
 #aptitude install libxml-simple-perl libcompress-zlib-perl libnet-ip-perl libwww-perl libdigest-md5-perl libnet-ssleay-perl build-essential

Luego de instalar los paquetes descomprimimos el archivo del agente.
 #tar xvzf Ocsinventory-Agent-1.1.2.tar.gz

Ingresamos en la carpeta
 #cd Ocsinventory-Agent-1.1.2

Ahora ejecutamos un script de perl  Makefile.PL
 #perl Makefile.PL

Luego compilamos e instalamos
 #make
 #make install
Writing /usr/local/lib/perl/5.10.0/auto/Ocsinventory/Agent/.packlist
Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod
[ ! -f run-postinst ] || /usr/bin/perl postinst.pl
Do you want to configure the agent
Please enter 'y' or 'n'?> [y] presionamos enter
Config file found are /etc/ocsinventory/ocsinventory-agent.cfg! Reusing it.
[info] The config file will be written in /etc/ocsinventory/ocsinventory-agent.cfg,
What is the address of your ocs server?> [ocsinventory-ng]colocamos la direccion ip del servidor ocs 
 Do you need credential for the server? (You probably don't)
Please enter 'y' or 'n'?> [n]presionamos enter
Do you want to apply an administrative tag on this machine
Please enter 'y' or 'n'?> [y]
tag?>colocamos alguna etiqueta de identificacion del equipo
ocsinventory agent presents: /usr/local/bin/ocsinventory-agent
Do yo want to install the cron task in /etc/cron.d
Please enter 'y' or 'n'?> [y] presionamos enter
Where do you want the agent to store its files? (You probably don't need to change it)?> [/var/lib/ocsinventory-agent]
New settings written! Thank you for using OCS Inventory
Should I remove the old linux_agent
Please enter 'y' or 'n'?> [n] presionamos enter
Do you want to use OCS-Inventory software deployment feature?
Please enter 'y' or 'n'?> [y] presionamos enter
Do you want to send an inventory of this machine?
Please enter 'y' or 'n'?> [y] presionamos enter
hostname: Unknown host
hostname: Unknown host
   -> Success!

Listo ya envío la información al servidor ahora podemos ingresar a la consola web del servidor para observar la información del equipo.

Comments (3)

Espero sus comentarios Saludos....

Dentro del listado de los paquetes para instalar se debe cambiar el "libcompress-zlib-perl" por "libio-compress-perl".

posiblemente haya cambiado el nombre del paquete, esa instalacion la hice en lenny, ya paso squeeze, wheezy y ahora jessie

Publicar un comentario