++ed by:
GBOUGARD AERO

2 PAUSE users
2 non-PAUSE users.

FusionInventory Project

NAME

FusionInventory::Agent::RPC - the RPC interface

DESCRIPTION

FusionInventory Agent can listen on the network through an embedded HTTP server. This server can only be used to wakeup the agent or download OcsDeploy cached files. The server uses port 62354.

Every time the agent contact the server, it send a token, this token will be needed to identify the server who want to awake an agent.

Once an agent is awake, it will contact the server as usual to know the jobs it need to do.

SYNOPSIS

In this example, we want to wakeup machine "aMachine":

  use LWP::Simple;

  my $machine = "aMachine";
  my $token = "aaaaaaaaaaaaaa";
  if (!get("http://$machine:62354/now/$token")) {
    print "Failed to wakeup $machine\n";
    return;
  }
  sleep(10);
  print "Current status\n";
  print get("http://$machine:62354/status");