首先看帮助选项:
[root@pxc1 bsu]# ./bsu.sh -help
-help Displays this usage message. REQUIRED
-version Displays version information.
-view View information about applied or downloaded patches. REQUIRED
-patch_download_dir The location of the patch cache directory.
-status Specifies installation status when using the view option. (applied|downloaded) REQUIRED
-verbose Display verbose output
-prod_dir The product installation directory. REQUIRED
-install Install a patch. REQUIRED
-patchlist The list of patches. REQUIRED
-patch_download_dir The location of the patch cache directory.
-verbose Display verbose output
-prod_dir The product installation directory. REQUIRED
-remove Remove a patch. REQUIRED
-patchlist The list of patches. REQUIRED
-verbose Display verbose output
-prod_dir The product installation directory. REQUIRED
-log The path to the log file.
-log_priority The log priority. (trace|debug|info|warn|error|fatal)
开启debug日志记录:
[root@pxc1 bsu]# ./bsu.sh -prod_dir=/weblogic/web11g36/wlserver_10.3 -status=applied -view -log=bsu.log -log_priority=debug
ProductName: WebLogic Server
ProductVersion: 10.3 MP6
Components: WebLogic Server/Core Application Server,WebLogic Server/Admi
nistration Console,WebLogic Server/Configuration Wizard and
Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
ic Server/Evaluation Database,WebLogic Server/Workshop Code
Completion Support
BEAHome: /weblogic/web11g36
ProductHome: /weblogic/web11g36/wlserver_10.3
PatchSystemDir: /weblogic/web11g36/utils/bsu
PatchDir: /weblogic/web11g36/patch_wls1036
Profile: Default
DownloadDir: /weblogic/web11g36/utils/bsu/cache_dir
JavaVersion: 1.6.0_29
JavaVendor: Sun
Patch ID: CW7X (31241365)
Patch ID: NA7A (31641257)
[root@pxc1 bsu]#
[root@pxc1 bsu]# tail -fn100 bsu.log
2020-11-26 08:58:36,447 DEBUG [main] com.bea.plateng.patch.PatchHelper - BEA Patch Managment System 3.3.0.0 (Irish Bank) Started.
2020-11-26 08:58:36,478 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTargetHelper - beaHome: /weblogic/web11g36
2020-11-26 08:58:36,478 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTargetHelper - Getting the registry
2020-11-26 08:58:36,965 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTargetHelper - Got the registry
2020-11-26 08:58:36,978 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTarget - product id: Common Infrastructure Engineering
2020-11-26 08:58:36,978 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTarget - product release: 7.4.0.0
2020-11-26 08:58:36,978 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTarget - product is installed: true
2020-11-26 08:58:36,979 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTarget - product id: WebLogic Server
2020-11-26 08:58:36,979 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTarget - product release: 10.3.6.0
2020-11-26 08:58:36,979 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTarget - product is installed: true
2020-11-26 08:58:37,209 DEBUG [Thread-0] com.bea.plateng.patch.PatchSystem - getting the catalog from the cahce dir: /weblogic/web11g36/utils/bsu/cache_dir
2020-11-26 08:58:37,212 DEBUG [Thread-0] com.bea.plateng.patch.dao.cat.PatchCatalogHelper - getting patchcatalog for /weblogic/web11g36/utils/bsu/cache_dir
2020-11-26 08:58:37,213 DEBUG [Thread-0] com.bea.plateng.patch.dao.cat.PatchCatalogHelper - getting patchcatalog for /weblogic/web11g36/utils/bsu/cache_dir and file available
2020-11-26 08:58:42,603 DEBUG [Thread-0] com.bea.plateng.patch.dao.cat.PatchCatalogHelper - No of patch_catalog_ver.xml in /weblogic/web11g36/utils/bsu/cache_dir are:6
2020-11-26 08:58:42,606 DEBUG [Thread-0] com.bea.plateng.patch.dao.pio.PatchProductInfoHelper - Getting product info from prodInfoDir: /weblogic/web11g36/utils/bsu/cache_dir
2020-11-26 08:58:42,606 DEBUG [Thread-0] com.bea.plateng.patch.dao.pio.PatchProductInfoHelper - Getting product info from resource
2020-11-26 08:58:42,606 DEBUG [Thread-0] com.bea.plateng.patch.dao.pio.PatchProductInfoHelper - prod-info file: file:/weblogic/web11g36/modules/com.bea.cie.patch-common_3.3.0.0.jar!/resources/patch-common/prod-info.xml
2020-11-26 08:58:42,607 DEBUG [Thread-0] com.bea.plateng.patch.dao.pio.PatchProductInfoHelper - Getting product info from resource and resource avialable
2020-11-26 08:58:42,662 DEBUG [Thread-0] com.bea.plateng.patch.dao.pio.PatchProductInfoFactory - Creating ProductInfo from inputStream: java.io.FileInputStream@78f14616 and obscure false
2020-11-26 08:59:12,731 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTarget - product id: Oracle Configuration Manager
2020-11-26 08:59:12,738 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTarget - product release: 10.3.5.0
2020-11-26 08:59:12,739 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTarget - product is installed: true
2020-11-26 08:59:12,747 DEBUG [Thread-0] com.bea.plateng.patch.ProductAliasTargetHelper - prodAliasTargetList: [ Release: 10.3 MP6]