解决了

get -ntnxHostStat-在哪里可以找到所需的-metrics参数的规格?

  • 2019年9月11日
  • 1回复
  • 964意见

Userlevel 1
徽章 +3
与NTNX PowerShell CMDLET一起工作,并努力寻找有关Get -ntnxHostStat cmdlet所需的信息参数的信息。在哪里可以找到指标?
图标

最好的答案麦克兰2019年9月11日,22:13

\n
\nThe metrics appear to be the same as the stats on the host. This really should've been more simple to find in the documentation though. You can see that the metrics that Chandru referenced \"hypervisor_memory_usage_ppm\" is available in the list below.
\n
\n
\nThe metrics appear to be the same as the stats on the host. This really should've been more simple to find in the documentation though. You can see that the metrics that Chandru referenced \"hypervisor_memory_usage_ppm\" is available in the list below.
\n
\n
\n$NTXSvr = Get-NTNXHost
\n$NTXSvr[0].stats
\n
\nHere's the resultant list:<\/b>
\n
\nKey Value
\n--- -----
\nhypervisor_avg_io_latency_usecs 0
\nnum_read_iops 480
\n$NTXSvr[0].stats
\n
\nHere's the resultant list:<\/b>
\n
\nKey Value
\n--- -----
\nhypervisor_avg_io_latency_usecs 0
\nnum_read_iops 480
\nhypervisor_write_io_bandwidth_kBps 0
\ntimespan_usecs 20000000
\ncontroller_num_read_iops 419
\nread_io_ppm 843500
\ncontroller_num_iops 668
\ntotal_read_io_time_usecs -1
\ncontroller_total_read_io_time_usecs 21530657
\nhypervisor_num_io 0
\ncontroller_total_transformed_usage_bytes -1
\nhypervisor_cpu_usage_ppm 207203
\ncontroller_num_write_io 4987
\navg_read_io_latency_usecs -1
\ncontent_cache_logical_ssd_usage_bytes 0
\ncontroller_total_io_time_usecs 33110993
\ncontroller_total_read_io_size_kbytes 268115
\ncontroller_num_seq_io -1
\ncontroller_read_io_ppm 627223
\ncontent_cache_num_lookups 78679
\ncontroller_total_io_size_kbytes 522571
\ncontent_cache_hit_ppm 410770
\ncontroller_num_io 13378
\nhypervisor_avg_read_io_latency_usecs 0
\ncontent_cache_num_dedup_ref_count_pph 100
\nnum_write_iops 89
\ncontroller_num_random_io 0
\nnum_iops 569
\nhypervisor_num_read_io 0
\nhypervisor_total_read_io_time_usecs 0
\ncontroller_avg_io_latency_usecs 2475
\nnum_io 11393
\ncontroller_num_read_io 8391
\nhypervisor_num_write_io 0
\ncontroller_seq_io_ppm -1
\ncontroller_read_io_bandwidth_kBps 13405
\ncontroller_io_bandwidth_kBps 26128
\nhypervisor_num_received_bytes 0
\nhypervisor_timespan_usecs 29861007
\nhypervisor_num_write_iops 0
\ntotal_read_io_size_kbytes 80848
\nhypervisor_total_io_size_kbytes 0
\navg_io_latency_usecs 196
\nhypervisor_num_read_iops 0
\ncontent_cache_saved_ssd_usage_bytes 0
\ncontroller_write_io_bandwidth_kBps 12722
\ncontroller_write_io_ppm 372776
\nhypervisor_avg_write_io_latency_usecs 0
\nhypervisor_num_transmitted_bytes 0
\nhypervisor_total_read_io_size_kbytes 0
\nread_io_bandwidth_kBps 4042
\nhypervisor_memory_usage_ppm 351338
\nhypervisor_num_iops 0
\nhypervisor_io_bandwidth_kBps 0
\ncontroller_num_write_iops 249
\ntotal_io_time_usecs 2242417
\ncontent_cache_physical_ssd_usage_bytes 0
\ncontroller_random_io_ppm -1
\ncontroller_avg_read_io_size_kbytes 31
\ntotal_transformed_usage_bytes -1
\navg_write_io_latency_usecs -1
\nnum_read_io 9610
\nwrite_io_bandwidth_kBps 6075
\nhypervisor_read_io_bandwidth_kBps 0
\nrandom_io_ppm -1
\ntotal_untransformed_usage_bytes -1
\nhypervisor_total_io_time_usecs 0
\nnum_random_io -1
\ncontroller_avg_write_io_size_kbytes 51
\ncontroller_avg_read_io_latency_usecs 2565
\nnum_write_io 1783
\ntotal_io_size_kbytes 202356
\nio_bandwidth_kBps 10117
\ncontent_cache_physical_memory_usage_bytes 6366663580
\ncontroller_timespan_usecs 20000000
\nnum_seq_io -1
\ncontent_cache_saved_memory_usage_bytes 0
\nseq_io_ppm -1
\nwrite_io_ppm 156499
\ncontroller_avg_write_io_latency_usecs 2322
\ncontent_cache_logical_memory_usage_bytes 6366663580","className":"post__content__best_answer"}">
查看原件

