TROUBLESHOOTING: Uninstall BES Relay
Log In or Register to download the BES file, and more.

0 Votes

Description

This task will uninstall the BES Relay on the selected computers.

Property Details

ID144
TitleTROUBLESHOOTING: Uninstall BES Relay
CategoryBES Server/Relay Setting
Download Size0
SourceIBM
Source ID<Unspecified>
Source Severity<Unspecified>
Source Release Date7/27/2012 12:00:00 AM
KeywordsBES Relay TABLE TBODY TROUBLESHOOTING
Added by on 10/17/2012 1:13:30 PM
Last Modified by on 10/17/2012 1:13:30 PM
Counters 5718 Views / 18 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 92 fixlets and 24 analyses   * Results in a true/false
Show indented relevance
version of client >= "5.1"
Used in 18 fixlets and 3 analyses   * Results in a true/false
Show indented relevance
exists relay service

Actions

Action 1

Action Link Click here to uninstall the BES Relay.
Script Type BigFix Action Script
if {name of operating system as lowercase starts with "win"}
    if {exists relay service AND ((it < "8.0") of (if (version of client >= "8.0") then (version of relay service) else (version of regapp "besrelay.exe")))}
        delete __appendfile
        appendfile [InstallShield Silent]
        appendfile Version=v7.00
        appendfile File=Response File
        appendfile [File Transfer]
        appendfile OverwrittenReadOnly=NoToAll
        move __appendfile "{pathname of folder "temp" of windows folder as string & "\uninst.iss"}"
        if {exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Brand" whose (exists value "value" whose (it as string = "Trend") of it) of registry}
            wait {value "UninstallString" of key whose (value "DisplayName" of it = "ESP Relay" and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry} /s --uninstallsilent -f1"{pathname of folder "temp" of windows folder as string & "\uninst.iss"}"
        else
            wait {value "UninstallString" of key whose (value "DisplayName" of it = "BigFix Enterprise Relay" and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry} /s --uninstallsilent -f1"{pathname of folder "temp" of windows folder as string & "\uninst.iss"}"
        endif
        delete "{pathname of folder "temp" of windows folder as string & "\uninst.iss"}"
    else
        if {exists key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Brand" whose (exists value "value" whose (it as string = "Trend") of it) of registry}
            wait {preceding text of last "%00" of ((value "UninstallString" of key whose (value "DisplayName" of it = "Trend Micro Endpoint Security Platform Relay" and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry) as string) | ((value "UninstallString" of key whose (value "DisplayName" of it = "Trend Micro Endpoint Security Platform Relay" and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry) as string)} /qn
        else
            wait {preceding text of last "%00" of ((value "UninstallString" of key whose ((value "DisplayName" of it = "BigFix Enterprise Relay" OR value "DisplayName" of it = "Tivoli Endpoint Manager Relay") and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry) as string) | ((value "UninstallString" of key whose ((value "DisplayName" of it = "BigFix Enterprise Relay" OR value "DisplayName" of it = "Tivoli Endpoint Manager Relay") and name of it starts with "{") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry) as string)} RESTARTBESCLIENT=0 /qn
        endif
    endif
else
    if {(name of it as lowercase contains "sunos") of operating system}
        delete "{(client folder of current site as string) & "/__appendfile"}"
        appendfile mail=
        appendfile instance=overwrite
        appendfile partial=nocheck
        appendfile runlevel=nocheck
        appendfile idepend=nocheck
        appendfile space=ask
        appendfile setuid=nocheck
        appendfile conflict=nocheck
        appendfile action=nocheck
        appendfile basedir=default
        delete "{(client folder of current site as string) & "/solaris_admin_file"}"
        move "{(client folder of current site as string) & "/__appendfile"}" "{(client folder of current site as string) & "/solaris_admin_file"}"
        wait /usr/sbin/pkgrm -a "{(client folder of current site as string) & "/solaris_admin_file"}" -n BESRelay
    endif
    if {(name of operating system starts with "Linux Red Hat Enterprise" AND not exists file "/etc/vmware-release" whose (exists line whose (it contains "VMware ESX Server") of it) AND ((exists match (regex "^i[0-9]86$") of it) of architecture of operating system OR architecture of operating system = "x86_64")) OR ((name of operating system contains "Linux SuSE") AND ((exists match (regex "^i[0-9]86$") of it OR it = "x86_64") of architecture of operating system))}
        wait /bin/rpm -e BESRelay
    endif
    if {(name of operating system starts with "AIX" )}
        wait /usr/sbin/installp -u BESRelay
    endif
endif
// Handles the situations where the relay is installed, upgraded, or uninstalled. Causes the local agent to re-select its relay.
relay select
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!