显示 NIS 统计信息
可以显示存储系统中存储虚拟机(SVM)的 NIS 统计信息,以监控性能并诊断问题。
监控 NIS 统计信息
以下示例显示 NIS 查询的性能数据。以下命令开始为新样本收集数据:
vs1::*> statistics start -object external_service_op -sample-id nis_sample1
vs1::*> statistics start -object external_service_op_error -sample-id nis_sample2
以下命令指定计数器,显示发送的 NIS 查询数量与收到、失败或超时的 NIS 查询数量,从而显示样本数据:
vs1::*> statistics show -sample-id nis_sample1 -counter instance|num_requests_sent|num_responses_received|num_successful_responses|num_timeouts|num_request_failures|num_not_found_responses
Object: external_service_op
Instance: vs1:NIS:Query:10.227.13.221
Start-time: 3/8/2016 11:27:39
End-time: 3/8/2016 11:27:56
Elapsed-time: 17s
Scope: vs1
Counter Value
-------------------------------- --------------------------------
num_not_found_responses 0
num_request_failures 1
num_requests_sent 2
num_responses_received 1
num_successful_responses 1
num_timeouts 0
6 entries were displayed.
以下命令指定计数器,显示特定服务器上的 NIS 查询接收到某一具体错误的次数,从而显示样本数据:
vs1::*> statistics show -sample-id nis_sample2 -counter server_ip_address|error_string|count
Object: external_service_op_error
Instance: vs1:NIS:Query:YP_NOTFOUND:10.227.13.221
Start-time: 3/8/2016 11:33:05
End-time: 3/8/2016 11:33:10
Elapsed-time: 5s
Scope: vs1
Counter Value
-------------------------------- --------------------------------
count 1
error_string YP_NOTFOUND
server_ip_address 10.227.13.221
3 entries were displayed.
提供反馈