Commands
stats alarm clear
|
|
stats alarm <alarm ID> clear Clears alarm state. |
|
|
Syntax Description |
alarm ID |
Alarms supported by the system, for example:
|
|
Default |
N/A |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats alarm cpu_util_indiv clear |
|
|
Related Commands |
show stats alarm |
|
|
Notes |
|
|
stats alarm enable
|
|
stats alarm <alarm-id> enable
Enables the alarm.
|
|
|
Syntax Description |
alarm ID |
Alarms supported by the system, for example:
|
|
Default |
The default is different per alarm-id |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats alarm cpu_util_indiv enable |
|
|
Related Commands |
show stats alarm |
|
|
Notes |
|
|
stats alarm event-repeat
|
|
stats alarm <alarm ID> event-repeat {single | while-not-cleared}
Configures repetition of events from this alarm.
|
|
|
Syntax Description |
alarm ID |
Alarms supported by the system, for example:
|
|
single |
Does not repeat events: only sends one event whenever the alarm changes state. |
|
|
while-not-cleared |
Repeats error events until the alarm clears. |
|
|
Default |
single |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats alarm cpu_util_indiv event-repeat single |
|
|
Related Commands |
show stats alarm |
|
|
Notes |
|
|
stats alarm {rising | falling}
|
|
stats alarm <alarm ID> {rising | falling} {clear-threshold | error-threshold} <threshold-value> Configure alarms thresholds. |
|
|
Syntax Description |
alarm ID |
Alarms supported by the system, for example:
|
|
falling |
Configures alarm for when the statistic falls too low. |
|
|
rising |
Configures alarm for when the statistic rises too high. |
|
|
error-threshold |
Sets threshold to trigger falling or rising alarm. |
|
|
clear-threshold |
Sets threshold to clear falling or rising alarm. |
|
|
threshold-value |
The desired threshold value, different per alarm. |
|
|
Default |
Default is different per alarm-id |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats alarm cpu_util_indiv falling clear-threshold 10 |
|
|
Related Commands |
show stats alarm |
|
|
Notes |
Not all alarms support all four thresholds. |
|
stats alarm rate-limit
|
|
stats alarm <alarm ID> rate-limit {count <count-type> <count> | reset | window <window-type> <duration>} Configures alarms rate limit. |
|
|
Syntax Description |
alarm ID |
Alarms supported by the system, for example:
|
|
count-type |
Long medium, or short count (number of alarms). |
|
|
reset |
Set the count and window durations to default values for this alarm. |
|
|
window-type |
Long medium, or short count, in seconds. |
|
|
Default |
Short window: 5 alarms in 1 hour
|
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats alarm paging rate-limit window long 2000 |
|
|
Related Commands |
show stats alarm |
|
|
Notes |
|
|
stats chd clear
|
|
stats chd <CHD ID> clear Clears CHD counters. |
|
|
Syntax Description |
CHD ID |
CHD supported by the system, for example:
|
|
Default |
N/A |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats chd memory_day clear |
|
|
Related Commands |
show stats chd |
|
|
Notes |
|
|
stats chd enable
|
|
stats chd <chd-id> enable
Enables the CHD.
|
|
|
Syntax Description |
chd-id |
CHD supported by the system, for example:
|
|
Default |
Enabled |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats chd memory_day enable |
|
|
Related Commands |
show stats chd |
|
|
Notes |
|
|
stats chd compute time
|
|
stats chd <CHD ID> compute time {interval | range} <number of seconds> Sets parameters for when this CHD is computed. |
|
|
Syntax Description |
CHD ID |
Possible IDs:
|
|
interval |
Specifies calculation interval (how often to do a new calculation) in number of seconds |
|
|
range |
Specifies calculation range, in number of seconds |
|
|
number of seconds |
Number of seconds |
|
|
Default |
Different per CHD |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats chd memory_day compute time interval 120 |
|
|
Related Commands |
show stats chd |
|
|
Notes |
|
|
stats export
|
|
stats export <format> <sample-id> Exports collected information to a file. Can export extended "power" samples. |
|
|
Syntax Description |
sample-id |
Sample name for which report file should be generated.
|
|
format |
Format of report file |
|
|
Default |
N/A |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats export csv memory |
|
|
Related Commands |
show stats sample |
|
|
Notes |
|
|
stats sample clear
|
|
stats sample <sample ID> clear Clears sample history. |
|
|
Syntax Description |
sample ID |
Possible sample IDs are:
|
|
Default |
N/A |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats sample temperature clear |
|
|
Related Commands |
show stats sample |
|
|
Notes |
|
|
stats sample enable
|
|
stats sample <sample-id> enable
Enables the sample.
|
|
|
Syntax Description |
sample-id |
Possible sample IDs are:
|
|
Default |
Enabled |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats sample temperature enable |
|
|
Related Commands |
show stats sample |
|
|
Notes |
|
|
stats sample interval
|
|
stats sample <sample-id> interval [<interval>]
Sets the sampling interval between taking of sample records.
|
|
|
Syntax Description |
sample-id |
Sample name for which report file should be generated.
|
|
interval |
Measured in seconds. Range: 1 - 86400 (24 hours)
|
|
|
Default |
Default for “interface” samples is 60 seconds |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000
|
|
|
Example |
metrox (config) # stats sample memory interval 1 |
|
|
Related Commands |
show stats sample |
|
|
Notes |
|
|
stats sample max-entries
|
|
stats sample <sample-id> max-entries [<max-entries>]
Sets number of records to be kept in memory for the counter.
|
|
|
Syntax Description |
sample-id |
Sample name for which report file should be generated.
|
|
max-entries |
Number of records
|
|
|
Default |
Default “interface” samples is 100 records |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000
|
|
|
Example |
metrox (config) # stats sample memory max-entries 1000 |
|
|
Related Commands |
show stats sample |
|
|
Notes |
|
|
stats clear-all
|
|
stats clear-all Clears data for all samples, CHDs, and status for all alarms. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
Configuration Mode |
config |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # stats clear-all |
|
|
Related Commands |
show stats sample |
|
|
Notes |
|
|
show stats alarm
|
|
show stats alarm [<alarm-id> [rate-limit]] Displays status of all alarms or the specified alarm. |
|
|
Syntax Description |
alarm-id |
Available values:
|
|
rate-limit |
Displays rate limit parameters |
|
|
Default |
N/A |
|
|
Configuration Mode |
Any command mode |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # show stats alarm Alarm cpu_util_indiv (Average CPU utilization too high): okAlarm disk_io (Operating System Disk I/O per second too high): (disabled)Alarm fs_mnt (Free filesystem space too low): okAlarm intf_util (Network utilization too high): (disabled)Alarm memory_pct_used (Too much memory in use): (disabled)Alarm paging (Paging activity too high): okAlarm temperature (Temperature is too high): ok |
|
|
Related Commands |
stats alarm |
|
|
Notes |
|
|
show stats chd
|
|
show stats chd [<chd-id>] Displays configuration of all statistics CHDs. |
|
|
Syntax Description |
chd-id |
Available values:
|
|
Default |
N/A |
|
|
Configuration Mode |
Any command mode |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # show stats chd disk_device_io_hour CHD "disk_device_io_hour" (Storage device I/O read/write statistics for the last hour: bytes): Enabled: yes Source dataset: sample "disk_device_io" Computation basis: data points Interval: 1 data point(s) Range: 1 data point(s |
|
|
Related Commands |
stats chd |
|
|
Notes |
|
|
show stats cpu
|
|
show stats cpu Displays some basic stats about CPU utilization:
|
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
Configuration Mode |
Any command mode |
|
|
History |
18.01.5000 |
|
|
|
metrox (config) # show stats cpuCPU 0 Utilization: 6% Peak Utilization Last Hour: 16% at 2012/02/28 08:47:32 Avg. Utilization Last Hour: 8%
|
|
|
Related Commands |
|
|
|
Notes |
|
|
show stats sample
|
|
show stats sample [<sample-id>] Displays sampling interval for all samples, or the specified one. |
|
|
Syntax Description |
sample-id |
Sample name for which report file should be generated.
|
|
Default |
N/A |
|
|
Configuration Mode |
Any command mode |
|
|
History |
18.01.5000 |
|
|
Example |
metrox (config) # show stats sample fanSample "fan" (Fan speed): Enabled: yes Sampling interval: 1 minute 11 seconds |
|
|
Related Commands |
|
|
|
Notes |
|
|
show stats sample data
|
|
show stats sample <sample-id> data [group name <group-name> [counter <counter-name>] ] [max-samples {<max-samples> | all}] Displays history of counter values (i.e. collected information for a sample). |
|
|
Syntax Description |
sample-id |
Sample name for which report file should be generated.
|
|
interface |
Allows limiting output to a particular interface’s counters |
|
|
group |
Allows limiting output to a particular group of counters |
|
|
counter |
Allows limiting output to a particular counter. This option is available only if the option interface or group is chosen. |
|
|
max-samples |
Allows choosing a number of counter records to display. Range: 1-1000 records. The “all” option is meant for all available records. By default, 20 counter records are displayed. |
|
|
Default |
N/A |
|
|
Configuration Mode |
Any command mode |
|
|
History |
18.01.5000 |
|
|
Example |
||
|
metrox (config) # show stats sample memory data Sampling data for Memory utilization: Physical memory utilization: ------------------------------------------------------------------------------ Name Timestamp Value ------------------------------------------------------------------------------ Free_physical_memory_(kB) 2022/12/13 12:04:43 84215872 Free_physical_memory_(kB) 2022/12/13 12:04:23 84215840 Free_physical_memory_(kB) 2022/12/13 12:04:03 84215808 Free_physical_memory_(kB) 2022/12/13 12:03:43 84216068 Free_physical_memory_(kB) 2022/12/13 12:03:23 84215972 Free_physical_memory_(kB) 2022/12/13 12:03:03 84216352 Free_physical_memory_(kB) 2022/12/13 12:02:44 84215536 Free_physical_memory_(kB) 2022/12/13 12:02:23 84216500 Free_physical_memory_(kB) 2022/12/13 12:02:03 84216452 Free_physical_memory_(kB) 2022/12/13 12:01:44 84215668 ... |
||
|
Related Commands |
|
|
|
Notes |
|
|
Last updated: