CLI Guide

Table Of Contents
Description
Creates a file sink for the specified monitor. File sinks send output to the specified file.
The default location of the output file is /var/log/VPlex/cli.
The default name for the file sink context is file.
Every monitor must have at least one sink, and may have multiple sinks. A monitor does not begin operation (polling and
collecting performance data) until a sink is added to the monitor
Use the monitor add-file-sink command to add a file sink to an existing monitor.
Example
To add a file sink to send output to the specified .csv file:
VPlexcli:/monitoring/directors/director-1-1-A/monitors> monitor add-file-sink --monitor
director-1-1-A_stats --file /var/log/VPlex/cli/director_1_1_A.csv
Navigate to the monitor sinks context and use the ll sink-name command to display the sink:
VPlexcli:>/cd /monitoring/directors/director-1-1-A/monitors/director-1-1-A_stats/sinks
VPlexcli:/monitoring/directors/Director-1-1-A/monitors/director-1-1-A_stats/sinks> ll
file
/monitoring/directors/Director-1-1-A/monitors/director-1-1-A_stats/sinks/file:
Name Value
------- -------------------------------
enabled true
format csv
sink-to /var/log/VPlex/cli/director_1_1_A.csv
type file
See also
monitor add-console-sink
monitor collect
monitor remove-sink
report create-monitors
monitor collect
Force an immediate poll and collection of performance data without waiting for the automatic poll interval.
Contexts
All contexts.
In /monitoring context, command is collect.
Syntax
monitor collect
[-m|--monitors] context-path,context-path...
Commands
243