TROUBLESHOOTING: Restart BES Client on RHEL/SUSE
Log In or Register to download the BES file, and more.

0 Votes

Description

Sometimes it is necessary for various troubleshooting reasons to restart the BES Client. You can use this task to restart the BES Clients on Red Hat and SuSE Linux based computers.

Note: Do not set the "Reapply" behavior when taking this action or you may cause the BES Client to constantly restart itself.

Property Details

ID397
TitleTROUBLESHOOTING: Restart BES Client on RHEL/SUSE
CategoryCommon Tasks
Download Size0
SourceBigFix
Source ID<Unspecified>
Source SeverityLow
Source Release Date10/25/2007 12:00:00 AM
KeywordsBES Client restart TROUBLESHOOTING Restart
Added by on 10/17/2012 1:15:19 PM
Last Modified by on 10/17/2012 1:15:19 PM
Counters 18967 Views / 24 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 32 fixlets   * Results in a true/false
Show indented relevance
(if (version of client >= "8.0") then (unix of it) else ((it does not start with "Win" AND it does not start with "Mac OS X") of name of it)) of operating system
Used in 2 fixlets   * Results in a true/false
Show indented relevance
name of operating system starts with "Linux"
Used in 8 fixlets   * Results in a true/false
Show indented relevance
if (version of client < "8") then (exists file ("/etc/init.d/BESClient-" & version of client as string)) else (exists file "/etc/init.d/besclient")

Actions

Action 1

Action Link Click here to restart the BES Client service.
Script Type BigFix Action Script
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile sleep 5
if {version of client < "8"}
appendfile /etc/init.d/BESClient-{version of client} stop
appendfile sleep 5
appendfile /etc/init.d/BESClient-{version of client} start
else
appendfile /etc/init.d/besclient restart
endif
wait chmod +x "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
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!