TROUBLESHOOTING: Restart BES Client on RHEL/SUSE
0 Votes |
Description
Note: Do not set the "Reapply" behavior when taking this action or you may cause the BES Client to constantly restart itself.
Property Details
397 | |
TROUBLESHOOTING: Restart BES Client on RHEL/SUSE | |
Common Tasks | |
0 | |
BigFix | |
<Unspecified> | |
Low | |
10/25/2007 12:00:00 AM | |
BES Client restart TROUBLESHOOTING Restart | |
besSupport on 10/17/2012 1:15:19 PM | |
danielheth on 10/17/2012 1:15:19 PM | |
18967 Views / 24 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance
Used in 221 fixlets | * Results in a true/false |

(if exists property "in proxy agent context" then ( not in proxy agent context ) else true )

version of client >= "5.1"
Used in 32 fixlets | * Results in a true/false |

(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 |

name of operating system starts with "Linux"
Used in 8 fixlets | * Results in a true/false |

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: |