卸载 NetQ
本页概述了如何从您的系统服务器和交换机中删除 NetQ 软件。
删除 NetQ 代理和 CLI
使用 apt-get purge
命令从 Cumulus Linux 交换机或 Ubuntu 主机中删除 NetQ 代理或 CLI 软件包
cumulus@switch:~$ sudo apt-get update
cumulus@switch:~$ sudo apt-get purge netq-agent netq-apps
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
netq-agent* netq-apps*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 310 MB disk space will be freed.
Do you want to continue? [Y/n] Y
...
如果您只想删除代理或 CLI,而不是两者都删除,请在 apt-get purge
命令中仅指定相关的软件包。
要验证从交换机中删除了软件包,请运行
cumulus@switch:~$ dpkg-query -l netq-agent
dpkg-query: no packages found matching netq-agent
cumulus@switch:~$ dpkg-query -l netq-apps
dpkg-query: no packages found matching netq-apps
使用 yum remove
命令从 RHEL7 或 CentOS 主机中删除 NetQ 代理或 CLI 软件包
root@rhel7:~# sudo yum remove netq-agent netq-apps
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package netq-agent.x86_64 0:3.1.0-rh7u28~1594097110.8f00ba1 will be erased
--> Processing Dependency: netq-agent >= 3.2.0 for package: cumulus-netq-3.1.0-rh7u28~1594097110.8f00ba1.x86_64
--> Running transaction check
---> Package cumulus-netq.x86_64 0:3.1.0-rh7u28~1594097110.8f00ba1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
...
Removed:
netq-agent.x86_64 0:3.1.0-rh7u28~1594097110.8f00ba1
Dependency Removed:
cumulus-netq.x86_64 0:3.1.0-rh7u28~1594097110.8f00ba1
Complete!
如果您只想删除代理或 CLI,而不是两者都删除,请在 yum remove
命令中仅指定相关的软件包。
要验证从交换机中删除了软件包,请运行
root@rhel7:~# rpm -q netq-agent
package netq-agent is not installed
root@rhel7:~# rpm -q netq-apps
package netq-apps is not installed
从系统服务器卸载 NetQ
首先删除收集的数据以释放已用的磁盘空间。然后删除软件。
登录到 NetQ 系统服务器。
使用以下命令删除数据。对于集群部署,请在集群中的每个节点上运行此命令
netq bootstrap reset purge-db
- 使用
apt-get purge
删除软件
cumulus@switch:~$ sudo apt-get update
cumulus@switch:~$ sudo apt-get purge netq-agent netq-apps
- 验证从交换机中删除了软件包
cumulus@switch:~$ dpkg-query -l netq-agent
dpkg-query: no packages found matching netq-agent
cumulus@switch:~$ dpkg-query -l netq-apps
dpkg-query: no packages found matching netq-apps
- 根据常用的 VMware 或 KVM 实践删除虚拟机。
使用以下方法之一从主机计算机中删除虚拟机
- 右键单击 收藏夹 列表中的虚拟机名称,然后选择 从磁盘删除。
- 选择虚拟机,然后选择 VM > 从磁盘删除。
使用以下方法之一从主机计算机中删除虚拟机
- 运行
virsch undefine <vm-domain> --remove-all-storage
- 运行
virsh undefine <vm-domain> --wipe-storage