pvcmon Command

Purpose

Allows you to view and log real-time system resource usage in PowerVC for diagnostics and performance monitoring.

Syntax

pvcmon -r {disk|proc|mem|swap|inode} [-n ]

Description

The pvcmon command captures and displays system usage data at specific intervals. The pvcmon command supports monitoring of statistics for disk, processes, memory, swap, and inode. The output is displayed on-screen and is also logged to /powervclog/powervc/monitor/pvcmon_monitor.log log file.

Read access to system resource commands is required to run the pvcmon command. The non-root users can safely run the pvcmon command as it does not modify the system state.

Flags

Table 1. Flags
Item Description
-h or --help Displays help about the pvcmon command.
-r or --metric Specifies the resource that must be monitored. The valid options are disk, pcoc, mem, swap, and inode.
-n or --interval Specifies the interval in seconds between updates. An interval of 0 specifies one-time output. The default value is 4 seconds.

Examples

  1. To display the memory usage of a system at an interval of 4 seconds, enter the following command:
    pvcmon -r mem -n 4
  2. To display the disk usage of a system only once, enter the following command:
    pvcmon -r disk -n 0