Fusioninventory agent mac os

SYNOPSIS

fusioninventory-agent [ . ] [ —server server | —local /tmp ] .

EXAMPLES

DESCRIPTION

fusioninventory-agent is an agent for OCS Inventory server and FusionInventory for GLPI servers. It creates local inventory of the machines (hardware and software) and send it to the server. It can also write it in a local XML file. This agent is the successor of the former linux_agent which was released with OCS 1.01 and prior. It also replaces the Solaris/AIX/BSD unofficial agents.

Windows (since Windows 2000) GNU/Linux MacOSX Solaris FreeBSD NetBSD OpenBSD AIX HP-UX GNU/kFreeBSD

INSTALLATION

PREREQUISITES

Minimum perl version: 5.8

The which command on UNIX/Linux/MacOSX system.

Additional mandatory perl modules:

Digest::MD5 XML::Simple LWP Net::IP UNIVERSAL::require Mac::SysProfile (MacOs only)

Additional optional perl modules:

Compress::Zlib, for message compression HTTP::Daemon, for web interface Net::CUPS (v0.60 minimum), for printers detection File::ShareDir, for automatic data directory determination Proc::Daemon, for daemon mode (Unix only) Proc::PID::File, for daemon mode (Unix only)

Additional optional programs:

nmap or ipdiscover, for network discovery dmidecode (linux or bsd) for hardware inventory lspci (linux or bsd) for hardware inventory

PROCEDURE

Once the archive is unpacked, use these commands:

You can also run the agent from the tarball directory. In this case, use the —devlib flag to load the library from the local directory.

SYSTEM-SPECIFIC INFORMATIONS

Solaris

Sun Studio seems to be needed to build the dependency. The generated Makefile needs gmake to be executed. The default installation will install the binary in /usr/perl5/5.XXXXX/bin, set you $PATH variable according to that.

On Solaris/SPARC, you must install sneep and record the Serial Number with it. Download it from http://www.sun.com/download/products.xml?id=4304155a

Windows

If you don’t want to use the installer for Windows you can follow the installation process avalaible there: http://forge.fusioninventory.org/projects/fusioninventory-agent/wiki/RunAgentWin32

POST-INSTALLATION

Run ./fusioninventory-agent-config for automatic configuration.

OCS INVENTORY PROTOCOL

FusionInventory Agent uses OCS Inventory protocol and is compatible with OCS Inventory server. The agent uses the same protocol with the FusionInventory For GLPI plugin.

The OCS protocol is basicly an exchange of XML file done over HTTP(S).

First, The PROLOG

The agent send a first message to give it’s ID (DEVICEID). The server send back to the agent an XML file with a list of parameter. It’s the PROLOG RESP. You can see it if you’re in Debug mode. In this PROLOG, the server send the PROLOG_FREQ. The agent will use it to know when it need to contact the server for the next time.

The agent compute the next query date this way:

Module execution

The agent will launch each modules and pass the list of options found in the PROLOG RESP as parameter. The module can send information directly to the server (inventory, SNMP scan result, etc)

Windows service or Deamon mode

In deamon mode, the agent wait during a period between the last PROLOG and PROLOG_FREQ. If PROLOG_FREQ is not set, it will use —delaytime value. The default value is 3600.

OPTIONS

Most of the options are available in a short form and a long form. For example, the two lines below are all equivalent:

Time before the agent kills modules processing which don’t end before the timeout.

Indicate the place where the agent should store its files.

Читайте также:  Windows form picturebox image

Display color on the terminal. This feature is disabled on Windows.

Launch fusioninventory-agent as daemon in background. Proc::Daemon is needed.

Launch fusioninventory-agent in daemon but do fork in background.

The directory where public SSL certificates are stored. In general it’s /etc/ssl/certs.

You don’t need to copy a public certificate on very agent if your private key is valide and was been signed by a valide certificate authority.

The path to the public certificate (e.g: /etc/ssl/certs/cacert.pem). If —ca-cert-file is used, —ca-cert-dir is ignored.

You don’t need to copy a public certificate on very agent if your private key is valide and was been signed by a valide certificate authority.

Load the configuration file from the given location. Ignored on Windows.

On Windows the settings are loaded from the registry. The information are stored there: HKEY_LOCAL_MACHINE\SOFTWARE\FusionInventory-Agent

Or on Windows 64bit machine: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\FusionInventory-Agent

Turn the debug mode on.

