BES Client Setting: Hold Mode For Missing Client UI
0 Votes |
Description
When the Client UI is missing because it failed to launch or is configured to not be available, the BES Client can be configured to prevent actions from running until the Client UI is available. This task can be used to set the BES Client behavior in these circumstances. If the BES Client hold mode is set to all, then no actions will be run unless the Client UI can be displayed, regardless of whether the Client UI failed to launch or was configured to be unavailable. If the BES Client hold mode is set to none, then the BES Client will run all actions, regardless of the availability of the Client UI. If the BES Client hold mode is set to failed, then the BES Client will hold actions only if the Client UI is missing because it failed to launch. In the event that the Client UI is missing because it was configured to be unavailable, actions will still be run. Note: Do not set the "Reapply" behavior when taking this action or you may cause the BES Client to constantly restart itself. Note: Applying this setting may cause the BES Client to restart. Note: Affected computers may report back as 'Pending Restart' once the task has run successfully, but will not report back their final status until the computer has been restarted. |
Property Details
236 | |
BES Client Setting: Hold Mode For Missing Client UI | |
BES Client Setting | |
0 | |
BigFix | |
<Unspecified> | |
<Unspecified> | |
Client BES Note actions TABLE | |
besSupport on 10/17/2012 1:14:37 PM | |
danielheth on 10/17/2012 1:14:37 PM | |
4581 Views / 3 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance
Used in 221 fixlets | * Results in a true/false |


