As a Proxmox VE administrator, there are several tools at your disposal to monitor and manage your cluster. One of these tools is the pvesh command-line tool, which allows you to perform various tasks such as node listings, data center listings, and more. In this blog post, we will focus on how to use pvesh to gather CPU/hard disk performance data from your Proxmox VE cluster.
Before we begin, it is important to note that only root users can perform these actions. Additionally, pvesh does not support REST/HTTPS connections, so you must use the API functions directly.
To start, you will need to gather information about your cluster’s nodes. You can do this by running the following command:
“`
pvesh node list
“`
This will display a list of all nodes in your cluster, along with their current CPU and hard disk usage. This information can be useful for identifying any performance issues or bottlenecks in your cluster.
Next, you can use the following command to gather more detailed performance data from your nodes:
“`
pvesh node perf
“`
Replace `
You can also use the following command to gather performance data from multiple nodes at once:
“`
pvesh node perf -m
“`
Replace `
In addition to monitoring CPU and hard disk usage, you can also use pvesh to gather other performance data from your cluster. For example, you can use the following command to gather information about memory usage:
“`
pvesh node mem
“`
Replace `
Overall, pvesh is a powerful tool for monitoring and managing your Proxmox VE cluster. By using these commands, you can gather valuable performance data from your nodes and identify any potential issues or bottlenecks. As always, be sure to only use these commands with root privileges and never attempt to access unauthorized areas of your cluster.