wget-замена перлом и патч weblogic

perl -e ‘use LWP::Simple; getprint($ARGV[0]);’ http://HOSTNAME/patches/p16063328_1036_Generic.zip > /tmp/p16063328_1036_Generic.zip; mkdir -p /oracle/fmw/utils/bsu/cache_dir/; unzip /tmp/p16063328_1036_Generic.zip -d /oracle/fmw/utils/bsu/cache_dir/; cd /oracle/fmw/utils/bsu; ./bsu.sh -install -patchlist=IHFB -patch_download_dir=/oracle/fmw/utils/bsu/cache_dir -verbose -prod_dir=/oracle/fmw/wlserver_10.3; ./bsu.sh -view -patch_download_dir=/oracle/fmw/utils/bsu/cache_dir -status=applied -verbose -prod_dir=/oracle/fmw/wlserver_10.3  

Weblogic log rotation — wlst script

log.py: connect(‘adminusername’,’megapassword’,’t3://hostname:portname’) edit() startEdit() svrs = adminHome.getMBeansByType(‘Server’) for s in svrs: name = s.getName() cd(‘/Servers/’ + name + ‘/Log/’ + name) cmo.setNumberOfFilesLimited(true) cmo.setFileCount(7) activate() disconnect() $WL_HOME/common/bin/wlst.sh $PATH_TO_FILE/log.py