03 January 2014

weblogic cheatsheet

TAKE BACKUP OF WEBLOGIC DOMAIN IN ONE COMMAND



$ 
find /apps -name "config.xml" | grep "/config/config.xml" | awk '{gsub(/config.xml/,"",$0); \
  fileName=$0; gsub(/\//,"_",fileName);print "mkdir /var/tmp/backup; \
  tar -cvzf /var/tmp/backup/"fileName".tar.gz " $0}' | sh


WEBLOGIC PATCHING THRU BSU

./bsu.sh param1 -patch_download_dir param2 option -prod_dir option

# to install patch
$ ./bsu.sh -patch_download_dir=/apps/wlserver/10.3.6/utils/bsu/cache_dir -patchlist=FSR2 -prod_dir=/apps/wlserver/10.3.6/wlserver_10.3/ -verbose –install

# to remove patch
$ ./bsu.sh -remove -patchlist=T5F1 -prod_dir=/apps/wlserver/10.3.6/wlserver_10.3/ (to remove patch)

# to check status of patch
$ ./bsu.sh -view -patch_download_dir=/apps/wlserver/11g/utils/bsu/cache_dir -status=applied -verbose -prod_dir=/apps/wlserver/11g/wlserver_10.3 

No comments:

Post a Comment