---
name: "FusionInventory::Agent"
section: "3pm"
platform: "linux"
package: "fusioninventory-agent"
version: "2.2.3-8"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/FusionInventory::Agent"
---

# FusionInventory::Agent(3pm)

Fusion Inventory agent

## NAME

FusionInventory::Agent - Fusion Inventory agent

## DESCRIPTION

This is the agent object.

## METHODS

### new(%params)

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

- *confdir*

  the configuration directory.

- *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.

### *getToken()*

Get the current authentication token.

### *resetToken()*

Set the current authentication token to a random value.

### *getStatus()*

Get the current agent status.

### *getAvailableTasks()*

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

`%tasks` = (\
     'FusionInventory::Agent::Task::Foo' =\> x,\
     'FusionInventory::Agent::Task::Bar' =\> y, );
