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

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");