CheckPoint刪除老的升級包和遺留文件

Solution IDsk91060
ProductSecurity Gateway, Security Management, Cluster - 3rd party, VSX
VersionR70, R70.1, R70.20, R70.30, R70.40, R70.50, R71, R71.10, R71.20, R71.30, R71.40, R71.45, R71.50, R75, R75.10, R75.20, R75.30, R75.40, R75.40VS, R75.45, R75.46, R75.47, R76, R77, R77.10, R77.20, R77.30
OSSecurePlatform 2.6, Gaia

Platform / Model

成都創(chuàng)新互聯(lián)主要從事成都網(wǎng)站設(shè)計、網(wǎng)站制作、網(wǎng)頁設(shè)計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)濮陽,十多年網(wǎng)站建設(shè)經(jīng)驗,價格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):028-86922220

2000, 4000, 12000, 12000 VSX, 13000, 21000, 21000 VSX, Intel/PC, Power-1, UTM-1, VSX-1, Smart-1

CP升級后,不管是通過web UI,還是命令行升級的,其下載的補丁包是不會自動刪除的,為了避免硬盤空間不足,所以需要手工刪除這些不用的補丁包。

使用check point 提供的專用腳本即可。

Solution

A new script was developed in order to remove all old packages and files from the upgraded machine (R70 GA and above).

Important Notes:

The script can be used only on SecurePlatform OS and on Gaia OS running Check Point R70 and higher versions.

On Linux OS and on Solaris OS, the users should use the official "Uninstall" procedure documented in the relevant R7x Installation and Upgrade Guide (R70, R70.20, R70.30, R71, R75, R75.20, R75.40, R75.40VS, R76, R77 Gaia, R77 Non-Gaia).

On Windows OS, there is no automated way to remove old files from the previous installations. Users can only uninstall old SmartConsole packages. Manual deletion (or uninstalling) of previous versions' folders should not be performed.

For Provider-1 / Multi-Domain Management Server, refer to sk65330 - Removing old installations on Provider-1 / Multi-Domain Management Server.

 

Follow these steps to remove all old packages and files:

Download the TAR file with the shell script - RemoveOldVersion.tar.

Transfer the RemoveOldVersion.tar file to the relevant machine (for example, /var/log/ directory).

Connect to the command line on the machine.

Log in to Expert mode.

Extract the shell script:

[Expert@HostName]# cd /var/log/
[Expert@HostName]# tar xvf RemoveOldVersion.tar

Assign the execute permissions to the script:

[Expert@HostName]# chmod u+x /var/log/RemoveOldVersion.sh

Execute the script:

[Expert@HostName]# ./RemoveOldVersion.sh

The script performs the following operations:


/opt/<package>

/var/opt/<package>

/var/OPT/<package>

/opt/CPshrd-*

/var/log/CPsuite-*

CPrt (Eventia products)

CPinfo (CPinfo utility)

CPuepm (Endpoint Security Server)

CPda (Deployment Agent)

CPSmartLog (SmartLog)

CPmds (Multi-Domain Security Management Server)

Creates a detailed log file:
/var/log/RemoveOldVersion.elg

Uninstalls all old RPM packages, except these:

Deletes all directories and files that were installed by old RPM packages (except those mentioned above):

Restores '/sysimg' location (if created directory/symlink) after installation.

Restores links for old FW-1 log folders that exist in '/var/log'.

Once the script completes its job, the user will get the prompt back.

To verify that the script has finished successfully, run the following commands:

[Expert@HostName]# rpm -qa | grep CP
[Expert@HostName]# ls -l /opt/CP*
[Expert@HostName]# ls -l /var/opt/CP*
[Expert@HostName]# ls -l /var/log/CPsuite-*

Notes:

  • The outputs should show only the latest version (to which the system was upgraded).

  • These directories are not deleted:

  1.  CPrt (Eventia products)

  2. CPinfo (CPinfo utility)

  3. CPuepm (Endpoint Security Server)

  4. CPda (CPUSE Deployment Agent)

  5. CPSmartLog (SmartLog)

  6. CPmds (Multi-Domain Security Management Server)

腳本見附件:

附件:http://down.51cto.com/data/2365881

文章標(biāo)題:CheckPoint刪除老的升級包和遺留文件
文章轉(zhuǎn)載:http://muchs.cn/article0/jchpio.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供全網(wǎng)營銷推廣、外貿(mào)建站、小程序開發(fā)商城網(wǎng)站、ChatGPT、網(wǎng)站設(shè)計

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

商城網(wǎng)站建設(shè)