Netapp Clustered Ontap

Netapp Clustered Ontap CLI Pocket Guide

On this page I will be constantly adding Netapp Clustered Data Ontap CLI commands as an easy reference Pocket Guide

(Updated 30-November-2023)


set -privilege advanced (Enter into privilege mode)

set -privilege diagnostic (Enter into diagnostic mode)

set -privilege admin (Enter into admin mode)

system timeout modify 30 (Sets system timeout to 30 minutes)

system node run – node local sysconfig -a (Run sysconfig on the local node)

The symbol ! means other than in clustered ontap i.e. storage aggregate show -state !online (show all aggregates that are not online)

node run -node <node_name> -command sysstat -c 10 -x 3 (Running the sysstat performance tool with cluster mode)

system node image show (Show the running Data Ontap versions and which is the default boot)

dashboard performance show (Shows a summary of cluster performance including interconnect traffic)

node run * environment shelf (Shows information about the Shelves Connected including Model Number)

network options switchless-cluster show (Displays if nodes are setup for cluster switchless or switched – need to be in advanced mode)

network options switchless-cluster modify true (Sets the nodes to use cluster switchless, setting to false sets the node to use cluster switches – need to be in advanced mode)

security login banner show (Show the current login banner)

security login banner modify -message “Only Authorized users allowed!” (Set the login banner to Only Authorized users allowed)

security login banner modify -message “” (Clears the login banner)

security login motd show (Shows the current Message of the day)

security login motd modify -vserver vserver1 (Modify the Message of the day, use the variable below)

  • Operating System = s
  • Software Version = r
  • Node Name = n
  • Username = N
  • Time = t
  • Date = d

security login motd modify -vserver vserver1 -message “” (Clears the current Message of the Day)

system health subsystem show (Shows health of subsystem components such as SAS-Connect, Environment, Memory, Service-Processor, Switch-Health, CIFS-NDO, Motherboard, IO, MetroCluster, MetroCluster_Node, FHM-Switch, FHM-Bridge, SAS-connect_Cluster)

kernel-services show (Displays state of cluster services)

storage errors show (Displays cluster errors)


security login unlock -username diag (Unlock the diag user)

security login password -username diag (Set a password for the diag user)

security login show -username diag (Show the diag user)


system configuration backup create -backup-name node1-backup -node node1 (Create a cluster backup from node1)

system configuration backup create -backup-name node1-backup -node node1 -backup-type node (Create a node backup of node1)

system configuration backup settings modify -destination -username backups (Sets scheduled backups to go to this destination URL)

system configuration backup settings set-password (Set’s the backup password for the destination URL above)


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)


system coredump status (shows unsaved cored, saved cores and partial cores)

system node coredump show -node1  (lists coredump files and panic dates)

autosupport invoke-core-upload -node node1 -core-filename <file-name> -case-number <netapp-support-case> (get the core filename from the command above. Provide your NetApp support case number)

autosupport history show -node node1 -fields seq-num,subject (Get the seq number of the core upload to paste into the command below)

autosupport history show-upload-details -node1 -seq-num <seq-num> (Displays the status of the coredump upload to NetApp. Use the seq-num from the command above)


SP> priv set advanced (Enter advanced mode within the service-processor console)

SP> system log (list the service-processor system log. Within the first few lines you will see the panic string)

Copy the panic string and type it into the NetApp Panic String Analyzer


system node image get -package -replace-package true -node NODE1 (After downloading the SP firmware for your node model, rename the package to and place it on a HTTP server such as HFS)

system node image get -package http://webserver/ -replace-package true (Copies the firmware file from the webserver into the mroot directory on the node. ONLY USE THIS UNDER DIRECTION FROM NETAPP SUPPORT)

system node service-processor image update -node node1 -package -update-type differential (Installs the firmware package to node1. ONLY USE THIS UNDER DIRECTION FROM NETAPP SUPPORT)

system node service-processor show (Show the service processor firmware levels of each node in the cluster)

system node service-processor image update-progress show (Shows the progress of a firmware update on the Service Processor)

service-processor reboot-sp -node NODE1 (reboot the sp of node1)

