FusionInventory::Agent::XML::Query::SimpleMessage - a Generic message container
This class provides a mechanism to send generic messages to the server.
my $xmlMsg = FusionInventory::Agent::XML::Query::SimpleMessage->new( { config => $config, logger => $logger, target => $target, msg => { QUERY => 'DOWNLOAD', FOO => 'foo', BAR => 'my Message', }, } ); $network->send( { message => $xmlMsg }
The msg parameter only requires the QUERY key to identify the type of message. You can the key you want in the msg structure.
To install FusionInventory::Agent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FusionInventory::Agent
CPAN shell
perl -MCPAN -e shell install FusionInventory::Agent
For more information on module installation, please visit the detailed CPAN module installation guide.