ONTAP Discussions

statistics start is not working on OnTap 9.6p2?

heightsnj
3,961 Views

 the following command is not working, so the "statistics show-periodic ..."

 

> statistics start

Error: "start" is not a recognized command

I tried both set d and set adv

 

Can somebody please advise?

6 REPLIES 6

kahuna
3,947 Views

it should work. Try '::*> statistics s' and hit the 'tab' key. It should show two options: 'start' and 'show'. Then try '::*> statistics st' and the 'tab' key

pedro_rocha
3,944 Views

Hello!

 

Be aware of this:

 

Availability: This command is available to cluster and Vserver administrators at the advanced privilege level.

 

So first, change to advanced:

cluster1::> set -privilege advanced
Warning: These advanced commands are potentially dangerous; use them only when directed to do so by technical support.
Do you wish to continue? (y or n): y
cluster1::*>

 

The following example starts statistics collection for sample "smpl_1":

cluster1::*> statistics start -object system -sample-id smpl_1
Statistics collection is being started for Sample-id: smpl_1

 

Check its documentation for more information: link to 9.6 commands 

 

Regards,

Pedro Rocha.

kahuna
3,942 Views

"I tried both set d and set adv"

paul_stejskal
3,916 Views

Are you at the cluster shell? It should look like "Cluster::>" and if you are in diag it should be "Cluster::*>".

kahuna
3,911 Views

if he was on any shell other than the cluster shell, the error would be that 'statistics not found' and not 'start'

paul_stejskal
3,907 Views

D'oh! Good point. O/P maybe we need to see a video of this?

 

Also does your user have rights to run the command (or are you logging in as admin)?

Public