# TCP connect probe, measures response
# TCPconnect was not supported before 12.0(3)T
#
# The measured value is the time to establish a TCP session, i.e. the time between the initial "SYN" TCP packet of $ioshost and the "SYN ACK" packet of "rttMonEchoAdminTargetAddress". The router terminates the TCP session immediately after the reception of "SYN ACK" with a "FIN" packet.

# "rttMonEchoAdminTargetAddress", "rttMonEchoAdminTargetPort" are important

# loopback address is recommended
$ioshost="51.2.2.8";
$community = "secret";
$entry=701;

@myparms=(
   # next 2 lines define the entry type
   "rttMonCtrlAdminRttType",		'integer',	6,
   "rttMonEchoAdminProtocol",		'integer',	24,

   "rttMonCtrlAdminOwner",		'octetstring',	"MRTG",

   "rttMonEchoAdminTargetAddress",	'octetstring',	ciscoRttMonLib::EncodeAddress("www.cisco.com"),
   "rttMonEchoAdminTargetPort",		'integer',	80, 

   # in ms
   "rttMonCtrlAdminTimeout",		'integer',	5000,
   # in s, timeout must be < frequency
   "rttMonCtrlAdminFrequency",		'integer',	14,

   "rttMonEchoAdminControlEnable",	'integer',	2,

   # 1 = this entry appears in "show running"; 2 it doesn't
   "rttMonCtrlAdminNvgen",		'integer',	1,

   "rttMonEchoAdminSourceAddress",	'octetstring',	ciscoRttMonLib::EncodeAddress($ioshost),
   "rttMonEchoAdminTOS",		'integer',	0,

   # 20 is max
   "rttMonHistoryAdminNumBuckets",    	'integer',      20,
   "rttMonHistoryAdminNumLives",      	'integer',      1,
   # none(1), all(2), overThreshold(3), failures(4)
   "rttMonHistoryAdminFilter",        	'integer',      2,

   # 1 is "now"
   "rttMonScheduleAdminRttStartTime",	'timeticks',	1,
   # life and ageout in secs
   "rttMonScheduleAdminRttLife",	'integer',	290,
   "rttMonScheduleAdminConceptRowAgeout",'integer', 	300
);
