| perfSONAR_PS-Services-PingER documentation | view source | Contained in the perfSONAR_PS-Services-PingER distribution. |
perfSONAR_PS::Services::MP::Agent::Ping - A module that will run a ping and return it's output in a suitable internal data structure.
Inherited perfSONAR_PS::Services::MP::Agent::CommandLine class that allows a command to be executed. This class overwrites the parse and
# create and setup a new Agent
my $agent = perfSONAR_PS::Services::MP::Agent::Ping( );
$agent->init();
# collect the results (i.e. run the command)
if( $mp->collectMeasurements() == 0 )
{
# get the raw datastructure for the measurement
use Data::Dumper;
print "Results:\n" . Dumper $self->results() . "\n";
}
# opps! something went wrong! :(
else {
print STDERR "Command: '" . $self->commandString() . "' failed with result '" . $self->results() . "': " . $agent->error() . "\n";
}
Creates a new ping agent class
inherited from parent classes. makes sure that the ping executable is existing.
accessor/mutator for the ping executable file
accessor/mutator method to set the number of packets to ping to
accessor/mutator method to set the period between packet pings
accessor/mutator method to set the period between packet pings
accessor/mutator method to set the deadline value of the pings
accessor/mutator method to set the packetSize of the pings
accessor/mutator method to set the ttl of the pings
accessor/mutator method to set the ttl of the pings
parses the output from a command line measurement of pings
| perfSONAR_PS-Services-PingER documentation | view source | Contained in the perfSONAR_PS-Services-PingER distribution. |