Configuring and Using Media Flow Controller Logs and Alarms
6. Clear all memory of the specified sample, CHD (computed historical datapoint), or alarm,
or of all of those together. Clearing a sample or CHD deletes all of the gathered data.
Clearing an alarm resets it to a non-error state, clears the watermarks, and forgets the
event history. Type show stats chd to view CHD IDs, status and default threshold values.
stats clear-all
stats sample <sample_ID> clear
stats chd <CHD_ID> clear
stats alarm <alarm_ID> clear
7. Export statistics to csv (comma-separated value) file; the only format supported for
Release 2.0.4. The dataset to be exported is determined by the specified report name. If a
filename is specified, the stats are exported to a file of that name; otherwise a name is
given that contains the report name and time and date of the export. Either one, both, or
neither of the after and before parameters may be specified, placing boundaries on the
timestamps of the instances to be exported; they may come in either order relative to each
other. Use show files stats to see the file. Use file stats <filename> upload <URL> to
another system. See also
stats export csv <report_name> [filename <filename>] [after <date> <time>]
[before <date> <time>]
Example:
test-vos (config) # stats export csv cpu_util
test-vos (config) # show files stats
cpu_util-20090401-161206.csv
test-vos (config) # file stats upload cpu_util-20090401-161206.csv scp://
joe@sv01/home/joe
Password: *******
test-vos (config) #
8. List all stats of the specified type or a particular stat. If cpu is specified, basic statistics
about CPU utilization are displayed.
show stats {alarm [<alarm_ID>] | chd [<CHD_ID>] | cpu | sample [<sample_ID>]}
Note!
You can not set log statistics thresholds using the Web interface in Release 2.0.4.
Stats Reports Names Options
These are the report names you can use to export stats; the reports list all related alarms,
chds, and samples. See
•
memory—Memory utilization
•
paging—Paging I/O (input/output)
•
cpu_util—CPU utilization
•
bandwidth_day_avg—Average bandwidth usage
•
bandwidth_day_peak—Peak bandwidth usage
•
connection_day_avg—Average connection count
•
connection_day_peak—Peak connection count
232
Configuring Log Statistics Thresholds (CLI)
"Stats Reports Names Options" on page
stats
for CLI details.
Media Flow Controller Administrator's Guide
232.
Copyright © 2010, Juniper Networks, Inc.