TSM - Configure Tivoli Storage Manager if dsm.opt is missing - Apple
Log In or Register to download the BES file, and more.

0 Votes

Collections (part of 1 collection)

Tivoli Storage Manager (TSM)


Property Details

ID829
TitleTSM - Configure Tivoli Storage Manager if dsm.opt is missing - Apple
DomainBESC
CategoryConfiguration & Setup
Download Size0
SourceInternal
Source IDjgstew
Source Release Date11/27/2012 12:00:00 AM
KeywordsTSM, Tivoli Storage Manager
Added by on 12/11/2012 2:18:38 PM
Last Modified by on 12/11/2012 2:18:38 PM
Counters 3730 Views / 17 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 14 fixlets and 8 analyses   * Results in a true/false
Show indented relevance
(name of operating system = "Mac OS X") AND (if exists property "in proxy agent context" then (not in proxy agent context) else true) AND (if exists property "android" of type "operating system" then (not android of operating system) else true)
Used in 5 fixlets   * Results in a "string"/number
Show indented relevance
exists folder "/Applications/Tivoli Storage Manager"
Used in 5 fixlets   * Results in a true/false
Show indented relevance
exists file "/Library/Application Support/tivoli/tsm/client/ba/bin/dsmcad"
Used in 5 fixlets   * Results in a true/false
Show indented relevance
exists file "/Library/Application Support/tivoli/tsm/client/ba/bin/dsmagent"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
not exists file "/Library/Preferences/Tivoli Storage Manager/dsm.opt"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
parameter "TSMserver" = "www.domain.tld"
parameter "NodeSuffix" = ""
parameter "RandomPassword" = {(sha1 of (computer name & (concatenation "; " of (mac addresses of adapters of network as string)) & now as string) as string)}
delete __createfile
delete dsm.opt
createfile until END_OF_CREATE_FILE
NODENAME {computer name}{parameter "NodeSuffix"}
PASSWORDACCESS GENERATE
TCPSERVERADDRESS {parameter "TSMserver"}
ERRORLOGRETENTION 30 D
SCHEDLOGRETENTION 15 D
DOMAIN "/"
EXCLUDE ".../*"
INCLUDE "/Users/.../*"
EXCLUDE "/Users/etcadmin/.../*"
EXCLUDE.DIR "/Users/.../Library/Caches"
EXCLUDE.DIR "/.../.Trashes"
EXCLUDE.DIR "/.../.Trash"
EXCLUDE.DIR "/.../Library/Caches"
EXCLUDE.DIR "/.../.Spotlight-V100"
END_OF_CREATE_FILE
move __createfile dsm.opt
delete "/Library/Preferences/Tivoli Storage Manager/dsm.opt"
copy dsm.opt "/Library/Preferences/Tivoli Storage Manager/dsm.opt"
if{not exists file "/Library/StartupItems/dsmcad" AND exists file "/Library/Application Support/tivoli/tsm/client/ba/bin/TsmBaDsmcadStartupItem.pkg"}
// Need to silently run the startup creation package: TsmBaDsmcadStartupItem.pkg
endif
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile /bin/sleep 2
appendfile /sbin/SystemStarter stop dsmcad
appendfile /usr/libexec/ApplicationFirewall/socketfilterfw --add /Library/Application\ Support/tivoli/tsm/client/ba/bin/dsmcad
appendfile /usr/libexec/ApplicationFirewall/socketfilterfw --add /Library/Application\ Support/tivoli/tsm/client/ba/bin/dsmagent
appendfile /bin/sleep 2
appendfile /Library/Application\ Support/tivoli/tsm/client/ba/bin/dsmc set password changepass {parameter "RandomPassword"}
appendfile /bin/sleep 2
appendfile /sbin/SystemStarter start dsmcad
appendfile exit 0
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run {"/bin/sh -c %22trap '' 15;'" & (client folder of current site as string) & "/__appendfile'%22"}
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!