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

NAME

armadito-agent - command line interface script used for Armadito Agent.

SYNOPSIS

armadito-agent --server <server> --task <task>

  Options:
    --help                 this menu
    --wait|w               Sleep during given seconds.
    --debug|d  level       Activate debug mode with given level (0,1,2)
    --get-agentid          Get current agent id
    --get-schedulerid      Get current scheduler id

  Target definition options:
    --server server        Armadito Plugin for GLPI server URL

  Task selection options:
    --task task            Task to be executed
        --list-tasks           List supported tasks

  Antivirus selection options:
    --antivirus antivirus  Antivirus to be managed
        --list-avs             List supported antiviruses

  Enrollment options:
    --key|k enrollmentkey   Enrollment key string (format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX)

  Configuration options:
    --conf-reload-interval=<SECONDS>   number of seconds between two
                                         configuration reloadings
  Network options:
    -P --proxy=PROXY               proxy address
    -u --user=USER                 user name for server authentication
    -p --password=PASSWORD         password for server authentication
    --ca-cert-dir=DIRECTORY        CA certificates directory
    --ca-cert-file=FILE            CA certificates file
    --no-ssl-check                 do not check server SSL certificate
    --timeout=TIME                 connection timeout, in seconds (180)

EXAMPLES

        % armadito-agent --task "Enrollment"
        % armadito-agent -s http://armadito-glpi --task "State"
        % armadito-agent --server http://armadito-glpi --task "Getjobs"
        % armadito-agent --task "Enrollment"
        % armadito-agent --task "State"
        % armadito-agent --task "GetJobs"
        % armadito-agent --task "RunJobs" -w 5
        % armadito-agent --task "Alerts"

DESCRIPTION

armadito-agent is the command line interface for Armadito Agent.

OPTIONS

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

    % armadito-agent -s localhost
    % armadito-agent --server localhost

Target definition options

-s, --server=URI

Send the results of tasks execution to given server.

In general, Armadito plugin URLs are like the following: http://servername/glpi/plugins/armadito/index.php

Task selection options

--list-tasks

List all available tasks and exit

--task=TASK

Run given task immediately.

See option --list-tasks for the list of available tasks.

Antivirus selection options

--list-avs

List all available antiviruses and exit

--antivirus=ANTIVIRUS

Manage the given Antivirus

See option --list-avs for the list of available antiviruses.

Enrollment options

--key|-k=KEY

Enrollment key string (format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX).

Configuration options

--conf-reload-interval=SECONDS

SECONDS is the number of seconds between two configuration reloadings. Default value is 0, which means that configuration is never reloaded. Minimum value is 60. If given value is less than this minimum, it is set to this minimum. If given value is less than 0, it is set to 0.

Network options

-P, --proxy=PROXY

Use PROXY as HTTP proxy.

By default, the agent uses HTTP_PROXY environment variable.

-u USER, --user=USER

Use USER for server authentication.

-p, --password=PASSWORD

Use PASSWORD for server authentication.

--ca-cert-dir=DIRECTORY

CA certificates directory.

--ca-cert-file=FILE

CA certificates file.

--no-ssl-check

Do not check server SSL certificate.

--timeout=TIME

Timeout for server connections.