The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FusionInventory::Agent - FusionInventory agent

DESCRIPTION

This is the agent object.

METHODS

new(%params)

The constructor. The following parameters are allowed, as keys of the %params hash:

datadir

the read-only data directory.

vardir

the read-write data directory.

options

the options to use.

init()

Initialize the agent.

run()

Run the agent.

terminate()

Terminate the agent.

getStatus()

Get the current agent status.

setStatus()

Set new agent status, also updates process name on unix platforms.

getTargets()

Get all targets.

getAvailableTasks()

Get all available tasks found on the system, as a list of module / version pairs:

%tasks = ( 'Foo' => x, 'Bar' => y, );

setForceRun($forcerun)

Set "forcerun" option to 1 (by default) in persistent state storage. This option is only read during start, init or reinit. If set to true, the next run is planned to be started as soon as possible.

LICENSE

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991

See LICENSE file for details.