ONTAP Statistics: Finding the right Object/Counter/Instance

It’s incredible how much performance data can be extracted from ONTAP (here looking at 8.3), and if you’re interested in something specific, trying to find that specific thing is made easier by looking at the statistics catalog.

::> set diag
::*> statistics catalog ?
  counter>  *The counter directory
  instance> *The instance directory
  object>   *The object directory

Note: “statistics catalog” is available in advanced privilege level. Using diag here since want to see everything!

Firstly we look at object (counter and instance require object), and there are 358 different objects (in ONTAP 8.3) which are listed in the Appendix below:

::*> statistics catalog object show -?
  [ -describe | -fields , ... ]
  [[-object] ]               *Object
  [ -privilege ]            *Privilege Level
  [ -is-aggregated {true|false} ]  *Is Object Aggregated
  [ -is-deprecated {true|false} ]  *Is Object Deprecated
  [ -replaced-by ]          *Replaced By Object If Deprecated
  [ -description ]          *Description

Once we’ve decided which object we want to look at, we can look at the counters that object has. For the object cifs:node we’d run -

::*> statistics catalog counter show -object cifs:node

- which returns 99 counters!

Then when see look at the available instances for that object. For the object cifs:node we’d run -

::*> statistics catalog instance show -object cifs:node

Then we collect the statistic and display it. Example below for cifs:node, cifs_latency, and a node instance -

statistics start -object cifs:node -counter cifs_latency -instance NACLU6N2
statistics stop -sample-id sample_21
statistics show -sample-id sample_21

APPENDIX: The 358 Statistics Objects

Note: I’ve grouped the objects where possible to compact this list a little!

