Here is an example script snippet that demonstrates how to use the Forefront TMG admin COM to configure the ISP link test intervals and how many failures/successes determine whether a link is unavailable or available. All intervals are in seconds.
' Getting the ISP Redundancy configuration objectset root=CreateObject("FPC.Root")set arr=root.GetContainingArray()set ExtNet=arr.NetworkConfiguration.Networks("External")set ISPRCfg=ExtNet.ISPRedundancyConfig
' Setting interval between tests when link is availableISPRCfg.TestIntervalLinkAvailable = 120
' Setting interval between tests when link is unavailableISPRCfg.TestIntervalLinkUnavailable = 360
' Setting number of test failures until link detected as unavailableISPRCfg.FailuresToUnavailable = 5
' Setting number of test successes until link detected as availableISPRCfg.SuccessesToAvailable = 7
You can download the Forefront TMG SDK here.
Evgeny Katz, Forefront TMG Team
Nathan Bigman, Information Experience Team