CLI Guide

Table Of Contents
About file rotation and timestamps
The log files created by a monitors file sink are automatically rotated when they reach a size of 10 MB. The 10MB file is saved
as filename.csv.n where n is a number 1 - 10, and output is saved in a new file named filename.csv.n+1.
The .csv files are rotated up to 10 times.
In the following example, a monitor has exceeded 10MB of output. The initial 10MB are stored in filename.csv.1.
Subsequent output is stored in filename.csv.
service@sms-cluster-1:/var/log/VPlex/cli> ll my-data.csv*
-rw-r--r-- 1 service users 2910722 2012-03-06 21:23 my-data.csv
-rw-r--r-- 1 service users 10566670 2012-03-06 21:10 my-data.csv.1
If the second file exceeds, 10B, it is saved as filename.csv.2, and subsequent output is saved in filename.csv. Up to 10
such rotations, and numbered .csv files are supported.
When the file sink is removed or the monitor is destroyed, output to the .csv file stops, and the current .csv file is time
stamped. For example:
service@sms-cluster-1:/var/log/VPlex/cli> ll my-data.csv*
-rw-r--r-- 1 service users 10566670 2012-03-06 21:23 my-data.csv.1
-rw-r--r-- 1 service users 5637498 2012-03-06 21:26 my-data.csv_20120306092614973
Examples
Create a simple monitor with the default period, and no targets:
VPlexcli:/monitoring> monitor create --name TestMonitor --director Director-2-1-B --
stats director.fe-read,director.fe-write
Successfully created 1 monitor(s) out of 1.
To create a monitor to collect statistics from the director category on /engines/engine1/directors/Director-2-1-B every 10
seconds:
VPlexcli:/monitoring> monitor create --name DirStats --period 10s --director /engines/
engine1/directors/Director-2-1-B --stats director.*
Create a monitor to collect statistics on all storage volumes at cluster-1:
VPlexcli:/monitoring> monitor create --name SVStats-Cluster1 --director /engines/engine1/
directors/Director-2-1-B --stats storage-volume.* --targets
/clusters/cluster-1/storage-elements/storage-volumes/*
Create a performance monitor to collect statistics on front-end port FE-ETH06:
VPlexcli:/monitoring> monitor create --name FE-ETH06-stats --director /engines/
engine-1-1/directors/director-1-1-A --stats fe-prt.* --targets engines/engine-1-1/
directors/director-1-1-A/hardware/ports/ETH06
See also
monitor add-console-sink
monitor-add-file-sink
monitor destroy
monitor stat-list
report create-monitors
Commands
255