Deploy - RES ONE Workspace Connector - 2.0.0.0 - Windows
Log In or Register to download the BES file, and more.

0 Votes

Description

Deploy a new RES ONE Workspace Connector!

The following requirements must be met on your BigFix Root Server prior to this Fixlet being relevant for your BigFix Root Server:

    = "9.0") then (links of fixlets (708; 1294) of bes site whose (id of it = 1)) else (links of wizards whose (dashboard id of it = "MFSConfiguration.ojo") of bes site whose (id of it = 1))) ?>
  • RES ONE Workspace Console installed
  • No existing RES ONE Workspace Connectors Installed
Failed to load parameterized fixlet.

Property Details

ID22952
TitleDeploy - RES ONE Workspace Connector - 2.0.0.0 - Windows
DomainBESC
CategoryUpgrade
SourceRES Software
Source Release Date12/5/2016 12:00:00 AM
Added by on 12/7/2016 2:00:38 AM
Last Modified by on 12/7/2016 2:00:38 AM
Counters 2005 Views / 25 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 12 fixlets   * Results in a true/false
Show indented relevance
exists service "BESPluginService"
isWindows (Relevance 1172)
Used in 1152 fixlets and 538 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 27 fixlets and 133 analyses   * Results in a true/false
Show indented relevance
NOT in proxy agent context
Used in 22 fixlets   * Results in a true/false
Show indented relevance
exists main gather service whose (version of it >= "9")
Used in 3 fixlets   * Session Relevance
Show indented relevance
/* BES Server Plugin Service is Configured */ exists key "HKLM\SOFTWARE\BigFix\Enterprise Server\MFSConfig" whose (exists value "RESTUsername" of it AND exists value "RESTPassword" of it AND exists value "RESTURL" of it AND exists value "RESTPasswordEncryption" of it) of registry
Used in 3 fixlets   * Results in a true/false
Show indented relevance
/* New RES2BES Connector is not installed */ not exists (file "res2bes.exe" of folder (value "path" of key "HKLM\SOFTWARE\BigFix\Enterprise Server\Applications\res2bes" of registry as string)) | true
Used in 3 fixlets   * Results in a true/false
Show indented relevance
/* Old RES2BES Connector is not installed */ not exists file ((value "InstallDir" of it as string & "res2bes\res2bes.exe") of key "HKEY_LOCAL_MACHINE\Software\RES\Workspace Manager" of x32 registry) | true

Actions

Action 1

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// Source Release Date: 2016-12-05
prefetch RES2BES.exe sha1:C3F77A5038225B4D255027F1D33C750A0FD88F4C size:166248 http://downloads.ressoftware.com/downloads/cdm/res2bes/2.0.0.0/RES2BES.exe sha256:3AF3EB030830C62D2B6F499D6243A6D45A3B94BE505FBED734E89322CBAD4A15

prefetch REST.zip sha1:F147FF2309DA7C003B87BA6FBE87D7CE5A23E30C size:126678 https://bitbucket.org/bigfixme/bigfix-rest-api-c-library/downloads/REST.1.0.4.zip sha256:514B22C09D54EC82FBF1D7B6EEC2A52905BF185A269983C8F9E60A00557B1801
prefetch json.zip sha1:2651F5C44C0E9EEA6481654FD0141B94EBE4F4B3 size:6417283 https://github.com/JamesNK/Newtonsoft.Json/releases/download/5.0.8/Json50r8.zip sha256:BFEC6F0B8576CE3CD5C72EF11440BC80CA216011A2EBD9CA3C63064FBD9EE9AB
prefetch libcmdline.zip sha1:DD6BF03C041DCC2336AF69F03EDAC47F16009682 size:6289760 http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=commandline&DownloadId=631639&FileTime=130064582294400000&Build=21031 sha256:EC9BF298DFE4950C2DD993EE1DA06C95D8451DA129C503604F195BCDB3AAE6B3

prefetch unzip.exe sha1:e1652b058195db3f5f754b7ab430652ae04a50b8 size:167936 http://files.bigfix.me/unzip-5.52.exe sha256:8d9b5190aace52a1db1ac73a65ee9999c329157c8e88f61a772433323d6b7a4a
utility __Download\unzip.exe

waithidden __Download\unzip.exe -o "{pathname of client folder of current site}\__Download\REST.zip" -d "{pathname of client folder of current site}\__Download\REST"
waithidden __Download\unzip.exe -o "{pathname of client folder of current site}\__Download\Json.zip" -d "{pathname of client folder of current site}\__Download\JSON"
waithidden __Download\unzip.exe -o "{pathname of client folder of current site}\__Download\libcmdline.zip" -d "{pathname of client folder of current site}\__Download\CmdLineParse"

parameter "pluginVersion" = "2.0.0.0"
parameter "serverFolder" = "{parent folder of file (following text of first "%22" of (image path of main gather service as string))}"
parameter "pluginsFolder" = "{parameter "serverFolder"}\Applications"
parameter "configFolder" = "{parameter "pluginsFolder"}\Config"
parameter "pluginFolder" = "{parameter "pluginsFolder"}\res2bes"

folder create "{parameter "pluginsFolder"}"
folder create "{parameter "pluginFolder"}"
folder create "{parameter "configFolder"}"

delete "{parameter "pluginFolder"}\res2bes.exe"
move "__Download\RES2BES.exe" "{parameter "pluginFolder"}\res2bes.exe"

delete "{parameter "pluginFolder"}\REST.dll"
move "{pathname of descendants whose (name of it is "REST.dll") of client folder of current site}" "{parameter "pluginFolder"}\REST.dll"

delete "{parameter "pluginFolder"}\CommandLine.dll"
move "{pathname of descendants whose (name of it is "CommandLine.dll" and pathname of it contains "libcmdline\bin\Release") of client folder of current site}" "{parameter "pluginFolder"}\CommandLine.dll"

delete "{parameter "pluginFolder"}\Newtonsoft.Json.dll"
move "{pathname of descendants whose (name of it is "Newtonsoft.Json.dll" and pathname of it contains "Bin\Net35") of client folder of current site}" "{parameter "pluginFolder"}\Newtonsoft.Json.dll"

// Configure Plugin settings
delete __createfile
delete "{parameter "configFolder"}\res2bes.xml"

createfile until _end_
="1.0" encoding="utf-8" ?>

res2bes
"{parameter "pluginFolder"}\res2bes.exe" --RESTURL "%RESTURL%" --RESTUSERNAME "%MOUSERNAME%" --RESTPASSWORD "%MOPASSWORD%" {if (parameter "ConnectorAuthMethod" of action = "SQL Authentication") then "--SQL" else ""}

900

True

_end_

move __createfile "{parameter "configFolder"}\res2bes.xml"


// configure plugin
regset "[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server\Applications\res2bes]" "Installation Time"="{now}"
regset "[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server\Applications\res2bes]" "Version"="{parameter "pluginVersion"}"
regset "[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server\Applications\res2bes]" "Path"="{escape of (parameter "pluginFolder")}"
regset "[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server\Applications\res2bes]" "DebugLevel"="0"
regset "[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server\Applications\res2bes]" "KeepLogs"="15"

waithidden cmd.exe /C net restart BESPluginService

notify client forcerefresh
Success Criteria

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


Sharing

Social Media:
Share this page on Yammer

Comments