This option is designed for the developer. With it enabled, fusioninventory-agent won’t try to load the Backend module installed on the system. Instead it will scan the ./lib directory. It may also be useful if you don’t want to install the agent on your system.

This option can only be used as command line argument. It will be ignored if you set it in a config file or in Windows registry.

This option defaults to waiting a random() time between 0 and 3600 before initially contacting the server assuming NO PROLOG_FREQ has been set. Once PROLOG_FREQ has been set, it uses that number at the top end of it’s random setting. Useful for pre-setting a deployed agent’s initial start time (so you don’t jam the server all at once, but don’t have to wait an hour to make sure the deployment worked).

Do not use PERL5LIB and PERLLIB environment variable to find Perl library path.

This option can only be used as command line argument. It will be ignored if you set it in a config file or in Windows registry.

The agent ask first the server if it should send an inventoroy of the machine. If the server doesn’t know the machine or has outdated informations, it will request it. With this option, the agent ignore the server anwser and send an inventory.

Save the local inventory requested by —local in HTML.

Turn the verbose mode on. The flag is ignored if —debug is enable.

Do not contact the server more than one time during the PROLOG_FREQ and do an exit if there is nothing to do. Useful if you want to start the agent script regulary from the crontab but don’t want to overload the server.

Write an inventory in the DIR directory. A new file will be created if needed.

Log message in FILE and turn off STDERR

Max logfile size in MB, default is unlimited. When the max size is reached, the file is truncated. This is only useful if there is no log rotation mechanism on the system.

The logger you want to use. It can be:

Stderr: print the messages directly in the console. Messages are lost in daemon mode (—daemon). You can use —color to turn color mode on.

File: log the error in a log file. Please use —logfile to set the location of your log file. —logfile turns this option on automatically

Syslog: use the local syslog server to log the messages.

Читайте также:  Что такое windows 10 mobile anniversary update

You can use more than one parameter if you use ‘,’ as delimiter. E.g:

Disable the software deployment (new module).

Disable the ESX inventory task.

Disable the software deployment (OCS compatible module).

Do not generate inventory.

Do not use the wakeonlan.

Do not inventory the printer.

Do not inventory the software installed on the machine.

For OCS Inventory software deployment. Do not use peer 2 peer to download files.

Use PASSWORD for an HTTP authentification with the server.

Use PROXY to specify a proxy HTTP server. By default, the agent uses HTTP_PROXY environment variable.

Use REALM for an HTTP authentification with the server. For example, the value can be ‘Restricted Area’. You can find it in the login popup of your Internet browser.

if no realm is passed and the auth fails, the agent will retry an authentification with the realm returned by the server.

The IP address of the interface to use for the P2P exchange. The default is ‘all’ the IP addresses with a 255.255.255.0 mask except 127.0.0.1.

The PORT of the interface to use for the embedded HTTP server used for the peer to peer data exchange and remote control. The default is ‘62354’.

Allow local users to access to http://127.0.0.1:62354/now to force an inventory immediately.

Should the agent scan the user directories to inventory their virtual machines ?.

The uri of the server. If URI doesn’t start with http:// or https://, the agent assume the parameter is a hostname and rewrite it like that:

If you want to use https or another virtual directory (e.g: /ocsinventory2) you need to enter the full path.

You can declare more than one server if you use the ‘,’ delimiter.

In general, OCS Inventory server URL have this format:

and FusionInventory for GLPI this one:

—server is ignored if —local is in use.

The directory where are stored the shared files. You probably don’t need this option unless you don’t want to use the Makefile.PL installation procedure or if File::ShareDir is not avalaible.

Print the inventory on stdout.

Authorize the agent to scan home directories to help with the Virtual Machines inventory.

Mark the machine with the TAG tag. Once the initial inventory is accepted by the server this value is ignored and you’ve to change the information directly on the server. The server do so in order to centralize the administration of the machine.

Do now validate HTTPS certificat with the servers. Please never use this option in production. This is just a very bad idea.

Hint: you can declare HTTPS_DEBUG to get SSL error messages in the console.

Use USER for the server authentication.

Print the version and exit.

Wait during a random period between 0 and DURATION second before initializing the connexion with the server.

CONFIG FILE

The agent try to initialize the settings from the agent.cfg config file.

It looks for the file in these location:

You can use the —conf-file=XXX parameter to load you own configuration file from a specific location. On Windows the settings are loaded from the Registry. The configuration file is ignored.

The command line parameters overwrite the configuration file.