service-processor reboot-sp -node NODE1

service-processor reboot-sp -node NODE1 -image primary|backup (reboot the SP into the primary or backup image)

systemshell -node NODE1 sudo spmctl -s -h “servprocd” (stop the servprocd process. ONLY USE THIS UNDER DIRECTION FROM NETAPP SUPPORT)

systemshell -node NODE1 sudo spmctl -e -h “servprocd” (start the servprocd process. ONLY USE THIS UNDER DIRECTION FROM NETAPP SUPPORT)


storage shelf show -instance (can replace -instance with -shelf, -errors, -bay, -connectivity, -cooling, -module, -port, -power)


system node autosupport budget show -node local (In diag mode – displays current time and size budgets)

system node autosupport budget modify -node local -subsystem wafl -size-limit 0 -time-limit 10m (In diag mode – modification as per Netapp KB1014211)

system node autosupport show -node local -fields max-http-size,max-smtp-size (Displays max http and smtp sizes)

system node autosupport modify -node local -max-http-size 0 -max-smtp-size 8MB (modification as per Netapp KB1014211)


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)

cluster kernel-service show -list (in diag mode, displays in quorum information)

debug smdb table bcomd_info show (displays database master / secondary for bcomd)


system node rename -node <current_node_name> -newname <new_node_name>

system node reboot -node NODENAME -reason ENTER REASON (Reboot node with a given reason. NOTE: check ha policy)


system node run -node * options flexscale.enable on (Enabling Flash Cache on each node)

system node run -node * options flexscale.lopri_blocks on (Enabling Flash Cache on each node)

system node run -node * options flexscale.normal_data_blocks on (Enabling Flash Cache on each node)

node run NODENAME stats show -p flexscale (fashcache configuration)

node run NODENAME stats show -p flexscale-access (display flash cache statistics)


storage aggregate modify -hybrid-enabled true (Change the AGGR to hybrid)

storage aggregate add-disks -disktype SSD (Add SSD disks to AGGR to begin creating a flash pool)

priority hybrid-cache set volume1 read-cache=none write-cache=none (Within node shell and diag mode disable read and write cache on volume1)


storage failover takeover -bynode <node_name> (Initiate a failover)

storage failover giveback -bynode <node_name> (Initiate a giveback)

storage failover modify -node <node_name> -enabled true (Enabling failover on one of the nodes enables it on the other)

storage failover show (Shows failover status)

storage failover modify -node <node_name> -auto-giveback false (Disables auto giveback on this ha node)

storage failover modify -node <node_name> -auto-giveback enable (Enables auto giveback on this ha node)

aggregate show -node NODENAME -fields ha-policy (show SFO HA Policy for aggregate)

storage failover hwassist show (shows overall hwassist status)

storage failover hwassist stats show (used for troubleshooting where hwassist is failing)


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)

storage aggregate auto-provision -verbose (use NetApp auto-provision to create aggregates based on best practices)

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)

reallocate measure -vserver vmware -path /vol/datastore1 -once true (Test to see if the volume datastore1 needs to be reallocated or not)

reallocate start -vserver vmware -path /vol/datastore1 -force true -once true (Run reallocate on the volume datastore1 within the vmware vserver)

deleting a stale aggregate, this can be from a foriegn shelf (Only do this is you are absolutely sure that the aggregate is foreign, best to engage NetApp support

  • ::> system node run -node NODE1 sysconfig -r (aggregate will be labelled as foreign)
  • ::> set adv
  • ::*> storage aggregate remove-stale-record -nodename NODE1 -aggregate <foreign_aggregaste_name>


storage aggregate modify -aggregate data_aggr1 -is-inactive-data-reporting-enabled true (Works on AFF and FAS. For FAS the aggregate has to be SSD)

volume show -fields performance-tier-inactive-user-data,performance-tier-inactive-user-data-percent (Displays how much data is inactive on a volume)


storage disk assign -disk 0a.00.1 -owner <node_name> (Assign a specific disk to a node) OR

storage disk assign -count <number_of_disks> -owner <node_name> (Assign unallocated disks to a node)

storage disk show -ownership (Show disk ownership to nodes)

storage disk show -state broken | copy | maintenance | partner | percent | reconstructing | removed | spare | unfail |zeroing (Show the state of a disk)

storage disk modify -disk NODE1:4c.10.0 -owner NODE1 -force-owner true (Force the change of ownership of a disk)

storage disk removeowner -disk NODE1:4c.10.0 -force true (Remove ownership of a drive)

storage disk set-led -disk Node1:4c.10.0 -action blink -time 5 (Blink the led of disk 4c.10.0 for 5 minutes. Use the blinkoff action to turn it off)

disk show -partition-ownership 0.00.10 (Show disk partition information on disk shelf 00 disk 10)

  • You can then see the partition layout by typing ::> node run NODE1 vol status -r (this will display the aggregate along with the disk partitions)

storage failover mailbox-disk show (show which disks are mailbox disks. Needs to be performed in advance mode ::> set adv)


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 create -vserver <vserver_name> -volume <volume_name> -aggregate <aggr_name> -size 100GB -junction-path /eng/p7/source (Creates a Volume within a vserver)

volume move -vserver <vserver_name> -volume <volume_name> -destination-aggregate <aggr_name> -foreground true (Moves a Volume to a different aggregate with high priority)

volume move -vserver <vserver_name> -volume <volume_name> -destination-aggregate <aggr_name> -cutover-action wait (Moves a Volume to a different aggregate with low priority but does not cutover)

volume move trigger-cutover -vserver <vserver_name> -volume <volume_name> (Trigger a cutover of a volume move in waiting state)

volume move show (shows all volume moves currently active or waiting. NOTE: You can only do 8 volume moves at one time, more than 8 and they get queued)

system node run – node <node_name> vol size <volume_name> 400g (resize volume_name to 400GB) OR

volume size -volume <volume_name> -new-size 400g (resize volume_name to 400GB)

volume modify -vserver <vserver_name> -filesys-size-fixed false -volume <volume_name> (Turn off fixed file sizing on volumes)

volume recovery-queue purge-all (An 8.3 command that purges the volume undelete cache)

volume show -vserver SVM1 -volume * -autosize true (Shows which volumes have autosize enabled)

volume show -vserver SVM1 -volume * -atime-update true (Shows which volumes have update access time enabled)

volume modify -vserver SVM1 -volume volume1 -atime-update false (Turns update access time off on the volume)


lun show -vserver <vserver_name> (Shows all luns belonging to this specific vserver)

lun modify -vserver <vserver_name> -space-allocation enabled -path <lun_path> (Turns on space allocation so you can run lun reclaims via VAAI)

lun geometry -vserver <vserver_name> path /vol/vol1/lun1 (Displays the lun geometry)

lun mapping add-reporting-nodes -vserver <vserver_name> -volume <vol name> -lun <lun path> -igroup <igroup name> -destination-aggregate <aggregate name> (Adds the igroup as reporting nodes for the lun)

lun mapping show -vserver <vserver name> -volume <volume name> -fields reporting-nodes (Show reporting nodes for a specific volume)

Before performing a vol move containing a lun with reporting-nodes:

  • ::> lun mapping show -fields reporting-nodes (if no reporting nodes are present you can go ahead and move the vol. If there are reporting nodes present you must add the reporting nodes of the destination aggregate)
  • ::> lun mapping add-reporting-nodes -vserver VSERVER1 -volume VOLUME1 -lun LUN1 -igroup IGROUP1 -destination-aggregate AGGR2
  • Once the volume has moved you can then remove the existing reporting-nodes (remember reporting nodes with Selective Lun Mapping (SLM) should be just the HA pair owning the volume)
  • ::> lun mapping remove-reporting-nodes -vserver VSERVER1 -volume VOLUME1 -lun LUN1 -igroup IGROUP1 -remote-nodes true


vserver <vserver_name> modify -4.1 -pnfs enabled (Enable pNFS. NOTE: Cannot coexist with NFSv4)


storage show adapter (Show Physical FCP adapters)

fcp adapter modify -node NODENAME -adapter 0e -state down (Take port 0e offline)

node run <nodename>fcpadmin config (Shows the config of the adapters – Initiator or Target)

node run <nodename> -t target 0a (Changes port 0a from initiator or target – You must reboot the node)

vserver fcp ping-initiator (Ping check between initiator and lifs)

vserver fcp ping-igroup (Ping check between igroup and lifs)


vserver cifs modify -vserver <vserver_name> -default-site AD-DC-Site (Ontap 9.4 – Specify a Active Directory Site)

vserver cifs options modify -vserver <vserver_name> -is-large-mtu-enabled false (Ontap 9.x set to false due to bug ID: Netapp Bug ID 1139257 )

cifs domain discovered-servers discovery-mode modify -vserver <vserver name> -mode site (Ontap 9.3 – Set Domain Controller discover to single site)

vserver cifs create -vserver <vserver_name> -cifs-server <node_name> -domain <domain_name> (Enable Cifs)

vserver cifs share create -share-name root -path / (Create a CIFS share called root)

vserver cifs share show

vserver cifs show


vserver cifs options modify -vserver <vserver_name>-smb2-enabled true (Enable SMB2.0 and 2.1)


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)


