dx_get_cpu - delphix/dxtoolkit GitHub Wiki
SYNOPSIS
dx_get_cpu -d [ -engine|d <delphix identifier> | -all ] [ -configfile file ]
[ -w <warning % used> ]
[ -c <critical % used> ]
[ -raw ]
[ -st "YYYY-MM-DD [HH24:MI:SS]" ]
[ -et "YYYY-MM-DD [HH24:MI:SS]" ]
[ -debug ]
[ -help|-? ]
ARGUMENTS
Delphix Engine selection - if not specified a default host(s) from dxtools.conf will be used.
- -engine|d Specify Delphix Engine name from dxtools.conf file
- -all Run script for all Delphix Engines from config file
- -configfile file Location of the configuration file. A config file search order is as follow:
- configfile parameter
- DXTOOLKIT_CONF variable
- dxtools.conf from dxtoolkit location
OPTIONS
- -st StartTime (format: YYYY-MM-DD [HH24:MI:SS]). Default is "now-5 min".
- -et EndTime (format: YYYY-MM-DD [HH24:MI:SS]). Default is "now"
- -i Time Inteval, allowed values are 1 or S for 1 sec, 60 or M for 1 min , 3600 or H for 1 hour
- -w Warning level in milliseconds (Integer, Default 75)
- -c Critical level in milliseconds (Integer, Default 95)
- -raw Show Raw Data, instead of average
- -help Print this screen
- -debug Turn on debugging
EXAMPLES
Average CPU utilization for a last 5 minutes using 1-second sample
dx_get_cpu -d DE1
OK: DE1 cpu utilization 27.70
Average CPU utilization for a last 5 minutes using 1-second sample with warning level set to 20 %
dx_get_cpu -d Landshark5 -w 20
WARNING: Landshark5 cpu utilization 21.50
Average CPU utilization for a 20th April 2016 using 1-minutes data
dx_get_cpu -d DE1 -i 60 -st "2016-04-20" -et "2016-04-21"
OK: DE1 cpu utilization 30.80
Raw CPU data for a last 5 minutes using 60-second sample
dx_get_cpu -d Landshark5 -raw -i 60
#timestamp,util
2016-04-21 09:22:00,26.20
2016-04-21 09:23:00,23.77
2016-04-21 09:24:00,35.94
2016-04-21 09:25:00,35.88