Check Point 删除老的升级包和遗留文件


Platform / Model2000, 4000, 12000, 12000 VSX, 13000, 21000, 21000 VSX, Intel/PC, Power-1, UTM-1, VSX-1, Smart-1CP升级后,不管是通过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//var/opt//var/OPT//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 /o免费云主机域名pt/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:
CPrt (Eventia products)CPinfo (CPinfo utility)CPuepm (Endpoint Security Server)CPda (CPUSE Deployment Agent)CPSmartLog (SmartLog)CPmds (Multi-Domain Security Management Server)
脚本见附件:

相关推荐: 正则表达式格式

正则表达式元字符: 。 :匹配任意单个字符 * :匹配前面字符任意次 ? :匹配前面字符1次或者0次 {m,n} :匹配前面的字符至少m次,最多n次位置锚定: ^ :锚定行首,此字符后面的内容必须出现在行首 $ :锚定行尾,此字符后面的内容必须出现在行尾 ^$…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 01/27 17:01
下一篇 01/27 17:10