Criou página com '= Instalação do agente do OCS-Inventory em GNU/Linux = Faça o download do pacote OCSNG_UNIX_AGENT-1.02.tar.gz, a versão mais recente pode ser obtida em http://www.ocsinve...'
 
padronizando linux como um só
Etiqueta: visualeditor
 
(12 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
= Instalação do agente do OCS-Inventory em GNU/Linux =
= Instalando no Linux =
== Preparação para instalar ==
Verifique se os seguintes pacotes estão instalados no seu sistema operacional:
yum install -y epel-release perl-XML-Simple perl-Compress-Zlib perl-Net-IP perl-Net-SSLeay perl-Crypt-SSLeay perl-Net-SNMP perl-Proc-Daemon perl-Proc-PID-File pciutils smartmontools make perl


Faça o download do pacote OCSNG_UNIX_AGENT-1.02.tar.gz, a versão mais recente pode ser obtida em http://www.ocsinventory-ng.org.
Baixe o arquivo do agente:
  wget <nowiki>http://downloads.sourceforge.net/project/ocsinventory/OCS%20Inventory%20NG/*/Ocsinventory-Unix-Agent-*.tar.gz</nowiki>
  cd /opt; wget https://github.com/OCSInventory-NG/UnixAgent/releases/download/2.1.1/Ocsinventory-Unix-Agent-2.1.1.tar.gz '''ENTER'''


Descompacte os arquivos:
Descompacte os arquivos:
  tar xzvf Ocsinventory-Unix-Agent-*.tar.gz
  unzip master.zip; cd Unix-Agent-master '''ENTER'''
 
Entre no diretório Ocsinventory-Agent-*:
cd Ocsinventory-Unix-Agent-*/


Inicie a instalação:
Inicie a instalação:
  perl Makefile.PL
  perl Makefile.PL '''ENTER'''


Irá aparecer a seguinte mensagem:
Ignore a seguinte mensagem:
  Please install Crypt::SSLeay if you want to use SSL.
  Please install Crypt::SSLeay if you want to use SSL.
  Checking if your kit is complete...
  Checking if your kit is complete...
Linha 19: Linha 19:
  Writing Makefile for Ocsinventory::Agent
  Writing Makefile for Ocsinventory::Agent


Gerar Binários
Execute o comando:
  make
  make; make install; '''ENTER'''
 
Instalar Binários
make install


Surge o Assistente:
Surge o Assistente:
Linha 32: Linha 29:
  1 -> /usr/local/etc/ocsinventory
  1 -> /usr/local/etc/ocsinventory
  2 -> /etc/ocsinventory-agent
  2 -> /etc/ocsinventory-agent
  ?> 1
  ?> '''1 ENTER'''


  Do you want to create the directory /usr/local/etc/ocsinventory?
  Do you want to create the directory /usr/local/etc/ocsinventory?
  Please enter 'y' or 'n'?> [y]
  Please enter 'y' or 'n'?> [y] '''ENTER'''
  [info] The config file will be written in /etc/ocsinventory/ocsinventory-agent.cfg,
 
Should the old unix_agent settings be imported ?
  Please enter 'y' or 'n'?> [y] '''n ENTER'''


  What is the address of your ocs server?> [ocsinventory-ng] IP_CONFIGURADO_O_OCS-INVENTORY_SERVER
  What is the address of your ocs server?> [ocsinventory-ng] '''<nowiki>http://10.17.64.125/ocsinventory</nowiki>  ENTER''' (IP do servidor do OCS Inventory)


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


  Do you want to apply an administrative tag on this machine
  Do you want to apply an administrative tag on this machine
  Please enter 'y' or 'n'?> [y] n
  Please enter 'y' or 'n'?> [y] '''ENTER'''
  ocsinventory agent presents: /usr/bin/ocsinventory-agent
  tag?> '''notebook ENTER'''


  Do yo want to install the cron task in /etc/cron.d
  Do yo want to install the cron task in /etc/cron.d
  Please enter 'y' or 'n'?> [y]
  Please enter 'y' or 'n'?> [y] '''ENTER'''


  Where do you want the agent to store its files? (You probably don't need to change it)?> [/var/lib/ocsinventory-agent]
  Where do you want the agent to store its files? (You probably don't need to change it)?> [/var/lib/ocsinventory-agent] '''ENTER'''


  Do you want to create the /var/lib/ocsinventory-agent directory?
  Do you want to create the /var/lib/ocsinventory-agent directory?
  Please enter 'y' or 'n'?> [y]
  Please enter 'y' or 'n'?> [y] '''ENTER'''
  New settings written! Thank you for using OCS Inventory
 
Should I remove the old unix_agent
Please enter 'y' or 'n'?> [n]  '''n ENTER'''
 
Do you want to activate debug configuration option ?
Please enter 'y' or 'n'?> [y]  '''ENTER'''
 
  Do you want to use OCS Inventory NG UNix Unified agent log file ?
Please enter 'y' or 'n'?> [y]  '''ENTER'''
 
Specify log file path you want to use?>  '''/var/log/ocsinventory-log ENTER'''
 
Do you want disable SSL CA verification configuration option (not recommended) ?
Please enter 'y' or 'n'?> [n]  '''n ENTER'''


  Should I remove the old linux_agent
  Do you want to set CA certificate chain file path ?
  Please enter 'y' or 'n'?> [n]
  Please enter 'y' or 'n'?> [y]  '''n ENTER'''


  Do you want to use OCS-Inventory software deployment feature?
  Do you want to use OCS-Inventory software deployment feature?
  Please enter 'y' or 'n'?> [y]
  Please enter 'y' or 'n'?> [y] '''ENTER'''


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


  Do you want to send an inventory of this machine?
  Do you want to send an inventory of this machine?
  Please enter 'y' or 'n'?> [y]
  Please enter 'y' or 'n'?> [y] '''ENTER'''
  [info] Accountinfo file doesn't exist. I create an empty one.
 
== Instalação do agente do OCS-Inventory em Windows ==
Faça o download do agente do OCS-Inventory no link: https://github.com/OCSInventory-NG/WindowsAgent/releases/download/2.3/OCSNG-Windows-Agent-2.3.0.0.zip
 
Descompacte os arquivos e entre na pasta "OCS-NG-WINDOWS-AGENT" e dê um duplo clique em "OCS-NG-Windows-Agent-Setup.exe"
 
Na tela que irá se iniciar, clique em '''Next'''
 
[[Arquivo:Ocs-inventory-agent windows1.PNG|border|centre|frameless|300x300px]]
 
Na próxima tela, clique em '''I Agree'''
[[Arquivo:Ocs-inventory-agent windows2.PNG|border|centre|frameless|302x302px]]
 
Na tela de componentes, selecione todos menos a opção "'''Local inventory (no network connection)'''" e clique em '''Next'''
 
[[Arquivo:Ocs-inventory-agent windows3.PNG|border|centre|frameless|302x302px]]
 
A próxima tela, possui os seguintes campos:
 
No campo server URL, digite: http://10.17.64.125/ocsinventory
 
Nos demais campos, favor deixar sem preencher e clique em Next.
[[Arquivo:Ocs-inventory-agent windows4.PNG|centre|frameless|302x302px]]
 
A próxima tela requisita opções de Proxy, selecione None, deixe os demais campos em branco e clique em Next
[[Arquivo:Ocs-inventory-agent windows5.PNG|centre|frameless|300x300px]]
 
A tela seguinte pergunta por opções gerais, em TAG, digite: notebook e dê Next
[[Arquivo:Ocs-inventory-agent windows6.PNG|centre|frameless|302x302px]]
 
A próxima tela vai mostrar onde será instalado, dê Next
[[Arquivo:Ocs-inventory-agent windows7.PNG|centre|frameless|302x302px]]
 
Será instalado, pressione Finish
[[Arquivo:Ocs-inventory-agent windows9.PNG|centre|frameless|303x303px]]
 
= Referência =
[<nowiki>http://andredeo.blogspot.com.br/2009/08/instalando-agente-ocs-manualmente.html</nowiki>&#x20;Agente CentOS e windows]
 
[https://allysonsaraiva.blogspot.com.br/2016/01/instalacao-do-ocs-agent-no-linux.html<nowiki> Ubuntu]</nowiki>

Edição atual tal como às 14h17min de 21 de setembro de 2017

Instalando no Linux

Preparação para instalar

Verifique se os seguintes pacotes estão instalados no seu sistema operacional:

yum install -y epel-release perl-XML-Simple perl-Compress-Zlib perl-Net-IP perl-Net-SSLeay perl-Crypt-SSLeay perl-Net-SNMP perl-Proc-Daemon perl-Proc-PID-File pciutils smartmontools make perl

Baixe o arquivo do agente:

cd /opt; wget https://github.com/OCSInventory-NG/UnixAgent/releases/download/2.1.1/Ocsinventory-Unix-Agent-2.1.1.tar.gz ENTER

Descompacte os arquivos:

unzip master.zip; cd Unix-Agent-master ENTER

Inicie a instalação:

perl Makefile.PL  ENTER

Ignore a seguinte mensagem:

Please install Crypt::SSLeay if you want to use SSL.
Checking if your kit is complete...
Looks good
Writing Makefile for Ocsinventory::Agent

Execute o comando:

make; make install; ENTER

Surge o Assistente:

Do you want to configure the agent [Enter]
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
?> 1 ENTER
Do you want to create the directory /usr/local/etc/ocsinventory?
Please enter 'y' or 'n'?> [y] ENTER
Should the old unix_agent settings be imported ?
Please enter 'y' or 'n'?> [y]  n ENTER
What is the address of your ocs server?> [ocsinventory-ng] http://10.17.64.125/ocsinventory  ENTER (IP do servidor do OCS Inventory)
Do you need credential for the server? (You probably don't)
Please enter 'y' or 'n'?> [n] n ENTER
Do you want to apply an administrative tag on this machine
Please enter 'y' or 'n'?> [y]  ENTER
tag?> notebook ENTER 
Do yo want to install the cron task in /etc/cron.d
Please enter 'y' or 'n'?> [y]  ENTER
Where do you want the agent to store its files? (You probably don't need to change it)?> [/var/lib/ocsinventory-agent]  ENTER
Do you want to create the /var/lib/ocsinventory-agent directory?
Please enter 'y' or 'n'?> [y]  ENTER
Should I remove the old unix_agent
Please enter 'y' or 'n'?> [n]  n ENTER
Do you want to activate debug configuration option ?
Please enter 'y' or 'n'?> [y]  ENTER
Do you want to use OCS Inventory NG UNix Unified agent log file ?
Please enter 'y' or 'n'?> [y]  ENTER
Specify log file path you want to use?>  /var/log/ocsinventory-log ENTER
Do you want disable SSL CA verification configuration option (not recommended) ?
Please enter 'y' or 'n'?> [n]  n ENTER
Do you want to set CA certificate chain file path ?
Please enter 'y' or 'n'?> [y]  n ENTER
Do you want to use OCS-Inventory software deployment feature?
Please enter 'y' or 'n'?> [y]  ENTER
Do you want to use OCS-Inventory SNMP scans feature?
Please enter 'y' or 'n'?> [y]  ENTER
Do you want to send an inventory of this machine?
Please enter 'y' or 'n'?> [y]  ENTER

Instalação do agente do OCS-Inventory em Windows

Faça o download do agente do OCS-Inventory no link: https://github.com/OCSInventory-NG/WindowsAgent/releases/download/2.3/OCSNG-Windows-Agent-2.3.0.0.zip

Descompacte os arquivos e entre na pasta "OCS-NG-WINDOWS-AGENT" e dê um duplo clique em "OCS-NG-Windows-Agent-Setup.exe"

Na tela que irá se iniciar, clique em Next

Na próxima tela, clique em I Agree

Na tela de componentes, selecione todos menos a opção "Local inventory (no network connection)" e clique em Next

Erro ao criar miniatura: Arquivo não encontrado

A próxima tela, possui os seguintes campos:

No campo server URL, digite: http://10.17.64.125/ocsinventory

Nos demais campos, favor deixar sem preencher e clique em Next.

Erro ao criar miniatura: Arquivo não encontrado

A próxima tela requisita opções de Proxy, selecione None, deixe os demais campos em branco e clique em Next

A tela seguinte pergunta por opções gerais, em TAG, digite: notebook e dê Next

A próxima tela vai mostrar onde será instalado, dê Next

Será instalado, pressione Finish

Erro ao criar miniatura: Arquivo não encontrado

Referência

[http://andredeo.blogspot.com.br/2009/08/instalando-agente-ocs-manualmente.html Agente CentOS e windows]

[https://allysonsaraiva.blogspot.com.br/2016/01/instalacao-do-ocs-agent-no-linux.html Ubuntu]