BES Client Setting: Hold Mode For Missing Client UI
Log In or Register to download the BES file, and more.

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

ID236
TitleBES Client Setting: Hold Mode For Missing Client UI
CategoryBES Client Setting
Download Size0
SourceBigFix
Source ID<Unspecified>
Source Severity<Unspecified>
KeywordsClient BES Note actions TABLE
Added by on 10/17/2012 1:14:37 PM
Last Modified by on 10/17/2012 1:14:37 PM
Counters 4581 Views / 3 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 221 fixlets   * Results in a true/false
Show indented relevance
(if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
Used in 92 fixlets and 24 analyses   * Results in a true/false
Show indented relevance
version of client >= "5.1"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
version of client >= "7.2.4.60"

Actions

Action 1

Action Link Click here to set the BES Client hold mode to all. (Holds actions if Client UI is missing for any reason)
Script Type BigFix Action Script
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
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.

Action 2

Action Link Click here to set the BES Client hold mode to none. (Does not hold actions if Client UI is missing for any reason)
Script Type BigFix Action Script
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
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.

Action 3

Action Link Click here to set the BES Client hold mode to failed. (Default behavior. Holds actions if Client UI is missing due to a failure)
Script Type BigFix Action Script
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
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!