464 Implementing a Tivoli Solution for Central Management of Large Distributed Environments
new=$old,$usr
;;
esac
echo “/$old/ c $new” > $sedfile
sed -f $sedfile $grpfile > $tmpfile
sed -e ‘s/,,/,/g’ $tmpfile > $newfile
sed -e ‘s/:,/:/g’ $newfile > $grpfile
rm $newfile
rm $tmpfile
rm $sedfile
return $?
}
echo $0 “ received parms: “ $@
doit “userdel -r mqm”
doit “groupdel mqbrkrs”
doit “groupdel mqm”
exit 0
A.7.6 WebSphere Application Server v5.1 Fixpack 1
The files in this section define and build a software package capable of installing
and uninstalling WebSphere Application Server v5.1 fixpack 1.
In the online material, all these files are located in the following path relative to
the parent directory of the type of file:
/websphere/was/510_fp1/appserver/Linux-IX86.
was_appserver.5.1.0_fp1.spd
Example A-50 is the software package definition file.
Example: A-50 Software package definition for was_server.5.1.0_fp1
“TIVOLI Software Package v4.2.1 - SPDF”
package
name = was_appserver
title = “WebSphere Application Server Enterprise Edition v5.1 fixpack 1”
version = 5.1.0_fp1
web_view_mode = hidden
undoable = o
committable = o
history_reset = y
Appendix A. Configuration files and scripts 465
save_default_variables = n
creation_time = “2004-11-25 02:56:40”
last_modification_time = “2004-11-25 02:56:40”
default_variables
wasuser = root
waspassword = smartway
wasserver = server1
work_dir = $(root_dir)/$(prod_name)
prod_name = was_appserver_510_fp1
log_dir = $(root_dir)/log/$(prod_name)
img_dir = $(work_dir)/image
bin_dir = $(root_dir)/bin/$(os_family)
root_dir = /swdist
was_dir = /opt/IBM/WebSphere/AppServer
inst_dir = /opt/IBM/WebSphere/AppServer
gz_file = was51_fp1_linux.tar.gz
tar_file = C53IPML-WAS-510-LinuxIX86.tar
home_path = /mnt
prod_path =
websphere/was/510_fp1/appserver/$(os_name)-$(os_architecture)
src_base = $(home_path)/code
src_dir = $(src_base)/$(prod_path)
tool_base = $(home_path)/tools
tools_dir = $(tool_base)/$(prod_path)
unpack = yes
cleanup = yes
end
log_object_list
location = $(log_dir)
unix_user_id = 0
unix_group_id = 0
unix_attributes = rwx,rx,
end
source_host_name = srchost
move_removing_host = y
no_check_source_host = y
lenient_distribution = y
default_operation = install
server_mode = all
operation_mode = preferably_not_transactional,preferably_undoable,force
log_path = /mnt/logs/was_appserver_510_fp1.log
post_notice = y
before_as_uid = 0
skip_non_zero = n
466 Implementing a Tivoli Solution for Central Management of Large Distributed Environments
after_as_uid = 0
no_chk_on_rm = y
log_host_name = srchost
versioning_type = none
package_type = patch
sharing_control = none
stop_on_failure = y
add_directory
stop_on_failure = y
add = y
replace_if_existing = y
replace_if_newer = n
remove_if_modified = n
location = $(tool_base)
name = common
translate = n
destination = $(root_dir)/bin
descend_dirs = y
remove_empty_dirs = n
is_shared = n
remove_extraneous = n
substitute_variables = y
unix_attributes = rwx,rx,
unix_owner = root
unix_user_id = 0
unix_group_id = 0
create_dirs = y
remote = n
compute_crc = n
verify_crc = n
delta_compressible = d
temporary = n
is_signature = n
compression_method = stored
rename_if_locked = n
end
add_directory
stop_on_failure = y
add = y
replace_if_existing = y
replace_if_newer = n
remove_if_modified = n
location = $(src_base)
name = $(prod_path)
translate = n
destination = $(root_dir)/$(prod_name)
Appendix A. Configuration files and scripts 467
descend_dirs = n
remove_empty_dirs = n
is_shared = n
remove_extraneous = n
substitute_variables = n
unix_attributes = rwx,rx,
unix_owner = root
unix_user_id = 0
unix_group_id = 0
create_dirs = y
remote = n
compute_crc = n
verify_crc = n
delta_compressible = d
temporary = n
is_signature = n
compression_method = stored
rename_if_locked = n
end
generic_container
caption = “on install”
stop_on_failure = y
condition = “$(operation_name) == install “
check_disk_space
volume = /,500M
end
execute_user_program
caption = uncompress
condition = “$(unpack) == yes”
transactional = n
during_install
path = $(bin_dir)/do_it
arguments = “/bin/gunzip -dvf $(work_dir)/$(prod_name).tar.gz”
inhibit_parsing = n
working_dir = $(work_dir)
timeout = -1
unix_user_id = 0
unix_group_id = 0
user_input_required = n
output_file = $(log_dir)/$(prod_name)_uncompress.out
error_file = $(log_dir)/$(prod_name)_uncompress.err
output_file_append = n
error_file_append = n
468 Implementing a Tivoli Solution for Central Management of Large Distributed Environments
reporting_stdout_on_server = y
reporting_stderr_on_server = y
max_stdout_size = 10000
max_stderr_size = 10000
bootable = n
retry = 1
exit_codes
success = 0,0
failure = 1,65535
end
corequisite_files
add_file
replace_if_existing = y
replace_if_newer = n
remove_if_modified = n
name = $(src_dir)/$(gz_file)
translate = n
destination = $(work_dir)/$(prod_name).tar.gz
compression_method = stored
rename_if_locked = n
end
end
end
end
add_directory
stop_on_failure = y
add = y
replace_if_existing = y
replace_if_newer = n
remove_if_modified = n
location = $(src_base)
name = $(prod_path)
translate = n
destination = $(img_dir)
descend_dirs = n
remove_empty_dirs = n
is_shared = n
remove_extraneous = n
substitute_variables = y
unix_attributes = rwx,rx,

Get Implementing a Tivoli Solution for Central Management of Large Distributed Environments now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.