SECURITY

Some modules like SNMPQuery needs to sent credential from the agent to the agent. We recommend to enable HTTPS support on the OCS or FusionInventory For GLPI server. We also recommend to use only trusted machine as agent in this case.

Читайте также:  Обновит операционную систему windows

AUTHORS

The maintainer is Goneri LE BOUDER

Please read the AUTHORS, Changes and THANKS files to see who is behind FusionInventory.

SEE ALSO

The source code of the agent is available on:

The mailing lists:

IRC: #FusionInventory on FreeNode IRC Network

Please, use the mailing lists as much as possible. You can also use the bugtracker on http://forge.fusionInventory.org

Copyright (C) 2006-2010 OCS Inventory contributors Copyright (C) 2010-2011 FusionInventory Team

The memconf script is maintained by Tom Schmidt http://myweb.cableone.net/4schmidts/memconf.html Copyright © 1996-2009 Tom Schmidt

memconf is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

FusionInventory::Agent::Backend::Virtualization::Vmsystem uses code from imvirt:

The following errors were encountered while parsing the POD:

Around line 660:

Non-ASCII character seen before =encoding in ‘©’. Assuming UTF-8

Module Install Instructions

To install FusionInventory::Agent, copy and paste the appropriate command in to your terminal.

For more information on module installation, please visit the detailed CPAN module installation guide.

Источник

GLPI + Fusion Inventory

Понадобилось мне собрать инфу о конфигурации компьютеров в рабочей сети. В качестве базы была выбрана GLPI. Т.к. OCS Inventory уже описывали на хабре и в коментариях к той статье упоминалось про Fusion Inventroy, то его и будем устанавливать.
Основные задачи:

  1. прикрутить Fusion Inventory к GLPI, без использования OCS Inventory;
  2. скрипт сбора инфы запускать вручную, при необходимости (чтобы в памяти ничего лишнего не висело);
  3. собрать конфигурацию компьютеров, управляющих промышенным оборудованием (они не подключены к сети);

На сервере уже должен быть установлен и настроен LAMP( в моем случае — это FAMP).

Устанавливаем GLPI

Создаём базу и пользователя (USER и PASSWORD заменить на свои):

Добавляем в настройки апача (httpd.conf или httpd-vhosts.conf):

Идем на созданный сайт(http:///glpi/) и выбираем язык установки Russian, а дальше там всё понятно.

Устанавливаем FusionInventory (сервер)

Скачиваем FusionInventory плагин и распаковываем в папку плагинов GLPI:

Проверяем структуру папок, она должна выглядеть так:

Заходим в GLPI под админским аккаунтом, меню «настройки» -> «дополнения» -> в поле «FusionInventory» -> «обновить/установить» -> «включить». «Устанавливаем», а затем включаем все части плагина в таком порядке:

  1. FusionInventory
  2. FusionInventory INVENTORY
  3. FusionInventory SNMP

Устанавливаем FusionInventory (клиент)

Скачиваем и устанавливаем клиент:
forge.fusioninventory.org/projects/fusioninventory-agent/wiki/Agent_supportedplateforms
При установке указываем путь к серверу(у Win версии настройки задаются во время установки):

Если используется DNS, то:

Для Active Directory:

Возможно придётся указать дополнительные настройки (proxy, etc) — чекбокс «Advanced» при установке.
После установки клиента, заходим в веб интерфейс GLPI -> «Дополнения» -> «FusionInventory» -> «Управление агентами» и смотрим появился ли компьютер в списке.
Чтобы агент не висел постоянно в памяти, то после установки:

Windows
  1. Скопировать папку установленного Fusion-Inventory
  2. В ней создать файл save_net.cmd с таким содержанием:

Не забываем изменить «glpi.mydomain» на свое имя/ip.
Для инвентаризации/обновления запускать созданный скрипт, а для сохранения конфигурации компьютера(на котором нет сети)в файл, создаём в папке с Fusion-Inventory каталог «xml» и файл save_local.cmd с таким содержанием:

После запуска этого скрипта конфигурация сохранится в каталог «xml». Для импорта конфигурации в базу — заходим в glpi -> «Дополнения» -> «FusionInventory» -> «Import agent XML file» и выбираем нужный файл из папки xml.
В итоге получим portable версию Fusion Inventory, которую можно запускать с флешки. Главное быть уверенным, что ни у кого нет какой либо живности на компьютере.

Источник

Оцените статью