Actions
Action 1
setting "_BESClient_ActionManager_UIMissingHoldMode"="all" on "{parameter "action issue date" of action}" for client
// Restart the BES Client
// Win2000+
if {name of operating system as lowercase starts with "win" AND name of operating system does not contain "Win9" AND name of operating system != "WinME"}
delete __appendfile
appendfile @echo off
appendfile echo Your administrator is restarting the BES Client... Please Wait...
appendfile net stop BESClient
appendfile net start BESClient
delete clientRestart.bat
copy __appendfile clientRestart.bat
runhidden clientRestart.bat
// RHEL/SUSE
elseif {(name of operating system contains "Linux") AND (exists file ("/etc/init.d/BESClient-" & version of client as string)) AND (NOT exists file "/etc/vmware-release" whose (exists line whose (it contains "VMware ESX Server") of it))}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} stop
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// AIX
elseif {(name of operating system as string = "AIX 5.1" OR name of operating system as string = "AIX 5.2" OR name of operating system as string = "AIX 5.3") AND ((exists file "SBESClientd" of it AND exists file "KBESClientd" of it) of folder "/etc/rc.d/rc2.d/")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/rc.d/rc2.d/KBESClientd stop
appendfile sleep 30
appendfile /etc/rc.d/rc2.d/SBESClientd start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run {"/bin/sh -c %22trap '' 15;'" & (client folder of current site as string) & "/__appendfile'%22"}
// Mac OS X
elseif {(name of operating system = "Mac OS X") AND (exists folder "/Library/Receipts/BESAgent.pkg")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
if {((exists file "/Library/LaunchDaemons/BESAgentDaemon.plist") AND (system version >= "10.4"))}
appendfile /bin/launchctl unload /Library/LaunchDaemons/BESAgentDaemon.plist
appendfile sleep 5
appendfile /bin/launchctl load /Library/LaunchDaemons/BESAgentDaemon.plist
else
appendfile /sbin/SystemStarter stop BESAgent
appendfile sleep 5
appendfile /sbin/SystemStarter start BESAgent
endif
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run {"/bin/sh -c %22trap '' 15;'" & (client folder of current site as string) & "/__appendfile'%22"}
// Solaris
elseif {(name of operating system = "SunOS 5.8" OR name of operating system = "SunOS 5.9" OR name of operating system = "SunOS 5.10") AND (exists file "/etc/init.d/BESClient")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/init.d/BESClient stop
appendfile sleep 5
appendfile /etc/init.d/BESClient start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// HP-UX
elseif {(name of operating system contains "HP-UX") AND (exists file "/sbin/init.d/BESClient")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /sbin/init.d/BESClient-{version of client} stop
appendfile sleep 5
appendfile /sbin/init.d/BESClient-{version of client} start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// ESX 3
elseif {(name of operating system starts with "VMware ESX Server 3") AND (exists file ("/etc/init.d/BESClient-" & version of client as string)) }
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} stop
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// Win98 and other unhandled OS's
else
action requires restart
endif
This action will be considered successful when the applicability relevance evaluates to false.
Action 2
setting "_BESClient_ActionManager_UIMissingHoldMode"="none" on "{parameter "action issue date" of action}" for client
// Restart the BES Client
// Win2000+
if {name of operating system as lowercase starts with "win" AND name of operating system does not contain "Win9" AND name of operating system != "WinME"}
delete __appendfile
appendfile @echo off
appendfile echo Your administrator is restarting the BES Client... Please Wait...
appendfile net stop BESClient
appendfile net start BESClient
delete clientRestart.bat
copy __appendfile clientRestart.bat
runhidden clientRestart.bat
// RHEL/SUSE
elseif {(name of operating system contains "Linux") AND (exists file ("/etc/init.d/BESClient-" & version of client as string)) AND (NOT exists file "/etc/vmware-release" whose (exists line whose (it contains "VMware ESX Server") of it))}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} stop
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// AIX
elseif {(name of operating system as string = "AIX 5.1" OR name of operating system as string = "AIX 5.2" OR name of operating system as string = "AIX 5.3") AND ((exists file "SBESClientd" of it AND exists file "KBESClientd" of it) of folder "/etc/rc.d/rc2.d/")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/rc.d/rc2.d/KBESClientd stop
appendfile sleep 30
appendfile /etc/rc.d/rc2.d/SBESClientd start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run {"/bin/sh -c %22trap '' 15;'" & (client folder of current site as string) & "/__appendfile'%22"}
// Mac OS X
elseif {(name of operating system = "Mac OS X") AND (exists folder "/Library/Receipts/BESAgent.pkg")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
if {((exists file "/Library/LaunchDaemons/BESAgentDaemon.plist") AND (system version >= "10.4"))}
appendfile /bin/launchctl unload /Library/LaunchDaemons/BESAgentDaemon.plist
appendfile sleep 5
appendfile /bin/launchctl load /Library/LaunchDaemons/BESAgentDaemon.plist
else
appendfile /sbin/SystemStarter stop BESAgent
appendfile sleep 5
appendfile /sbin/SystemStarter start BESAgent
endif
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run {"/bin/sh -c %22trap '' 15;'" & (client folder of current site as string) & "/__appendfile'%22"}
// Solaris
elseif {(name of operating system = "SunOS 5.8" OR name of operating system = "SunOS 5.9" OR name of operating system = "SunOS 5.10") AND (exists file "/etc/init.d/BESClient")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/init.d/BESClient stop
appendfile sleep 5
appendfile /etc/init.d/BESClient start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// HP-UX
elseif {(name of operating system contains "HP-UX") AND (exists file "/sbin/init.d/BESClient")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /sbin/init.d/BESClient-{version of client} stop
appendfile sleep 5
appendfile /sbin/init.d/BESClient-{version of client} start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// ESX 3
elseif {(name of operating system starts with "VMware ESX Server 3") AND (exists file ("/etc/init.d/BESClient-" & version of client as string)) }
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} stop
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// Win98 and other unhandled OS's
else
action requires restart
endif
This action will be considered successful when the applicability relevance evaluates to false.
Action 3
setting "_BESClient_ActionManager_UIMissingHoldMode"="failed" on "{parameter "action issue date" of action}" for client
// Restart the BES Client
// Win2000+
if {name of operating system as lowercase starts with "win" AND name of operating system does not contain "Win9" AND name of operating system != "WinME"}
delete __appendfile
appendfile @echo off
appendfile echo Your administrator is restarting the BES Client... Please Wait...
appendfile net stop BESClient
appendfile net start BESClient
delete clientRestart.bat
copy __appendfile clientRestart.bat
runhidden clientRestart.bat
// RHEL/SUSE
elseif {(name of operating system contains "Linux") AND (exists file ("/etc/init.d/BESClient-" & version of client as string)) AND (NOT exists file "/etc/vmware-release" whose (exists line whose (it contains "VMware ESX Server") of it))}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} stop
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// AIX
elseif {(name of operating system as string = "AIX 5.1" OR name of operating system as string = "AIX 5.2" OR name of operating system as string = "AIX 5.3") AND ((exists file "SBESClientd" of it AND exists file "KBESClientd" of it) of folder "/etc/rc.d/rc2.d/")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/rc.d/rc2.d/KBESClientd stop
appendfile sleep 30
appendfile /etc/rc.d/rc2.d/SBESClientd start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run {"/bin/sh -c %22trap '' 15;'" & (client folder of current site as string) & "/__appendfile'%22"}
// Mac OS X
elseif {(name of operating system = "Mac OS X") AND (exists folder "/Library/Receipts/BESAgent.pkg")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
if {((exists file "/Library/LaunchDaemons/BESAgentDaemon.plist") AND (system version >= "10.4"))}
appendfile /bin/launchctl unload /Library/LaunchDaemons/BESAgentDaemon.plist
appendfile sleep 5
appendfile /bin/launchctl load /Library/LaunchDaemons/BESAgentDaemon.plist
else
appendfile /sbin/SystemStarter stop BESAgent
appendfile sleep 5
appendfile /sbin/SystemStarter start BESAgent
endif
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run {"/bin/sh -c %22trap '' 15;'" & (client folder of current site as string) & "/__appendfile'%22"}
// Solaris
elseif {(name of operating system = "SunOS 5.8" OR name of operating system = "SunOS 5.9" OR name of operating system = "SunOS 5.10") AND (exists file "/etc/init.d/BESClient")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/init.d/BESClient stop
appendfile sleep 5
appendfile /etc/init.d/BESClient start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// HP-UX
elseif {(name of operating system contains "HP-UX") AND (exists file "/sbin/init.d/BESClient")}
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /sbin/init.d/BESClient-{version of client} stop
appendfile sleep 5
appendfile /sbin/init.d/BESClient-{version of client} start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// ESX 3
elseif {(name of operating system starts with "VMware ESX Server 3") AND (exists file ("/etc/init.d/BESClient-" & version of client as string)) }
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} stop
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
// Win98 and other unhandled OS's
else
action requires restart
endif
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
Social Media: |