Media Flow Controller Configuration Tasks : Advanced Configurations : Configuring Log Statistics Thresholds

Configuring Log Statistics Thresholds
Use the stats commands to set thresholds for the syslog events, and export parameters for which statistics should be exported when. See stats for CLI details.
Enable or disable (with no) the specified alarm. Three alarms are disabled by default: disk_io (Disk I/O per second too high), intf_util (network utilization too high), and memory_pct_used (too much memory in use); all other alarms are enabled by default.
stats alarm <alarm_ID> enable
test-vos (config) # no stats alarm total_byte_rate enable
test-vos (config) # stats alarm total_byte_rate enable
Change the thresholds that initiate or terminate (clear) the specified alarm. The units for the cpu_util_indiv alarm are hundredths of a point of the one-minute load average. For example, setting it to 100 causes an alarm if the one-minute load average is ever over 1.0 when it is sampled. The units for the paging alarm are number of pages read from or written to the swap partition that has occurred over the past 20 seconds. Type show stats alarm to view alarm IDs and current status; to see default threshold values, enter show stats alarm <alarm_ID>. Note alarm threshold defaults have been adjusted for Media Flow Controller.
stats alarm <alarm_ID> rising error-threshold <threshold>
stats alarm <alarm_ID> rising clear-threshold <threshold>
stats alarm <alarm_ID> falling error-threshold <threshold>
stats alarm <alarm_ID> falling clear-threshold <threshold>
Set or reset 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.
stats alarm <alarm_ID> rate-limit count long {50 | duration>}
stats alarm <alarm_ID> rate-limit count medium {20 | <duration>}
stats alarm <alarm_ID> rate-limit count short {5 | <duration>}
stats alarm <alarm_ID> rate-limit reset
Configure or reset alarm event rate-limit duration windows for the three types of durations for alarms; defaults are short=3600, medium=86400, long=604800.
stats alarm <alarm_ID> rate-limit window long {604800 | <duration>}
stats alarm <alarm_ID> rate-limit window medium {86400 | <duration>}
stats alarm <alarm_ID> rate-limit window short {3600 | <duration>]
Change the amount of time between samples for the specified group of sample data. Type show stats sample to view sample IDs and current sampling interval.
stats sample <sample_ID> interval <poll_interval_time_in_seconds>
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
Export statistics to csv (comma-separated value) file; the only format supported for Release 2.0.2. The dataset to be exported is determined by the specified report name (given below). 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.
stats export csv <report_name> [filename <filename>] [after <date> <time>] [before <date> <time>]
test-vos (config) # stats export csv cpu_util
test-vos (config) # show files stats
test-vos (config) # file stats upload cpu_util-20090401-161206.csv scp://joe@sv01/home/joe
Password: *******
test-vos (config) #
Display 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’t set log statistics thresholds using the Management Console in Release 2.0.2.
Stats Reports
These are the report names you can use to export stats; the reports list all related alarms, chds, and/or samples. See stats for CLI details.
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

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