volume create -vserver <vserver_name> -volume vol10_mirror -aggregate <destination_aggr_name> -type DP (Create a destinaion Snapmirror Volume)

snapmirror create -vserver <vserver_name> -source-path sysadmincluster://vserver1/vol10 -destination -path sysadmincluster://vserver1/vol10_mirror -type DP (Create a snapmirror relationship for sysadmincluster)

snapmirror initialize -source-path sysadmincluster://vserver1/vol10 -destination-path sysadmincluster://vserver1/vol10_mirror -type DP -foreground true (Initialize the snapmirror example)

snapmirror update -source-path vserver1:vol10 -destination-path vserver2:vol10_mirror -throttle 1000 (Snapmirror update and throttle to 1000KB/sec)

snapmirror modify -source-path vserver1:vol10 -destination-path vserver2:vol10_mirror -throttle 2000 (Change the snapmirror throttle to 2000)

snapmirror restore -source-path vserver1:vol10 -destination-path vserver2:vol10_mirror (Restore a snapmirror from destination to source)

snapmirror show (show snapmirror relationships and status)

NOTE: You can create snapmirror relationships between 2 different clusters by creating a peer relationship


snapmirror create -source-path vserver1:vol5 -destination-path vserver2:vol5_archive -type XDP -schedule 5min -policy backup-vspolicy (Create snapvault relationship with 5 min schedule using backup-vspolicy)

NOTE: Type DP (asynchronous), LS (load-sharing mirror), XDP (backup vault, snapvault), TDP (transition), RST (transient restore)


volume efficiency on -vserver SVM1 -volume volume1 (Turns Dedupe on for this volume)

volume efficiency start -vserver SVM1 -volume volume1 -dedupe true -scan-old-data true (Starts a volume efficiency dedupe job on volume1, scanning old data)

volume efficiency start -vserver SVM1 -volume volume1 -dedupe true (Starts a volume efficiency dedupe job on volume1, not scanning old data)

volume efficiency show -op-status !idle (This will display the running volume efficiency tasks)


security key-manager onboard enable -cc-mode-enabled yes|no (Enables the onboard key-manager. You will be asked to enter an encryption key. Make sure you keep this key safe in multiple secure places)

Onboard Key-Manager

security key-manager onboard show-backup (shows backup key. This can be used to recover the cluster)

Disable Auto Encryption with Ontap 9.7 and later

options -option-name encryption.data_at_rest_encryption.disable_by_default -vserver <vservername> -option-value on (Ontap 9.7 and later enables encryption by default of newly created volumes and aggregates. To disable this feature on a vserver, use this command)

Aggregate Level Encryption

storage aggregate create -aggregate <aggregate_name> -node <node_name> -encrypt-with-aggr-key true (Create an NetApp Aggregate Encryption (NAE) with ONTAP 9.6)

