modify the wincollect file parameter that is in description "install_config.txt" under the location "C:\IBM\WinCollect\config" - second
Log In or Register to download the BES file, and more.

0 Votes

Description

This task will modify following parameters in file "install_config.txt".

ConfigurationServerPort= 

Note: After completion of this task, run task "Restart wincollect service" to make the changes effective.


Property Details

ID24862
StatusProduction - Fully Tested and Ready for Production
Titlemodify the wincollect file parameter that is in description "install_config.txt" under the location "C:\IBM\WinCollect\config" - second
DomainBESC
CategoryN/A
Download Size0
SourceInternal
Source IDniraj11032015
Source Release Date3/11/2015 12:00:00 AM
KeywordsUnmange Wincollect after deployment
Is TaskTrue
Added by on 12/3/2017 9:06:03 AM
Last Modified by on 12/3/2017 9:06:03 AM
Counters 75 Views / 0 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


Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// Enter your action script here
// store the file location -- store the file location or ("C:\IBM\WinCollect\config\install_config.txt")
parameter "filename" = "{pathname of file ("C:\IBM\WinCollect\config\install_config.txt")}"

parameter "textToReplace" = "{(following text of first "ConfigurationServerPort=" of lines of it)of file "C:\IBM\WinCollect\config\install_config.txt"}"
parameter "newText" = ""




// iterate through the file replacing lines as necessary
appendfile {concatenation "%0d%0a" of ( if (it contains (parameter "textToReplace")) then ((preceding text of first (parameter "textToReplace") of it) & (parameter "newText") ) else it ) of lines of file (parameter "filename")}

//move "{parameter "filename"}" "{parameter "filename"}.bak"
move "{parameter "filename"}" "{parameter "filename"}.bak1"
// replace with the new file
move __appendfile "{parameter "filename"}"
dos net stop "WinCollect"
dos net start "WinCollect"
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!