Useful Netapp Commands

Reading Time: 4 minutes

Checking snap shots: Snap list –n volume-name (could use without –n but takes up less filer resources)

Check space on aggregate:
  aggr show_space –g

Check volume size:
vol size volume-name

Check auto size on volume:
vol autosize volume-name

Clone a snapshot:
vol clone create NAME_YOUR_CLONE -s none -b VOLUME_NAME
SNAP_SHOT_NAME

Display hardware config:
sysconfig –a

Display version of Ontap:
version

Display uptime of filer:
uptime

Display DNS resolvers, number of hits, misses etc:
dns info

Display aggregate status:
aggr status

Reboot filer:
reboot

Take over cluster partner:
cf takeover

Give back to cluster partner: cf giveback

wrfile
– Creates or Overwrites a file

aggr status
– Shows aggregate status

aggr status -r
– Shows raid configuration, reconstruction information of the disks on filer

aggr show_space
– Shows the disk usage of aggreate, WAFL reserve, overheads.

vol status
– Shows volume information

vol status -s
– Displays spare disks on the filer

vol status
-f – Displays failed disks on filer

sysconfig -a
– shows hardware configuration with more verbose information

sysconfig
-d – shows information of disk attached to the filer

version
– shows Ontap OS version.

vol status -r
– Shows raid configuration, reconstruction information of the disks

df -h
– Displays volume disk usage

df -i
– Shows inode counts of all volumes

df -Ah
– Shows “df” information of aggregate

license
– Displays/add/removes license on netapp filer

maxfiles
– Displays and adds more inodes to a volume

uptime
– shows filer uptime

dns info
– shows dns resolvers, the no of hits and misses etc

nis info
– shows nis domain name, yp servers

rdfile
– Used to read contents of text files

aggr create
– Create an aggregate

vol create <volumeName> <AggregateName> <size>
– Creates volume in an aggregate

vol offline <VolumeName>
– Place volume offline

vol online <VolumeName>
– Place volume online

vol destroy <VolumeName>
– Destroys and removes a volume

vol size <VolumeName> [+|-]<size>
– Resize a volume on Netapp filer

vol options
– Displays or Changes volume options on a Netapp filer

qtree create <qtree-path>
– Create a qtree

qtree status
– Display the status of qtrees

quota on
– Enable quota on netapp filer

quota off
– Disable quota

quota resize
– Resize quota

quota report
– Report quota and usage

quota off
– Disable quota

quota resize
– Resize quota

snap list
– Display all snapshots on a volume (Using snap list –n takes up less resources)

snap create <VolumeName> <SnapName>
– Create snapshot

snap sched <VolumeName> <schedule>
– Schedule a snapshot creation

qtree status
– Display the status of qtrees

quota on
– Enable quota on netapp filer

quota report
– Report the quota and its current usage

exportfs -a
– Export all the file Systems listed in /etc/exports

cifs setup
– Setup cifs

cifs shares
– Create/displays cifs shares

cifs access
– Changes access of cifs shares

snap reserve <VolumeName> <percentage>
– Display orset snapshot reserve space on volume

/etc/exports
– File that manages the NFS exports

rdfile /etc/exports
– Read the NFS exports file

wrfile /etc/exports
– Write to NFS exports file

lun create
– Creates iscsi or fcp luns on netapp filer

options nfs
– Display or Set NFS options

options timed
– Display or Set NTP options on netapp.

options autosupport
– Display or Set autosupport options

options cifs
– Display or Set cifs options

options tcp
– Display or Set TCP options

options net
– Display/or Set network options

ndmpcopy <src-path> <dst-path>
– Initiates ndmpcopy

ndmpd status
– Displays status of ndmpd

ndmpd killall
– Terminates all the ndmpd processes.

lun map
– Maps lun to an igroup

lun show
– Show all the luns on a filer

igroup create
– Creates netapp igroup

environment
– display environment status on shelves and chassis of the filer

storage show <disk|shelf|adapter>
– Shows storage component details

lock status -h
– Displays locks held by filer

sm_mon
– Manage the locks

storage download shelf
– Installs the shelf firmware

software get
– Download the Netapp OS software

software install
– Installs OS

download
– Updates the installed OS

cf status
– Displays cluster status

cf takeover
– Takes over the cluster partner

lun stats
– Show lun I/O statistics

disk show
– Shows all the disks on a filer

disk zero spares
– Zeros the spare disks ready for use

disk_fw_update
– Upgrades the disk firmware on all disks

options
– Display or Set options on netapp filer

ifconfig
– Displays or Sets IP address on a network/vif interface

vif create
– Creates a VIF (bonding/trunking/teaming)

vif status
– Displays status of a vif

netstat
– Displays network statistics

snapmirror intialize
– Initialize a snap mirror relation

snapmirror update
– Manually Update snap mirror relation

snapmirror resync
– Resyns a broken snap mirror

snapmirror quiesce
– Quiesces a snapmirror bond

snapmirror break
– Breaks a snap mirror relation

snapmirror abort
– Aborts a running snap mirror

snapmirror status
– Shows snap mirror status

sysstat -us 1
– begins a 1 second sample of the filer’s current utilization

nfsstat
– Shows nfs stats

nfsstat -l
– Display nfs stats per client

nfs_hist
– Display nfs historgram

statit
– begins or ends a performance workload sampling [-b starts / -e ends]

stats
– Displays stats for every counter on netapp. Read stats man page for more info

ifstat
– Displays Network interface statistics

qtree stats
– displays I/O stats of qtree’s

cf giveback
– Gives back control to partner in cluster

reboot
– Reboots a filer

Please follow and like us:

Leave a Reply

Your email address will not be published. Required fields are marked *

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