storage aggregate modify -aggregate <aggregate_name> -node <node_name> -encrypt-with-aggr-key true (Convert a non-NAE aggregate to an NAE aggregate)

storage aggregate modify -aggregate <aggregate_name> -node <node_name> -encrypt-with-aggr-key false (Convert an NAE aggregate to a non-NAE aggregate)

NOTE: If aggregate level encryption is already enabled and in place, any new volume created within that NAE aggregate will automatically be encrypted.

Volume Encryption

volume create -vserver <vserver_name> -volume <volume_name> -aggregate <aggregate_name> -encrypt true (Create a NetApp Volume Encryption (NVE) on an aggregate that is not encrypted)

volume create -vserver <vserver_name> -volume <volume_name> -encrypt false (Create a non-encrypted volume on an aggregate that is encrypted)

volume encryption conversion start -vserver <vserver_name> -volume <volume_name> (Convert an existing non-encrypted volume to an encrypted volume)

volume encryption conversion show (Show the progress of the conversion)

volume show -vserver <vserver_name> -is-encrypted true (Show which volumes are encrypted on a vserver)

Vol Move Encryption

volume move start -vserver <vserver_name> -volume <volume_name> -destination-aggregate <aggregate_name> -encrypt-destination true (Vol move a non-encrypted volume to an encrypted volume)

volume move start -vserver <vserver_name> -volume <volume_name> -destination-aggregate <aggregate_name> -encrypt-with-aggr-key true (Moving a volume to an NAE destination aggregate)

volume move start -vserver <vserver_name> -volume <volume_name> -destination-aggregate <aggregate_name> -encrypt-with-aggr-key false (Moving an NAE volume to an NVE volume)

volume move start -vserver <vserver_name> -volume <volume_name> -destination-aggregate <aggregate_name> -encrypt-destination false -encrypt-with-aggr-key false (Moving an NAE volume to a non-encrypted volume)

volume move start -vserver <vserver_name> -volume <volume_name> -destination-aggregate <aggregate_name> -encrypt-destination false (Moving an NVE volume to a non-encrypted volume)

volume show -encryption-type volume|aggregate -fields encryption-type (Show if the volume is an NAE or NVE encryption type)

Adding nodes to a cluster with onboard encryption key-manager

security key-manager key show -restored no (shows which nodes have encryption keys and which nodes need to be sync’d)

security key-manager key show (shows encryption keys)

security key-manager onboard sync (only run this if ‘security key-manager key show -restored no’ returns some nodes in the result)


network interface show (show network interfaces)

network interface modify -vserver vserver1 -lif cifs1 -address -netmask -force-subnet-association (Data Ontap 8.3 – forces the lif to use an IP address from the subnet range that has been setup)

network port show (Shows the status and information on current network ports)

