Transcript

7/22/2019 Pocket Guide for Netapp Commands

http://slidepdf.com/reader/full/pocket-guide-for-netapp-commands 1/2

Pocket guide for netapp commandsThis post contains the list of commands that will be most used and will come handy when managing or monitoring or troubleshooting a Netapp filer.

sysconfig -a : shows hardware configuration with more verbose informationsysconfig -d : shows information of the disk attached to the filerversion : shows the netapp Ontap OS version.uptime : shows the filer uptimedns info : this shows the dns resolvers, the no of hits and misses and other infonis info : this shows the nis domain name, yp servers etc.rdfile : Like "cat" in Linux, used to read contents of text files/wrfile : Creates/Overwrites a file. Similar to "cat > filename" in Linuxaggr status : Shows the aggregate statusaggr status -r : Shows the raid configuration, reconstruction information of thedisks in fileraggr show_space : Shows the disk usage of the aggreate, WAFL reserve, overheadsetc.vol status : Shows the volume informationvol status -s : Displays the spare disks on the filervol status -f : Displays the failed disks on the filervol status -r : Shows the raid configuration, reconstruction information of thedisksdf -h : Displays volume disk usage

df -i : Shows the inode counts of all the volumesdf -Ah : Shows "df" information of the aggregatelicense : Displays/add/removes license on a netapp filermaxfiles : Displays and adds more inodes to a volumeaggr create : Creates aggregatevol create <volname> <aggrname> <size> : Creates volume in an aggregatevol offline <volname> : Offlines a volumevol online <volname> : Onlines a volumevol destroy <volname> : Destroys and removes an volumevol size <volname> [+|-]<size> : Resize a volume in netapp filervol options : Displays/Changes volume options in a netapp filerqtree create <qtree-path> : Creates qtreeqtree status : Displays the status of qtrees

quota on : Enables quota on a netapp filerquota off : Disables quotaquota resize : Resizes quotaquota report : Reports the quota and usagesnap list : Displays all snapshots on a volumesnap create <volname> <snapname> : Create snapshotsnap sched <volname> <schedule> : Schedule snapshot creationsnap reserve <volname> <percentage> : Display/set snapshot reserve space in volume/etc/exports : File that manages the NFS exportsrdfile /etc/exports : Read the NFS exports filewrfile /etc/exports : Write to NFS exports fileexportfs -a : Exports all the filesystems listed in /etc/exports

cifs setup : Setup cifscifs shares : Create/displays cifs sharescifs access : Changes access of cifs shareslun create : Creates iscsi or fcp luns on a netapp filerlun map : Maps lun to an igrouplun show : Show all the luns on a filerigroup create : Creates netapp igrouplun stats : Show lun I/O statisticsdisk show : Shows all the disk on the filerdisk zero spares : Zeros the spare disks

7/22/2019 Pocket Guide for Netapp Commands

http://slidepdf.com/reader/full/pocket-guide-for-netapp-commands 2/2

disk_fw_update : Upgrades the disk firmware on all disksoptions : Display/Set options on netapp fileroptions nfs : Display/Set NFS optionsoptions timed : Display/Set NTP options on netapp.options autosupport : Display/Set autosupport optionsoptions cifs : Display/Set cifs optionsoptions tcp : Display/Set TCP optionsoptions net : Display/Set network optionsndmpcopy <src-path> <dst-path> : Initiates ndmpcopyndmpd status : Displays status of ndmpdndmpd killall : Terminates all the ndmpd processes.ifconfig : Displays/Sets IP address on a network/vif interfacevif create : Creates a VIF (bonding/trunking/teaming)vif status : Displays status of a vifnetstat : Displays network statisticssysstat -us 1 : begins a 1 second sample of the filer's current utilization (crtl - c to end)nfsstat : Shows nfs statisticsnfsstat -l : Displays nfs stats per clientnfs_hist : Displays nfs historgramstatit : beings/ends a performance workload sampling [-b starts / -e ends]stats : Displays stats for every counter on netapp. Read stats man page for moreinfoifstat : Displays Network interface stats

qtree stats : displays I/O stats of qtreeenvironment : display environment status on shelves and chassis of the filerstorage show <disk|shelf|adapter> : Shows storage component detailssnapmirror intialize : Initialize a snapmirror relationsnapmirror update : Manually Update snapmirror relationsnapmirror resync : Resyns a broken snapmirrorsnapmirror quiesce : Quiesces a snapmirror bondsnapmirror break : Breakes a snapmirror relationsnapmirror abort : Abort a running snapmirrorsnapmirror status : Shows snapmirror statuslock status -h : Displays locks held by filersm_mon : Manage the locksstorage download shelf : Installs the shelf firmware

software get : Download the Netapp OS softwaresoftware install : Installs OSdownload : Updates the installed OScf status : Displays cluster statuscf takeover : Takes over the cluster partnercf giveback : Gives back control to the cluster partnerreboot : Reboots a filer


Recommended