BareTail v3.50a Available! v2 (with exit code)
Log In or Register to download the BES file, and more.

0 Votes

Description

This task will deploy: BareTail v3.50a Available!.

This task is applicable on: Windows 2000, Windows XP, Windows XP x64, Windows 2003, Windows 2003 x64, Windows Vista, Windows Vista x64, Windows 2008, Windows 2008 x64, Windows 7, Windows 7 x64, Windows 2008 R2 and Windows XP Embedded.

Modified to output exit code to file for retrieval in an analysis.


Property Details

ID663
TitleBareTail v3.50a Available! v2 (with exit code)
DomainBESC
CategoryInstall
Download Size114109
Sourcedanielheth@bigfix.me
Source ID<Unspecified>
Source Severity<Unspecified>
Source Release Date11/8/2012 12:00:00 AM
Keywordsbaretail exit codes
Is TaskTrue
Added by on 11/8/2012 4:47:00 PM
Last Modified by on 11/8/2012 4:47:00 PM
Counters 2680 Views / 47 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 4 fixlets   * Results in a true/false
Show indented relevance
(name of it = "Win2000" OR name of it = "WinXP" OR name of it = "WinXP-2003" OR (name of it = "Win2003" AND NOT x64 of it) OR (name of it = "Win2003" AND x64 of it) OR (name of it = "WinVista" AND product type of it = nt workstation product type AND NOT x64 of it) OR (name of it = "WinVista" AND product type of it = nt workstation product type AND x64 of it) OR ((name of it = "Win2008" or (name of it = "WinVista" and product type of it != nt workstation product type)) AND NOT x64 of it) OR ((name of it = "Win2008" or (name of it = "WinVista" and product type of it != nt workstation product type)) AND x64 of it) OR (name of it = "Win7" AND NOT x64 of it) OR (name of it = "Win7" AND x64 of it) OR name of it = "Win2008R2" OR name of it = "WinXPe") of operating system AND TRUE
Used in 2 fixlets   * Results in a true/false
Show indented relevance
NOT exists file "baretail.exe" of parent folder of client

Actions

Action 1 (default)

Action Link Click here to initiate the deployment process.
Script Type BigFix Action Script
//1. download utility
download http://bigfix.me:52311/Uploads/bf04ec2badf589a4061ec29c300b4dcc681b884a/baretail.exe.tmp
continue if {(size of it = 114109 AND sha1 of it = "bf04ec2badf589a4061ec29c300b4dcc681b884a") of file "baretail.exe.tmp" of folder "__Download"}
extract baretail.exe.tmp
copy __Download\baretail.exe "{pathname of parent folder of client}\baretail.exe"
//2. create a shortcut
delete __appendfile
appendfile set WshShell = WScript.CreateObject("WScript.Shell" )
appendfile strAllUsersSM = WshShell.SpecialFolders("AllUsersStartMenu" )
appendfile set oFSO = CreateObject("Scripting.FileSystemObject")
appendfile oFSO.CreateFolder(strAllUsersSM & "\Programs\Tivoli Endpoint Manager")
appendfile set oShellLink = WshShell.CreateShortcut(strAllUsersSM & "\Programs\Tivoli Endpoint Manager\baretail.lnk" )
appendfile oShellLink.TargetPath = "{pathname of parent folder of client}\baretail.exe"
appendfile oShellLink.WindowStyle = 1
appendfile oShellLink.IconLocation = "{pathname of parent folder of client}\baretail.exe"
appendfile oShellLink.Description = "Log Following Utility"
appendfile oShellLink.WorkingDirectory = "{pathname of parent folder of client}\__BESData\__Global\Logs"
appendfile oShellLink.Save
move __appendfile CreateShortcut.vbs
waithidden cmd.exe /c cscript.exe CreateShortcut.vbs
//added recently to answer a question on use of exit codes in action script.
parameter "exitcode"="{exit code of action}"
delete __appendfile
appendfile {parameter "exitcode" as string}
delete "{pathname of parent folder of client}\baretail_exitcode.log"
move __appendfile "{pathname of parent folder of client}\baretail_exitcode.log"
Success Criteria

This action will be considered successful when all lines of the action script have completed successfully.

Action 2

Action Link Click here to learn more about BareTail.
Script Type URL
http://www.baremetalsoft.com/baretail/
    

Action 3

Action Link Click here to Special Folders Identifiers.
Script Type URL
http://technet.microsoft.com/en-us/library/ee156616.aspx
    

Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
I'm not sure that parameter "exitcode"="{exit code of action}" would work since parameters seem to be set at the beginning.