Netapp Clustered Ontap Commands Reference

Here are some of the NetApp Clustered ONTAP commands uses.


To look at the logs within clustered ontap you must log in as the diag user to a specific node

set -privilege advanced

systemshell -node <node_name>

username: diag

password: <your diag password>

cd /mroot/etc/mlog

cat command-history.log | grep volume (Searches the command-history.log file for the keyword volume)

exit (exits out of diag mode)

http://<cluster-ip address>/spi (loging with your username and password, from here you can browse logs and core dumps)



cluster time-service ntp server create (Configure an NTP server or multiple NTP servers)

cluster time-service ntp server show (Show the current NTP servers)

cluster time-service ntp server modify (Modify the NTP server list)

cluster time-service ntp server delete (Deletes an NTP server)

cluster time-service ntp server reset (Resets configuration, removes all existing NTP servers)

cluster date show (Displays the cluster date)

cluster date modify (Modify the cluster date)



set -privilege advanced (required to be in advanced mode for the below commands)

cluster statistics show (shows statistics of the cluster – CPU, NFS, CIFS, FCP, Cluster Interconnect Traffic)

cluster ring show -unitname vldb (check if volume location database is in quorum)

cluster ring show -unitname mgmt (check if management application is in quorum)

cluster ring show -unitname vifmgr (check if virtual interface manager is in quorum)

cluster ring show -unitname bcomd (check if san management daemon is in quorum)

cluster ping-cluster -node node1 (tests cluster interconnect network by pinging each node and cluster lif within the cluster)

cluster unjoin (must be run in priv -set admin, disjoins a cluster node. Must also remove its cluster HA partner)

debug vreport show (must be run in priv -set diag, shows WAFL and VLDB consistency)

event log show -messagename scsiblade.* (show that cluster is in quorum)



aggr create -aggregate <aggregate_name> -diskcount <the number of disks you wish to add> -raidtype raid_dp -maxraidsize 18 (Create an AGGR with X amount of disks, raid_dp and raidgroup size 18)

aggr offline | online (Make the aggr offline or online)

aggr rename -aggregate <aggr_name> -newname <new_aggr_name) (Change the name of an existing aggr)

aggr relocation start -node node01 -destination node02 -aggregate-list aggr1 (Relocate aggr1 from node01 to node02)

aggr relocation show (Shows the status of an aggregate relocation job)

aggr show -space (Show used and used% for volume foot prints and aggregate metadata)

aggregate show (show all aggregates size, used% and state)

aggregate add-disks -aggregate <aggregate_name> -diskcount <number_of_disks> (Adds a number of disks to the aggregate)



vserver setup (Runs the clustered ontap vserver setup wizard)

vserver create -vserver <vserver_name> -rootvolume <volume_name> (Creates a new vserver)

vserver show (Shows all vservers in the system)

vserver show -vserver <vserver_name> (Show information on a specific vserver)



volume snapshot create -vserver vserver1 -volume vol1 -snapshot snapshot1 (Create a snapshot on vserver1, vol1 called snapshot1)

volume snapshot restore -vserver vserver1 -volume vol1 -snapshot snapshot1 (Restore a snapshot on vserver1, vol1 called snapshot1)

volume snapshot show -vserver vserver1 -volume vol1 (Show snapshots on vserver1 vol1)

snap autodelete show -vserver SVM1 -enabled true (Shows which volumes have autodelete enabled)



show-periodic -object volume -instance volumename -node node1 -vserver vserver1 -counter total_ops|avg_latency|read_ops|read_latency (Show the specific counters for a volume)

statistics show-periodic 0object nfsv3 -instance vserver1 -counter nfsv3_ops|nfsv3_read_ops|nfsv3_write_ops|read_avg_latency|write_avg_latency (Shows the specific nfsv3 counters for a vserver)

sysstat -x 1 (Shows counters for CPU, NFS, CIFS, FCP, WAFL)

statistics start -object top_client -sample-id sample1 -sort-key (Need to be in advanced mode. Options are other_ops, read_data, read_ops, total_data, total_ops, write_data, write_ops) (This command starts a collection)

statistics show -object top_client -sample_id sample1 -tab -counter read_ops|write_ops (Need to be in advanced mode. This command is used in conjunction with the above command, you can replace the -counter options with any options from above as well)