Media Flow Controller CLI Commands : stats

stats
Configure statistics and alarms. To see default threshold values, enter show stats alarm <alarm_ID>. Set email notifications for these stats using email commands. See “Configuring Log Statistics Thresholds” on page 98 for task details.
stats
alarm <alarm_ID>
clear
enable
falling [clear-threshold <value>] [ error-threshold <value>]
rate-limit
count {long <count> | medium <count> | short <count>}
reset
window {long<duration> | medium<duration> | short<duration>}
rising [clear-threshold <value>] [ error-threshold <value>]
chd <CHD_ID>
clear
compute time [interval <seconds>] [range <seconds>]
clear-all
export {<format> | csv} {<report_name>| cpu_util | memory | paging}
after <date><time> [before <date><time>]
before <date><time> [after <date><time>]
filename <filename>
after <date><time> [before <date><time>]
before <date><time> [after <date><time>]
sample <sample_ID>
clear
interval <number_of_seconds>
Notes:
alarm <alarm_ID>—Configure alarms based on sampled or computed statistics. See “stats alarms," next, for the list of supported alarms. Note that some statistics are of concern when they fall below a certain point, others when they rise above a certain point.
clear—Clear all state for this alarm. Clearing an alarm resets it to a non?error state, clears the watermarks, and forgets the event history. Note! “watermark” for rising alarm = max value since reset; for falling alarm = min value since reset.
enable—Enable this alarm. Use no stats alarm <alarm_ID> enable to disable.
falling—Set alarm for when specified statistic fall too low.
clear-threshold <value>—This value terminates the alarm.
error-threshold <value>—This value initiates the alarm.
rate-limit—Set alarm event rate-limits:
count—Set the alarm event rate-limit maximum counts for the three types of counts (short, medium, long) for alarms; defaults are short=5, medium=20, long=50. See “stats alarm rate-limit count," below, for more information.
reset—Reset the rate-limit counters and time for the specified alarm.
window—Set the alarm event rate-limit duration windows for the three types of durations (short, medium, long) for alarms; defaults are short=3600 (1 hour), medium=86400 (1 day), long=604800 (1 week).
rising—Set alarm for when specified statistic rises too high.
clear-threshold—This value terminates the alarm.
error-threshold—This value initiates the alarm.
chd <CHD_ID>—Configure computed historical datapoints (CHDs). See “stats CHDs," next, for the list of supported CHDs.
clear—Clear all data from this CHD series.
compute time—Set parameters for when this CHD is computed, and which data points are used in each calculation.
interval—Specify calculation interval (how often to do a new calculation) in number of seconds.
range—Specify calculation range (the data points to use) in number of seconds.
clear-all—Clear data for all samples and CHDs, and status for all alarms.
export <format> <report_name>—Export statistics to file. Currently the only supported value for <format> is csv (comma-separated value). The dataset to be exported is determined by the report_name value. Options for report_name are: memory, paging, and cpu_util. All alarm statistics associated with the specified report are exported.
after—Only include stats collected after the specified time.
before—Only include stats collected before the specified time.
Either one, both, or neither of the after and before arguments may be specified. These place boundaries on the timestamps of the instances to be exported. When one of these arguments is specified, two values must follow, one for the date (yyyy/mm/dd) and one for the time (hh:mm:ss); in 24-hour time. Dash (-) may be used in the <time> field as an abbreviation for midnight. The date and time specified are interpreted as local time according to the currently set timezone.
filename <filename>—If a filename is specified, the stats are exported to a file of that name; otherwise a name is chosen automatically and contains the name of the report and the time and date of the export. Any automatically-chosen name is given a .csv extension. If the user specifies a name, .csv is added if it is not already part of the name. The word custom should be a reserved report name (no reports should be named that) to leave room in the command set for later allowing you to specify manually which series to export. If the filename is specified, it must come just after the report name. If the after and/or before arguments are specified, they may come in either order relative to each other.
sample <sample_ID>—Configure sampled statistics. See “stats samples," next, for a list of supported samples.
clear—Clear all data from this sample series.
interval—Set the amount of time in seconds (1 - 2147483647) between sample polling for the specified group of sample data.
show stats
alarm [<alarm_ID>]
chd [<CHD_ID>]
cpu
sample [<sample_ID>]
Notes:
alarm—Status of all alarms or the specified alarm, whether or not it is in an error state.
chd—Statistics CHDs settings.
cpu—Basic statistics about CPU utilization: the current level, the peak over the past hour, and the average over the last hour.
sample—Sampling interval for all samples, or the specified one.

Report an Error
Media Flow Controller Administrator's Guide and CLI Command Reference
Copyright © 2010 Juniper Networks, Inc.