TSM - Configure Tivoli Storage Manager if dsm.opt is missing - Apple
0 Votes |
Collections (part of 1 collection)
Description
This action will configure TSM
References:
http://pic.dhe.ibm.com/infocenter/tsmfbinf/v6/index.jsp?topic=%2Fcom.ibm.itsm.fbws.doc%2Fhelp%2Fref%2Fcdp_ref_InstallCmdSyntax.html
http://pic.dhe.ibm.com/infocenter/tsminfo/v6r2/index.jsp?topic=%2Fcom.ibm.itsm.client.doc%2Fc_cfg_dsmcutil_cmdwin.html
http://www.itninja.com/software/tivoli/tivoli-storage-manager/3-383
Property Details
829 | |
TSM - Configure Tivoli Storage Manager if dsm.opt is missing - Apple | |
BESC | |
Configuration & Setup | |
0 | |
Internal | |
jgstew | |
11/27/2012 12:00:00 AM | |
TSM, Tivoli Storage Manager | |
jgstew on 12/11/2012 2:18:38 PM | |
jgstew on 12/11/2012 2:18:38 PM | |
3730 Views / 17 Downloads | |
![]() ![]() ![]() ![]() ![]() |
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 |

exists folder "/Applications/Tivoli Storage Manager"
Used in 5 fixlets | * Results in a true/false |

exists file "/Library/Application Support/tivoli/tsm/client/ba/bin/dsmcad"
Used in 5 fixlets | * Results in a true/false |

exists file "/Library/Application Support/tivoli/tsm/client/ba/bin/dsmagent"
Used in 1 fixlet | * Results in a true/false |

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"Success Criteria
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"}
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
Social Media: |