::*> statistics catalog object show -fields object
object
--------
affinity, affiperclass, affiperqid, affitotal
aggregate, aggregate_config_replication
aggregator_counter_list, aggregator_counter_list:constituent, aggregator_get_instances, aggregator_get_instances:constituent, aggregator_instance_list, aggregator_instance_list:constituent, aggregator_object_list, aggregator_object_list:constituent
asup
audit_ng, audit_ng:vserver
backup_stats_dirnet_session, backup_stats_session
batched_free_log
bufcache
cacheeject, cachequeue
cid
cifs, cifs:node, cifs:vserver, cifs_cap, cifs_cap:constituent, cifs_shadowcopy, cifs_watch
clam, clam:constituent
classify_fail
client, client:vserver
cluster_dm, cluster_peer
cm_aggregator_cache, cm_aggregator_cache:constituent
cm_connectivity, cm_connectivity:constituent
cm_quota
cm_stack, cm_stack:interface, cm_stack:node, cm_stack:object
cm_translation, cm_translation:constituent
cmlib
cmrpc
compression
copy_manager, copy_manager:constituent
cpdump, cpdump_disk, cpdump_fvol, cpdump_rg, cpdump_rvol
cpx, cpx_op
crs_cluster_queue, crs_queue, crs_stream, crsa, crsa:constituent
ctran
disk, disk:constituent, disk:raid_group
edfifo
ems
exec_ctx
ext_cache, ext_cache_doneq, ext_cache_obj
fal
fcache
fcp_itn, fcp_itn:lif, fcp_itn:port, fcp_itn:vserver, fcp_itn_isp, fcp_itn_isp:lif, fcp_itn_isp:port, fcp_itn_isp:vserver, fcp_itn_sli, fcp_itn_sli:lif, fcp_itn_sli:port, fcp_itn_sli:vserver
fcp_lif, fcp_lif:node, fcp_lif:port, fcp_lif:vserver, fcp_lif_isp, fcp_lif_isp:node, fcp_lif_isp:port, fcp_lif_isp:vserver, fcp_lif_sli, fcp_lif_sli:node, fcp_lif_sli:port, fcp_lif_sli:vserver
fcp_port, fcp_port:node, fcp_port_isp, fcp_port_isp:node, fcp_port_sli, fcp_port_sli:node
fcvi
file_directory
file_operation
fileservices_audit, fileservices_audit:vserver
flashmgmt, flashmgmt_lun
fli_session, fli_session:constituent
fpolicy, fpolicy:constituent, fpolicy_global, fpolicy_passthru_read, fpolicy_passthru_read_conn, fpolicy_passthru_read_conn:constituent, fpolicy_policy, fpolicy_policy:constituent, fpolicy_server, fpolicy_server:constituent, fpolicy_stats_policy
ha
hashd
hostadapter
hya_block_count
hya_ttencoding
icmp, icmp6
igmp
iomem
ip, ip6
iscsi_conn, iscsi_conn:session
iscsi_lif, iscsi_lif:node, iscsi_lif:vserver
lif, lif:vserver
lmgr_ndosmb3_csm, lmgr_ndosmb3_gbuf, lmgr_ndosmb3_msg, lmgr_ndosmb3_op, lmgr_ng
logical_replication_destination, logical_replication_source
lun, lun:constituent, lun:node, lun_thread, lun_thread:node
mbuf
mcc_config, mcc_drc, mcc_perf_cluster, mcc_perf_node, mcc_perf_vserver, mcc_subsystem, mcc_vserver
mntsvc_mount, mntsvc_node
mount
msrpc_tcp, msrpc_tcp:node, msrpc_tcp:vserver
nblade_cifs, nblade_csm
nbuffer_stash
nfs_exports_access_cache, nfs_exports_cache, nfs_exports_match, nfs_generic, nfs_qtree_export, nfserr
nfsv3, nfsv3:constituent, nfsv3:cpu, nfsv3:node
nfsv4, nfsv4:constituent, nfsv4:cpu, nfsv4:node, nfsv4_1, nfsv4_1:constituent, nfsv4_1:cpu, nfsv4_1:node, nfsv4_1_diag, nfsv4_1_error, nfsv4_diag, nfsv4_error, nfsv4_spinnp_errors
nic_bge, nic_common, nic_e1000, nic_igbe, nic_ixgbe, nic_passthru_net, nic_qla, nic_qlge, nic_t2, nic_t3c
nlm
nps1
nrv
nvm_mirror
nvpm
nvram
nwk_ctx
offbox_scan_status
offbox_vscan, offbox_vscan:constituent, offbox_vscan_server, offbox_vscan_server:constituent
oncrpc
oncrpcmsg
ondemand
partial_file_restore
path
pcp, pcp_worker
perf, perf_archive
perfstat
pip, pip_scanner
portmap
process
processor, processor:node
qtree
query
quota
raid, raid_stripe
rastrace
ratebucket, ratebucket_system
rave
readahead
repl_errors, repl_exovol_scanner, repl_exovol_writer, repl_global_ops, repl_granular_sync, repl_rcvr_lrse, repl_rcvr_lrse_pull, repl_rcvr_mgr, repl_rcvr_node, repl_snapdiff, repl_sndr_lrse_pull, repl_sndr_mgr, repl_sndr_node, repl_stopwatches
resource, resource_detail
rpcbind
rquota
rw_ctx
san, san_lif_placement
san_mcc_perf
secd_nfs_netgroup
sis
smb1, smb1:node, smb1:vserver
smb2, smb2:node, smb2:vserver
smc_admin, smc_em, smc_errors, smc_event, smc_stm
smtape
snapdiff_zapi, snapdiff_zapi_mhost
snapmirror
snapshot_dblade_perf, snapshot_dblade_perf_history
snapshot_mgwd
sp_mgmt_counter
sparse
spinhi
spinnp, spinnp_replay_cache
statusmon
striped, stripedattributes, stripedfileop, stripedfileoperrors, stripedlock, stripedmemory, stripedopclient, stripedopclienterrors, stripedopserver, stripedopservererrors
sys_mgmt_and_diagnosis
system, system:constituent, system:node
tape
target_port, target_port:array
tcp
telnet
token_manager
udp
vmstat
vnvram
voltrans
volume, volume:node, volume:vserver, volume_check, volume_check:infinitevol, volume_check:node, volume_check:vserver, volume_move_cutover, volume_move_summary
vserver_dm
vserverdr
vstorage
waffi_per_msg, waffimsg, waffinity
wafl, wafl_hya, wafl_hya_per_aggr, wafl_hya_per_vvol, wafl_hya_sizer, wafl_hya_sizer_interval, wafl_hya_sizer_vvol, wafl_suspend, wafltop
web
witness, witness:node, witness:vserver
workload, workload:constituent, workload:policy_group, workload_detail, workload_detail_volume, workload_queue_dblade, workload_queue_nblade, workload_top, workload_volume, workload_volume:constituent
zapi
zodiac

Comments

  1. Thought. You should share this content via Twitter as well.

    ReplyDelete

Post a Comment