Stop VM Manager Tool
Log In or Register to download the BES file, and more.

0 Votes

Description

This task stops VM Manager Tool Use it before upgrade if you experience issues with failing upgrades due to removal or creation of the VMMan directory

Property Details

ID26859
StatusBeta - Preliminary testing ready for more
TitleStop VM Manager Tool
CategoryVM Managers
SourceHCL
Source SeverityLow
Source Release Date3/26/2021 12:00:00 AM
KeywordsVMTool Stop Inventory
Is TaskTrue
Added by on 6/29/2021 11:51:41 PM
Last Modified by on 6/29/2021 11:56:14 PM
Counters 1530 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 2 fixlets   * Results in a true/false
Show indented relevance
(if (name of it as lowercase starts with "win") then (true) else ((name of it as lowercase starts with "linux") OR (name of it as lowercase starts with "aix") OR (name of it as lowercase starts with "mac") OR (name of it as lowercase starts with "hp-ux" AND ((architecture of it as lowercase contains "ia64") OR (family name of main processor as lowercase contains "pa-risc") OR (exists match (regex "^PA8[0-9]{3}(\s+)?$") of (family name of main processor)))) OR (exists match (regex "sunos 5\.(8|9|10|11)") of (name of it as lowercase)) of operating system)) of operating system AND (if exists property "in proxy agent context" then ( not in proxy agent context ) else true)
Used in 1 fixlet   * Results in a true/false
Show indented relevance
if ((name of it as lowercase starts with "win" AND architecture of it as lowercase = "x86_64") OR (name of it as lowercase starts with "linux" AND architecture of it as lowercase = "x86_64")) of operating system then true else false
Used in 1 fixlet   * Results in a true/false
Show indented relevance
if (name of operating system as lowercase starts with "win") then (exists folder ((if (version of client >= "9" as version) then (pathname of parent folder of data folder of client) else (pathname of parent folder of regapp "besclient.exe")) & "\LMT\VMMAN") whose (exists file "vmman.bat" of it)) else (exists folder (((if (version of client >= "9" as version) then (pathname of parent folder of data folder of client) else (pathname of parent folder of parent folder of client folder of site "actionsite"))) & "/LMT/VMMAN") whose (exists file "vmman.sh" of it))
Used in 1 fixlet   * Results in a true/false
Show indented relevance
if (name of operating system as lowercase starts with "win") then (exists services "vmmansvc" whose (state of it = "Running")) else true

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
parameter "sourceReleaseDate" = "2021-03-26"

// WINDOWS
if {((name of operating system) as lowercase) contains "win"}
    parameter "homefolder" = "{(if (version of client >= "9" as version) then (pathname of parent folder of data folder of client) else (pathname of parent folder of regapp "besclient.exe")) & "\LMT\VMMAN"}"    

//------------------------------------------- [START] Upgrade part (WINDOWS)------------------------------------------------
// create folder to keep files
    if {exists folder (parameter "homefolder" as string)}
        if {exists folder ((parameter "homefolder" as string) & "\config")}
            waithidden cmd.exe /c ""{parameter "homefolder" as string}\vmman.bat" -stop"
            continue if {exit code of action = 0}                         
        endif
    endif

// NON-WINDOWS
else
    parameter "homefolder" = "{(if (version of client >= "9" as version) then (pathname of parent folder of data folder of client) else (pathname of parent folder of parent folder of client folder of site "actionsite")) & "/LMT/VMMAN"}"

//------------------------------------------- [START] Upgrade part (NON_WINDOWS)------------------------------------------------
// create folder to keep files
    if {exists folder (parameter "homefolder" as string)}
     if {exists folder ((parameter "homefolder" as string) & "/config")}
            wait {parameter "homefolder" as string}/vmman.sh -stop
            continue if {exit code of action = 0}
        endif
    endif
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!