network port modify -node * -port <vif_name> -mtu 9000 (Enable Jumbo Frames on interface vif_name>

network port modify -node * -port <data_port_name> -flowcontrol-admin none (Disables Flow Control on  port data_port_name)

network interface revert * (revert all network interfaces to their home port)

ifgrp create -node <node_name> -ifgrp <vif_name> -distr-func ip -mode multimode (Create an interface group called vif_name on node_name)

network port ifgrp add-port -node <node_name> -ifgrp <vif_name> -port <port_name> (Add a port to vif_name)

net int failover-groups create -failover-group data_<vif_name>_fg -node <node_name> -port <vif_name> (Create a failover group – Complete on both nodes)

ifgrp show (Shows the status and information on current interface groups)

net int failover-groups show (Show Failover Group Status and information)

node run node1 ifstat -a (shows interface statistics such as crc errors)

node run node1 ifstat -z (clears interface statistics, optionally specify the interface name to clear for that specific interface)

network port reachability show (ensures that all each vlan on each node can reach each other. If you have a failure on one of the vlans then check your switches)


broadcast-domain create -broadcast-domain NFS -mtu 9000 -ports NODE01:e0d-5 (Creates a broadcast-domain and adds the node port)

broadcast-domain add-ports -ipspace Default -broadcast-domain NFS -ports NODE02:e0d-5 (Adds a port to a broadcast domain)

broadcast-domain remove-ports -ipspace Default -broadcast-domain NFS -ports NODE02:e0d-5 (Removes a port from a broadcast domain)

broadcast-domain delete -broadcast-domain NFS -ipspace Default (Deletes a broadcast domain)

network port broadcast-domain merge -ipspace Default -broadcast-domain MANAGEMENT1 -into-broadcast-domain MANAGEMENT2 (moves all ports from MANAGEMENT1 broadcast domain into MANAGEMENT2 broadcast domain)


network interface show-routing-group (show routing groups for all vservers)

network routing-groups show -vserver vserver1 (show routing groups for vserver1)

network routing-groups route create -vserver vserver1 -routing-group -destination -gateway (Creates a default route on vserver1)

ping -lif-owner vserver1 -lif data1 -destination (ping via vserver1 using the data1 port)


network interface show -vserver <vserver name> -fields service-policy,services (review service policies. Retrieve service policy name from this command)

network interface service-policy show -vserver <vserver name> -policy <policy name from command above>

network interface service-policy modify-service -vserver <vserver name> -policy <policy name from command above> -service management-ssh -allowed-addresses <allow IP subnet>


services dns show (show DNS)


vserver services unix-user show

vserver services unix-user create -vserver vserver1 -user root -id 0 -primary-gid 0 (Create a unix user called root)

vserver name-mapping create -vserver vserver1 -direction win-unix -position 1 -pattern (.+) -replacement root (Create a name mapping from windows to unix)

vserver name-mapping create -vserver vserver1 -direction unix-win -position 1 -pattern (.+) -replacement sysadmin011 (Create a name mapping from unix to windows)

vserver name-mapping show (Show name-mappings)


vserver services nis-domain create -vserver vserver1 -domain vmlab.local -active true -servers (Create nis-domain called vmlab.local pointing to

vserver modify -vserver vserver1 -ns-switch nis-file (Name Service Switch referencing a file)

vserver services nis-domain show


system services ntp server create -node <node_name> -server <ntp_server> (Adds an NTP server to node_name)

system services ntp config modify -enabled true (Enable ntp)

system node date modify -timezone <Area/Location Timezone> (Sets timezone for Area/Location Timezone. i.e. Australia/Sydney)

node date show (Show date on all nodes)


timezone -timezone Australia/Sydney (Sets the timezone for Sydney. Type ? after -timezone for a list)

date 201307090830 (Sets date for yyyymmddhhmm)

date -node <node_name> (Displays the date and time for the node)


Job show (Displays list of jobs)

job expunge -id xxx (Deletes a stuck job, replace xxx with the job id)


ucadmin show -node NODENAME (Show CNA ports on specific node)

ucadmin -node NODENAME -adapter 0e -mode cna (Change adapter 0e from FC to CNA. NOTE: A reboot of the node is required)


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)


network device-discovery show -platform *9336* (shows port connects to cluster switch Cisco Nexus 9336c)

network port show -ipspace Cluster (displays all cluster ports)

net int show -role cluster (displays all cluster lifs)

system cluster-switch show (displays cluster switch information)


Removing a port from an ifgrp – To remove a port from an ifgrp, you must first shut down any sub-interfaces of that ifgrp. For example if your ifgrp is named a0a and you have a vlan on it called a0a-100, you must first shut down a0a-100, you will then be able to remove the port from the ifgrp

FCoE Lif Moves – To move a FCoE lif from it’s current home-port in clustered ontap, you must first offline the FCoE lif, perform the lif move and then online the lif

iSCSI Lif Moves – offline the iSCSI lif, modify the home-node and home-port and then bring the lif online. Lif will then come up on the new destination node specified in home-node setting

All the tutorials included on this site are performed in a lab environment to simulate a real world production scenario. As everything is done to provide the most accurate steps to date, we take no responsibility if you implement any of these steps in a production environment.


  1. Hello and thank you for this Pocket Guide.
    Is there one command that can sum the number of open sessions? both cifs & nfs?
    Can be by nodes.

Leave a Reply

Your email address will not be published.



This site uses Akismet to reduce spam. Learn how your comment data is processed.