Usando Linux para muchas cosas y disfrutando de videojuegos, en dispositivos moviles, consolas y pc. Using Linux for many things and enjoying video games, mobile devices, consoles and pc

Mostrando entradas con la etiqueta ubuntu ocsinventory client. Mostrar todas las entradas
Mostrando entradas con la etiqueta ubuntu ocsinventory client. Mostrar todas las entradas

Como instalar un agente linux para OCSInventory NG

DriveMeca OCSInventory logo
Ya tenemos inventarios de hardware y de software por medio de OCSInventory NG en equipos Windows y hoy les mostrare como instalar un agente linux en un Ubuntu Desktop. Aunque el articulo es con Ubuntu el proceso de instalación y configuración es el mismo para otras distribuciones linux.

IP servidor OCSInventory NG: 192.168.1.40

-Descargamos el cliente para linux.
wget -c https://launchpad.net/ocsinventory-unix-agent/stable-2.1/2.1rc1/+download/Ocsinventory-Unix-Agent-2.1rc1.tar.gz

-Descomprimimos
tar xzvf Ocsinventory-Unix-Agent-2.1rc1.tar.gz
cd Ocsinventory-Unix-Agent-2.1rc1

-Instalamos los siguientes módulos perl. Si no sabes como instalarlos, aquí en este articulo muestro como configurar Perl e instalar algunos módulos.
Digest::MD5
XML::Simple
Net::IP
LWP
Proc::Daemon
Proc::PID::File
ipmitool
Compress::Zlib
Crypt::SSLeay
LWP::Protocol::https
Net::CUPS (opcional, útil si tenemos impresoras instaladas)
Net::SNMP
Net::Netmask
Net::Ping
Nmap::Parser

-Verificamos tengamos instalado:
sudo apt-get install dmidecode pciutils nmap

-Compilamos e instalamos, la mayoria de las respuestas por default dentro de [] por lo general son correctas y con solo presionar ENTER es suficiente a no ser que necesitemos otro valor. Mostrare los que yo use.
perl Makefile.PL
make
sudo make install

Appending installation info to /usr/local/lib/perl/5.14.2/perllocal.pod
[ ! -f run-postinst ] || /usr/bin/perl postinst.pl
Do you want to configure the agent
Please enter 'y' or 'n'?> [y]

Where do you want to write the configuration file?
 0 -> /etc/ocsinventory
 1 -> /usr/local/etc/ocsinventory
 2 -> /etc/ocsinventory-agent
?>  0

Do you want to create the directory /etc/ocsinventory?
Please enter 'y' or 'n'?> [y]

Should the old linux_agent settings be imported ?
Please enter 'y' or 'n'?> [y]

[info] The config file will be written in /etc/ocsinventory/ocsinventory-agent.cfg,
What is the address of your ocs server?> http://192.168.1.40/ocsinventory

Do you need credential for the server? (You probably don't)
Please enter 'y' or 'n'?> [n]

Do you want to apply an administrative tag on this machine
Please enter 'y' or 'n'?> [y]
tag?>  Bogota-Sistemas

Do yo want to install the cron task in /etc/cron.d
Please enter 'y' or 'n'?> [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]

Should I remove the old linux_agent
Please enter 'y' or 'n'?> [n]

Do you want to activate debug configuration option ?
Please enter 'y' or 'n'?> [y]

Do you want to use OCS Inventory NG UNix Unified agent log file ?
Please enter 'y' or 'n'?> [y]
Specify log file path you want to use?>  /var/log/ocs.log

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]

Do you want to use OCS-Inventory SNMP scans feature?
Please enter 'y' or 'n'?> [y]

Do you want to send an inventory of this machine?
Please enter 'y' or 'n'?> [y]

Setting OCS Inventory NG server address...
Looking for OCS Invetory NG Unix Unified agent installation...
ocsinventory agent presents: /usr/local/bin/ocsinventory-agent
Setting crontab...
Creating /var/lib/ocsinventory-agent directory...
Creating /etc/ocsinventory directory...
Writing OCS Inventory NG Unix Unified agent configuration
Creating /var/lib/ocsinventory-agent/http:__192.168.1.40_ocsinventory directory...
Creating /var/lib/ocsinventory-agent/http:__192.168.1.40_ocsinventory/snmp directory...
Copying SNMP MIBs XML files...
Activating modules if needed...
Launching OCS Inventory NG Unix Unified agent...
could not find ParserDetails.ini in /usr/local/share/perl/5.14.2/XML/SAX
   -> Success!
New settings written! Thank you for using OCS Inventory

-Ya tenemos el cliente instalado, configurado y ya se envió el primer inventario al servidor.
DriveMeca instalando un agente OCSInventory en Linux

Sígueme en twitter google+facebook o email y podrás estar enterado de todas mis publicaciones.
Disfrútenlo.

Share/Bookmark