send_string
Function description
The send_string function should be used to send a string
value to the master agent.
Function parameters
$1 - The OID to send before the data.
$2 - The string value to send
Example use
Listing 1
# Function to send device info - called: send_device_info OID DEVICE "Info String"
#
# @in_param $1 - The STRING to search for
# @in_param $2 - The OID to send before this data
# @in_param $3 - The index value
function send_device_info
{
local DEVFNAME VALUE
# Make the device info filename
get_device_file_basepath ${3} DEVFNAME
DEVFNAME="${DEVFNAME}_info"
# Find the entry in above file
VALUE=$(grep "${1}" < ${DEVFNAME})
VALUE=${VALUE#${1}}
send_string ${2} "${VALUE}"
}