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

NAME

perfSONAR_PS::Collectors::LinkStatus::Agent::Script - This module provides an agent for the Link Status Collector that gets status information by executing a script.

DESCRIPTION

This agent will run a script that should print out the link status information in the format: "timestamp,measurement_value".

API

new ($self, $status_type, $script, $parameters) Creates a new Script Agent of the specified type and with the specified script and script parameters.

getType Returns the status type of this agent: admin or oper.

setType ($self, $type) Sets the status type of this agent: admin or oper.

setScript ($self, $script) Sets the script to be run

getScript Returns the script to be run

setParameters ($self, $parameters) Sets the parameters that are passed to the script

getParameters Returns the set of parameters that are passed to the script

run ($self) This function is called by the collector daemon. It executes the script adding the status type ('admin' or 'oper') and any parameters specified as parameters to the script.

VERSION

$Id:$

AUTHOR

Aaron Brown, aaron@internet2.edu

LICENSE

You should have received a copy of the Internet2 Intellectual Property Framework along with this software. If not, see <http://www.internet2.edu/membership/ip.html>

COPYRIGHT

Copyright (c) 2004-2008, Internet2 and the University of Delaware

All rights reserved.