跳到主要内容

显示 DNS 统计信息

可以显示存储系统中存储虚拟机(SVM) 的 DNS 统计信息,以监控性能并诊断问题。

  1. 将权限级别设置为高级:set -privilege advanced。
  2. 使用 statistics catalog object show 命令确定查看数据的 DNS 对象。

    示例

    statistics catalog object show -object external_service_op*

    有关 statistics 命令的更多信息,请参阅《性能监控功能指南》。
  3. 可使用 statistics startstatistics stop 命令从一个或多个对象收集数据样本。
  4. 可使用 statistics show 命令查看样本数据。

监控 DNS 统计信息

以下示例显示 DNS 查询的性能数据。以下命令开始为新样本收集数据:

vs1::*> statistics start -object external_service_op -sample-id dns_sample1
vs1::*> statistics start -object external_service_op_error -sample-id dns_sample2

以下命令指定计数器,显示发送的 DNS 查询数量与收到、失败或超时的 DNS 查询数量,从而显示样本数据:

vs1::*> statistics show -sample-id dns_sample1 -counter num_requests_sent|num_responses_received|num_successful_responses|num_timeouts|num_request_failures|num_not_found_responses

Object: external_service_op
Instance: vs1:DNS:Query:10.72.219.109
Start-time: 3/8/2016 11:15:21
End-time: 3/8/2016 11:16:52
Elapsed-time: 91s
Scope: vs1

Counter Value
-------------------------------- --------------------------------
num_not_found_responses 0
num_request_failures 0
num_requests_sent 1
num_responses_received 1
num_successful_responses 1
num_timeouts 0
6 entries were displayed.

以下命令指定计数器,显示特定服务器上的 DNS 查询接收到某一具体错误的次数,从而显示样本数据:

vs1::*> statistics show -sample-id dns_sample2 -counter server_ip_address|error_string|count

Object: external_service_op_error
Instance: vs1:DNS:Query:NXDOMAIN:10.72.219.109
Start-time: 3/8/2016 11:23:21
End-time: 3/8/2016 11:24:25
Elapsed-time: 64s
Scope: vs1

Counter Value
-------------------------------- --------------------------------
count 1
error_string NXDOMAIN
server_ip_address 10.72.219.109
3 entries were displayed.