Instalação do Ocs Inventory Agent
Instalação do Ocs Inventory Agent
Linux:
Instalação OCS Inventory NG Agents - CentOS'Texto em negrito
Download e Descompactação
http://www.ocsinventory-ng.org/en/download/download-agent.html wget https://launchpad.net/ocsinventory-unix-agent/stable-2.1/2.1rc1/+download/Ocsinventory-Unix-Agent-2.1rc1.tar.gz tar xzvf Ocsinventory-Unix-Agent-2.1rc1.tar.gz cd Ocsinventory-Unix-Agent-2.1rc1
Dependencias
Será preciso instalar alguns módulos necessários:
yum install perl-XML-Simple perl-Compress-Zlib perl-Net-IP perl-Net-SSLeay perl-ExtUtils-MakeMaker make –y
Instalando
Inicie a instalação e irá aparecer a mensagens como consta na figura(?):
perl Makefile.PL
Gere os binários:
make
Instale os binários:
make install
O assistente do OCS sera iniciado, siga as instruções:
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?> centos 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
Instalação finalizada.
Instalação no Windows:
Download
Acesse o link e faça o download do Agente.
https://launchpad.net/ocsinventory-windows-agent/2.x/2.1rc1/+download/OCSNG-Windows-Agent-2.1RC1.zip
Instalação no Windows via GPO:
Downloads
Acesse o link e faça o download do Agente.
https://launchpad.net/ocsinventory-windows-agent/2.x/2.1rc1/+download/OCSNG-Windows-Agent-2.1RC1.zip
Faça também o download do OCS Packager.
http://www.ocsinventory-ng.org/en/download/tools.html
Faça o download do PsExec no link abaixo e descompacte na mesma pasta do OCS Packager.
http://technet.microsoft.com/en-us/sysinternals//bb897553.aspx
Criando o Pacote de Instalaçao
Execute o OCS Packager
No campo (Agente setup file) aponte o arquivo executável do agente do OCS. Em seguida no campo (Command lines options) digite o seguinte comando:
/S /NOW /SERVER=http://10.10.10.1/ocsinventory /PNUM:80 /NP /INSTALL /DEBUG
(Entenda o comando)
/S --> Realiza a instalação de forma silenciosa.
/NOW --> Força atualização na instalação.
/SERVER=http://10.10.10.1/ocsinventory --> Endereço do servidor OCS.
/PNUM:80 --> Define a porta padrão.
/NP --> Não configura proxy.
/INSTALL --> Realiza a instalação.
/DEBUG --> Cria um log.
Clique em avançar, e escolha o caminho para salvar o pacote ou deixe o padrão (desktop).
Instalação Android
Acesse o link e faça o download do Agente.
https://launchpad.net/ocsinventory-android-agent/stable-2.1/2.1rc1/+download/OCSNG-android-agent-2.1rc1.zip
Transfira para seu android o arquivo e faça a instalação.
Criado por Thadeu Soares
Editado por Jorge Back e Vanderson Marciano