NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

statistics start is not working on OnTap 9.6p2?

heightsnj
6,009 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
5,995 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
5,992 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
5,990 Views

"I tried both set d and set adv"

paul_stejskal
5,964 Views

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

kahuna
5,959 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
5,955 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