该主题已关闭以供评论

1回复

Userlevel 1
徽章 +3
对于那些有兴趣的人,我找出了一种获得指标的方法:

指标似乎与主机上的统计数据相同。不过,这确实应该在文档中更简单。您可以看到Chandru引用的“ Hypervisor_memory_usage_ppm”的指标可在下面的列表中获得。


指标似乎与主机上的统计数据相同。不过,这确实应该在文档中更简单。您可以看到Chandru引用的“ Hypervisor_memory_usage_ppm”的指标可在下面的列表中获得。


$ ntxsvr = get-ntnxhost
$ ntxsvr [0] .stats

这是结果列表:

核心价值
---- ------------
hypervisor_avg_io_latency_usecs 0
num_read_iops 480
$ ntxsvr [0] .stats

这是结果列表:

核心价值
---- ------------
hypervisor_avg_io_latency_usecs 0
num_read_iops 480
hypervisor_write_io_bandwidth_kbps 0
timespan_usecs 20000000
controller_num_read_iops 419
read_io_ppm 843500
controller_num_iops 668
total_read_io_time_usecs -1
controller_total_read_io_time_usecs 21530657
hypervisor_num_io 0
controller_total_transformed_usage_bytes -1
hypervisor_cpu_usage_ppm 207203
controller_num_write_io 4987
avg_read_io_latency_usecs -1
content_cache_logical_ssd_usage_bytes 0
controller_total_io_time_usecs 33110993
controller_total_read_io_size_kbytes 268115
controller_num_seq_io -1
controller_read_io_ppm 627223
content_cache_num_lookups 78679
controller_total_io_size_kbytes 522571
content_cache_hit_ppm 410770
controller_num_io 13378
hypervisor_avg_read_io_latency_usecs 0
content_cache_num_dedup_ref_count_pph 100
num_write_iops 89
controller_num_random_io 0
num_iops 569
hypervisor_num_read_io 0
hypervisor_total_read_io_time_usecs 0
controller_avg_io_latency_usecs 2475
num_io 11393
controller_num_read_io 8391
hypervisor_num_write_io 0
controller_seq_io_ppm -1
controller_read_io_bandwidth_kbps 13405
controller_io_bandwidth_kbps 26128
hypervisor_num_received_bytes 0
hypervisor_timespan_usecs 29861007
hypervisor_num_write_iops 0
total_read_io_size_kbytes 80848
hypervisor_total_io_size_kbytes 0
AVG_IO_LATENCY_USECS 196
hypervisor_num_read_iops 0
content_cache_saved_ssd_usage_bytes 0
controller_write_io_bandwidth_kbps 12722
controller_write_io_ppm 372776
hypervisor_avg_write_io_latency_usecs 0
hypervisor_num_transmitted_bytes 0
hypervisor_total_read_io_size_kbytes 0
read_io_bandwidth_kbps 4042
hypervisor_memory_usage_ppm 351338
hypervisor_num_iops 0
hypervisor_io_bandwidth_kbps 0
controller_num_write_iops 249
total_io_time_usecs 2242417
content_cache_physical_ssd_usage_bytes 0
controller_random_io_ppm -1
controller_avg_read_io_size_kbytes 31
total_transformed_usage_bytes -1
avg_write_io_latency_usecs -1
num_read_io 9610
write_io_bandwidth_kbps 6075
hypervisor_read_io_bandwidth_kbps 0
Random_io_ppm -1
total_untransformed_usage_bytes -1
hypervisor_total_io_time_usecs 0
num_random_io -1
controller_avg_write_io_size_kbytes 51
controller_avg_read_io_latency_usecs 2565
num_write_io 1783
total_io_size_kbytes 202356
io_bandwidth_kbps 10117
content_cache_physical_memory_usage_bytes 63666663580
controller_timespan_usecs 20000000
num_seq_io -1
content_cache_saved_memory_usage_bytes 0
seq_io_ppm -1
write_io_ppm 156499
controller_avg_write_io_latency_usecs 2322
content_cache_logical_memory_usage_bytes 63666663580
Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu