send_integer
Function description
The send_integer function should be used to send an integer
value to the master agent.
Function parameters
$1 - The OID to send before the data.
$2 - The integer value to send
Example use
Listing 1
# Function to send the index value
#
# @in_param $1 - The OID to send before this data
# @in_param $2 - The index value
#
function send_index
{
# If we were passed an index...
if (( $# > 1 )); then
# ...and the index is in range...
if (( ${2} <= ${#DEVICES[@]} )); then
# Send the OID and the index number.
send_integer ${1} ${2}
return
fi
fi
# Send the OID and NONE.
send_none ${1}
}