Action 2
Action Link Click
here to set a dynamic limit on download traffic (bytes/sec) on the listed BES Relays. You will be prompted for the minimum total outgoing traffic, maximum total outgoing traffic, and the percentage of the maximum that will be used when throttling.
Script Type
BigFix Action Script
action parameter query "MinBPS" with description "Please enter the minimum total download traffic (valid limits range from 0 to 4,294,967,295 bytes/sec):"
action parameter query "MaxBPS" with description "Please enter the maximum total download traffic (valid limits range from 1 to 4,294,967,295 bytes/sec, or 0 for max):"
action parameter query "Percentage" with description "Please enter the percentage of the maximum total download traffic (1-100):"
continue if {parameter "MaxBPS" of action as integer >= 0 AND parameter "MaxBPS" of action as integer < 4294967296 AND parameter "Percentage" of action as integer > 0 AND parameter "Percentage" of action as integer <= 100 AND parameter "MinBPS" of action as integer >= 0 AND parameter "MinBPS" of action as integer < 4294967296 AND (parameter "MinBPS" of action as integer <= parameter "MaxBPS" of action as integer or parameter "MaxBPS" of action as integer = 0) }
setting "_BESGather_Download_DynamicThrottleMaxBytesPerSecond"="{parameter "MaxBPS" of action}" on "{parameter "action issue date" of action}" for client
setting "_BESGather_Download_DynamicThrottleMinBytesPerSecond"="{parameter "MinBPS" of action}" on "{parameter "action issue date" of action}" for client
setting "_BESGather_Download_DynamicThrottlePercentage"="{parameter "Percentage" of action}" on "{parameter "action issue date" of action}" for client
if {name of operating system starts with "Win"}
dos net stop BESRelay
dos net start BESRelay
elseif {name of operating system starts with "AIX"}
wait /etc/rc.d/rc2.d/KBESRelayd stop
wait /etc/rc.d/rc2.d/SBESRelayd start_skipclientrestart
elseif {(it starts with "SunOS" OR it starts with "Linux") of name of operating system}
wait /etc/init.d/besrelay stop
wait /etc/init.d/besrelay start_skipclientrestart
else
continue if {false}
endif
parameter "waitTime" = "{apparent registration server time}"
pause while {((apparent registration server time) - time (parameter "waitTime")) < 5*second}
relay select
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Action 3
Action Link Click
here to disable dynamic download throttling on the listed BES Relays.
Script Type
BigFix Action Script
setting "_BESGather_Download_DynamicThrottleEnabled"="0" on "{parameter "action issue date" of action}" for client
if {name of operating system starts with "Win"}
dos net stop BESRelay
dos net start BESRelay
elseif {name of operating system starts with "AIX"}
wait /etc/rc.d/rc2.d/KBESRelayd stop
wait /etc/rc.d/rc2.d/SBESRelayd start_skipclientrestart
elseif {(it starts with "SunOS" OR it starts with "Linux") of name of operating system}
wait /etc/init.d/besrelay stop
wait /etc/init.d/besrelay start_skipclientrestart
else
continue if {false}
endif
parameter "waitTime" = "{apparent registration server time}"
pause while {((apparent registration server time) - time (parameter "waitTime")) < 5*second}
relay select
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.